Fix "warning: implicitly declaring library function 'strncasecmp'".
[gnulib.git] / ChangeLog
blobedd411444847d3e87807d0a47b49e3d29b950265
1 2020-08-16  Bruno Haible  <bruno@clisp.org>
3         Fix "warning: implicitly declaring library function 'strncasecmp'".
4         * lib/strptime.c: Include <strings.h>.
6         Fix "warning: 'snprintf' macro redefined".
7         * lib/strerror_r.c (snprintf): Undefine before redefining.
9         Fix "warning: address of array 'locale' will always evaluate to 'true'".
10         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
12         Fix "warning: '__stat64' macro redefined".
13         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
15         Fix "warning: 'format' attribute argument not supported: rpl_printf".
16         * lib/stdio.in.h (printf): Treat clang like GCC.
18         Fix "warning: attribute declaration must precede definition" with clang.
19         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
20         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
21         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
22         on non-glibc systems.
23         * lib/netdb.in.h (gai_strerror): Likewise.
24         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
25         * lib/sys_stat.in.h (fstat): Likewise.
26         * lib/utime.in.h (utime): Likewise.
28         Fix undesired warnings.
29         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
30         clang.
32 2020-08-16  Bruno Haible  <bruno@clisp.org>
34         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
35         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
36         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
37         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
38         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
40 2020-08-16  Bruno Haible  <bruno@clisp.org>
42         Don't use Autoconf quadrigraphs.
43         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
44         Autoconf quadrigraph.
45         * m4/free.m4 (gl_FUNC_FREE): Likewise.
46         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
47         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
48         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
49         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
50         * m4/math_h.m4 (gl_MATH_H): Likewise.
51         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
53 2020-08-16  Bruno Haible  <bruno@clisp.org>
55         Fix quoting of AC_LANG_PROGRAM arguments.
56         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
57         arguments through [[...]].
58         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
59         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
60         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
61         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
62         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
63         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
64         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
65         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
66         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
67         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
68         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
69         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
70         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
72 2020-08-16  Bruno Haible  <bruno@clisp.org>
74         Assume autoconf >= 2.64.
75         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
76         * DEPENDENCIES: Require Autoconf 2.64 or newer.
77         * NEWS: Mention the changed requirement.
78         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
79         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
80         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
81         variables.
82         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
83         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
84         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
85         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
86         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
87         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
88         Likewise.
89         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
90         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
91         * m4/configmake.m4: Update comment.
93 2020-08-16  Bruno Haible  <bruno@clisp.org>
95         sys_ioctl: Simplify.
96         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
97         AC_INCLUDES_DEFAULT.
99 2020-08-16  Bruno Haible  <bruno@clisp.org>
101         Fix quoting of AC_LANG_SOURCE arguments.
102         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
103         GL_NOCRASH expansion.
104         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
105         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
106         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
107         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
108         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
110 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
112         nstrftime: be more predictable about errno
113         This aligns nstrftime better with draft POSIX 202x strftime.
114         * lib/nstrftime.c: Include errno.h.
115         (width_add, __strftime_internal): Set errno on failure,
116         and preserve it on success.  Check for mktime_z failure.
117         * modules/nstrftime (Depends-on): Add errno.
118         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
119         * tests/test-nstrftime.c: Include intprops.h, limits.h.
120         (errno_test): New test function.
121         (main): Call it.
123 2020-08-15  Bruno Haible  <bruno@clisp.org>
125         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
126         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
127         from dependency analysis first.
129 2020-08-15  Bruno Haible  <bruno@clisp.org>
131         Determine asm output option and filename suffix for MSVC/clang.
132         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
133         clang-cl.
135 2020-08-15  Bruno Haible  <bruno@clisp.org>
137         doc: Update for MSVC/clang.
138         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
139         that MSVC 14 does not have.
141 2020-08-15  Bruno Haible  <bruno@clisp.org>
143         Revert autoupdate's revert.
144         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
146 2020-08-15  Bruno Haible  <bruno@clisp.org>
148         frexpl: Fix configuration test result on MSVC.
149         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
150         zero.
152 2020-08-15  Bruno Haible  <bruno@clisp.org>
154         Support compiling without -loldnames on native Windows.
155         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
156         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
157         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
158         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
159         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
160         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
161         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
162         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
163         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
164         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
165         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
166         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
167         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
168         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
169         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
170         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
171         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
172         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
173         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
174         Likewise.
175         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
176         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
177         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
178         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
179         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
180         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
181         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
182         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
183         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
184         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
185         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
186         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
187         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
188         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
189         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
190         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
191         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
192         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
193         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
194         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
195         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
196         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
197         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
198         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
199         * m4/utimens.m4 (gl_UTIMENS): Likewise.
200         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
201         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
202         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
203         test for getcwd.
204         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
205         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
206         with GL_MDA_DEFINES.
207         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
208         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
209         prefixed symbol.
210         * lib/search.in.h (lfind, lsearch): Likewise.
211         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
212         Likewise.
213         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
214         * lib/string.in.h (memccpy, strdup): Likewise.
215         * lib/sys_stat.in.h (chmod, umask): Likewise.
216         * lib/time.in.h (tzset): Likewise.
217         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
218         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
219         read, rmdir, swab, unlink, write): Likewise.
220         * lib/utime.in.h (utime): Likewise.
221         * lib/wchar.in.h (wcsdup): Likewise.
222         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
223         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
224         rpl_-prefixed macro.
225         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
226         * lib/close.c (close_nothrow): On native Windows, use _close.
227         * lib/creat.c (orig_creat): On native Windows, use _creat.
228         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
229         * lib/dup2.c (dup2_nothrow): Use _dup2.
230         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
231         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
232         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
233         * lib/open.c (orig_open): On native Windows, use _open.
234         * lib/read.c (read_nothrow): Use _read.
235         * lib/rmdir.c: On native Windows, use _rmdir.
236         * lib/unlink.c: On native Windows, use _unlink.
237         * lib/write.c (write_nothrow): Use _write.
238         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
239         undefined symbol.
240         * lib/sys_socket.in.h (close): Likewise.
241         * lib/sys_time.in.h (close): Likewise.
242         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
244 2020-08-15  Bruno Haible  <bruno@clisp.org>
246         Fix "unknown pragma ignored" warnings with clang on native Windows.
247         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
248         * lib/cbrtf.c: Likewise.
249         * lib/ceil.c: Likewise.
250         * lib/floor.c: Likewise.
251         * lib/fma.c: Likewise.
252         * lib/fmod.c: Likewise.
253         * lib/rint.c: Likewise.
254         * lib/round.c: Likewise.
255         * lib/trunc.c: Likewise.
256         * tests/test-ceil2.c: Likewise.
257         * tests/test-ceilf2.c: Likewise.
258         * tests/test-floor2.c: Likewise.
259         * tests/test-floorf2.c: Likewise.
260         * tests/test-trunc2.c: Likewise.
261         * tests/test-truncf2.c: Likewise.
262         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
263         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
265 2020-08-15  Bruno Haible  <bruno@clisp.org>
267         Fix compilation errors in C++ mode with clang on native Windows.
268         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
269         non-glibc systems.
270         * lib/sched.in.h (sched_yield): Likewise.
272 2020-08-14  Bruno Haible  <bruno@clisp.org>
274         stdnoreturn: Work around problem with MSVC/clang.
275         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
276         system header after <stdnoreturn.h>.
277         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
279 2020-08-14  Bruno Haible  <bruno@clisp.org>
281         utime-h: Generate an utime.h file always.
282         * modules/utime-h (Makefile.am): Generate utime.h always.
283         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
284         GL_GENERATE_UTIME_H.
286 2020-08-14  Bruno Haible  <bruno@clisp.org>
288         mktime, mktime-internal: Remove obsolete code.
289         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
291 2020-08-14  Bruno Haible  <bruno@clisp.org>
293         getcwd: Remove obsolete code.
294         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
295         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
297 2020-08-14  Bruno Haible  <bruno@clisp.org>
299         tzset: Assume the function exists.
300         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
301         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
302         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
303         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
304         HAVE_TZSET.
305         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
306         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
308         nstrftime: Assume tzset exists.
309         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
310         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
311         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
313         mktime, mktime-internal: Assume tzset exists.
314         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
315         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
317 2020-08-14  Bruno Haible  <bruno@clisp.org>
319         strdup: Assume the function exists.
320         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
321         whether strdup exists.
322         * modules/strdup (Files): Remove lib/strdup.c.
323         (configure.ac): Don't compile strdup.c.
324         * modules/strdup-posix (Depends-on, configure.ac): Don't test
325         ac_cv_func_strdup.
326         * doc/posix-functions/strdup.texi: Update.
327         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
328         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
329         (Depends-on): Remove unistr/u8-strlen.
331 2020-08-13  Bruno Haible  <bruno@clisp.org>
333         sys_random: Work around an uClibc bug.
334         Reported by akater <nuclearspace@gmail.com>
335         via Stefan Kangas <stefan@marxist.se>
336         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
337         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
338         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
339         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
340         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
342 2020-08-12  Bruno Haible  <bruno@clisp.org>
344         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
345         Reported by Florian Weimer in
346         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
347         * lib/gen-uni-tables.c (output_predicate): Change the element type of
348         the level3 array to 'unsigned int'.
349         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
350         * lib/unictype/categ_*.h: Regenerated.
351         * lib/unictype/ctype_*.h: Regenerated.
352         * lib/unictype/pr_*.h: Regenerated.
353         * lib/unictype/sy_*.h: Regenerated.
354         * lib/unicase/cased.h: Regenerated.
355         * lib/unicase/ignorable.h: Regenerated.
357 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
359         stdint: port intptr_t to more-recent MinGW
360         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
361         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
362         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
363         Apparently those two macros were removed in mingwrt-3.22
364         dated 2016-07-14.
366 2020-08-12  Bruno Haible  <bruno@clisp.org>
368         thread-optim: Export function-like macros only.
369         Suggested by Paul Eggert.
370         * lib/thread-optim.h (gl_multithreaded): New macro.
371         (IF_MT_DECL, IF_MT): Remove macros.
372         * doc/multithread.texi (Multithreading Optimizations): Add a small
373         example.
374         * lib/fatal-signal.c: Update all uses.
375         * lib/clean-temp.c: Likewise.
376         * lib/localename.c: Likewise.
377         * modules/localename (Depends-on): Add stdbool.
379 2020-08-12  Bruno Haible  <bruno@clisp.org>
381         Revert autoupdate's revert.
382         * config/srclist.txt: Mark regex.h as needing sync with glibc.
384 2020-08-11  Bruno Haible  <bruno@clisp.org>
386         thread-optim: Fix a compiler warning.
387         * lib/thread-optim.h (IF_MT_DECL): Define differently.
389 2020-08-11  Bruno Haible  <bruno@clisp.org>
391         Use __restrict also on clang.
392         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
393         (__restrict_arr): On clang, define like on GCC.
394         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
395         (_Restrict_arr_): Use _Restrict_ also on clang.
396         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
397         (_Restrict_arr_): Use _Restrict_ also on clang.
399 2020-08-11  Bruno Haible  <bruno@clisp.org>
401         Use flexible array syntax also on clang.
402         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
403         define like for GCC 3.
405 2020-08-11  Bruno Haible  <bruno@clisp.org>
407         fcntl: On native Windows, use _setmode, not setmode.
408         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
409         * lib/binary-io.h: Update comment.
410         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
411         * tests/test-dup2.c: Likewise.
412         * tests/test-dup-safer.c: Likewise.
413         * tests/test-fcntl.c: Likewise.
415 2020-08-11  Bruno Haible  <bruno@clisp.org>
417         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
418         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
419         * lib/spawn-pipe.c (create_pipe): Likewise.
420         * tests/test-nonblocking-pipe-main.c (main): Likewise.
421         * tests/test-nonblocking-socket-main.c (main): Likewise.
422         * lib/wait-process.c: Update comment.
423         * doc/posix-functions/fork.texi: Update.
425 2020-08-11  Bruno Haible  <bruno@clisp.org>
427         asyncsafe-spin: Use GCC built-ins also on clang.
428         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
429         the newer GCC built-ins also on clang.
431 2020-08-11  Bruno Haible  <bruno@clisp.org>
433         Use expression statements also on clang.
434         * lib/cdefs.h (__extension__): Don't define to empty on clang.
435         * lib/obstack.h (__extension__): Likewise.
436         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
437         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
438         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
439         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
440         obstack_finish, obstack_free): Enable as optimized macros also on clang.
441         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
443 2020-08-10  Bruno Haible  <bruno@clisp.org>
445         Use many __attribute__s with clang.
446         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
447         on clang.
448         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
449         New macros.
450         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
451         on clang.
452         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
453         also on older clang versions.
454         (__attribute__): Don't define to empty on clang.
455         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
456         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
457         (__attribute_const__): Use __attribute__ __const__ also on clang.
458         (__attribute_used__): Use __attribute__ __used__ also on clang.
459         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
460         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
461         clang.
462         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
463         clang.
464         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
465         also on clang.
466         (__nonnull): Use __attribute__ __nonnull__ also on clang.
467         (__attribute_warn_unused_result__): Use __attribute__
468         __warn_unused_result__ also on clang.
469         (__always_inline): Use __attribute__ __always_inline__ also on clang.
470         (__attribute_artificial__): Use __attribute__ __artificial__ also on
471         clang >= 7.
472         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
473         clang versions.
474         (_Noreturn): Don't redefine on clang >= 3.5.
475         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
476         also on clang.
477         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
478         on clang.
479         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
480         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
481         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
482         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
483         also on clang.
484         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
485         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
486         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
487         also on clang.
488         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
489         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
490         __attribute__ __noreturn__ also on clang.
491         * lib/obstack.h (__attribute_noreturn__): Likewise.
492         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
493         clang.
494         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
495         always_inline also on clang.
496         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
497         clang.
499 2020-08-10  Bruno Haible  <bruno@clisp.org>
501         c-ldtoastr tests: Fix test failure.
502         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
503         is longer than 'double'.
505 2020-08-10  Bruno Haible  <bruno@clisp.org>
507         Revert autoupdate's revert.
508         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
510 2020-08-09  Bruno Haible  <bruno@clisp.org>
512         string: Fix build error in C++ mode with clang (regression from today).
513         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
514         parameters, one for GCC, one for clang.
515         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
516         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
517         as return type.
519 2020-08-09  Bruno Haible  <bruno@clisp.org>
521         ftruncate: Use _chsize, not chsize.
522         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
523         * lib/ftruncate.c: Test HAVE__CHSIZE.
524         (chsize_nothrow): Use _chsize, not chsize.
526 2020-08-09  Bruno Haible  <bruno@clisp.org>
528         Silence warnings from clang 10 with -Wimplicit-fallthrough.
529         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
530         clang >= 10.
531         * lib/fnmatch.c (FALLTHROUGH): Likewise.
532         * lib/fts.c (FALLTHROUGH): Likewise.
533         * tests/macros.h (FALLTHROUGH): Likewise.
534         * lib/regex_internal.h (FALLTHROUGH): Likewise.
535         * config/srclist.txt: Mark it as needing sync with glibc.
537 2020-08-09  Bruno Haible  <bruno@clisp.org>
539         stdbool tests: Enable the stricter tests also on clang.
540         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
541         (e): Enable the address-to-bool conversion test also on clang.
543 2020-08-09  Bruno Haible  <bruno@clisp.org>
545         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
546         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
548 2020-08-09  Bruno Haible  <bruno@clisp.org>
550         Use attribute __aligned__ with clang.
551         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
552         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
554 2020-08-09  Bruno Haible  <bruno@clisp.org>
556         Use __alignof__ with clang.
557         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
558         on clang.
559         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
560         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
561         clang.
562         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
563         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
564         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
565         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
567 2020-08-09  Bruno Haible  <bruno@clisp.org>
569         ignore-value: Simplify on clang.
570         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
571         workaround.
573 2020-08-09  Bruno Haible  <bruno@clisp.org>
575         Use __typeof__ with clang.
576         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
577         "clang -std=gnu99".
578         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
579         * tests/test-stdint.c (verify_same_types): Enable the check also on
580         clang.
582 2020-08-09  Bruno Haible  <bruno@clisp.org>
584         Add ability to emit user-defined warnings and errors with clang.
585         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
586         _GL_ATTRIBUTE_WARNING using an attribute for clang.
587         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
588         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
589         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
590         attribute for clang.
592 2020-08-09  Bruno Haible  <bruno@clisp.org>
594         intprops: Fix typo in comment.
595         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
597 2020-08-09  Bruno Haible  <bruno@clisp.org>
599         Use __builtin_signbit* with clang.
600         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
601         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
602         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
604         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
605         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
606         not REPLACE_SIGNBIT_USING_GCC.
608 2020-08-09  Bruno Haible  <bruno@clisp.org>
610         Use __builtin_isnan with clang.
611         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
612         not __builtin_isnanf. Also on clang.
613         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
614         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
615         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
616         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
617         built-in.
618         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
619         not __builtin_isnanl. Also on clang.
620         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
621         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
622         * lib/math.in.h (__has_builtin): Remove macro.
623         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
624         __builtin_isnanf. Also on clang.
625         (isnand, gl_isnan_d): With clang, use the GCC built-in.
626         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
627         __builtin_isnanl. Also on clang.
628         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
629         on clang.
631 2020-08-09  Bruno Haible  <bruno@clisp.org>
633         thread-optim: Fix logic error.
634         Reported by Paul Eggert.
635         * lib/thread-optim.h (IF_MT): Fix logic error.
637 2020-08-08  Bruno Haible  <bruno@clisp.org>
639         localename: Use module 'thread-optim'.
640         * lib/localename.c: Include thread-optim.h.
641         (struniq): Use IF_MT macro.
642         * modules/localename (Depends-on): Add thread-optim.
644         clean-temp: Use module 'thread-optim'.
645         * lib/clean-temp.c: Include thread-optim.h.
646         (register_temporary_file, unregister_temporary_file, create_temp_dir,
647         register_temp_file, unregister_temp_file, register_temp_subdir,
648         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
649         close_temp, fclose_variant_temp): Use IF_MT macro.
650         * modules/clean-temp (Depends-on): Add thread-optim.
652         fatal-signal: Use module 'thread-optim'.
653         * lib/fatal-signal.c: Include thread-optim.h.
654         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
655         macro.
656         * modules/fatal-signal (Depends-on): Add thread-optim.
658 2020-08-08  Bruno Haible  <bruno@clisp.org>
660         New module 'thread-optim'.
661         * lib/thread-optim.h: New file.
662         * modules/thread-optim: New file.
663         * doc/multithread.texi (Multithreading Optimizations): New section.
665 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
667         doc: more updates for glibc 2.32
668         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
669         * doc/posix-functions/fchmodat.texi: Update.
671 2020-08-07  Bruno Haible  <bruno@clisp.org>
673         doc: Update for glibc 2.32.
674         * doc/glibc-functions/__libc_single_threaded.texi: New file.
675         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
676         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
677         * doc/glibc-functions/sigabbrev_np.texi: New file.
678         * doc/glibc-functions/sigdescr_np.texi: New file.
679         * doc/glibc-functions/strerrordesc_np.texi: New file.
680         * doc/glibc-functions/strerrorname_np.texi: New file.
681         * doc/gnulib.texi: Include them.
682         (Glibc sys/single_threaded.h): New section.
683         * doc/pastposix-functions/h_errno.texi: Update.
684         * doc/posix-functions/*.texi: Likewise.
685         * doc/glibc-functions/*.texi: Likewise.
687 2020-08-07  Bruno Haible  <bruno@clisp.org>
689         alloca: No need to compile alloca.c with clang.
690         * lib/alloca.c: Skip all code with clang.
692         Use __builtin_alloca with clang.
693         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
695 2020-08-06  Bruno Haible  <bruno@clisp.org>
697         Use __builtin_assume with clang.
698         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
699         (assume): Use __builtin_assume when available.
701 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
703         libgmp: add <gmp/gmp.h> support
704         * m4/libgmp.m4 (gl_LIBGMP):
705         * modules/libgmp (configure.ac, Makefile.am):
706         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
707         ‘#include <gmp.h>’.
709 2020-08-06  Bruno Haible  <bruno@clisp.org>
711         Consider that clang defines __OPTIMIZE__ like GCC does.
712         * lib/streq.h: Define the inline functions also on clang.
713         * lib/c-strcaseeq.h: Likewise.
714         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
715         the GCC workaround to clang.
717 2020-08-06  Bruno Haible  <bruno@clisp.org>
719         safe-alloc: Remove unused code.
720         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
722 2020-08-06  Bruno Haible  <bruno@clisp.org>
724         Use __builtin_expect with clang everywhere.
725         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
726         also on clang.
728 2020-08-05  Bruno Haible  <bruno@clisp.org>
730         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
731         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
732         built-in also on clang.
733         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
734         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
736 2020-08-05  Bruno Haible  <bruno@clisp.org>
738         Use __builtin_clz{,l,ll} with clang, also on Windows.
739         * lib/integer_length.c: With clang, use the GCC built-in, not
740         <intrin.h>.
741         * lib/integer_length_l.c: Likewise.
742         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
743         also on clang.
744         * lib/vasnprintf.c (divide): Likewise.
746 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
748         Update srclist.txt as per recent glibc changes
749         * config/srclist.txt: Uncomment lines to reflect recent merges
750         from Gnulib to glibc.
752 2020-08-03  Bruno Haible  <bruno@clisp.org>
754         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
755         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
757 2020-08-03  Bruno Haible  <bruno@clisp.org>
759         integer_length_ll: Optimize for MSVC in 64-bit mode.
760         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
761         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
763 2020-08-03  Bruno Haible  <bruno@clisp.org>
765         integer_length_ll: Optimize for MSVC in 32-bit mode.
766         * lib/integer_length_l.c: Include <intrin.h>.
767         (integer_length): Define as inline function, like in
768         lib/integer_length.c.
770 2020-08-03  Bruno Haible  <bruno@clisp.org>
772         integer_length: Optimize for MSVC.
773         * lib/integer_length.c: Include <intrin.h>.
774         (integer_length): With MSVC, use the _BitScanReverse built-in.
776 2020-08-03  Bruno Haible  <bruno@clisp.org>
778         ffsll: Optimize for MSVC in 64-bit mode.
779         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
780         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
781         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
783 2020-08-03  Bruno Haible  <bruno@clisp.org>
785         ffsll: Optimize for MSVC in 32-bit mode.
786         * lib/ffsl.h: Include <intrin.h>.
787         (ffs): Define as inline function, like in lib/ffs.c.
789 2020-08-03  Bruno Haible  <bruno@clisp.org>
791         ffs: Optimize for MSVC.
792         * lib/ffs.c: Include <intrin.h>.
793         (ffs): With MSVC, use the _BitScanForward built-in.
795 2020-08-03  Bruno Haible  <bruno@clisp.org>
797         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
798         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
799         variable.
801 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
803         fopen: Avoid undesired interactions with glibc headers.
804         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
805         __need_FILE, as the latter does not work with glibc.
807 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
809         fcntl: document some F_SETLK errno variations
810         * doc/posix-functions/fcntl.texi (fcntl): Document
811         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
813 2020-08-02  Bruno Haible  <bruno@clisp.org>
815         oset: Add an 'iterator_atleast' operation.
816         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
817         extracted from gl_array_search_atleast.
818         (gl_array_search_atleast): Use it.
819         (gl_array_iterator_atleast): New function.
820         (gl_array_oset_implementation): Use it.
821         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
822         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
823         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
824         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
825         member.
826         (gl_oset_iterator_atleast): New function.
827         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
828         (gl_OSet::iterator): Add another auxiliary constructor.
829         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
830         New functions.
831         (main): Test also gl_oset_iterator_atleast.
832         * tests/test-avltree_oset.c (is_at_least): New function.
833         (main): Test also gl_oset_iterator_atleast.
834         * tests/test-rbtree_oset.c (is_at_least): New function.
835         (main): Test also gl_oset_iterator_atleast.
836         * tests/test-oset-c++.cc (is_at_most): New function.
837         (main): Test also gl_OSet::begin_atleast.
839 2020-08-02  Bruno Haible  <bruno@clisp.org>
841         oset-c++, omap-c++: Remove restriction for search_atleast method.
842         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
843         a different type than the element.
844         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
845         a different type than the key.
847 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
849         gnumakefile: say ‘$(MAKE)’ not ‘make’
850         * top/GNUmakefile (abort-due-to-no-makefile):
851         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
852         This change is backported from Autoconf.
854 2020-08-01  Bruno Haible  <bruno@clisp.org>
856         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
857         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
858         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
859         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
860         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
861         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
863 2020-08-01  Bruno Haible  <bruno@clisp.org>
865         libtextstyle-optional: Update tests.
866         * modules/libtextstyle-optional-tests (configure.ac): Invoke
867         gl_LIBTEXTSTYLE_OPTIONAL.
869 2020-08-01  Bruno Haible  <bruno@clisp.org>
871         parse-datetime: Fix wrong #line statements.
872         * modules/parse-datetime (Makefile.am): Correct #line statements also in
873         parse-datetime-gen.h.
875 2020-08-01  Bruno Haible  <bruno@clisp.org>
877         libtextstyle[-optional]: Allow requesting a minimum version.
878         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
879         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
880         gl_LIBTEXTSTYLE_SEARCH): New macros.
881         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
882         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
883         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
884         * modules/libtextstyle-optional (configure.ac): Don't invoke
885         gl_LIBTEXTSTYLE_OPTIONAL.
886         * NEWS: Mention the changes.
888 2020-07-31  Bruno Haible  <bruno@clisp.org>
890         _GL_CMP: Improve documentation.
891         Reported by Paul Eggert in
892         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
893         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
894         passed.
896 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
898         largefile: sync with Autoconf master
899         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
900         Avoid undefined behavior on platforms where off_t is 32 bits.
901         See: https://bugs.debian.org/742780
903         alloca: sync with Autoconf master
904         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
905         Do not define if Autoconf 2.70 or later, since Autoconf master
906         now matches us.
908 2020-07-30  Bruno Haible  <bruno@clisp.org>
910         unicodeio: Add comment.
911         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
912         different iconv behaviours.
914 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
916         Work around some Oracle Studio attribute bugs
917         These were discovered when building bleeding-edge Emacs with
918         Oracle Studio.
919         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
920         Port to Oracle Studio 12.6, which mishandles __attribute__
921         ((__cold__)) and __attribute__ ((__may_alias__)) even though
922         __has_attribute says they work.
924 2020-07-29  Bruno Haible  <bruno@clisp.org>
926         unicodeio: Fix wrong result on musl libc.
927         Reported by A. Wilcox <awilfox@adelielinux.org> in
928         <https://www.openwall.com/lists/musl/2020/07/29/2>.
929         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
930         on musl libc.
931         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
932         * modules/unicodeio (Files): Add m4/musl.m4.
934 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
936         fsusage, regex, stat-size: remove Cray support
937         As near as I can make out this is actually support for UNICOS/mp,
938         last released 2005, and Cray hasn’t supported that for years.
939         * config/srclist.txt: Comment out regex.h for now.
940         * lib/fsusage.c (get_fs_usage):
941         * lib/regex.h (re_comp, re_exec):
942         * lib/stat-size.h (ST_NBLOCKSIZE):
943         Don’t worry about _CRAY.
945 2020-07-29  Bruno Haible  <bruno@clisp.org>
947         parse-datetime: Fix compilation error with bison 3.7.
948         * modules/parse-datetime (Makefile.am): Create a generated header file
949         parse-datetime-gen.h in the source directory. Correct #include and
950         #line statements during preprocessing.
952 2020-07-28  Bruno Haible  <bruno@clisp.org>
954         fopen-gnu: Create files correctly (regression from 2020-05-24).
955         * lib/fopen.c (rpl_open): Pass a third argument to open().
957 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
959         xalloc-die: don’t depend on xalloc
960         This removes a circular dependency, as xalloc depends on xalloc-die.
961         * modules/xalloc-die (Files): Add lib/xalloc.h.
962         (Depends-on): Remove xalloc.
963         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
965         dfa-tests: port to MSVC
966         Problem reported by Gisle Vanem in:
967         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
968         Also, remove an unnecessary dependency on getprogname.
969         * modules/dfa-tests (Depends-on): Remove getprogname.
970         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
971         (exit_status): New static var.
972         (dfawarn): Set it instead of exiting.
973         Do not declare as _Noreturn, to pacify MSVC.
974         (main): Return exit_status.
976 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
978         argz: pacify MSVC
979         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
980         Problem reported by Gisle Vanem.
982         libgmp: remove dependency on havelib
983         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
984         use the more-traditional AC_SEARCH_LIBS approach.
985         This should work better with GNU Emacs configuration,
986         which uses pkg-config instead of a havelib-style approach.
987         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
988         * modules/libgmp (Depends-on): Remove havelib.
990         libgmp: remove HAVE_GMP, LIB_GMP
991         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
992         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
994 2020-07-26  Bruno Haible  <bruno@clisp.org>
996         inttypes: Remove support for AIX 4.
997         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
998         * m4/inttypes-pri.m4: Remove file.
999         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
1000         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
1001         * modules/inttypes-incomplete (Makefile.am): Don't substitute
1002         PRI_MACROS_BROKEN.
1003         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
1005 2020-07-26  Bruno Haible  <bruno@clisp.org>
1007         gettimeofday: Remove workaround for Mac OS X 10.0.
1008         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
1009         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
1010         * lib/gettimeofday.c: Don't include localtime-buffer.h.
1011         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1012         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1013         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
1014         * modules/localtime-buffer: Remove file.
1015         * lib/localtime-buffer.h: Remove file.
1016         * lib/localtime-buffer.c: Remove file.
1017         * m4/localtime-buffer.m4: Remove file.
1018         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
1020 2020-07-26  Bruno Haible  <bruno@clisp.org>
1022         tzset: Remove workaround for Solaris 2.6.
1023         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
1024         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
1025         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
1026         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
1027         * lib/localtime-buffer.c: Likewise.
1028         * lib/localtime.c: Likewise.
1029         * lib/tzset.c: Don't include localtime-buffer.h.
1030         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
1031         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
1032         is 1.
1033         * modules/tzset (Depends-on): Remove localtime-buffer.
1035 2020-07-26  Bruno Haible  <bruno@clisp.org>
1037         expl: Simplify autoconf test.
1038         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
1039         with small values..." test into the "checking whether expl works..."
1040         test.
1042 2020-07-26  Bruno Haible  <bruno@clisp.org>
1044         alloca: Remove Cray-2 and Cray Y-MP support.
1045         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
1046         Enable also on Autoconf >= 2.69.
1047         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
1048         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
1049         i00afunc): Remove.
1051 2020-07-25  Bruno Haible  <bruno@clisp.org>
1053         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
1054         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
1056 2020-07-25  Bruno Haible  <bruno@clisp.org>
1058         sigprocmask: Small autoconf macro improvement.
1059         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
1060         user to override the value of gl_cv_func_sigprocmask.
1061         * m4/gnulib-common.m4 (gl_SILENT): New macro.
1063 2020-07-25  Bruno Haible  <bruno@clisp.org>
1065         Small autoconf macro improvements.
1066         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
1067         override the value of gl_cv_func_working_mktime.
1068         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
1069         compiler produces multi-arch binaries..." in the configure output.
1070         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
1071         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
1073 2020-07-25  Bruno Haible  <bruno@clisp.org>
1075         doc: Update for NetBSD 7.1, 8.0, 9.0.
1076         * doc/*/*.texi: Update.
1077         * m4/exp2l.m4: Update comments.
1078         * m4/expl.m4: Likewise.
1079         * m4/ilogb.m4: Likewise.
1080         * m4/ilogbf.m4: Likewise.
1081         * m4/log10l.m4: Likewise.
1082         * m4/logl.m4: Likewise.
1083         * m4/printf.m4: Likewise.
1084         * m4/rintl.m4: Likewise.
1085         * m4/wcwidth.m4: Likewise.
1087 2020-07-24  Bruno Haible  <bruno@clisp.org>
1089         doc: Update for Mac OS X 10.13.
1090         * doc/*/*.texi: Update.
1091         * m4/expm1l.m4: Update comments.
1092         * m4/getgroups.m4: Likewise.
1093         * m4/getlogin_r.m4: Likewise.
1094         * m4/linkat.m4: Likewise.
1095         * m4/printf.m4: Likewise.
1097 2020-07-24  Bruno Haible  <bruno@clisp.org>
1099         doc: Update for Cygwin 2.9.0.
1100         * doc/*/*.texi: Update.
1102 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1104         parse-datetime: modernize doc
1105         * doc/parse-datetime.texi: Use more-current examples.
1106         Don’t lead with 32-bit time_t, as it’s on its way out.
1107         Capitalize “Epoch” to be consistent with POSIX.
1109         timespec: remove dependence on ‘verify’
1110         * lib/timespec.h: Do not include verify.h; no longer needed.
1111         * modules/timespec (Depends-on): Remove ‘verify’.
1113         Optimize a few more three-valued comparisons
1114         * lib/timespec.h (timespec_cmp, timespec_sign):
1115         * lib/utimecmp.c (utimecmpat):
1116         Avoid conditional branches by using _GL_CMP.
1118         Fix _GL_CMP parenthesization typo
1119         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
1121 2020-07-24  Bruno Haible  <bruno@clisp.org>
1123         dfa: Revert breaking gawk.
1124         Reported by Arnold Robbins <arnold@skeeve.com>.
1125         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
1127 2020-07-23  Bruno Haible  <bruno@clisp.org>
1129         Optimize three-valued comparison between integers.
1130         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
1131         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
1132         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
1133         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
1134         * lib/dfa.c (compare): Likewise.
1135         * lib/fts.c (fts_compare_ino): Likewise.
1136         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
1137         * lib/mbscasecmp.c (mbscasecmp): Likewise.
1138         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
1139         * lib/memcasecmp.c (memcasecmp): Likewise.
1140         * lib/memcmp2.c (memcmp2): Likewise.
1141         * lib/savedir.c (direntry_cmp_inode): Likewise.
1142         * lib/strcasecmp.c (strcasecmp): Likewise.
1143         * lib/strncasecmp.c (strncasecmp): Likewise.
1144         * lib/unistr/u-cmp2.h (FUNC): Likewise.
1146 2020-07-23  Bruno Haible  <bruno@clisp.org>
1148         lchmod: Use /proc on Cygwin.
1149         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
1151 2020-07-23  Ken Brown  <kbrown@cornell.edu>
1153         fchmodat: Use /proc on Cygwin
1154         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
1156 2020-07-21  Bruno Haible  <bruno@clisp.org>
1158         aligned-malloc: Optionally use aligned_alloc.
1159         * lib/aligned-malloc.h: Verify the alignment.
1160         (aligned_malloc): Use aligned_alloc as an alternative.
1161         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
1162         * doc/posix-functions/aligned_alloc.texi: Mention the modules
1163         'aligned-malloc' and 'pagealign_alloc'.
1165 2020-07-21  Bruno Haible  <bruno@clisp.org>
1167         aligned-malloc: Add tests.
1168         * tests/test-aligned-malloc.c: New file.
1169         * modules/aligned-malloc-tests: New file.
1171         aligned-malloc: New module.
1172         * lib/aligned-malloc.h: New file.
1173         * m4/malloc-align.m4: New file.
1174         * modules/aligned-malloc: New file.
1175         * doc/posix-functions/posix_memalign.texi: Mention the new module.
1176         * doc/glibc-functions/memalign.texi: Likewise.
1178 2020-07-21  Bruno Haible  <bruno@clisp.org>
1180         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
1181         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
1182         sure PRIPTR_PREFIX is defined to "ll", not "l".
1184 2020-07-21  Bruno Haible  <bruno@clisp.org>
1186         printf-posix: Make an autoconf test more future-proof.
1187         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
1188         using uintptr_t.
1190 2020-07-20  Bruno Haible  <bruno@clisp.org>
1192         list, oset, omap: Relicense some of the container modules under LGPLv2+.
1193         * modules/list (License): Change to LGPLv2+.
1194         * modules/array-list (License): Likewise.
1195         * modules/carray-list (License): Likewise.
1196         * modules/linked-list (License): Likewise.
1197         * modules/avltree-list (License): Likewise.
1198         * modules/rbtree-list (License): Likewise.
1199         * modules/oset (License): Likewise.
1200         * modules/array-oset (License): Likewise.
1201         * modules/avltree-oset (License): Likewise.
1202         * modules/rbtree-oset (License): Likewise.
1203         * modules/omap (License): Likewise.
1204         * modules/array-omap (License): Likewise.
1205         * modules/avltree-omap (License): Likewise.
1206         * modules/rbtree-omap (License): Likewise.
1208 2020-07-20  Bruno Haible  <bruno@clisp.org>
1210         oset: Add an 'update' operation.
1211         * lib/gl_array_oset.c (gl_array_update): New function.
1212         (gl_array_oset_implementation): Use it.
1213         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1214         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1215         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
1216         extracted from gl_tree_nx_add_before.
1217         (gl_tree_nx_add_before): Invoke it.
1218         (gl_tree_add_node_after): New function, extracted from
1219         gl_tree_nx_add_after.
1220         (gl_tree_nx_add_after): Invoke it.
1221         (gl_tree_remove_node_no_free): New function, extracted from
1222         gl_tree_remove_node.
1223         (gl_tree_remove_node): Invoke it.
1224         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
1225         extracted from gl_tree_nx_add_before.
1226         (gl_tree_nx_add_before): Invoke it.
1227         (gl_tree_add_node_after): New function, extracted from
1228         gl_tree_nx_add_after.
1229         (gl_tree_nx_add_after): Invoke it.
1230         (gl_tree_remove_node_no_free): New function, extracted from
1231         gl_tree_remove_node.
1232         (gl_tree_remove_node): Invoke it.
1233         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
1234         from gl_tree_iterator_next.
1235         (gl_tree_iterator_next): Invoke it.
1236         (gl_tree_prev_node, gl_tree_update): New functions.
1237         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1238         (gl_avltree_oset_implementation): Use gl_tree_update.
1239         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1240         (gl_rbtree_oset_implementation): Use gl_tree_update.
1241         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
1242         (gl_oset_update): New function.
1243         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
1244         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
1245         * modules/rbtree-oset (configure.ac): Likewise.
1246         * tests/test-oset-update.h: New file.
1247         * tests/test-array_oset.c: Include test-oset-update.h.
1248         (main): Invoke test_update.
1249         * tests/test-avltree_oset.c: Likewise.
1250         * tests/test-rbtree_oset.c: Likewise.
1251         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
1252         * modules/avltree-oset-tests (Files): Likewise.
1253         * modules/rbtree-oset-tests (Files): Likewise.
1254         * tests/test-oset-c++.cc (action): New function.
1255         (main): Test the 'update' member function.
1257 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1259         md5, sha1, sha256, sha512: pacify Autoconf 2.70
1260         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
1261         shell if, so that the argument to AC_CHECK_HEADERS is
1262         a simple string that does not require shell evaluation.
1263         This fixes a warning generated by Autoconf 2.69b.
1265 2020-07-12  Bruno Haible  <bruno@clisp.org>
1267         libgmp: Avoid warning when --without-libgmp is used.
1268         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
1269         GCC >= 8, not for GCC >= 4.6.
1271 2020-07-12  Bruno Haible  <bruno@clisp.org>
1273         libgmp: Link to the correct shared library.
1274         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
1275         * modules/libgmp (Depends-on): Add havelib.
1276         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
1277         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
1279 2020-07-12  Bruno Haible  <bruno@clisp.org>
1281         libgmp tests: Add some safety checks.
1282         * modules/libgmp-tests (Depends-on): Add verify.
1283         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
1284         (main): Verify that gmp.h and libgmp versions match.
1286 2020-07-10  Bruno Haible  <bruno@clisp.org>
1288         unicodeio: Fix wrong result on NetBSD.
1289         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1290         characters also on NetBSD.
1292 2020-07-09  Bruno Haible  <bruno@clisp.org>
1294         unicodeio: Fix wrong result on Solaris 11.
1295         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
1296         via Akim Demaille <akim.demaille@gmail.com> in
1297         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
1298         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1299         characters on Solaris.
1300         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
1301         UTF-8 output or the specified fallback.
1303 2020-07-08  Bruno Haible  <bruno@clisp.org>
1305         unicodeio: Add tests.
1306         * tests/test-unicodeio.c: New file.
1307         * tests/test-unicodeio1.sh: New file.
1308         * tests/test-unicodeio2.sh: New file.
1309         * tests/test-unicodeio3.sh: New file.
1310         * modules/unicodeio-tests: New file.
1312 2020-07-08  Bruno Haible  <bruno@clisp.org>
1314         unicodeio: Document link requirements.
1315         * modules/unicodeio (Link): New section.
1317 2020-07-07  Bruno Haible  <bruno@clisp.org>
1319         doc: Remove support for some very old platforms.
1320         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
1321         * doc/posix-functions/memcpy.texi: Likewise.
1322         * doc/posix-functions/memmove.texi: Likewise.
1323         * doc/posix-functions/memset.texi: Likewise.
1324         * doc/posix-functions/getcwd.texi: Likewise.
1326         memchr: Remove support for some very old platforms.
1327         * m4/memchr-obsolete.m4: Remove file.
1328         * modules/memchr-obsolete: Remove file.
1329         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
1330         absent. Don't define HAVE_MEMCHR.
1331         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
1332         * modules/memchr (Depends-on): Remove memchr-obsolete.
1333         (configure.ac): Assume HAVE_MEMCHR is 1.
1334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
1335         HAVE_MEMCHR.
1336         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
1337         * doc/posix-functions/memchr.texi: Don't mention module
1338         'memchr-obsolete'.
1339         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1340         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1341         * modules/strnlen (Depends-on): Remove memchr-obsolete.
1343         dup2: Remove support for some very old platforms.
1344         * m4/dup2-obsolete.m4: Remove file.
1345         * modules/dup2-obsolete: Remove file.
1346         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
1347         Don't define HAVE_DUP2.
1348         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
1349         * lib/dup2.c: Likewise.
1350         * modules/dup2 (Depends-on, configure.ac): Likewise.
1351         (Depends-on): Remove dup2-obsolete.
1352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
1353         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
1354         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
1356 2020-07-07  Bruno Haible  <bruno@clisp.org>
1358         canonicalize: Trim module dependencies.
1359         * lib/hash-triple.h: Group declarations.
1360         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
1361         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
1362         (STREQ): Remove macro.
1363         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
1364         * modules/hash-triple-simple: New file, based on modules/hash-triple.
1365         * modules/hash-triple (Files): Remove lib/hash-triple.h.
1366         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
1367         * modules/canonicalize (Depends-on): Remove hash-triple. Add
1368         hash-triple-simple.
1369         * modules/file-set (Depends-on): Likewise.
1371 2020-07-07  Bruno Haible  <bruno@clisp.org>
1373         Clarify dependencies to double-slash-root.
1374         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
1375         (Depends-on): Add double-slash-root.
1376         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
1377         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
1379 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1381         libgmp: new module
1382         The idea is to let programs simply include <gmp.h>, and
1383         so long as they live within the mini-gmp subset they need
1384         not worry about whether the GMP libraries are installed.
1385         * MODULES.html.sh: Mention it.
1386         * config/srclist.txt: Mention files copied from GMP source.
1387         * config/srclistvars.sh (GMP): New var.
1388         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
1389         * modules/libgmp-tests, tests/test-libgmp.c: New files.
1390         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
1392 2020-07-05  Bruno Haible  <bruno@clisp.org>
1394         mkancesdirs: Trim module dependencies.
1395         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
1396         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
1398 2020-07-05  Bruno Haible  <bruno@clisp.org>
1400         getprogname: Trim module dependencies.
1401         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
1402         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
1403         basename-lgpl.
1405 2020-07-05  Bruno Haible  <bruno@clisp.org>
1407         filenamecat-lgpl: Trim module dependencies.
1408         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
1409         dirname.h.
1410         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
1411         basename-lgpl, filename.
1413 2020-07-05  Bruno Haible  <bruno@clisp.org>
1415         backupfile, backup-rename: Trim module dependencies.
1416         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
1417         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
1418         basename-lgpl.
1419         * modules/backup-rename (Depends-on): Likewise.
1421 2020-07-05  Bruno Haible  <bruno@clisp.org>
1423         argp: Trim module dependencies.
1424         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
1425         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
1427 2020-07-05  Bruno Haible  <bruno@clisp.org>
1429         basename-lgpl: New module.
1430         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
1431         lib/basename-lgpl.c.
1432         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
1433         <stdbool.h>, filename.h.
1434         (last_component): Rename a local variable.
1435         * lib/dirname.h: Include basename-lgpl.h.
1436         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
1437         (last_component, base_len): Remove declarations.
1438         * modules/basename-lgpl: New file.
1439         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
1440         (Depends-on): Add basename-lgpl. Remove double-slash-root.
1441         (Makefile.am): Don't compile basename-lgpl.c.
1442         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
1443         not 'dirname'.
1445 2020-07-05  Bruno Haible  <bruno@clisp.org>
1447         dirname, dirname-lgpl: Simplify.
1448         * m4/dirname.m4: Remove file.
1449         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
1450         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
1451         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
1453 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
1455         tests: avoid shadowing warning
1456         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
1458 2020-07-05  Bruno Haible  <bruno@clisp.org>
1460         supersede: Add tests.
1461         * tests/test-supersede.c: New file.
1462         * tests/test-supersede-open.h: New file.
1463         * tests/test-supersede-fopen.h: New file.
1464         * modules/supersede-tests: New file.
1466         supersede: New module.
1467         * lib/supersede.h: New file.
1468         * lib/supersede.c: New file.
1469         * m4/supersede.m4: New file.
1470         * modules/supersede: New file.
1472 2020-07-05  Bruno Haible  <bruno@clisp.org>
1474         Add some copyright headers.
1475         * lib/dev-ino.h: Add copyright header.
1476         * lib/di-set.h: Likewise.
1477         * lib/fchown-stub.c: Likewise.
1478         * lib/file-set.h: Likewise.
1479         * lib/hash-triple.h: Likewise.
1480         * lib/idcache.h: Likewise.
1481         * lib/ino-map.h: Likewise.
1482         * lib/mkancesdirs.h: Likewise.
1483         * lib/scratch_buffer.h: Likewise.
1484         * lib/se-context.in.h: Likewise.
1485         * lib/stdopen.h: Likewise.
1486         * lib/userspec.h: Likewise.
1488 2020-07-04  Bruno Haible  <bruno@clisp.org>
1490         getrandom: Relicense under LGPLv2+.
1491         Paul Eggert's approval is in
1492         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
1493         * modules/getrandom (License): Change to LGPLv2+.
1495 2020-07-04  Bruno Haible  <bruno@clisp.org>
1497         getumask: Add tests.
1498         * tests/test-getumask.c: New file.
1499         * modules/getumask-tests: New file.
1501         getumask: New module.
1502         * lib/sys_stat.in.h (getumask): New declaration.
1503         * lib/getumask.c: New file.
1504         * m4/getumask.m4: New file.
1505         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
1506         declared.
1507         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
1508         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
1509         HAVE_GETUMASK.
1510         * modules/getumask: New file.
1511         * tests/test-sys_stat-c++.cc (getumask): Check signature.
1512         * doc/glibc-functions/getumask.texi: New file.
1513         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
1515 2020-07-04  Bruno Haible  <bruno@clisp.org>
1517         clean-temp: Add support for temporary files with given mode.
1518         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
1519         * lib/clean-temp.c (struct try_create_file_params): New type.
1520         (try_create_file): New function.
1521         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
1522         gen_tempname.
1524 2020-07-04  Bruno Haible  <bruno@clisp.org>
1526         clean-temp: Document limitations.
1527         * lib/clean-temp.h: Document limitations.
1529 2020-07-04  Bruno Haible  <bruno@clisp.org>
1531         clean-temp: Add support for temporary files with unpredictable names.
1532         * lib/clean-temp.h (gen_register_open_temp): New declaration.
1533         * lib/clean-temp.c: Include tempname.h.
1534         (gen_register_open_temp): New function.
1535         * modules/tempname (configure.ac): Define a module indicator.
1537 2020-07-04  Bruno Haible  <bruno@clisp.org>
1539         clean-temp: Add support for temporary files anywhere in the file system.
1540         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
1541         cleanup_temporary_file): New declarations.
1542         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
1543         variables.
1544         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
1545         (dir_cleanup_list): Renamed from cleanup_list.
1546         (cleanup_action): Process the file_cleanup_list as well.
1547         (do_init_clean_temp): New function.
1548         (clean_temp_once): New variable.
1549         (init_clean_temp): New function.
1550         (create_temp_dir): Invoke it.
1551         (register_temporary_file, unregister_temporary_file,
1552         cleanup_temporary_file): New functions.
1553         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
1554         argument.
1556 2020-07-04  Bruno Haible  <bruno@clisp.org>
1558         clean-temp: Improve comments.
1559         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
1560         fwriteerror_temp, close_stream_temp): Clarify intended use.
1561         * lib/clean-temp.c: Likewise.
1563 2020-07-04  Bruno Haible  <bruno@clisp.org>
1565         clean-temp: Make multithread-safe, part 2.
1566         * lib/fatal-signal.h: Include <signal.h>.
1567         (get_fatal_signal_set): New declaration.
1568         * lib/fatal-signal.c (get_fatal_signal_set): New function.
1569         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
1570         (struct closeable_fd): New type.
1571         (fatal_signal_set): New variable.
1572         (init_fatal_signal_set): New function.
1573         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
1574         (cleanup_action): Invoke asyncsafe_close instead of close.
1575         (create_temp_dir): Invoke init_fatal_signal_set.
1576         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
1577         element.
1578         (unregister_fd): Remove function.
1579         (close_temp): Cleanup descriptors list on the fly. Invoke
1580         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
1581         (fclose_variant_temp): New function.
1582         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
1583         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
1585 2020-07-04  Bruno Haible  <bruno@clisp.org>
1587         clean-temp: Make multithread-safe, part 1.
1588         * lib/clean-temp.c: Include glthread/lock.h.
1589         (cleanup_list_lock): New variable.
1590         (register_temp_file, unregister_temp_file, register_temp_subdir,
1591         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
1592         (create_temp_dir): Likewise. Don't free the old array.
1593         (descriptors_lock): New variable.
1594         (register_fd, unregister_fd): Use it.
1595         * modules/clean-temp (Depends-on): Add lock.
1597 2020-07-04  Bruno Haible  <bruno@clisp.org>
1599         fatal-signal: Make multithread-safe.
1600         * lib/fatal-signal.c (init_fatal_signals): Add comment.
1601         (do_init_fatal_signal_set): New function, extracted from
1602         init_fatal_signal_set.
1603         (fatal_signal_set_once): New variable.
1604         (init_fatal_signal_set): Use gl_once.
1606 2020-07-03  Bruno Haible  <bruno@clisp.org>
1608         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
1609         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
1610         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
1611         <bcrypt.h>.
1613 2020-07-03  Bruno Haible  <bruno@clisp.org>
1615         dfa tests: Follow common file naming conventions.
1616         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
1617         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
1618         * tests/test-dfa-invalid-char-class.sh: Renamed from
1619         tests/dfa-invalid-char-class.sh. Update.
1620         * modules/dfa-tests (Files, Makefile.am): Update.
1622 2020-07-03  Bruno Haible  <bruno@clisp.org>
1624         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
1625         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
1626         the GCC extended asm syntax also for the Sun Studio 12 compilers.
1628 2020-07-03  Bruno Haible  <bruno@clisp.org>
1630         asyncsafe-spin: Reduce code duplication.
1631         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
1632         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
1633         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
1635 2020-07-03  Bruno Haible  <bruno@clisp.org>
1637         lchmod: Simplify after 2020-02-22 change.
1638         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
1640 2020-07-03  Bruno Haible  <bruno@clisp.org>
1642         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
1643         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
1645 2020-07-03  Bruno Haible  <bruno@clisp.org>
1647         dfa: Make sure the compiler does not barf on 'inline'.
1648         * modules/dfa (configure.ac): Require AC_C_INLINE.
1650 2020-07-03  Bruno Haible  <bruno@clisp.org>
1652         bitset: Make sure the compiler does not barf on 'inline'.
1653         * modules/bitset (configure.ac): New section.
1655 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
1657         manywarnings: improve port to GCC 10.1
1658         * build-aux/gcc-warning.spec: Also list warnings that are default
1659         or are enabled by already-given flags.  This lets us speed up
1660         checking for attributes, and makes the generated compilation
1661         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
1662         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
1663         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
1664         to shell variables that may have long values.
1665         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
1666         consequences of other flags, to speed up checking and
1667         shorten commands.
1669         tests: pacify gcc -fanalyzer on zerosize_ptr
1670         * tests/test-memcasecmp.c (main):
1671         * tests/test-memchr.c (main):
1672         * tests/test-memchr2.c (main):
1673         * tests/test-memcmp.c (main):
1674         * tests/test-memmem.c (main):
1675         * tests/test-memrchr.c (main):
1676         * tests/unistr/test-chr.h (main):
1677         * tests/unistr/test-cmp.h (test_cmp):
1678         Check whether zerosize_ptr returns NULL before using it.
1679         This pacifies GCC 10.1’s new fanalyzer option, and matches
1680         other uses of zerosize_ptr.
1682 2020-07-01  Bruno Haible  <bruno@clisp.org>
1684         asyncsafe-spin: Add tests.
1685         * tests/test-asyncsafe-spin1.c: New file.
1686         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
1687         tests/test-pthread-spin.c.
1688         * modules/asyncsafe-spin-tests: New file.
1690 2020-07-01  Bruno Haible  <bruno@clisp.org>
1692         asyncsafe-spin: New module.
1693         * lib/asyncsafe-spin.h: New file.
1694         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
1695         * modules/asyncsafe-spin: New file.
1697 2020-07-01  Bruno Haible  <bruno@clisp.org>
1699         windows-spin: Fix race condition on multiprocessor systems.
1700         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
1702 2020-07-01  Bruno Haible  <bruno@clisp.org>
1704         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
1705         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
1706         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
1707         an implementation based on other GCC built-ins.
1709 2020-07-01  Bruno Haible  <bruno@clisp.org>
1711         pthread-spin: Optimize fallback for GCC versions >= 4.7.
1712         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
1713         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
1714         lock byte.
1716 2020-07-01  Bruno Haible  <bruno@clisp.org>
1718         pthread-spin: Add error checking.
1719         * lib/pthread-spin.c: Include <stdbool.h>.
1720         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
1721         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
1722         the unlocks.
1723         * modules/pthread-spin (Depends-on): Add stdbool.
1725 2020-07-01  Bruno Haible  <bruno@clisp.org>
1727         pthread-spin: Add tests.
1728         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
1729         * modules/pthread-spin-tests: New file.
1731 2020-07-01  Bruno Haible  <bruno@clisp.org>
1733         tests: Reduce code duplication.
1734         * tests/atomic-int-posix.h: New file, extracted from
1735         tests/test-pthread-mutex.c.
1736         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
1737         * tests/test-pthread-rwlock.c: Likewise.
1738         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
1739         * modules/pthread-rwlock-tests (Files): Likewise.
1741 2020-07-01  Bruno Haible  <bruno@clisp.org>
1743         tests: Refactor.
1744         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
1745         * tests/test-mtx.c: Include it. Remove the corresponding code.
1746         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
1748 2020-07-01  Bruno Haible  <bruno@clisp.org>
1750         tests: Refactor.
1751         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
1752         * tests/test-lock.c: Include it. Remove the corresponding code.
1753         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
1755 2020-06-29  Bruno Haible  <bruno@clisp.org>
1757         sys_socket: Don't define socklen_t if it is already defined on mingw.
1758         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
1759         <https://savannah.gnu.org/bugs/?57725>,
1760         by Rahul Das <bokul_4u@yahoo.com> in
1761         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
1762         and by Eli Zaretskii <eliz@gnu.org> in
1763         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
1764         * lib/sys_socket.in.h (socklen_t): Remove definition.
1766 2020-06-29  Bruno Haible  <bruno@clisp.org>
1768         alloca-opt: Fix warning on mingw.
1769         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
1770         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
1771         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
1772         whether alloca is defined.
1774 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
1776         getrandom: do not depend on ‘open’ on mingw
1777         Similarly for at-internal, getloadavg.  These modules do not call
1778         the ‘open’ function when they are compiled on mingw.  On mingw,
1779         this avoids having to compile open.c when building Emacs, which
1780         does its own thing with ‘open’.
1781         * modules/at-internal, modules/getloadavg, modules/getrandom:
1782         (Depends-on): Don’t depend on ‘open’ on mingw.
1783         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
1784         * modules/getloadavg (Depends-on):
1785         Depend on intprops, open, stdbool, stdlib only if compiling
1786         getloadavg.c.
1788 2020-06-28  Bruno Haible  <bruno@clisp.org>
1790         doc: Add a note about sigprocmask vs. pthread_sigmask.
1791         * doc/posix-functions/sigprocmask.texi: Add note.
1793 2020-06-28  Bruno Haible  <bruno@clisp.org>
1795         getrandom: Fix compilation errors on older versions of mingw.
1796         Reported by Eli Zaretskii <eliz@gnu.org> in
1797         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
1798         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
1799         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
1800         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
1801         BCryptGenRandom ourselves.
1803 2020-06-28  Bruno Haible  <bruno@clisp.org>
1805         clean-temp: Fix wrong errno in error message.
1806         * lib/clean-temp.c (create_temp_dir): Save errno around
1807         unblock_fatal_signals call.
1809 2020-06-27  Bruno Haible  <bruno@clisp.org>
1811         fatal-signal: Make multithread-safe.
1812         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
1814 2020-06-27  Bruno Haible  <bruno@clisp.org>
1816         clean-temp: Don't force deletion of temporary files on native Windows.
1817         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
1818         argument.
1819         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
1820         * NEWS: Mention the change.
1821         * lib/javacomp.c (write_temp_file): Update.
1823 2020-06-27  Bruno Haible  <bruno@clisp.org>
1825         fatal-signal: Make multithread-safe.
1826         * lib/fatal-signal.c: Include glthread/lock.h.
1827         (at_fatal_signal_lock): New variable.
1828         (at_fatal_signal): Use it.
1829         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
1830         (block_fatal_signals, unblock_fatal_signals): Use them.
1831         * modules/fatal-signal (Depends-on): Add lock.
1833 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
1835         getloadavg: don’t depend on fopen-gnu
1836         This is for Emacs, which does not need fopen-gnu for anything else,
1837         and which would need it only on a NetBSD platform where getloadavg
1838         does not work (does that even happen?).
1839         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
1840         * modules/getloadavg (Depends-on): Remove fopen-gnu.
1842         * tests/test-getloadavg.c (main): Fix typo.
1844 2020-06-27  Bruno Haible  <bruno@clisp.org>
1846         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
1847         * modules/tempname (Link): New section.
1848         * modules/mkdtemp (Link): Likewise.
1849         * modules/clean-temp (Link): Likewise.
1850         * modules/mkstemp (Link): Likewise.
1851         * modules/stdlib-safer (Link): Likewise.
1852         * modules/mkstemps (Link): Likewise.
1853         * modules/mkostemp (Link): Likewise.
1854         * modules/mkostemps (Link): Likewise.
1855         * modules/tmpfile (Link): Likewise.
1856         * modules/tmpfile-safer (Link): Likewise.
1857         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
1858         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
1859         $(LIB_GETRANDOM).
1860         * NEWS: Mention the changes.
1862 2020-06-27  Bruno Haible  <bruno@clisp.org>
1864         fopen-gnu: Simplify code.
1865         * lib/fopen.c: Include <stdbool.h>.
1866         (rpl_fopen): Use a single variable open_flags instead of
1867         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
1868         * modules/fopen (Depends-on): Add stdbool.
1870 2020-06-26  Bruno Haible  <bruno@clisp.org>
1872         canonicalize: Improve documentation.
1873         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
1874         return convention.
1876 2020-06-26  Bruno Haible  <bruno@clisp.org>
1878         xgetcwd: Improve documentation.
1879         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
1881 2020-06-26  Bruno Haible  <bruno@clisp.org>
1883         getcwd: Improve documentation.
1884         * lib/getcwd.c (__getcwd): Document the failure return convention.
1886 2020-06-26  Bruno Haible  <bruno@clisp.org>
1888         fchdir: Improve documentation.
1889         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
1890         convention.
1892 2020-06-26  Bruno Haible  <bruno@clisp.org>
1894         filenamecat-lgpl: Set errno upon failure.
1895         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
1896         return convention.
1897         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
1899 2020-06-26  Bruno Haible  <bruno@clisp.org>
1901         areadlink-with-size: Set errno upon failure.
1902         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
1903         fails.
1904         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
1906 2020-06-26  Bruno Haible  <bruno@clisp.org>
1908         copy-file: Shrink dependencies.
1909         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
1910         qcopy-acl.
1912 2020-06-26  Bruno Haible  <bruno@clisp.org>
1914         doc: Mention declaration fixes implemented by some modules.
1915         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
1916         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
1917         declaration appear in <unistd.h>.
1918         * doc/posix-functions/dup.texi: Likewise.
1919         * doc/posix-functions/dup2.texi: Likewise.
1920         * doc/posix-functions/gethostname.texi: Likewise.
1921         * doc/posix-functions/isatty.texi: Likewise.
1922         * doc/posix-functions/lseek.texi: Likewise.
1923         * doc/posix-functions/unlink.texi: Likewise.
1924         * doc/posix-functions/read.texi: Mention the module 'read'.
1925         * doc/posix-functions/write.texi: Mention the effects of the module
1926         'write'.
1928 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
1930         c-dtoastr, c-ldtoastr: new modules
1931         These modules provide the same functionality as the modules
1932         dtoastr and ldtoastr except for the formatting taking place in the
1933         C locale.
1934         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
1935         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
1936         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
1937         defined.  Use c_snprintf and c_strtod/c_strtold instead of
1938         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
1939         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
1940         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
1941         modules/c-ldtoastr-tests: New files.
1942         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
1943         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
1945 2020-06-21  Bruno Haible  <bruno@clisp.org>
1947         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
1948         * lib/tzset.c: Include <stdlib.h>, <string.h>.
1950 2020-06-16  Bruno Haible  <bruno@clisp.org>
1952         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
1953         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
1955 2020-06-16  Bruno Haible  <bruno@clisp.org>
1957         thread, thrd: Avoid a compiler warning.
1958         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
1960 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
1962         windows-thread: Avoid a compiler warning.
1963         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
1964         void.
1965         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
1967 2020-06-15  Bruno Haible  <bruno@clisp.org>
1969         unictype/joininggroup-name: Fix warning on 64-bit mingw.
1970         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
1971         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
1972         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
1973         first.
1975 2020-06-06  Bruno Haible  <bruno@clisp.org>
1977         calloc-gnu tests: Avoid a test failure with clang.
1978         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
1979         'volatile', to defeat compiler optimizations.
1981 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
1983         getloadavg: fix double-increment bug
1984         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
1985         Linux without glibc, Android, Cygwin.  This fixes a bug I
1986         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
1987         Problem and fix reported by Semen Verchenko in:
1988         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
1990         tempname: use getrandom, not getentropy
1991         This removes a dependency, as getentropy depends on getrandom.
1992         * lib/tempname.c: Include sys/random.h instead of unistd.h.
1993         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
1994         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
1996 2020-06-01  Bruno Haible  <bruno@clisp.org>
1998         doc: New chapter 'Multithreading'.
1999         * doc/multithread.texi: New file.
2000         * doc/gnulib.texi: Include it.
2002 2020-06-01  Bruno Haible  <bruno@clisp.org>
2004         doc: Move 'Running self-tests under valgrind' section.
2005         * doc/gnulib.texi (Build Infrastructure Modules): Include
2006         valgrind-tests.texi here...
2007         (Miscellaneous Notes): ... not here.
2009 2020-06-01  Bruno Haible  <bruno@clisp.org>
2011         doc: Move 'Visual Studio Compatibility' section.
2012         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
2013         here...
2014         (Build Infrastructure Modules): ... not here.
2016 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2018         doc: improve randomness discussion
2019         Inspired by comments from Jeffrey Walton in:
2020         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
2021         * doc/glibc-functions/getentropy.texi (getentropy):
2022         * doc/glibc-functions/getrandom.texi (getrandom):
2023         Improve discussion of problems with "random" data,
2024         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
2026 2020-06-01  Bruno Haible  <bruno@clisp.org>
2028         doc: Fix Texinfo syntax error.
2029         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
2031 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
2033         doc: Change '.' to '@.' where appropriate.
2034         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
2035         * doc/glibc-functions/fstatfs.texi: Likewise.
2036         * doc/glibc-functions/fts_children.texi: Likewise.
2037         * doc/glibc-functions/fts_read.texi: Likewise.
2038         * doc/glibc-functions/getdirentries.texi: Likewise.
2039         * doc/glibc-functions/mkostemp.texi: Likewise.
2040         * doc/glibc-functions/mkostemps.texi: Likewise.
2041         * doc/glibc-functions/mkstemps.texi: Likewise.
2042         * doc/glibc-functions/preadv.texi: Likewise.
2043         * doc/glibc-functions/pwritev.texi: Likewise.
2044         * doc/glibc-functions/sendfile.texi: Likewise.
2045         * doc/glibc-functions/statfs.texi: Likewise.
2046         * doc/gnulib-intro.texi: Likewise.
2047         * doc/gnulib-tool.texi: Likewise.
2048         * doc/intprops.texi: Likewise.
2049         * doc/lib-symbol-visibility.texi: Likewise.
2050         * doc/licenses-texi.texi: Likewise.
2051         * doc/pastposix-functions/bcmp.texi: Likewise.
2052         * doc/pastposix-functions/bcopy.texi: Likewise.
2053         * doc/pastposix-functions/bzero.texi: Likewise.
2054         * doc/pastposix-functions/ecvt.texi: Likewise.
2055         * doc/pastposix-functions/fcvt.texi: Likewise.
2056         * doc/pastposix-functions/ftime.texi: Likewise.
2057         * doc/pastposix-functions/gcvt.texi: Likewise.
2058         * doc/pastposix-functions/getwd.texi: Likewise.
2059         * doc/pastposix-functions/index.texi: Likewise.
2060         * doc/pastposix-functions/mktemp.texi: Likewise.
2061         * doc/pastposix-functions/rindex.texi: Likewise.
2062         * doc/pastposix-functions/wcswcs.texi: Likewise.
2063         * doc/posix-functions/aio_cancel.texi: Likewise.
2064         * doc/posix-functions/aio_error.texi: Likewise.
2065         * doc/posix-functions/aio_fsync.texi: Likewise.
2066         * doc/posix-functions/aio_read.texi: Likewise.
2067         * doc/posix-functions/aio_return.texi: Likewise.
2068         * doc/posix-functions/aio_suspend.texi: Likewise.
2069         * doc/posix-functions/aio_write.texi: Likewise.
2070         * doc/posix-functions/creat.texi: Likewise.
2071         * doc/posix-functions/ctime.texi: Likewise.
2072         * doc/posix-functions/daylight.texi: Likewise.
2073         * doc/posix-functions/fgetpos.texi: Likewise.
2074         * doc/posix-functions/fopen.texi: Likewise.
2075         * doc/posix-functions/freopen.texi: Likewise.
2076         * doc/posix-functions/fseeko.texi: Likewise.
2077         * doc/posix-functions/fsetpos.texi: Likewise.
2078         * doc/posix-functions/fstatat.texi: Likewise.
2079         * doc/posix-functions/fstatvfs.texi: Likewise.
2080         * doc/posix-functions/ftello.texi: Likewise.
2081         * doc/posix-functions/ftruncate.texi: Likewise.
2082         * doc/posix-functions/getrlimit.texi: Likewise.
2083         * doc/posix-functions/lio_listio.texi: Likewise.
2084         * doc/posix-functions/localtime.texi: Likewise.
2085         * doc/posix-functions/lseek.texi: Likewise.
2086         * doc/posix-functions/mkstemp.texi: Likewise.
2087         * doc/posix-functions/mktime.texi: Likewise.
2088         * doc/posix-functions/open.texi: Likewise.
2089         * doc/posix-functions/openat.texi: Likewise.
2090         * doc/posix-functions/opendir.texi: Likewise.
2091         * doc/posix-functions/pread.texi: Likewise.
2092         * doc/posix-functions/pwrite.texi: Likewise.
2093         * doc/posix-functions/readdir.texi: Likewise.
2094         * doc/posix-functions/readdir_r.texi: Likewise.
2095         * doc/posix-functions/scandir.texi: Likewise.
2096         * doc/posix-functions/seekdir.texi: Likewise.
2097         * doc/posix-functions/setrlimit.texi: Likewise.
2098         * doc/posix-functions/statvfs.texi: Likewise.
2099         * doc/posix-functions/strftime.texi: Likewise.
2100         * doc/posix-functions/telldir.texi: Likewise.
2101         * doc/posix-functions/timezone.texi: Likewise.
2102         * doc/posix-functions/tmpfile.texi: Likewise.
2103         * doc/posix-functions/truncate.texi: Likewise.
2104         * doc/posix-functions/tzname.texi: Likewise.
2105         * doc/posix-functions/wcsftime.texi: Likewise.
2106         * doc/windows-sockets.texi: Likewise.
2108 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2110         getrandom-tests: do not assume GRND_RANDOM yields short read
2111         * tests/test-getrandom.c (main): Omit assertion that
2112         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
2113         when b’s size is 100000.  This assertion fails with Linux kernel
2114         5.6.13, as that kernel ignores the GRND_RANDOM flag.
2115         The separate blocking pool is going away in the Linux kernel, and
2116         they’ve added a flag GRND_INSECURE instead; see:
2117         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
2118         The assertion was iffy anyway; what’s to prevent a kernel from
2119         lazily filling a large buffer with random bytes?
2121         read-file-test: pacify --enable-gcc-warnings
2122         * tests/test-read-file.c (test_read_file): Now static.
2124         tempname: merge from glibc and coreutils
2125         Also, merge in Gnulib’s more-recent methods of making it easier
2126         to share between Gnulib and glibc, and fix a few randomness
2127         glitches.
2128         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
2129         (__set_errno): Remove; libc-config.h does that for us.
2130         Do not include <sys/time.h>.
2131         (__secure_getenv) [_LIBC]: New macro.
2132         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
2133         (RANDOM_BITS): Rewrite.
2134         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
2135         (random_value): New typedef.
2136         (try_file, try_dir, try_nocreate): Move up.
2137         (gen_tempname_len, try_tempname_len): New functions.
2138         (gen_tempname_len): Use a constant array rather than a switch.
2139         (try_tempname_len): Don’t assume string length fits in int.
2140         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
2141         has enough entropy (it’s a bit short).
2142         (__gen_tempname): Rewrite in terms of gen_tempname_len.
2143         (__try_tempname): Rewrite in terms of try_tempname_len.
2144         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
2145         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
2146         Add getentropy, libc-config.
2148 2020-05-31  Bruno Haible  <bruno@clisp.org>
2150         getrandom, getentropy: Mention the crypto/gc-random module.
2151         Suggested by Simon Josefsson in
2152         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
2153         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
2154         crypto/gc-random module.
2155         * doc/glibc-functions/getentropy.texi: Likewise.
2157 2020-05-31  Bruno Haible  <bruno@clisp.org>
2159         getentropy: Enhance tests.
2160         * tests/test-getentropy.c (main): Add one more test.
2161         * tests/test-unistd-c++.cc: Check the signature of getentropy.
2163 2020-05-31  Bruno Haible  <bruno@clisp.org>
2165         getentropy: Work around a macOS and Solaris problem.
2166         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
2167         'getentropy' module.
2168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2169         UNISTD_H_HAVE_SYS_RANDOM_H.
2170         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
2171         UNISTD_H_HAVE_SYS_RANDOM_H.
2172         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
2173         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
2174         problem. List more platforms.
2176 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2178         fnmatch: merge from glibc
2179         Also, merge in Gnulib’s more-recent methods of making it easier
2180         to share between Gnulib and glibc.
2181         * lib/fnmatch.c: Reorder includes to match glibc better.
2182         Include libc-config.h instead of config.h.
2183         Include alloca.h only if _LIBC || HAVE_ALLOCA.
2184         Do not include "../locale/elem-hash.h" if _LIBC.
2185         Define macros for btowc, etc. if _LIBC.  All uses simplified.
2186         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
2187         Include intprops.h, since glibc has it now.
2188         (SIZE_MAX): Remove; use (size_t) -1 instead.
2189         Omit the "Comment out all this code" ifdef, since Gnulib
2190         has never really needed it.
2191         (STREQ): Remove; no longer used.
2192         (__libc_use_alloca, alloca, alloca_account): Define as
2193         needed if !_LIBC.
2194         (ISWCTYPE): Remove; all uses replaced by iswctype.
2195         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
2196         (internal_function): Remove.  All uses removed.
2197         (STRUCT): New macro.
2198         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
2199         (WMEMCMP): New macro.
2200         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
2201         and <locale/weightwc.h>.
2202         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
2203         __builtin_expect.  Check for integer overflow more
2204         systematically.  Account for alloca storage better when
2205         recursive.  Use strnlen instead of strlen for efficiency.
2206         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
2207         (struct STRUCT): New type.
2208         (FCT, EXT): New ENDS and ALLOCA_USED args.
2209         All callers changed.
2210         (FCT): Prefer __glibc_unlikely to __builtin_expect.
2211         Simplify by assuming WIDE_CHAR_SUPPORT.
2212         Copy _LIBC code from glibc without worrying Gnulib compatibility.
2213         Cast cold to UCHAR to avoid signedness warning.
2214         (END): Check for invalid pattern.
2215         (EXT): Improve alloca/malloc checking (taken from glibc),
2216         and improve it some more by using intprops.h and checking
2217         for integer overflow and using bool for booleans.
2218         * lib/libc-config.h (compat_symbol): New macro.
2219         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
2220         acceptable to non-GCC when a trailing semicolon is added.
2221         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
2222         libc-config, strnlen.  Remove alloca.
2224 2020-05-31  Bruno Haible  <bruno@clisp.org>
2226         getrandom: Doc and test tweaks.
2227         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
2228         it sets errno when failing.
2229         * tests/test-getrandom.c (main): Disable the high-quality check on those
2230         platforms on which it fails.
2231         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
2232         Cygwin to the list of platforms that don't have the function. Add a note
2233         about the quality of the result.
2234         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
2235         declaration; this is fixed by module 'getrandom'.
2237 2020-05-31  Bruno Haible  <bruno@clisp.org>
2239         getrandom: Add support for native Windows.
2240         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
2241         <wincrypt.h>.
2242         (CRYPT_VERIFY_CONTEXT): New macro.
2243         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
2244         'A'.
2245         (GetProcAddress): New macro.
2246         (BCryptGenRandomFuncType): New type.
2247         (BCryptGenRandomFunc, initialized): New variables.
2248         (initialize): New function.
2249         (getrandom): On native Windows, use <bcrypt.h> API when available, and
2250         <wincrypt.h> API as fallback.
2251         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
2252         * modules/getrandom (Link): New section.
2253         * modules/getentropy (Link): Likewise.
2254         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
2255         $(LIB_GETRANDOM).
2256         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
2257         $(LIB_GETRANDOM).
2258         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
2259         against $(LIB_GETRANDOM).
2260         * doc/glibc-functions/getrandom.texi: Mention the native Windows
2261         support.
2263 2020-05-31  Bruno Haible  <bruno@clisp.org>
2265         getrandom: Simplify the determination of the random number devices.
2266         Suggested by Paul Eggert in
2267         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
2268         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
2269         macros.
2270         * modules/getrandom (Depends-on): Remove crypto/gc-random.
2272 2020-05-31  Bruno Haible  <bruno@clisp.org>
2274         crypto/gc-random: Fix list of crypto devices for Solaris.
2275         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
2277 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
2279         list: fix GCC warnings
2280         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
2281         (gl_tree_next_node, gl_tree_node_nx_set_value)
2282         (gl_tree_previous_node, gl_tree_next_node):
2283         Mark unused arguments.
2284         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
2285         * lib/gl_anylinked_list2.h (gl_linked_node_value)
2286         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
2288         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
2289         the same variable name in nested scopes.
2291 2020-05-31  Bruno Haible  <bruno@clisp.org>
2293         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
2294         Reported by Akim Demaille in
2295         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
2296         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
2297         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
2298         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
2299         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
2300         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
2302 2020-05-30  Bruno Haible  <bruno@clisp.org>
2304         wmemchr: Relicense under LGPLv2+.
2305         * modules/wmemchr (License): Set to LGPLv2+.
2307 2020-05-30  Bruno Haible  <bruno@clisp.org>
2309         wmempcpy: New module.
2310         Reported by Paul Eggert in
2311         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
2312         * lib/wchar.in.h (wmempcpy): New declaration.
2313         * lib/wmempcpy.c: New file.
2314         * m4/wmempcpy.m4: New file.
2315         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
2316         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
2317         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
2318         HAVE_WMEMPCPY.
2319         * modules/wmempcpy: New file.
2320         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
2321         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
2322         * modules/mempcpy (Description): Fix typo.
2324 2020-05-30  Bruno Haible  <bruno@clisp.org>
2326         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
2327         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
2329 2020-05-30  Bruno Haible  <bruno@clisp.org>
2331         sys_random: Work around macOS bug.
2332         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
2333         <stdlib.h> before <sys/random.h>.
2334         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
2335         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
2336         first.
2337         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
2339 2020-05-30  Bruno Haible  <bruno@clisp.org>
2341         getrandom: Override incompatible system function on Solaris 11.
2342         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
2343         * lib/getrandom.c (getrandom): When the system has getrandom, just
2344         invoke it.
2345         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
2346         system's getrandom function's prototype is not the expected one.
2347         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
2348         REPLACE_GETRANDOM.
2349         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
2350         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
2351         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
2352         EAGAIN.
2353         * doc/glibc-functions/getrandom.texi: Mention the new module and the
2354         Solaris problem.
2356 2020-05-30  Bruno Haible  <bruno@clisp.org>
2358         sys_random: Add C++ tests.
2359         * tests/test-sys_random-c++.cc: New file.
2360         * modules/sys_random-c++-tests: New file.
2361         * modules/sys_random-tests (Depends-on): Depend on it.
2363         sys_random: Add tests.
2364         * tests/test-sys_random.c: New file.
2365         * modules/sys_random-tests: New file.
2367         sys_random: New module.
2368         * lib/sys_random.in.h: Use the common idioms for overridable header
2369         files.
2370         * m4/sys_random_h.m4: New file.
2371         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
2372         * modules/sys_random: New file.
2373         * modules/getrandom (Files): Remove lib/sys_random.in.h.
2374         (Depends-on): Add sys_random.
2375         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
2376         gl_UNISTD_MODULE_INDICATOR.
2377         (Makefile.am): Don't generate sys/random.h here.
2378         * doc/glibc-headers/sys_random.texi: New file.
2379         * doc/gnulib.texi: Include it.
2381 2020-05-30  Bruno Haible  <bruno@clisp.org>
2383         unistd: Remove conflicting declaration of getrandom().
2384         * lib/unistd.in.h (getrandom): Remove declaration.
2385         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
2386         declared.
2387         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
2388         HAVE_GETRANDOM.
2389         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
2390         HAVE_GETRANDOM.
2392 2020-05-30  Bruno Haible  <bruno@clisp.org>
2394         getrandom: Add tests.
2395         * tests/test-getrandom.c: New file.
2396         * modules/getrandom-tests: New file.
2398 2020-05-30  Bruno Haible  <bruno@clisp.org>
2400         crypto/gc-random: Fix link error on MSVC.
2401         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
2402         * modules/crypto/gc-random (Link): New section.
2403         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
2404         $(LIB_GC_RANDOM).
2406 2020-05-30  Bruno Haible  <bruno@clisp.org>
2408         Don't assume that UNICODE is not defined.
2409         Many Windows API functions are defined differently (redirecting to a
2410         function with suffix 'W') if the application defines the macro UNICODE
2411         than by default (redirecting to a function with suffix 'A').
2412         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
2413         variant with suffix 'A'.
2414         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
2415         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
2416         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
2417         * lib/getlogin.c (GetUserName): Likewise.
2418         * lib/getlogin_r.c (GetUserName): Likewise.
2419         * lib/gettimeofday.c (LoadLibrary): Likewise.
2420         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
2421         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
2422         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
2423         * lib/mountlist.c (GetDriveType): Likewise.
2424         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
2425         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
2426         Likewise.
2427         * lib/physmem.c (GetModuleHandle): Likewise.
2428         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2429         PeekMessage, DispatchMessage): Likewise.
2430         * lib/progreloc.c (GetModuleFileName): Likewise.
2431         * lib/putenv.c (SetEnvironmentVariable): Likewise.
2432         * lib/read.c (GetNamedPipeHandleState): Likewise.
2433         * lib/readdir.c (FindNextFile): Likewise.
2434         * lib/relocatable.c (GetModuleFileName): Likewise.
2435         * lib/rename.c (MoveFileEx): Likewise.
2436         * lib/rewinddir.c (FindFirstFile): Likewise.
2437         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2438         PeekMessage, DispatchMessage): Likewise.
2439         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
2440         * lib/socket.c (WSASocket): Likewise.
2441         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
2442         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
2443         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
2444         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
2445         * lib/tmpdir.c (GetTempPath): Likewise.
2446         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
2447         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
2448         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
2449         * lib/windows-cond.c (CreateEvent): Likewise.
2450         * lib/windows-rwlock.c (CreateEvent): Likewise.
2451         * lib/windows-timedmutex.c (CreateEvent): Likewise.
2452         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
2453         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
2454         * lib/write.c (GetNamedPipeHandleState): Likewise.
2456 2020-05-30  Bruno Haible  <bruno@clisp.org>
2458         physmem: Fix compilation errors on MSVC.
2459         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
2460         * modules/physmem (Depends-on): Add unistd.
2462 2020-05-29  Bruno Haible  <bruno@clisp.org>
2464         gnulib-tool: Fix link errors with a particular set of modules on mingw.
2465         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
2466         LDADD a second time, after the second occurrence of libtests.a.
2467         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
2469 2020-05-29  Bruno Haible  <bruno@clisp.org>
2471         fnmatch: Rely on more gnulib modules.
2472         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
2473         wmempcpy, mempcpy.
2474         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
2475         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
2476         HAVE_MEMPCPY are all 1.
2477         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
2478         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
2480 2020-05-29  Bruno Haible  <bruno@clisp.org>
2482         Avoid dynamic lookup of Windows API functions when possible.
2483         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
2484         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
2485         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
2486         (use_win32_p): Define differently.
2487         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
2488         CreateHardLinkFunc, initialized, initialize): Don't define in a build
2489         for Windows XP or higher.
2491 2020-05-29  Daiki Ueno  <ueno@gnu.org>
2493         read-file: disable buffering if RF_SENSITIVE is set
2494         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
2495         Suggested by Glenn Strauss.
2496         (fread_file): Suggest calling setvbuf before calling this
2497         function.  Suggested by Bruno Haible.
2499 2020-05-29  Bruno Haible  <bruno@clisp.org>
2501         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
2502         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
2503         program.
2504         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
2505         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
2506         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
2507         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
2509 2020-05-29  Bruno Haible  <bruno@clisp.org>
2511         Fix compilation error on native Windows (regression from 2020-05-28).
2512         Reported by Daiki Ueno.
2513         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
2514         macro when not using dynamic loading.
2515         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
2516         QueryFullProcessImageNameFunc): Likewise.
2517         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
2518         GetFinalPathNameByHandleFunc): Likewise.
2520 2020-05-29  Daiki Ueno  <ueno@gnu.org>
2522         fopen-gnu-tests: fix "\x" escape usage
2523         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
2525 2020-05-28  Bruno Haible  <bruno@clisp.org>
2527         Avoid dynamic loading of Windows API functions when possible.
2528         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
2529         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
2530         * lib/gettimeofday.c (GetProcAddress,
2531         GetSystemTimePreciseAsFileTimeFuncType,
2532         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
2533         define in a build for Windows 8 or higher.
2534         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
2535         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
2536         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
2537         in a build for Windows Vista or higher.
2538         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
2539         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
2540         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
2542 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
2544         explicit_bzero-tests: improve -Wmissing-declarations pacification
2545         * tests/test-explicit_bzero.c: Now noinline.
2546         Suggested by Bruno Haible in:
2547         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
2549 2020-05-28  Bruno Haible  <bruno@clisp.org>
2551         Fix build errors due to read-file changes (regression from 2020-05-27).
2552         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
2553         invocation.
2554         * tests/test-sameacls.c (main): Likewise.
2555         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
2556         read_binary_file.
2557         * tests/test-pipe-filter-ii1.c (main): Likewise.
2559 2020-05-28  Bruno Haible  <bruno@clisp.org>
2561         fts: Make more robust in multithreaded applications.
2562         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
2563         * modules/fts (Depends-on): Add 'open'.
2565 2020-05-28  Bruno Haible  <bruno@clisp.org>
2567         relocatable-prog: Make more robust in multithreaded applications.
2568         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
2569         relocatable-prog-wrapper.
2570         (find_executable): Pass an O_CLOEXEC flag to open().
2571         * modules/relocatable-prog (Depends-on): Add 'open'.
2573 2020-05-28  Bruno Haible  <bruno@clisp.org>
2575         getloadavg: Make more robust in multithreaded applications.
2576         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
2577         Simplify use of O_CLOEXEC.
2578         * modules/getloadavg (Depends-on): Add 'open'.
2580 2020-05-28  Bruno Haible  <bruno@clisp.org>
2582         vma-iter: Make more robust in multithreaded applications.
2583         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
2584         open().
2585         * modules/vma-iter (Depends-on): Add 'open'.
2587 2020-05-28  Bruno Haible  <bruno@clisp.org>
2589         truncate: Make more robust in multithreaded applications.
2590         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
2592 2020-05-28  Bruno Haible  <bruno@clisp.org>
2594         pagealign_alloc: Make more robust in multithreaded applications.
2595         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
2596         open().
2597         * modules/pagealign_alloc (Depends-on): Add 'open'.
2599 2020-05-28  Bruno Haible  <bruno@clisp.org>
2601         openat: Make more robust in multithreaded applications.
2602         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
2604 2020-05-28  Bruno Haible  <bruno@clisp.org>
2606         at-internal: Make more robust in multithreaded applications.
2607         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
2608         open().
2610 2020-05-28  Bruno Haible  <bruno@clisp.org>
2612         mountlist: Make more robust in multithreaded applications.
2613         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
2614         open().
2615         * modules/mountlist (Depends-on): Add 'open'.
2617 2020-05-28  Bruno Haible  <bruno@clisp.org>
2619         login_tty: Make more robust in multithreaded applications.
2620         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
2621         * modules/login_tty (Depends-on): Add 'open'.
2623 2020-05-28  Bruno Haible  <bruno@clisp.org>
2625         javacomp: Make more robust in multithreaded applications.
2626         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
2627         open().
2628         * modules/javacomp (Depends-on): Add 'open'.
2630 2020-05-28  Bruno Haible  <bruno@clisp.org>
2632         getprogname: Make more robust in multithreaded applications.
2633         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
2634         * modules/getprogname (Depends-on): Add 'open'.
2636 2020-05-28  Bruno Haible  <bruno@clisp.org>
2638         get_progname_of: Make more robust in multithreaded applications.
2639         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
2640         open().
2641         * modules/get_progname_of (Depends-on): Add 'open'.
2643 2020-05-28  Bruno Haible  <bruno@clisp.org>
2645         get_ppid_of: Make more robust in multithreaded applications.
2646         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
2647         * modules/get_ppid_of (Depends-on): Add 'open'.
2649 2020-05-28  Bruno Haible  <bruno@clisp.org>
2651         get-rusage-as: Make more robust in multithreaded applications.
2652         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
2653         flag to open().
2654         * modules/get-rusage-as (Depends-on): Add 'open'.
2656 2020-05-28  Bruno Haible  <bruno@clisp.org>
2658         crypto/gc: Make more robust in multithreaded applications.
2659         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
2660         * modules/crypto/gc (Depends-on): Add 'open'.
2662 2020-05-28  Bruno Haible  <bruno@clisp.org>
2664         copy-file: Make more robust in multithreaded applications.
2665         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
2666         open().
2668 2020-05-28  Bruno Haible  <bruno@clisp.org>
2670         chown: Make more robust in multithreaded applications.
2671         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
2673 2020-05-28  Bruno Haible  <bruno@clisp.org>
2675         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
2676         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
2678 2020-05-28  Daiki Ueno  <ueno@gnu.org>
2680         fopen-gnu: make 'b' flag can be used with 'e' on Windows
2681         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
2682         specified on Windows.
2683         * tests/test-fopen-gnu.c (DATA): New define.
2684         (main): Add test for reading binary files with an 'e' flag.
2686 2020-05-27  Bruno Haible  <bruno@clisp.org>
2688         Don't assume that UNICODE is not defined.
2689         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
2690         differently if the application defines the macro UNICODE.
2691         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
2692         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
2693         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
2694         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
2695         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
2697 2020-05-27  Bruno Haible  <bruno@clisp.org>
2699         Improve pattern for defining _WIN32_WINNT.
2700         Newer versions of the Windows API may not only add, but also remove API
2701         functions. Therefore, when the user is e.g. building for Windows 10, we
2702         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
2703         use of APIs that were present in Windows 8 but removed in Windows 10.
2704         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
2705         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
2706         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
2707         * lib/sethostname.c (_WIN32_WINNT): Likewise.
2708         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
2710 2020-05-27  Bruno Haible  <bruno@clisp.org>
2712         javacomp: Make more robust in multithreaded applications.
2713         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
2714         * modules/javacomp (Depends-on): Add fopen-gnu.
2716 2020-05-27  Bruno Haible  <bruno@clisp.org>
2718         mountlist: Make more robust in multithreaded applications.
2719         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
2720         to fopen.
2721         * modules/mountlist (Depends-on): Add fopen-gnu.
2723 2020-05-27  Bruno Haible  <bruno@clisp.org>
2725         sethostname: Make more robust in multithreaded applications.
2726         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
2727         * modules/sethostname (Depends-on): Add fopen-gnu.
2729 2020-05-27  Bruno Haible  <bruno@clisp.org>
2731         readutmp: Make more robust in multithreaded applications.
2732         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
2733         * modules/readutmp (Depends-on): Add fopen-gnu.
2735 2020-05-27  Bruno Haible  <bruno@clisp.org>
2737         getpass: Make more robust in multithreaded applications.
2738         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
2739         * modules/getpass (Depends-on): Add fopen-gnu.
2741 2020-05-27  Bruno Haible  <bruno@clisp.org>
2743         getloadavg: Make more robust in multithreaded applications.
2744         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
2745         * modules/getloadavg (Depends-on): Add fopen-gnu.
2747 2020-05-27  Bruno Haible  <bruno@clisp.org>
2749         exclude: Make more robust in multithreaded applications.
2750         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
2751         * modules/exclude (Depends-on): Add fopen-gnu.
2753 2020-05-27  Bruno Haible  <bruno@clisp.org>
2755         bitset: Make more robust in multithreaded applications.
2756         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
2757         'e' flag to fopen.
2758         * modules/bitset (Depends-on): Add fopen-gnu.
2760 2020-05-27  Daiki Ueno  <ueno@gnu.org>
2762         read-file: add RF_SENSITIVE flag
2763         * lib/read-file.h (RF_SENSITIVE): New define.
2764         * lib/read-file.c (fread_file, read_file): Take into account of
2765         RF_SENSITIVE flag.
2766         * modules/read-file (Depends-on): Add explicit_bzero.
2767         This adds an alternative behavior of those functions to explicitly
2768         clear the internal memory block when it becomes unused.  This is
2769         useful for reading sensitive information from a file.
2771 2020-05-27  Daiki Ueno  <ueno@gnu.org>
2773         read-file: add flags to modify reading behavior
2774         * lib/read-file.h (RF_BINARY): New define.
2775         (fread_file, read_file): Take FLAGS argument.
2776         (read_binary_file): Remove.
2777         * lib/read-file.c (internal_read_file): Merge into ...
2778         (read_file): ... here.
2779         * modules/read-file-tests (Files): Add "tests/macros.h".
2780         * tests/test-read-file.c (main): Refactor using ASSERT macro.
2781         * NEWS: Mention this change.
2783 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
2785         doc/gnulib-intro.texi: add missing "to" in sentence
2786         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
2787         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
2788         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
2790 2020-05-26  Bruno Haible  <bruno@clisp.org>
2792         count-one-bits: Fix MSVC specific code.
2793         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2794         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
2795         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
2796         using GCC.
2797         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
2798         (__popcnt64): In 32-bit mode, define as an inline function.
2799         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
2801 2020-05-26  Bruno Haible  <bruno@clisp.org>
2803         argz: Avoid name clashes through argz.h.
2804         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2805         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
2806         * lib/argz.h: Don't use __ prefixed identifiers.
2807         (const): Remove definition.
2808         (argz_next): Remove inline definitions.
2810 2020-05-26  Daiki Ueno  <ueno@gnu.org>
2812         read-file: make use of fopen-gnu
2813         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
2814         (read_binary_file): Likewise.
2815         * modules/read-file (Depends-on): Add fopen-gnu.
2817 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
2819         getentropy, getrandom: new modules
2820         * MODULES.html.sh (func_all_modules):
2821         * lib/unistd.in.h (getentropy, getrandom):
2822         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
2823         * modules/unistd (unistd.h):
2824         Add support for getentropy, getrandom.
2825         * doc/glibc-functions/getentropy.texi (getentropy):
2826         * doc/glibc-functions/getrandom.texi (getrandom):
2827         These are now fixed on some platforms.
2828         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
2829         * m4/getentropy.m4, m4/getrandom.m4:
2830         * modules/getentropy, modules/getentropy-tests:
2831         * modules/getrandom, modules/getrandom-tests:
2832         * tests/test-getentropy.c, tests/test-getrandom.c:
2833         New files.
2835 2020-05-25  Bruno Haible  <bruno@clisp.org>
2837         Add missing C99 dependencies.
2838         Reported by Paul Smith <psmith@gnu.org> in
2839         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
2840         * modules/assert (Depends-on): Add c99.
2841         * modules/filenamecat-lgpl (Depends-on): Likewise.
2842         * modules/libc-config (Depends-on): Likewise.
2843         * modules/mktime (Depends-on): Likewise.
2844         * modules/random_r (Depends-on): Likewise.
2845         * modules/regex (Depends-on): Likewise.
2846         * modules/scratch_buffer (Depends-on): Likewise.
2847         * modules/timespec-add (Depends-on): Likewise.
2848         * modules/timespec-sub (Depends-on): Likewise.
2849         * modules/verify (Depends-on): Likewise.
2851 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2853         explicit_bzero-tests: pacify -Wmissing-declarations
2854         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
2855         Now static.
2857 2020-05-24  Bruno Haible  <bruno@clisp.org>
2859         fopen-gnu: Add tests.
2860         * tests/test-fopen-gnu.c: New file.
2861         * modules/fopen-gnu-tests: New file.
2863         fopen-gnu: New module.
2864         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
2865         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
2866         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
2867         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
2868         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
2869         * modules/fopen-gnu: New file.
2870         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
2872 2020-05-24  Bruno Haible  <bruno@clisp.org>
2874         open, openat: Really support O_CLOEXEC.
2875         * lib/open.c (open): When have_cloexec is still undecided, do pass a
2876         O_CLOEXEC flag to orig_open.
2877         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
2878         pass a O_CLOEXEC flag to orig_openat.
2879         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
2880         * modules/open-tests (Depends-on): Add fcntl.
2881         * modules/openat-tests (Depends-on): Likewise.
2882         * modules/fcntl-safer-tests (Depends-on): Likewise.
2884 2020-05-24  Bruno Haible  <bruno@clisp.org>
2886         fopen: Fix the trailing slash workaround.
2887         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
2888         write access. Pass the right flags to open().
2889         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
2891 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2893         assure: new macro ‘affirm’
2894         * lib/assure.h: Include verify.h.
2895         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
2896         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
2897         and commentary by Bruno Haible in:
2898         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
2899         * modules/assure (Depends-on:): Add verify.
2901 2020-05-23  Bruno Haible  <bruno@clisp.org>
2903         calloc-gnu: Make test work in non-flat address spaces.
2904         Uses code by Paul Eggert.
2905         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
2906         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
2908 2020-05-23  Bruno Haible  <bruno@clisp.org>
2910         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
2911         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
2912         AC_RUN_IFELSE invocations.
2914 2020-05-23  Bruno Haible  <bruno@clisp.org>
2916         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
2917         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
2918         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
2919         don't have it.
2920         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
2921         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
2922         don't have it.
2923         * lib/isnanf-nolibm.h (__has_builtin): New macro.
2924         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
2925         it.
2926         * lib/isnanl-nolibm.h (__has_builtin): New macro.
2927         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
2928         it.
2929         * lib/math.in.h (__has_builtin): New macro.
2930         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
2931         it.
2932         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
2933         it.
2934         (isnan): Don't use the builtins on clang versions that don't have
2935         __builtin_isnanf and __builtin_isnanl.
2937 2020-05-23  Bruno Haible  <bruno@clisp.org>
2939         calloc-gnu: Avoid wrong configure results with clang.
2940         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
2941         'volatile', to defeat compiler optimizations.
2943 2020-05-23  Bruno Haible  <bruno@clisp.org>
2945         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
2946         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
2947         'long double' values by reference, with values taken from a statically
2948         allocated array.
2950 2020-05-23  Bruno Haible  <bruno@clisp.org>
2952         findprog-in: Ignore directories.
2953         Reported by Frederick Eaton via Dmitry Goncharov in
2954         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
2955         * lib/findprog-in.c (find_in_given_path): When the file found is a
2956         directory, set errno to EACCES and, during a PATH search, continue
2957         searching.
2958         * modules/findprog-in (Depends-on): Add sys_stat, stat.
2960 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2962         verify: document ‘assume’ better
2963         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
2965 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
2967         gendocs: Clarify licenses for templates.
2968         * doc/gendocs_template: Add a GNU All-Permissive license notice
2969         and bump Parent-Version.
2970         * doc/gendocs_template_min: Add a GNU All-Permissive license
2971         notice and copy the explanatory comment about the license notice
2972         at the bottom from gendocs_template.
2974 2020-05-21  Bruno Haible  <bruno@clisp.org>
2976         group-member: Relicense under LGPLv2+.
2977         Jim Meyering's approval is in
2978         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
2979         Paul Eggert's approval is in
2980         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
2981         Eric Blake's approval is in
2982         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
2983         * modules/group-member (License): Change to LGPLv2+.
2985 2020-05-21  Bruno Haible  <bruno@clisp.org>
2987         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
2988         Reported by Tim Rühsen in
2989         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2990         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
2992 2020-05-21  Bruno Haible  <bruno@clisp.org>
2994         regex: Avoid wrong configure results with "clang -fsanitize=leak".
2995         Reported by Tim Rühsen in
2996         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2997         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
2998         before returning with status 0.
3000 2020-05-21  Bruno Haible  <bruno@clisp.org>
3002         glob: Avoid wrong configure results with "clang -fsanitize=leak".
3003         Reported by Tim Rühsen in
3004         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3005         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
3007 2020-05-21  Bruno Haible  <bruno@clisp.org>
3009         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
3010         Reported by Tim Rühsen in
3011         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3012         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
3013         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
3014         respectively.
3016 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
3018         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
3019         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
3021 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3023         ftoastr: fix ifndef typo
3024         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
3026 2020-05-19  Bruno Haible  <bruno@clisp.org>
3028         havelib: Tweak documentation.
3029         * doc/havelib.texi (Searching for Libraries): Fix typo.
3031 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3033         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
3034         This was needed earlier because modules had to import the main script,
3035         but that is no longer true.  Rename the script so that it is
3036         consistent with all other scripts in gnulib and uses hyphens.
3037         * build-aux/vcs_to_changelog.py: Rename to...
3038         * build-aux/vcs-to-changelog.py: ... this.
3039         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
3040         * modules/vcs-to-changelog: Likewise.
3042 2020-05-17  Bruno Haible  <bruno@clisp.org>
3044         Clarify intended usage of the license file modules.
3045         Reported by Asher Gordon <AsDaGo@posteo.net> in
3046         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
3047         * doc/licenses-texi.texi (License Texinfo sources): Mention the
3048         GNU AGPL. Explain the intended usage of the modules.
3049         * modules/fdl (Notice): Discourage use as a module.
3050         * modules/fdl-1.3 (Notice): Likewise.
3052 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
3054         hash: add hash_xinsert
3055         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
3057 2020-05-16  Bruno Haible  <bruno@clisp.org>
3059         findprog-lgpl: Fix link error (existing since 2008-09-02).
3060         * modules/findprog-lgpl (Makefile.am): Arrange to compile
3061         findprog-lgpl.c, not findprog.c.
3062         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
3063         XNMALLOC.
3065 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
3067         c-stack: pacify -Wunused-result when DEBUG
3068         Problem reported by Marc Nieper-Wißkirchen in:
3069         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
3070         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
3071         Explicitly ignore write failures.
3073 2020-05-13  Jim Meyering  <meyering@fb.com>
3075         announce-gen: improve a comment
3076         * build-aux/announce-gen: Improve comment.
3078 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
3080         xalloc: pacify -Wanalyzer-possible-null-argument
3081         Problem reported for GCC 10.1.0 by Bruno Haible in:
3082         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
3083         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
3084         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
3085         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
3087 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3089         careadlinkat: fix GCC 10 workaround
3090         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
3091         Massage the code so that it’s closer to what it was before
3092         the GCC 10.1.0 workaround was introduced.  This fixes
3093         a loop when !buffer and the bug workaround is in effect.
3094         Remove unnecessary casts.  Defend in a different way
3095         against (buffer && !buffer_size), by adding at least 1
3096         to buf_size each time through the loop.
3098 2020-05-10  Bruno Haible  <bruno@clisp.org>
3100         doc: Mark HP-UX as unsupported.
3101         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
3103 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3105         careadlinkat: limit GCC workaround
3106         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
3107         10.1.0 and later, since the workaround is pretty bad and the GCC
3108         bug should get fixed.
3110 2020-05-10  Bruno Haible  <bruno@clisp.org>
3112         havelib: Enhance documentation.
3113         * doc/havelib.texi (Searching for Libraries): Mention the bad
3114         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
3116 2020-05-10  Bruno Haible  <bruno@clisp.org>
3118         attribute: Clarify list of attributes.
3119         * lib/attribute.h: Reorder the list of attributes, and group them by
3120         purpose.
3122 2020-05-10  Bruno Haible  <bruno@clisp.org>
3124         string: Fix compilation error in C++ mode.
3125         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
3126         _GL_WARN_ON_USE.
3127         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
3128         instead of _GL_WARN_ON_USE.
3130 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
3132         announce-gen: add support for dist-lzip
3133         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
3135 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3137         manywarnings: port to GCC 10.1
3138         * build-aux/gcc-warning.spec:
3139         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
3140         Add GCC 10.1.0 warnings.
3142         careadlinkat: pacify -Wreturn-local-addr
3143         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
3144         Pacify gcc 10’s -Wreturn-local-addr option.
3145         Simplify some of the later code.
3147 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3149         attribute: remove ATTRIBUTE_DEPRECATED
3150         * lib/attribute.h: Improve recently-added comments, mostly
3151         by shortening them (use active voice, etc.).
3152         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
3153         Problem reported by Bruno Haible in:
3154         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
3156 2020-05-09  Bruno Haible  <bruno@clisp.org>
3158         attribute: Add comments.
3159         * lib/attribute.h: Document each macro.
3161 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
3163         bitset: use the attribute module
3164         * modules/bitset: Depend on 'attribute'.
3165         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
3166         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
3167         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
3168         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
3170 2020-05-09  Bruno Haible  <bruno@clisp.org>
3172         c-stack: Fix warning when DEBUG is enabled.
3173         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3174         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
3175         * lib/c-stack.c: Include <stdio.h>.
3177 2020-05-09  Bruno Haible  <bruno@clisp.org>
3179         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
3180         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
3181         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3182         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3183         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3184         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3185         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3186         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3187         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3188         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
3189         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3190         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3191         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3193 2020-05-09  Bruno Haible  <bruno@clisp.org>
3195         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
3196         Reported by Akim Demaille in
3197         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
3198         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
3199         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
3200         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
3202 2020-05-09  Bruno Haible  <bruno@clisp.org>
3204         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
3205         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
3206         that usually comes from m4/gnulib-common.m4.
3207         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3209 2020-05-09  Bruno Haible  <bruno@clisp.org>
3211         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
3212         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
3213         that usually comes from m4/gnulib-common.m4.
3214         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3215         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3216         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3218 2020-05-09  Bruno Haible  <bruno@clisp.org>
3220         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
3221         * lib/uchar.in.h (char16_t): Define as macro if
3222         GNULIB_OVERRIDES_CHAR16_T.
3223         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
3224         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
3225         (gl_UCHAR_H): Invoke them.
3226         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
3227         GNULIB_OVERRIDES_CHAR32_T.
3228         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
3229         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
3230         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
3231         GNULIB_OVERRIDES_CHAR32_T.
3233 2020-05-09  Bruno Haible  <bruno@clisp.org>
3235         Macro tweaks.
3236         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
3237         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
3239 2020-05-08  Bruno Haible  <bruno@clisp.org>
3241         c32rtomb: Avoid compilation failure on Haiku.
3242         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
3243         inline definitions.
3244         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
3246 2020-05-08  Bruno Haible  <bruno@clisp.org>
3248         mbrtoc32: Avoid compilation failure on Haiku.
3249         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
3250         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
3251         AC_CHECK_FUNCS_ONCE.
3252         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
3254 2020-05-08  Bruno Haible  <bruno@clisp.org>
3256         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
3257         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
3259 2020-05-08  Bruno Haible  <bruno@clisp.org>
3261         list: Update documentation.
3262         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3263         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
3264         * doc/containers.texi (Container data types): Document the new list
3265         operations and their complexity.
3267 2020-05-08  Bruno Haible  <bruno@clisp.org>
3269         ignore-value tests: Use module 'attribute'.
3270         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
3271         * tests/test-ignore-value.c: Include attribute.h.
3272         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
3273         * modules/ignore-value-tests (Depends-on): Add attribute.
3275 2020-05-08  Bruno Haible  <bruno@clisp.org>
3277         uniname/uniname: Use module 'attribute'.
3278         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
3279         * lib/uniname/uninames.h: Regenerated.
3280         * lib/uniname/uniname.c: Include attribute.h.
3281         * modules/uniname/uniname (Depends-on): Add attribute.
3283 2020-05-08  Bruno Haible  <bruno@clisp.org>
3285         c32rtomb: Use module 'attribute'.
3286         * lib/c32rtomb.c: Include attribute.h.
3287         (FALLTHROUGH): Remove macro.
3288         * modules/c32rtomb (Depends-on): Add attribute.
3290 2020-05-08  Bruno Haible  <bruno@clisp.org>
3292         xsize: Use module 'attribute'.
3293         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
3294         * modules/xsize (Depends-on): Add attribute.
3296 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3298         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
3300         * lib/attribute.h: Minor style fixes.
3302         Fix version-etc glitch on OpenIndiana
3303         Problem reported by Mats Erik Andersson in:
3304         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
3305         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
3306         that now clashes with gnulib-common.h.  All uses changed.
3308 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3310         attribute: new module
3311         This simplifies use of GCC and C2X attributes like ‘deprecated’.
3312         * MODULES.html.sh: Add attribute.
3313         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
3314         * doc/gnulib.texi (Particular Modules): Add Attributes.
3315         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
3316         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
3317         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
3318         * lib/vasnprintf.c:
3319         Include attribute.h, and let it define FALLTHROUGH.
3320         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
3321         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
3322         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
3323         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
3324         This is a copy since Gawk doesn’t use Gnulib.
3325         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
3326         is incompatible with gl_COMMON_BODY’s.  All uses changed.
3327         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
3328         Keep the existing FALLTHROUGH definition since Glibc might use it,
3329         and it does no harm to Gnulib’s FALLTHROUGH.
3330         * lib/fts_.h, lib/inttostr.h:
3331         (__GNUC_PREREQ): Remove; no longer needed.
3332         (__attribute_warn_unused_result__): Remove.  All uses
3333         replaced by _GL_ATTRIBUTE_NODISCARD.
3334         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
3335         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
3336         __attribute__ ((__warn_unused_result__)), for forward
3337         compatibility to C2X.
3338         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
3339         _GL_ATTRIBUTE_NODISCARD.
3340         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
3341         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
3342         replaced by gl_COMMON_BODY’s implementation, which has a
3343         slightly different signature.
3344         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
3345         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
3346         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
3347         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
3348         No doubt all uses should be replaced, at some point.
3349         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
3350         (_Noreturn): Use it.
3351         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
3352         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
3353         (_GL_ATTRIBUTE_COLD)
3354         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
3355         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
3356         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
3357         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
3358         (_GL_ATTRIBUTE_MAYBE_UNUSED)
3359         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
3360         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
3361         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
3362         (_GL_ATTRIBUTE_RETURNS_NONNULL)
3363         (_GL_ATTRIBUTE_SENTINEL): New macros.
3364         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
3365         * modules/fnmatch, modules/freopen-safer, modules/fts:
3366         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
3367         * modules/quotearg, modules/savewd:
3368         * modules/unistdio/u16-u16-vasnprintf:
3369         * modules/unistdio/u16-vasnprintf:
3370         * modules/unistdio/u32-u32-vasnprintf:
3371         * modules/unistdio/u32-vasnprintf:
3372         * modules/unistdio/u8-u8-vasnprintf:
3373         * modules/unistdio/u8-vasnprintf:
3374         * modules/unistdio/ulc-vasnprintf:
3375         * modules/unistr/u8-uctomb, modules/vasnprintf:
3376         (Depends-on:): Add attribute module.
3378 2020-05-03  Bruno Haible  <bruno@clisp.org>
3380         bison: Fix today's commit.
3381         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
3383 2020-05-03  Bruno Haible  <bruno@clisp.org>
3385         list-c++: Add get_first, get_last, set_first, set_last operations.
3386         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
3387         set_first, set_last.
3388         * lib/gl_list.h: Tweak comments.
3390 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
3392         bison: rely on bison's %require to check a version requirement
3393         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
3394         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
3395         enough of not.
3396         So far it is the only know Yacc tool that supports '%require'.
3397         Other yaccs will actually even choke on seeing the -o option after the
3398         input file name.
3399         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
3401 2020-05-02  Bruno Haible  <bruno@clisp.org>
3403         list: Add get_first, get_last, set_first, set_last operations.
3404         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
3405         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
3406         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
3408 2020-05-02  Bruno Haible  <bruno@clisp.org>
3410         list: Remove redundant code for remove_first and remove_last operations.
3411         * lib/gl_list.h (struct gl_list_implementation): Remove fields
3412         remove_first, remove_last.
3413         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
3414         * lib/gl_array_list.c: Revert last change.
3415         * lib/gl_carray_list.c: Likewise.
3416         * lib/gl_anylinked_list2.h: Likewise.
3417         * lib/gl_linked_list.c: Likewise.
3418         * lib/gl_linkedhash_list.c: Likewise.
3419         * lib/gl_anytree_list2.h: Likewise.
3420         * lib/gl_avltree_list.c: Likewise.
3421         * lib/gl_avltreehash_list.c: Likewise.
3422         * lib/gl_rbtree_list.c: Likewise.
3423         * lib/gl_rbtreehash_list.c: Likewise.
3424         * lib/gl_sublist.c: Likewise.
3426 2020-05-02  Bruno Haible  <bruno@clisp.org>
3428         bison-i18n: Add support for cross-compilation.
3429         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
3430         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
3431         via Akim Demaille <akim@lrde.epita.fr>.
3432         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
3433         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
3434         Don't use bison's --print-localedir option when cross-compiling.
3435         Also, fix an error message and a comment.
3437 2020-05-01  Bruno Haible  <bruno@clisp.org>
3439         list: Add remove_first and remove_last operations.
3440         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3441         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
3442         * lib/gl_list.h (struct gl_list_implementation): Add fields
3443         remove_first, remove_last.
3444         (gl_list_remove_first, gl_list_remove_last): New functions.
3445         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
3446         functions, based on gl_array_remove_at.
3447         (gl_array_list_implementation): Implement the new operations.
3448         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
3449         New functions, based on gl_carray_remove_at.
3450         (gl_carray_list_implementation): Implement the new operations.
3451         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
3452         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
3453         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
3454         new operations.
3455         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
3456         Likewise.
3457         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
3458         New functions, based on gl_tree_remove_at.
3459         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
3460         new operations.
3461         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3462         Likewise.
3463         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
3464         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
3465         Likewise.
3466         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
3467         New functions, based on gl_sublist_remove_at.
3468         (gl_sublist_list_implementation): Implement the new operations.
3469         * lib/gl_list.hh (class gl_List): Add methods remove_first,
3470         remove_last.
3471         * tests/test-array_list.c (main): Test also gl_list_remove_first and
3472         gl_list_remove_last.
3473         * tests/test-avltree_list.c (main): Likewise.
3474         * tests/test-avltreehash_list.c (main): Likewise.
3475         * tests/test-carray_list.c (main): Likewise.
3476         * tests/test-linked_list.c (main): Likewise.
3477         * tests/test-linkedhash_list.c (main): Likewise.
3478         * tests/test-rbtree_list.c (main): Likewise.
3479         * tests/test-rbtreehash_list.c (main): Likewise.
3481 2020-05-01  Bruno Haible  <bruno@clisp.org>
3483         parse-datetime: Fix a build failure with an older bison version.
3484         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
3485         parse-datetime.tab.c if a suitable version of bison was not found.
3487 2020-05-01  Bruno Haible  <bruno@clisp.org>
3489         bison: New module.
3490         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
3491         m4/parse-datetime.m4.
3492         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
3493         * modules/bison: New file.
3494         * modules/parse-datetime (Files): Remove m4/bison.m4.
3495         (Depends-on): Add bison.
3497 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
3499         Update users.txt.
3500         * users.txt: Add poke.
3502 2020-04-28  Bruno Haible  <bruno@clisp.org>
3504         posix_spawn_file_actions_addfchdir tests: Enhance test.
3505         * tests/test-posix_spawn5.c: Include findprog.h.
3506         (test): New function, extracted from main.
3507         (main): Invoke it. Also, invoke it with a program name such as
3508         "bin/pwd".
3509         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
3510         findprog.
3512 2020-04-28  Bruno Haible  <bruno@clisp.org>
3514         posix_spawn_file_actions_addchdir tests: Enhance test.
3515         * tests/test-posix_spawn4.c: Include findprog.h.
3516         (test): New function, extracted from main.
3517         (main): Invoke it. Also, invoke it with a program name such as
3518         "bin/pwd".
3519         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
3520         findprog.
3522 2020-04-28  Bruno Haible  <bruno@clisp.org>
3524         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
3525         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
3526         access elements of the wrong union member.
3528 2020-04-27  Bruno Haible  <bruno@clisp.org>
3530         getdate: Remove deprecated module.
3531         * modules/getdate: Remove file.
3532         * doc/getdate.texi: Remove file.
3533         * lib/getdate.h: Remove file.
3534         * NEWS: Mention the removal.
3536 2020-04-27  Bruno Haible  <bruno@clisp.org>
3538         realloc: Remove deprecated module.
3539         * modules/realloc: Remove file.
3540         * NEWS: Mention the removal.
3542 2020-04-27  Bruno Haible  <bruno@clisp.org>
3544         calloc: Remove deprecated module.
3545         * modules/calloc: Remove file.
3546         * NEWS: Mention the removal.
3548 2020-04-27  Bruno Haible  <bruno@clisp.org>
3550         malloc: Remove deprecated module.
3551         * modules/malloc: Remove file.
3552         * NEWS: Mention the removal.
3554 2020-04-27  Bruno Haible  <bruno@clisp.org>
3556         fnmatch-posix: Remove deprecated module.
3557         * modules/fnmatch-posix: Remove file.
3558         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
3559         * NEWS: Mention the removal.
3561 2020-04-27  Bruno Haible  <bruno@clisp.org>
3563         pipe: Remove deprecated module.
3564         * modules/pipe: Remove file.
3565         * lib/pipe.h: Remove file.
3566         * NEWS: Mention the removal.
3568 2020-04-27  Bruno Haible  <bruno@clisp.org>
3570         getopt: Remove deprecated module.
3571         * modules/getopt: Remove file.
3572         * NEWS: Mention the removal.
3574 2020-04-27  Bruno Haible  <bruno@clisp.org>
3576         remove-dest-slash: Remove deprecated module.
3577         * modules/rename-dest-slash: Remove file.
3578         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
3579         Update.
3580         * NEWS: Mention the removal.
3582 2020-04-27  Bruno Haible  <bruno@clisp.org>
3584         unictype/bidicategory-*: Remove deprecated modules.
3585         * modules/unictype/bidicategory-all: Remove file.
3586         * modules/unictype/bidicategory-byname: Remove file.
3587         * modules/unictype/bidicategory-name: Remove file.
3588         * modules/unictype/bidicategory-of: Remove file.
3589         * modules/unictype/bidicategory-test: Remove file.
3590         * MODULES.html.sh (Unicode string functions): Update.
3591         * NEWS: Mention the removals.
3593 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3595         Tune fts for FTS_LOGICAL+FTS_NOSTAT
3596         From a suggestion by Askar Safin in:
3597         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
3598         * lib/fts.c (fts_build): If file types are known, optimize
3599         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
3600         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
3601         non-directories.
3603 2020-04-19  Bruno Haible  <bruno@clisp.org>
3605         vasnprintf: Add support for printing wide characters using escapes.
3606         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
3607         (wctomb_fallback): New function.
3608         (local_wctomb): New function.
3609         (local_wcrtomb): New function or macro.
3610         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
3611         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
3612         %lc.
3614 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
3616         fts: remove NOSTAT_LEAF_OPTIMIZATION
3617         It caused ‘find’ and ‘du’ to dump core, and it was useful
3618         only for obsolescent Linux filesystems anyway.  Problem reported in:
3619         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
3620         Quite possibly there is still a serious underlying fts bug with
3621         tight-loop-check and mutating file systems, but if so this patch
3622         should cause the bug to be triggered less often.
3623         * lib/fts.c (enum leaf_optimization): Remove
3624         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
3625         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
3626         (leaf_optimization): Remove special cases for ReiserFS and XFS.
3627         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
3628         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
3629         Remove.  All uses removed.
3631 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3633         explicit_bzero: Improve code style.
3634         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
3636 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3638         explicit_bzero: On native Windows, use SecureZeroMemory().
3639         * lib/explicit_bzero.c: Include <windows.h>.
3640         (explicit_bzero): On native Windows, use SecureZeroMemory.
3642 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3644         explicit_bzero: Use memset_s() when available.
3645         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
3646         (explicit_bzero): Use memset_s when available.
3647         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
3649 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3651         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
3652         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
3653         free() that overwrite the memory with canaries.
3655 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
3657         bootstrap: recommend git submodule update --init
3658         Reported by Bruno Haible.
3659         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
3660         * build-aux/bootstrap: recommand "git submodule update --init"
3661         rather than "git submodule init".
3663 2020-04-12  Bruno Haible  <bruno@clisp.org>
3665         explicit_bzero: Add tests.
3666         * tests/test-explicit_bzero.c: New file.
3667         * modules/explicit_bzero-tests: New file.
3669 2020-04-11  Bruno Haible  <bruno@clisp.org>
3671         explicit_bzero: Relicense under LGPLv2+.
3672         Approved by Paul Eggert.
3673         * modules/explicit_bzero (License): Change to LGPLv2+.
3675 2020-04-10  Bruno Haible  <bruno@clisp.org>
3677         findprog, relocatable-prog: Ignore directories during PATH search.
3678         Reported by Frederick Eaton via Dmitry Goncharov in
3679         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
3681         * lib/findprog.c (find_in_path): When the file found in a PATH element
3682         is a directory, continue searching.
3683         * modules/findprog (Depends-on): Add sys_stat, stat.
3684         * modules/findprog-lgpl (Depends-on): Likewise.
3686         * lib/progreloc.c (maybe_executable): When the file found in a PATH
3687         element is a directory, continue searching.
3688         * lib/relocwrapper.c: Update comments.
3689         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
3690         (configure.ac-early): New section.
3692 2020-04-10  Bruno Haible  <bruno@clisp.org>
3694         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
3695         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
3696         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
3697         * MODULES.html.sh: In a git-less tarball, use the date of the first
3698         ChangeLog entry.
3700 2020-04-04  Bruno Haible  <bruno@clisp.org>
3702         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
3703         * m4/gettext.m4: Fix comments regarding the gettext library.
3704         * m4/intl-thread-locale.m4: Likewise.
3705         * m4/intlmacosx.m4: Likewise.
3706         * m4/lcmessage.m4: Likewise.
3707         * m4/nls.m4: Likewise.
3708         * m4/po.m4: Likewise.
3709         * m4/progtest.m4: Likewise.
3711 2020-04-04  Jim Meyering  <meyering@fb.com>
3713         maint: remove a stray inter-word space in a 6x-repeated comment
3714         Induce the changes by running this:
3715           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
3716         * build-aux/announce-gen: Change "by  perl" to "by perl".
3717         * build-aux/gitlog-to-changelog: Likewise.
3718         * build-aux/prefix-gnulib-mk: Likewise.
3719         * build-aux/update-copyright: Likewise.
3720         * build-aux/useless-if-before-free: Likewise.
3721         * tests/test-update-copyright.sh: Likewise.
3723 2020-03-28  Bruno Haible  <bruno@clisp.org>
3725         Use module 'filename' instead of module 'dosname'.
3727         * lib/at-func.c: Include filename.h instead of dosname.h.
3728         * lib/unlinkat.c: Likewise.
3729         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
3730         * modules/areadlinkat-with-size (Depends-on): Likewise.
3731         * modules/faccessat (Depends-on): Likewise.
3732         * modules/fchmodat (Depends-on): Likewise.
3733         * modules/fchownat (Depends-on): Likewise.
3734         * modules/fstatat (Depends-on): Likewise.
3735         * modules/mkdirat (Depends-on): Likewise.
3736         * modules/mkfifoat (Depends-on): Likewise.
3737         * modules/readlinkat (Depends-on): Likewise.
3738         * modules/selinux-at (Depends-on): Likewise.
3739         * modules/symlinkat (Depends-on): Likewise.
3740         * modules/unlinkat (Depends-on): Likewise.
3741         * modules/utimensat (Depends-on): Likewise.
3743         * lib/at-func2.c: Include filename.h instead of dosname.h.
3744         * modules/linkat (Depends-on): Add filename. Remove dosname.
3745         * modules/renameatu (Depends-on): Likewise.
3747         * lib/canonicalize.c: Include filename.h instead of dosname.h.
3748         * lib/canonicalize-lgpl.c: Likewise.
3749         * modules/canonicalize (Depends-on): Add filename.
3750         * modules/canonicalize-lgpl (Depends-on): Likewise.
3752         * lib/dirname.h: Include filename.h instead of dosname.h.
3753         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
3755         * lib/fchdir.c: Include filename.h instead of dosname.h.
3756         * modules/fchdir (Depends-on): Add filename. Remove dosname.
3758         * lib/openat.c: Include filename.h instead of dosname.h.
3759         * modules/openat (Depends-on): Add filename. Remove dosname.
3761         * lib/rmdir.c: Include filename.h instead of dosname.h.
3762         * modules/rmdir (Depends-on): Add filename. Remove dosname.
3764         * lib/savewd.c: Include filename.h instead of dosname.h.
3765         * modules/savewd (Depends-on): Add filename. Remove dosname.
3767         * lib/unlink.c: Include filename.h instead of dosname.h.
3768         * modules/unlink (Depends-on): Add filename. Remove dosname.
3770         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
3771         * lib/relocwrapper.c: Update comments.
3773         * modules/lstat (Depends-on): Remove dosname.
3775 2020-03-28  Bruno Haible  <bruno@clisp.org>
3777         dosname: Redirect to 'filename'.
3778         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
3779         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
3780         * lib/dosname.h: Remove all definitions. Just include filename.h.
3781         * modules/dosname (Status, Notice): Mark as deprecated.
3782         (Depends-on): Add 'filename'.
3784 2020-03-28  Bruno Haible  <bruno@clisp.org>
3786         dosname: Change IS_RELATIVE_FILE_NAME.
3787         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
3788         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
3789         * NEWS: Mention the change.
3791 2020-03-28  Bruno Haible  <bruno@clisp.org>
3793         filename: Copy some definitions from module 'dosname'.
3794         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
3795         (HAS_DEVICE): Document macro.
3796         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
3797         (IS_ABSOLUTE_FILE_NAME): Consider
3798         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
3799         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
3800         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
3801         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
3802         IS_PATH_WITH_DIR.
3803         (DllMain): Update.
3804         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
3805         IS_PATH_WITH_DIR.
3806         (find_executable): Update.
3807         * NEWS: Document the deprecations.
3809 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
3811         getopt-posix: port __GETOPT_PREFIX to macOS
3812         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
3813         Define to work around a problem with asm on macOS (Bug#40205).
3815 2020-03-22  Bruno Haible  <bruno@clisp.org>
3817         MODULES.html.sh: Add support for reproducible builds.
3818         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
3819         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
3820         * MODULES.html.sh: Print the date of the last gnulib commit, not the
3821         current date.
3823 2020-03-22  Bruno Haible  <bruno@clisp.org>
3825         Several modules: Depend on stat.
3826         * modules/acl-permissions (Depends-on): Add stat.
3827         * modules/canonicalize (Depends-on): Likewise.
3828         * modules/file-has-acl (Depends-on): Likewise.
3829         * modules/fstat (Depends-on): Likewise.
3830         * modules/fstatat (Depends-on): Likewise.
3831         * modules/glob (Depends-on): Likewise.
3832         * modules/javacomp (Depends-on): Likewise.
3833         * modules/linkat (Depends-on): Likewise.
3834         * modules/mkdir (Depends-on): Likewise.
3835         * modules/pt_chown (Depends-on): Likewise.
3836         * modules/ptsname_r (Depends-on): Likewise.
3837         * modules/readlinkat (Depends-on): Likewise.
3838         * modules/rename (Depends-on): Likewise.
3839         * modules/renameatu (Depends-on): Likewise.
3840         * modules/tmpdir (Depends-on): Likewise.
3841         * modules/utimens (Depends-on): Likewise.
3842         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
3843         * modules/same (Depends-on): Remove stat.
3845 2020-03-22  Bruno Haible  <bruno@clisp.org>
3847         acl-permissions: Improve autoconf macro.
3848         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
3849         more reliably.
3851 2020-03-22  Bruno Haible  <bruno@clisp.org>
3853         file-has-acl: Fix module description.
3854         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
3855         (Depends-on): Depend on acl-permissions unconditionally.
3857 2020-03-21  Bruno Haible  <bruno@clisp.org>
3859         unlink: Ensure errno also on native Windows.
3860         * modules/unlink (Depends-on): Add malloc-posix.
3862 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
3864         unlink: fix malloc errno typo
3865         Problem reported by Tim Rühsen in:
3866         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
3867         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
3869 2020-03-16  Bruno Haible  <bruno@clisp.org>
3871         *printf-posix: Fix m4 error (regression from 2020-03-08).
3872         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
3873         brackets in AC_COMPILE_IFELSE invocation.
3875 2020-03-08  Bruno Haible  <bruno@clisp.org>
3877         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
3878         * modules/crypto/af_alg (Depends-on): Add fstat.
3879         * modules/renameatu (Depends-on): Likewise.
3880         * modules/same (Depends-on): Likewise.
3881         * modules/term-style-control (Depends-on): Likewise.
3883 2020-03-08  Bruno Haible  <bruno@clisp.org>
3885         *printf-posix: Document why it's overridden on some glibc systems.
3886         Reported by Adrian Bunk <bunk@stusta.de> in
3887         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
3888         * doc/posix-functions/*printf.texi: Document the problem with the %n
3889         directive on some glibc systems.
3890         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
3891         the cross-compilation guesses accordingly.
3893 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
3895         open, openat: port to (O_RDWR | O_RDONLY) != 0
3896         Potential portability problem reported by Dan Gohman in:
3897         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
3898         * lib/open.c (open):
3899         * lib/openat.c (rpl_openat):
3900         Don’t assume O_RDONLY is disjoint from O_RDWR.
3902 2020-03-07  Bruno Haible  <bruno@clisp.org>
3904         openat: Fix theoretically possible issue on GNU/Hurd.
3905         Reported by Dan Gohman <sunfish@mozilla.com> in
3906         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
3907         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
3908         ignore the bits that are also set in O_RDONLY.
3910 2020-02-24  Bruno Haible  <bruno@clisp.org>
3912         getloadavg: Don't use /usr/local when cross-compiling on AIX.
3913         Reported by Jens Rehsack <sno@netbsd.org> in
3914         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
3915         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
3916         cross-compiling.
3918 2020-02-24  Bruno Haible  <bruno@clisp.org>
3920         fcntl: Add witness of gnulib override.
3921         Reported by Jens Rehsack <sno@netbsd.org> in
3922         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
3923         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
3924         macros.
3926 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
3928         Update users.txt.
3929         * users.txt: Add datamash, time.
3931 2020-02-23  Bruno Haible  <bruno@clisp.org>
3933         uni*/base: Use 'restrict'.
3934         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
3935         from lib/regex.h.
3936         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
3937         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
3938         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
3939         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
3940         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
3941         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
3942         '_UC_RESTRICT'.
3943         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
3944         u32_conv_to_encoding): Use '_UC_RESTRICT'.
3945         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
3946         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
3947         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
3948         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
3949         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
3950         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
3951         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
3952         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
3953         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
3954         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
3955         '_UC_RESTRICT'.
3956         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
3957         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
3958         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
3959         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
3960         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
3961         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
3962         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
3963         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
3965 2020-02-23  Bruno Haible  <bruno@clisp.org>
3967         glob, spawn: Use improved '_Restrict_' definition.
3968         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
3969         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
3971 2020-02-23  Bruno Haible  <bruno@clisp.org>
3973         crypto/gc: Use 'restrict'.
3974         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
3975         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
3977         crypto/hmac-*: Use 'restrict'.
3978         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
3979         'restrict'.
3980         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
3981         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
3982         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
3983         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
3985         crypto/sm3: Use 'restrict'.
3986         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
3987         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
3989         crypto/*-buffer: Use 'restrict'.
3990         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
3991         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
3993         crypto/sha512-buffer: Use 'restrict'.
3994         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
3995         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
3996         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
3998         crypto/sha256-buffer: Use 'restrict'.
3999         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
4000         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
4001         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
4003         crypto/sha1-buffer: Use 'restrict'.
4004         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
4005         'restrict'.
4006         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
4008         crypto/md5-buffer: Use 'restrict'.
4009         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
4010         'restrict'.
4011         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
4013         crypto/md4: Use 'restrict'.
4014         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
4015         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
4017         crypto/md2: Use 'restrict'.
4018         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
4019         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
4021         crypto/rijndael: Use 'restrict'.
4022         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
4023         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
4024         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
4026         crypto/arctwo: Use 'restrict'.
4027         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
4028         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
4030         crypto/arcfour: Use 'restrict'.
4031         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
4032         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
4034         careadlinkat: Use 'restrict'.
4035         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
4036         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
4037         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
4039         regex-quote: Use 'restrict'.
4040         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
4041         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
4043         system-quote: Use 'restrict'.
4044         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
4045         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
4047         sh-quote: Use 'restrict'.
4048         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
4049         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
4051         quotearg: Use 'restrict'.
4052         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
4053         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
4055         parse-datetime: Use 'restrict'.
4056         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
4057         'restrict'.
4058         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
4060         nstrftime: Use 'restrict'.
4061         * lib/strftime.h (nstrftime): Use 'restrict'.
4062         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
4064         mbstok_r: Use 'restrict'.
4065         * lib/string.in.h (mbstok_r): Use 'restrict'.
4067         xmemcoll: Use 'restrict'.
4068         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
4069         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
4071         memcoll: Use 'restrict'.
4072         * lib/memcoll.h (memcoll): Use 'restrict'.
4073         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
4075         vasnprintf: Use 'restrict'.
4076         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
4077         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
4079         c-vasnprintf: Use 'restrict'.
4080         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
4081         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
4083         c-vsnprintf: Use 'restrict'.
4084         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
4085         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
4087         c-snprintf: Use 'restrict'.
4088         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
4089         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
4091         astrxfrm: Use 'restrict'.
4092         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
4093         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
4095         amemxfrm: Use 'restrict'.
4096         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
4097         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
4099 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4101         fchmodat, lchmod: simplify
4102         It appears that we may have overengineered lchmod and fchmodat,
4103         in that the code was prepared for some hypothetical platforms but
4104         was so complicated that it was hard to understand.  I attempted to
4105         improve the situation by simplifying the code when this
4106         simplification should not hurt on real platforms; we can re-add
4107         complexity later to port to platforms I didn’t know about.
4108         * lib/fchmodat.c (fchmodat):
4109         * lib/lchmod.c (lchmod):
4110         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
4111         around the /proc code that needs it.
4112         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
4113         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
4114         Do not include <config.h> twice.
4115         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
4116         lchmod on any known hosts.
4117         (lchmod): Do not defer to fchmodat, so that the lchmod module
4118         need not depend on the fchmodat module (which is a circular
4119         dependency).  Do not use openat, since ‘open’ suffices.
4120         Coalesce calls to lchmod/chmod.
4121         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
4122         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
4123         * modules/lchmod (Depends-on, configure.ac):
4124         * modules/sys_stat (Depends-on):
4125         Do not worry about replacing lchmod, since that shouldn’t happen.
4126         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
4127         Do not worry about whether lchmod works on non-symlinks,
4128         since every known lchmod works on non-symlinks.
4129         * modules/lchmod (Depends-on):
4130         Remove circular dependency on fchmodat.
4132 2020-02-22  Bruno Haible  <bruno@clisp.org>
4134         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
4135         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
4136         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
4138 2020-02-22  Bruno Haible  <bruno@clisp.org>
4140         Use 'restrict' in all POSIX function declarations.
4141         * lib/iconv.in.h (iconv): Use 'restrict'.
4142         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
4143         * lib/monetary.in.h (strfmon_l): Likewise.
4144         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
4145         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
4146         pthread_mutex_timedlock, pthread_rwlock_init,
4147         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
4148         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
4149         * lib/search.in.h (tdelete): Likewise.
4150         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
4151         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
4152         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
4153         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
4154         Likewise.
4155         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
4156         strtoull): Likewise.
4157         * lib/string.in.h (strncat): Likewise.
4158         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
4159         recvfrom): Likewise.
4160         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
4161         * lib/time.in.h (strftime): Likewise.
4162         * lib/unistd.in.h (readlink, readlinkat): Likewise.
4163         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
4164         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
4165         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
4166         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
4167         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
4168         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
4169         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4170         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4171         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
4172         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4173         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4174         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4175         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4176         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4177         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
4178         other *_h.m4 files.
4179         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
4181 2020-02-22  Bruno Haible  <bruno@clisp.org>
4183         Update NEWS.
4184         * NEWS: Mention the last change.
4186 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4188         chmodat, chownat: new modules
4189         These are split from fchmodat, fchownat.  GNU Emacs needs the
4190         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
4191         lchmodat.  Split the latter two into a new module chmodat.
4192         Similarly for fchownat.  This the same basic idea for why statat
4193         was split from fstatat on 2013-01-23.
4194         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
4195         Rename from FCHMODAT_INLINE.  All uses changed.
4196         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
4197         Rename from FCHOWNAT_INLINE.  All uses changed.
4198         * lib/openat.h:
4199         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
4200         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
4201         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
4202         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
4203         (configure.ac): Remove fchmodat module indicator.
4204         (Makefile.am): Omit chmodat.c.
4205         (Maintainer): Add self.
4206         * modules/fchownat: Similarly, but for chown.
4207         * tests/test-fchownat.c (BASE): Don't define if already defined.
4208         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
4210 2020-02-22  Bruno Haible  <bruno@clisp.org>
4212         users.txt: Add groff.
4213         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
4214         * users.txt: Add groff.
4216 2020-02-22  Bruno Haible  <bruno@clisp.org>
4218         gnulib-tool: Ensure copied files are writable.
4219         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
4220         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
4221         * gnulib-tool (func_ensure_writable): New function.
4222         (func_ln_s, func_hardlink, func_lookup_file, func_import,
4223         func_create_testdir, copy-file): Invoke it after copying a file.
4225 2020-02-22  Bruno Haible  <bruno@clisp.org>
4227         users.txt: Update.
4228         * users.txt: Update URLs to projects that have moved or switched to git.
4229         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
4230         over the summary view. Add gawk.
4232 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
4234         largefile: remove _DARWIN_USE_64_BIT_INODE
4235         It’s not needed in currently-supported macOS versions, and was
4236         problematic anyway in MacOS X 10.5 which was the only version that
4237         could use it.  Problem reported by Peter Eisentraut in:
4238         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
4239         * m4/largefile.m4 (AC_SYS_LARGEFILE):
4240         Don’t define _DARWIN_USE_64_BIT_INODE.
4241         This syncs with Autoconf master.
4243         Add ‘extern "C"’ to count-one-bits.h etc.
4244         This ports these .h files to C++.
4245         Problem reported by Simon Marchi in:
4246         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
4247         * lib/count-leading-zeros.h, lib/count-one-bits.h:
4248         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
4250 2020-02-19  Bruno Haible  <bruno@clisp.org>
4252         uninorm/decompose-internal: Avoid "no previous prototype" warning.
4253         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4254         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
4255         * lib/array-mergesort.h: Accept an optional macro definition
4256         STATIC_FROMTO.
4257         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
4259 2020-02-16  Bruno Haible  <bruno@clisp.org>
4261         fchmodat: Make more future-proof.
4262         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
4263         NEED_FCHMODAT_NONSYMLINK_FIX.
4264         (gl_PREREQ_FCHMODAT): New macro.
4265         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
4266         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
4267         without lchmod function.
4268         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
4270 2020-02-16  Bruno Haible  <bruno@clisp.org>
4272         lchmod: Make more future-proof.
4273         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
4274         (gl_PREREQ_LCHMOD): New macro.
4275         * lib/lchmod.c (orig_lchmod): New function.
4276         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
4277         Return EOPNOTSUPP only on Linux and on platforms without lchmod
4278         function.
4279         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
4281         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
4282         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
4284 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4286         xnanosleep: prefer pause, and get remaining time
4287         Problem reported by Vladimir Panteleev in:
4288         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
4289         * lib/xnanosleep.c: Include intprops.h, unistd.h.
4290         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
4291         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
4292         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
4293         * modules/xnanosleep (Depends-on): Add intprops, unistd.
4295 2020-02-16  Bruno Haible  <bruno@clisp.org>
4297         lchmod: Improve cross-compilation guess.
4298         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
4299         cross-compiling, guess depending on the platform.
4301 2020-02-16  Bruno Haible  <bruno@clisp.org>
4303         fstrcmp: Add API to clean up resources.
4304         Reported by Akim Demaille <akim@lrde.epita.fr> in
4305         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
4306         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
4307         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
4309 2020-02-14  Bruno Haible  <bruno@clisp.org>
4311         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
4312         Reported by Christian Biesinger in
4313         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
4314         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
4315         corresponding module is not enabled.
4316         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
4317         prototype if the corresponding module is not enabled.
4319 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
4321         fchmodat, lchmod: port to buggy Linux filesystems
4322         Problem reported by Florian Weimer in:
4323         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
4324         * lib/fchmodat.c (fchmodat):
4325         * lib/lchmod.c (lchmod):
4326         Don’t assume that chmod on the O_PATH-opened fd will do
4327         the right thing on a symbolic link.
4328         * lib/fchmodat.c (fchmodat):
4329         Don’t attempt to special-case
4330         any flag value other than AT_SYMLINK_NOFOLLOW.
4332 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
4334         lchmod: pacify Coverity CID 1491216
4335         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
4336         not complain about unreachable code at the ‘struct stat st;’
4337         declaration.
4339 2020-02-10  Bruno Haible  <bruno@clisp.org>
4341         copysignf: Fix link error on HP-UX with cc.
4342         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
4343         HP-UX, set COPYSIGNF_LIBM to -lm.
4345 2020-02-10  Bruno Haible  <bruno@clisp.org>
4347         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
4348         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
4349         with $(LIB_SEMAPHORE).
4350         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
4351         with $(LIB_SEMAPHORE).
4353 2020-02-10  Bruno Haible  <bruno@clisp.org>
4355         ptsname_r-tests: Avoid unused function warning.
4356         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
4358 2020-02-08  Bruno Haible  <bruno@clisp.org>
4360         lchmod: Add tests.
4361         * tests/test-lchmod.c: New file.
4362         * modules/lchmod-tests: New file.
4364 2020-02-08  Bruno Haible  <bruno@clisp.org>
4366         lchmod: Ensure declaration on HP-UX.
4367         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
4368         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
4370 2020-02-08  Bruno Haible  <bruno@clisp.org>
4372         fchmodat: Strengthen tests.
4373         * tests/test-fchmodat.c (BASE): New macro.
4374         (main): Use it, to avoid conflicts with other unit tests. Verify that
4375         fchmodat changed the file permission bits.
4377 2020-02-08  Bruno Haible  <bruno@clisp.org>
4379         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
4380         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
4381         '#undef __need_system_sys_stat_h'.
4383 2020-02-08  Bruno Haible  <bruno@clisp.org>
4385         fchmodat: Improve cross-compilation guesses.
4386         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
4387         cross-compiling, guess depending on the platform.
4388         * doc/posix-functions/fchmodat.texi: Clarify.
4390 2020-02-08  Bruno Haible  <bruno@clisp.org>
4392         Fix compilation errors in a testdir created with --with-c++-tests.
4393         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
4394         since it does not work any more with g++ >= 4.4.
4396 2020-02-08  Bruno Haible  <bruno@clisp.org>
4398         doc: Update for glibc 2.31.
4399         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
4400         * doc/gnulib.texi: Include it.
4401         * doc/pastposix-functions/h_errno.texi: Update.
4402         * doc/posix-functions/*.texi: Likewise.
4404 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
4406         mountlist: consider smb3 file systems as remote
4407         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
4408         "smb3" as remote.
4410 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4412         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
4413         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
4414         they act like chmod on non-symlinks.
4415         * NEWS:
4416         * doc/glibc-functions/lchmod.texi (lchmod):
4417         * doc/posix-functions/fchmodat.texi (fchmodat):
4418         Mention this.
4419         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
4420         config.h, and undef it after including sys/stat.h the first time.
4421         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
4422         sys/stat.h a second time after defining orig_fchmodat.
4423         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
4424         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
4425         * lib/lchmod.c: New file.
4426         * lib/sys_stat.in.h (fchmodat, lchmod):
4427         Support replacing these functions.
4428         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
4429         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
4430         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
4431         Test that lchmod works on non-symlinks.
4432         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
4433         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
4434         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
4435         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
4436         * modules/lchmod (Files): Add lib/lchmod.c.
4437         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
4438         (configure.ac): Compile lchmod.c if needed.
4439         (lib_SOURCES): Add lchmod.c.
4440         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
4441         and REPLACE_LCHMOD.
4442         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
4443         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
4445 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
4447         mountlist: Consider AFS filesystems as remote
4448         df --local relies on the ME_REMOTE macro to determine if a given
4449         mount entry should be considered "local".  There is special logic
4450         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
4451         kernel's kafs module or AuriStorFS is treated as a local mount.
4452         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
4453         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
4455 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4457         Port _Noreturn to older Clang
4458         Problem reported by Jeffery Walton in:
4459         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
4460         * lib/_Noreturn.h (_Noreturn):
4461         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4462         Assume _Noreturn works in Clang 3.5 and later.
4463         It is documented to work in Clang 3.5:
4464         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
4465         and is not documented in Clang 3.4:
4466         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
4467         Apple sets __clang_version__ to a different value, so use
4468         __apple_build_version__ there.  See:
4469         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
4471 2020-02-04  Pádraig Brady  <P@draigBrady.com>
4473         test-canonicalize: avoid unused function warning
4474         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
4475         with the same guard as that used to protect usage of the null_ptr
4476         function, so that one doesn't get a -Wunused warning.
4477         * tests/test-canonicalize-lgpl.c: Likewise.
4479 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
4481         libc-config: port to Apple’s Clang variant
4482         * lib/libc-config.h (__glibc_clang_prereq):
4483         Port to Apple’s Clang variant, which uses a different
4484         numbering scheme for __clang_major__.
4486 2020-02-02  Bruno Haible  <bruno@clisp.org>
4488         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
4489         * doc/containers.texi: Document these new modules.
4491 2020-02-02  Bruno Haible  <bruno@clisp.org>
4493         omap-c++: Add tests.
4494         * tests/test-omap-c++.cc: New file.
4495         * modules/omap-c++-tests: New file.
4497         omap-c++: New module.
4498         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
4499         * modules/omap-c++: New file.
4501 2020-02-02  Bruno Haible  <bruno@clisp.org>
4503         map-c++: Add tests.
4504         * tests/test-map-c++.cc: New file.
4505         * modules/map-c++-tests: New file.
4507         map-c++: New module.
4508         * lib/gl_map.hh: New file, based on lib/gl_map.h.
4509         * modules/map-c++: New file.
4511 2020-02-02  Bruno Haible  <bruno@clisp.org>
4513         oset-c++: Add tests.
4514         * tests/test-oset-c++.cc: New file.
4515         * modules/oset-c++-tests: New file.
4517         oset-c++: New module.
4518         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
4519         * modules/oset-c++: New file.
4521 2020-02-02  Bruno Haible  <bruno@clisp.org>
4523         set-c++: Add tests.
4524         * tests/test-set-c++.cc: New file.
4525         * modules/set-c++-tests: New file.
4527         set-c++: New module.
4528         * lib/gl_set.hh: New file, based on lib/gl_set.h.
4529         * modules/set-c++: New file.
4531 2020-02-02  Bruno Haible  <bruno@clisp.org>
4533         list-c++: Add tests.
4534         * tests/test-list-c++.cc: New file.
4535         * modules/list-c++-tests: New file.
4537         list-c++: New module.
4538         * lib/gl_list.hh: New file, based on lib/gl_list.h.
4539         * modules/list-c++: New file.
4541 2020-02-02  Bruno Haible  <bruno@clisp.org>
4543         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
4544         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
4545         '_Noreturn'.
4546         * lib/sigpipe-die.h (sigpipe_die): Likewise.
4548 2020-02-02  Pádraig Brady  <P@draigBrady.com>
4550         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
4551         On x86_64 with glibc-2.30, gcc 9.2 is giving:
4552           error: argument 2 value '18446744073709551615'
4553           exceeds maximum object size 9223372036854775807
4554           [-Werror=alloc-size-larger-than=]
4555         The details of this restriction are discussed at:
4556         https://stackoverflow.com/q/42574890/4421
4557         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
4559 2020-02-02  Pádraig Brady  <P@draigBrady.com>
4561         sysctl.h: avoid including on glibc
4562         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
4563         * lib/physmem.c: Likewise.
4565 2020-02-02  Bruno Haible  <bruno@clisp.org>
4567         list, set, oset, map, omap: Avoid imperative voice in documentation.
4568         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
4569         in the specification of functions.
4570         * lib/gl_set.h: Likewise.
4571         * lib/gl_oset.h: Likewise.
4572         * lib/gl_map.h: Likewise.
4573         * lib/gl_omap.h: Likewise.
4574         * lib/gl_*.h: Likewise.
4576 2020-02-01  Bruno Haible  <bruno@clisp.org>
4578         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
4579         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
4580         does.
4582 2020-01-29  Bruno Haible  <bruno@clisp.org>
4584         array-map, hash-map, linkedhash-map: Fix module description.
4585         * modules/array-map (Description): Fix description.
4586         * modules/hash-map (Description): Likewise.
4587         * modules/linkedhash-map (Description): Likewise.
4589 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4591         dfa: do not depend on isblank
4592         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
4593         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
4594         * modules/dfa (Depends-on): Remove isblank.
4595         * modules/isblank: Add a module indicator, for lib/dfa.c.
4597         dfa: do not assume 64-bit int
4598         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
4599         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
4600         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
4601         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
4602         Fall back to 32-bit words.
4603         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
4604         of 4 64-bit args.  All uses changed.
4606 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4608         regex: remove limits-h dependency
4609         * modules/regex (Depends-on): Remove limits-h, since the
4610         code no longer depends on ULONG_WIDTH already being defined.
4612         regex: port to non-GCC pre-IEC-60559
4613         Problem reported by Arnold Robbins in:
4614         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
4615         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
4617 2020-01-25  Bruno Haible  <bruno@clisp.org>
4619         c32isxdigit: Add tests.
4620         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
4621         * tests/test-c32isxdigit.sh: New file.
4622         * modules/c32isxdigit-tests: New file.
4624         c32isxdigit: New module.
4625         * lib/c32isxdigit.c: New file.
4626         * modules/c32isxdigit: New file.
4627         * doc/posix-functions/iswxdigit.texi: Mention the new module.
4629 2020-01-25  Bruno Haible  <bruno@clisp.org>
4631         c32isupper: Add tests.
4632         * tests/test-c32isupper.c: New file.
4633         * tests/test-c32isupper.sh: New file.
4634         * modules/c32isupper-tests: New file.
4636         c32isupper: New module.
4637         * lib/c32isupper.c: New file.
4638         * modules/c32isupper: New file.
4639         * doc/posix-functions/iswupper.texi: Mention the new module.
4641 2020-01-25  Bruno Haible  <bruno@clisp.org>
4643         c32isspace: Add tests.
4644         * tests/test-c32isspace.c: New file.
4645         * tests/test-c32isspace.sh: New file.
4646         * modules/c32isspace-tests: New file.
4648         c32isspace: New module.
4649         * lib/c32isspace.c: New file.
4650         * modules/c32isspace: New file.
4651         * doc/posix-functions/iswspace.texi: Mention the new module.
4653 2020-01-25  Bruno Haible  <bruno@clisp.org>
4655         c32ispunct: Add tests.
4656         * tests/test-c32ispunct.c: New file.
4657         * tests/test-c32ispunct.sh: New file.
4658         * modules/c32ispunct-tests: New file.
4660         c32ispunct: New module.
4661         * lib/c32ispunct.c: New file.
4662         * modules/c32ispunct: New file.
4663         * doc/posix-functions/iswpunct.texi: Mention the new module.
4665 2020-01-25  Bruno Haible  <bruno@clisp.org>
4667         c32isprint: Add tests.
4668         * tests/test-c32isprint.c: New file.
4669         * tests/test-c32isprint.sh: New file.
4670         * modules/c32isprint-tests: New file.
4672         c32isprint: New module.
4673         * lib/c32isprint.c: New file.
4674         * modules/c32isprint: New file.
4675         * doc/posix-functions/iswprint.texi: Mention the new module.
4677 2020-01-25  Bruno Haible  <bruno@clisp.org>
4679         c32islower: Add tests.
4680         * tests/test-c32islower.c: New file.
4681         * tests/test-c32islower.sh: New file.
4682         * modules/c32islower-tests: New file.
4684         c32islower: New module.
4685         * lib/c32islower.c: New file.
4686         * modules/c32islower: New file.
4687         * doc/posix-functions/iswlower.texi: Mention the new module.
4689 2020-01-25  Bruno Haible  <bruno@clisp.org>
4691         c32isgraph: Add tests.
4692         * tests/test-c32isgraph.c: New file.
4693         * tests/test-c32isgraph.sh: New file.
4694         * modules/c32isgraph-tests: New file.
4696         c32isgraph: New module.
4697         * lib/c32isgraph.c: New file.
4698         * modules/c32isgraph: New file.
4699         * doc/posix-functions/iswgraph.texi: Mention the new module.
4701 2020-01-25  Bruno Haible  <bruno@clisp.org>
4703         c32isdigit: Add tests.
4704         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
4705         * tests/test-c32isdigit.sh: New file.
4706         * modules/c32isdigit-tests: New file.
4708         c32isdigit: New module.
4709         * lib/c32isdigit.c: New file.
4710         * modules/c32isdigit: New file.
4711         * doc/posix-functions/iswdigit.texi: Mention the new module.
4713 2020-01-25  Bruno Haible  <bruno@clisp.org>
4715         c32iscntrl: Add tests.
4716         * tests/test-c32iscntrl.c: New file.
4717         * tests/test-c32iscntrl.sh: New file.
4718         * modules/c32iscntrl-tests: New file.
4720         c32iscntrl: New module.
4721         * lib/c32iscntrl.c: New file.
4722         * modules/c32iscntrl: New file.
4723         * doc/posix-functions/iswcntrl.texi: Mention the new module.
4725 2020-01-25  Bruno Haible  <bruno@clisp.org>
4727         c32isblank: Add tests.
4728         * tests/test-c32isblank.c: New file.
4729         * tests/test-c32isblank.sh: New file.
4730         * modules/c32isblank-tests: New file.
4732         c32isblank: New module.
4733         * lib/c32isblank.c: New file.
4734         * modules/c32isblank: New file.
4735         * doc/posix-functions/iswblank.texi: Mention the new module.
4737 2020-01-25  Bruno Haible  <bruno@clisp.org>
4739         c32isalpha: Add tests.
4740         * tests/test-c32isalpha.c: New file.
4741         * tests/test-c32isalpha.sh: New file.
4742         * modules/c32isalpha-tests: New file.
4744         c32isalpha: New module.
4745         * lib/c32isalpha.c: New file.
4746         * modules/c32isalpha: New file.
4747         * doc/posix-functions/iswalpha.texi: Mention the new module.
4749 2020-01-25  Bruno Haible  <bruno@clisp.org>
4751         c32isalnum: Add tests.
4752         * tests/test-c32isalnum.c: New file.
4753         * tests/test-c32isalnum.sh: New file.
4754         * modules/c32isalnum-tests: New file.
4756         c32isalnum: New module.
4757         * lib/c32isalnum.c: New file.
4758         * lib/c32is-impl.h: New file.
4759         * modules/c32isalnum: New file.
4760         * doc/posix-functions/iswalnum.texi: Mention the new module.
4762 2020-01-25  Bruno Haible  <bruno@clisp.org>
4764         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
4765         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
4766         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
4767         c32isupper, c32isxdigit): New declarations.
4768         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
4769         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
4770         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
4771         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
4772         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
4773         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
4774         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
4775         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
4776         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
4777         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
4778         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
4779         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
4780         c32ispunct, c32isspace, c32isupper, c32isxdigit.
4782 2020-01-25  Bruno Haible  <bruno@clisp.org>
4784         mbchar, wctype: Use the corrected iswxdigit function.
4785         * modules/mbchar (Depends-on): Add iswxdigit.
4786         * modules/wctype (Depends-on): Likewise.
4788         iswxdigit: Add tests.
4789         * tests/test-iswxdigit.c: New file.
4790         * tests/test-iswxdigit.sh: New file.
4791         * modules/iswxdigit-tests: New file.
4793         iswxdigit: New module.
4794         * m4/iswxdigit.m4: New file.
4795         * lib/wctype.in.h (iswxdigit): Potentially override.
4796         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
4797         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
4798         * lib/iswxdigit.c: New file.
4799         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
4800         REPLACE_ISWXDIGIT.
4801         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
4802         REPLACE_ISWXDIGIT.
4803         * modules/iswxdigit: New file.
4804         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
4806 2020-01-25  Bruno Haible  <bruno@clisp.org>
4808         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
4809         Reported by John Donoghue <john.david.donoghue@gmail.com> in
4810         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
4811         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
4812         off_t on mingw, invoke _lseeki64 instead of lseek.
4814 2020-01-25  Bruno Haible  <bruno@clisp.org>
4816         iswdigit tests: Avoid test failure on Cygwin.
4817         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
4818         byte sequence, return 0.
4820         iswdigit: Fix test failure on native Windows.
4821         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
4823         mbchar, wctype: Use the corrected iswdigit function.
4824         * modules/mbchar (Depends-on): Add iswdigit.
4825         * modules/wctype (Depends-on): Likewise.
4827         iswdigit: Add tests.
4828         * tests/test-iswdigit.c: New file.
4829         * tests/test-iswdigit.sh: New file.
4830         * modules/iswdigit-tests: New file.
4832         iswdigit: New module.
4833         * m4/iswdigit.m4: New file.
4834         * lib/wctype.in.h (iswdigit): Potentially override.
4835         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
4836         * lib/iswdigit.c: New file.
4837         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
4838         REPLACE_ISWDIGIT.
4839         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
4840         REPLACE_ISWDIGIT.
4841         * modules/iswdigit: New file.
4842         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
4844 2020-01-25  Bruno Haible  <bruno@clisp.org>
4846         hard-locale tests: Make it easy to reuse the musl test.
4847         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
4848         * modules/hard-locale-tests (Files): Add it.
4849         (configure.ac): Invoke gl_MUSL_LIBC.
4851 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
4853         regex: port to Gawk on nonstandard platforms
4854         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
4855         This is useful for Gawk, which does not use the Gnulib stdlib-h
4856         module.  Problem reported by Arnold Robbins in:
4857         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
4859 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4861         regex: fix bug with >=16 subexpressions
4862         * lib/regex_internal.h (struct re_backref_cache_entry):
4863         Use bitset_word_t as the type of eps_reachable_subexps_map,
4864         instead of unsigned short int.  This fixes a bug I introduced
4865         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
4866         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
4867         Remove unused member 'unused'.
4869         regex: simplify definition of BITSET_WORD_BITS
4870         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
4871         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
4872         * lib/regex_internal.h (BITSET_WORD_BITS):
4873         * modules/regex (Depends-on): Add limits-h.
4874         Simplify now that we can use ULONG_WIDTH.
4876 2020-01-20  Bruno Haible  <bruno@clisp.org>
4878         mbrtoc32: Add note about FreeBSD 12.
4879         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
4880         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
4881         affected.
4883 2020-01-20  Bruno Haible  <bruno@clisp.org>
4885         unistr/u8-uctomb: Fix warning.
4886         Reported by Andreas Schwab <schwab@suse.de> in
4887         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
4888         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
4889         (u8_uctomb): Add FALLTHROUGH markers.
4891 2020-01-20  Bruno Haible  <bruno@clisp.org>
4893         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
4894         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
4895         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
4896         (glthread_once): Use it.
4898 2020-01-19  Bruno Haible  <bruno@clisp.org>
4900         threadlib: Disable use of weak symbols on FreeBSD 11.
4901         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4902         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
4903         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
4904         against a bug in FreeBSD 11.
4906 2020-01-19  Bruno Haible  <bruno@clisp.org>
4908         iconv_open: Improve z/OS support.
4909         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
4910         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
4911         Remove mapping for EUC-TW.
4913 2020-01-18  Bruno Haible  <bruno@clisp.org>
4915         Rename ~~gnulib.m4 to zzgnulib.m4.
4916         Suggested by Paul Eggert.
4917         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
4918         * gnulib-tool (func_get_filelist): Update.
4919         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
4921 2020-01-18  Bruno Haible  <bruno@clisp.org>
4923         doc: Update license notices.
4924         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
4925         reference to a section or to a "file as part of this distribution".
4927 2020-01-18  Bruno Haible  <bruno@clisp.org>
4929         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
4930         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
4931         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
4932         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
4933         AC_EGREP_CPP.
4935 2020-01-18  Bruno Haible  <bruno@clisp.org>
4937         Ensure Automake does not drop ~~gnulib.m4.
4938         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
4939         * m4/gnulib-common.m4 (gl_COMMON): Require it.
4941 2020-01-18  Bruno Haible  <bruno@clisp.org>
4943         Fix major regression from 2020-01-10.
4944         Reported by Paul Eggert in
4945         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
4946         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
4947         Don't AC_REQUIRE anything.
4948         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
4949         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
4950         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
4951         use ac_compile instead.
4952         (AC_CHECK_DECL): Remove override.
4953         * m4/~~gnulib.m4: New file.
4954         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
4955         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
4957 2020-01-17  Bruno Haible  <bruno@clisp.org>
4958             Paul Eggert  <eggert@cs.ucla.edu>
4960         glob: Fix use-after-free bug.
4961         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4962         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
4963         * lib/glob.c (__glob): Delay freeing dirname until after the use of
4964         end_name.
4966 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4968         vcs-to-changelog: Fix parsing of fndecl without args.
4969         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
4970         for empty arguments.
4972 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4974         vcs-to-changelog: Add documentation.
4975         * doc/vcs-to-changelog.texi: New file.
4976         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
4977         section.
4979 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4981         vcs-to-changelog: Allow loading of custom quirks file.
4982         * build-aux/vcs_to_changelog.py: New commandline option -q.
4984 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4986         vcs-to-changelog: Fix formatting of ChangeLog output.
4987         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
4988         output.
4990 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4992         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
4993         Reported in
4994         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
4995         * build-aux/vcstocl/frontend_c.py: Remove shebang.
4997 2020-01-15  Simon Josefsson  <simon@josefsson.org>
4999         crypto/gc-pbkdf2: New module.
5000         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
5001         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
5002         * lib/gc-pbkdf2.c: New file.
5003         * lib/gc-pbkdf2-sha1.c: Use new interface.
5004         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
5005         * modules/crypto/gc-pbkdf2: New file.
5006         * modules/crypto/gc-pbkdf2-tests: New file.
5007         * tests/test-gc-pbkdf2.c: New file.
5009 2020-01-12  Bruno Haible  <bruno@clisp.org>
5011         c32stombs: Add tests.
5012         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
5013         * tests/test-c32stombs-1.sh: New file, based on
5014         tests/test-c32srtombs-1.sh.
5015         * tests/test-c32stombs-2.sh: New file, based on
5016         tests/test-c32srtombs-2.sh.
5017         * tests/test-c32stombs-3.sh: New file, based on
5018         tests/test-c32srtombs-3.sh.
5019         * tests/test-c32stombs-4.sh: New file, based on
5020         tests/test-c32srtombs-4.sh.
5021         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
5023         c32stombs: New module.
5024         * lib/uchar.in.h (c32stombs): New declaration.
5025         * lib/c32stombs.c: New file.
5026         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
5027         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
5028         * modules/c32stombs: New file.
5029         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
5030         * doc/posix-functions/wcstombs.texi: Mention the new module.
5032 2020-01-11  Jim Meyering  <meyering@fb.com>
5034         perl: require the "warnings" module
5035         * m4/perl.m4: Also "use warnings", so we reject the perl found
5036         on at least one IRIX 6.5 system. Reported by Bruno Haible in
5037         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
5039 2020-01-10  Bruno Haible  <bruno@clisp.org>
5041         Fix major regression from 2020-01-04.
5042         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
5043         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
5044         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
5045         AC_DEFUN_ONCE.
5046         (AC_CHECK_DECL): Invoke, not require, it.
5048 2020-01-10  Bruno Haible  <bruno@clisp.org>
5050         c32snrtombs: Add tests.
5051         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
5052         * tests/test-c32snrtombs-1.sh: New file, based on
5053         tests/test-wcsnrtombs1.sh.
5054         * tests/test-c32snrtombs-2.sh: New file, based on
5055         tests/test-wcsnrtombs2.sh.
5056         * tests/test-c32snrtombs-3.sh: New file, based on
5057         tests/test-wcsnrtombs3.sh.
5058         * tests/test-c32snrtombs-4.sh: New file, based on
5059         tests/test-wcsnrtombs4.sh.
5060         * modules/c32snrtombs-tests: New file, based on
5061         modules/wcsnrtombs-tests.
5063         c32snrtombs: New module.
5064         * lib/uchar.in.h (c32snrtombs): New declaration.
5065         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
5066         INTERNAL_STATE, WCRTOMB.
5067         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
5068         * lib/c32snrtombs.c: New file.
5069         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
5070         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
5071         * modules/c32snrtombs: New file.
5072         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
5073         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
5075 2020-01-09  Bruno Haible  <bruno@clisp.org>
5077         c32srtombs: Add tests.
5078         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
5079         * tests/test-c32srtombs-1.sh: New file, based on
5080         tests/test-wcsrtombs1.sh.
5081         * tests/test-c32srtombs-2.sh: New file, based on
5082         tests/test-wcsrtombs2.sh.
5083         * tests/test-c32srtombs-3.sh: New file, based on
5084         tests/test-wcsrtombs3.sh.
5085         * tests/test-c32srtombs-4.sh: New file, based on
5086         tests/test-wcsrtombs4.sh.
5087         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
5089         c32srtombs: New module.
5090         * lib/uchar.in.h (c32srtombs): New declaration.
5091         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
5092         INTERNAL_STATE, WCRTOMB.
5093         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
5094         * lib/c32srtombs.c: New file.
5095         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
5096         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
5097         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
5098         * modules/c32srtombs: New file.
5099         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
5100         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
5102 2020-01-08  Bruno Haible  <bruno@clisp.org>
5104         c32tob: Make consistent with mbrtoc32.
5105         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
5106         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
5107         use c32rtomb, not wctob.
5108         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
5109         (Depends-on): Add c32rtomb.
5110         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
5112 2020-01-08  Bruno Haible  <bruno@clisp.org>
5114         c32rtomb: Add tests.
5115         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
5116         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
5117         * tests/test-c32rtomb-w32.c: New file, based on
5118         tests/test-wcrtomb-w32.c.
5119         * tests/test-c32rtomb-w32-1.sh: New file, based on
5120         tests/test-wcrtomb-w32-1.sh.
5121         * tests/test-c32rtomb-w32-2.sh: New file, based on
5122         tests/test-wcrtomb-w32-2.sh.
5123         * tests/test-c32rtomb-w32-3.sh: New file, based on
5124         tests/test-wcrtomb-w32-3.sh.
5125         * tests/test-c32rtomb-w32-4.sh: New file, based on
5126         tests/test-wcrtomb-w32-4.sh.
5127         * tests/test-c32rtomb-w32-5.sh: New file, based on
5128         tests/test-wcrtomb-w32-5.sh.
5129         * tests/test-c32rtomb-w32-6.sh: New file, based on
5130         tests/test-wcrtomb-w32-6.sh.
5131         * tests/test-c32rtomb-w32-7.sh: New file, based on
5132         tests/test-wcrtomb-w32-7.sh.
5133         * modules/c32rtomb-tests: New file.
5135         c32rtomb: New module.
5136         * lib/uchar.in.h (c32rtomb): New declaration.
5137         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
5138         * m4/c32rtomb.m4: New file.
5139         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
5140         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
5141         REPLACE_C32RTOMB.
5142         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
5143         HAVE_C32RTOMB, REPLACE_C32RTOMB.
5144         * modules/c32rtomb: New file.
5145         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
5146         * doc/posix-functions/c32rtomb.texi: Document the new module.
5147         * doc/posix-functions/wcrtomb.texi: Mention the new module.
5149 2020-01-08  Bruno Haible  <bruno@clisp.org>
5151         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
5152         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
5153         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
5154         but is not working.
5155         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
5156         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
5157         differ, use the system's mbrtoc32, adding workarounds.
5158         * modules/mbrtoc32 (Depends-on): Add hard-locale.
5159         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
5160         Windows problem.
5161         * lib/btoc32.c: Include <stdio.h>, <string.h>.
5162         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
5163         use mbrtoc32, not btowc.
5164         * modules/btoc32 (Depends-on): Add mbrtoc32.
5165         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
5166         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
5167         * modules/mbsrtoc32s (Depends-on): Update conditions.
5168         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
5169         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
5170         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
5171         * modules/mbsnrtoc32s (Depends-on): Update conditions.
5172         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
5174 2020-01-07  Bruno Haible  <bruno@clisp.org>
5176         wcrtomb: Make multithread-safe, except possibly on IRIX.
5177         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
5178         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
5179         WCRTOMB_RETVAL_BUG.
5180         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
5181         wctomb only on IRIX.
5183 2020-01-05  Jim Meyering  <meyering@fb.com>
5185         tests: skip thread-using tests when threading is disabled
5186         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
5187         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
5188         of those, so they are skipped in this case.
5189         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
5190         * tests/test-setlocale_null-mt-all.c (main): Likewise.
5191         * tests/test-setlocale_null-mt-one.c (main): Likewise.
5193 2020-01-05  Bruno Haible  <bruno@clisp.org>
5195         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
5196         Reported by Jim Meyering in
5197         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
5198         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
5199         (GNULIB_defined_ptsname_r): New macro.
5200         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
5201         (main): Disable the NULL argument test if canonicalize_file_name does
5202         not come from gnulib.
5203         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
5204         (main): Disable the NULL argument test if canonicalize_file_name does
5205         not come from gnulib.
5206         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
5207         (test_errors): Disable the NULL argument test if ptsname_r does not come
5208         from gnulib.
5210 2020-01-04  Jim Meyering  <meyering@fb.com>
5212         update-copyright: reenable its always-skipped test
5213         * tests/test-update-copyright.sh: Restore the "-pi" options removed
5214         on 2019-06-15. Without those, an internal preliminary test would
5215         fail, causing this test always to be skipped.
5216         Verify that the test is now run and passes via this:
5217           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
5219 2020-01-05  Bruno Haible  <bruno@clisp.org>
5221         mbstoc32s: Add tests.
5222         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
5223         * tests/test-mbstoc32s-1.sh: New file, based on
5224         tests/test-mbsrtoc32s-1.sh.
5225         * tests/test-mbstoc32s-2.sh: New file, based on
5226         tests/test-mbsrtoc32s-2.sh.
5227         * tests/test-mbstoc32s-3.sh: New file, based on
5228         tests/test-mbsrtoc32s-3.sh.
5229         * tests/test-mbstoc32s-4.sh: New file, based on
5230         tests/test-mbsrtoc32s-4.sh.
5231         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
5233         mbstoc32s: New module.
5234         * lib/uchar.in.h (mbstoc32s): New declaration.
5235         * lib/mbstoc32s.c: New file.
5236         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
5237         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
5238         * modules/mbstoc32s: New file.
5239         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
5240         * doc/posix-functions/mbstowcs.texi: Mention the new module.
5242 2020-01-05  Bruno Haible  <bruno@clisp.org>
5244         Tweak recently added tests.
5245         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
5246         * tests/test-mbsrtoc32s.c: Likewise.
5247         * tests/test-mbsnrtoc32s.c: Likewise.
5249 2020-01-04  Bruno Haible  <bruno@clisp.org>
5251         mbsnrtoc32s: Add tests.
5252         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
5253         * tests/test-mbsnrtoc32s-1.sh: New file, based on
5254         tests/test-mbsnrtowcs1.sh.
5255         * tests/test-mbsnrtoc32s-2.sh: New file, based on
5256         tests/test-mbsnrtowcs2.sh.
5257         * tests/test-mbsnrtoc32s-3.sh: New file, based on
5258         tests/test-mbsnrtowcs3.sh.
5259         * tests/test-mbsnrtoc32s-4.sh: New file, based on
5260         tests/test-mbsnrtowcs4.sh.
5261         * modules/mbsnrtoc32s-tests: New file, based on
5262         modules/mbsnrtowcs-tests.
5264         mbsnrtoc32s: New module.
5265         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
5266         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
5267         INTERNAL_STATE, MBRTOWC.
5268         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
5269         * lib/mbsnrtoc32s.c: New file.
5270         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
5271         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
5272         * modules/mbsnrtoc32s: New file.
5273         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
5274         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
5276 2020-01-04  Bruno Haible  <bruno@clisp.org>
5278         mbsrtoc32s tests: Enhance test.
5279         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
5280         test strings for UTF-8 and GB18030.
5282 2020-01-04  Bruno Haible  <bruno@clisp.org>
5284         mbsrtoc32s: Fix bug.
5285         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
5286         that SMALL_WCHAR_T is defined.
5288 2020-01-04  Bruno Haible  <bruno@clisp.org>
5290         mbsrtoc32s: Add tests.
5291         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
5292         * tests/test-mbsrtoc32s-1.sh: New file, based on
5293         tests/test-mbsrtowcs1.sh.
5294         * tests/test-mbsrtoc32s-2.sh: New file, based on
5295         tests/test-mbsrtowcs2.sh.
5296         * tests/test-mbsrtoc32s-3.sh: New file, based on
5297         tests/test-mbsrtowcs3.sh.
5298         * tests/test-mbsrtoc32s-4.sh: New file, based on
5299         tests/test-mbsrtowcs4.sh.
5300         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
5302         mbsrtoc32s: New module.
5303         * lib/uchar.in.h (mbsrtoc32s): New declaration.
5304         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
5305         INTERNAL_STATE, MBRTOWC.
5306         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
5307         * lib/mbsrtoc32s.c: New file.
5308         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
5309         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
5310         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
5311         * modules/mbsrtoc32s: New file.
5312         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
5313         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
5315 2020-01-04  Bruno Haible  <bruno@clisp.org>
5317         mbrtowc, mbrtoc32: Tighten dependendies.
5318         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
5319         REPLACE_MBSTATE_T is 1.
5320         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5321         REPLACE_MBSTATE_T is 0.
5322         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
5323         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
5324         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5325         REPLACE_MBSTATE_T is 0.
5327 2020-01-04  Bruno Haible  <bruno@clisp.org>
5329         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
5330         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
5331         * modules/uchar (Files): Add stdint.m4.
5332         (Makefile.am): Substitute SMALL_WCHAR_T.
5333         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
5335 2020-01-04  Bruno Haible  <bruno@clisp.org>
5337         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
5338         Reported by Martin Storsjö <martin@martin.st> in
5339         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
5340         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
5341         New macros.
5342         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
5344 2020-01-04  Bruno Haible  <bruno@clisp.org>
5346         btoc32: Add tests.
5347         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
5348         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
5349         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
5350         * modules/btoc32-tests: New file, based on modules/btowc-tests.
5352         btoc32: New module.
5353         * lib/uchar.in.h (btoc32): New declaration.
5354         * lib/btoc32.c: New file.
5355         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
5356         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
5357         * modules/btoc32: New file.
5358         * tests/test-uchar-c++.cc: Test the signature of btoc32.
5359         * doc/posix-functions/btowc.texi: Mention the new module.
5361 2020-01-03  Bruno Haible  <bruno@clisp.org>
5363         uchar tests: Avoid compilation error with HP cc.
5364         * tests/test-uchar.c: Disable a test when HP cc is in use.
5366 2020-01-03  Bruno Haible  <bruno@clisp.org>
5368         mbrtoc32: Add tests.
5369         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
5370         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
5371         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
5372         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
5373         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
5374         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
5375         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
5376         * tests/test-mbrtoc32-w32-1.sh: New file, based on
5377         tests/test-mbrtowc-w32-1.sh.
5378         * tests/test-mbrtoc32-w32-2.sh: New file, based on
5379         tests/test-mbrtowc-w32-2.sh.
5380         * tests/test-mbrtoc32-w32-3.sh: New file, based on
5381         tests/test-mbrtowc-w32-3.sh.
5382         * tests/test-mbrtoc32-w32-4.sh: New file, based on
5383         tests/test-mbrtowc-w32-4.sh.
5384         * tests/test-mbrtoc32-w32-5.sh: New file, based on
5385         tests/test-mbrtowc-w32-5.sh.
5386         * tests/test-mbrtoc32-w32-6.sh: New file, based on
5387         tests/test-mbrtowc-w32-6.sh.
5388         * tests/test-mbrtoc32-w32-7.sh: New file, based on
5389         tests/test-mbrtowc-w32-7.sh.
5390         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
5392         mbrtoc32: New module.
5393         * lib/uchar.in.h (mbrtoc32): New declaration.
5394         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
5395         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
5396         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
5397         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
5398         REPLACE_MBRTOC32.
5399         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
5400         HAVE_MBRTOC32, REPLACE_MBRTOC32.
5401         * modules/mbrtoc32: New file, based on modules/mbrtowc.
5402         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
5403         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
5404         $(LIB_MBRTOWC).
5405         * doc/posix-functions/mbrtoc32.texi: Document the new module.
5406         * doc/posix-functions/mbrtowc.texi: Mention the new module.
5408 2020-01-03  Bruno Haible  <bruno@clisp.org>
5410         mbrtowc: Refactor to share code with mbrtoc32.
5411         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
5412         * lib/mbrtowc-impl-utf8.h: Likewise.
5413         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
5414         mbrtowc-impl.h.
5415         * modules/mbrtowc (Files): Add the new files.
5417 2020-01-03  Jim Meyering  <meyering@fb.com>
5419         doc: fix time.texi wording
5420         * doc/posix-headers/time.texi (time.h): Typo.
5422 2020-01-03  Bruno Haible  <bruno@clisp.org>
5424         mbrtowc: Refactor locale charset dispatching.
5425         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
5426         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
5427         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
5428         localcharset.h, streq.h.
5429         (enc_t): Remove type.
5430         (locale_enc): Remove function.
5431         (cached_locale_enc): Remove variable.
5432         (locale_enc_cached): Remove function.
5433         (mbrtowc): Invoke locale_encoding_classification.
5434         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
5435         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
5436         lc-charset-dispatch.c.
5437         (configure.ac): Arrange to compile lc-charset-dispatch.c.
5439 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
5441         doc: mention 32-bit time_t issue
5442         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5443         * doc/posix-headers/time.texi (time.h): Mention 2038.
5445 2020-01-03  Bruno Haible  <bruno@clisp.org>
5447         mbrtowc: Ensure the mbtowc_lock is unique.
5448         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
5449         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
5450         lib/setlocale_null.c.
5451         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
5452         glthread/lock.h. Include mbtowc-lock.h.
5453         (mbtowc_lock): Remove declaration.
5454         (mbrtowc): Use mbtowc_with_lock.
5455         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
5456         threads.h. Set LIB_MBRTOWC.
5457         (gl_PREREQ_MBTOWC_LOCK): New macro.
5458         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
5459         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
5460         (Depends-on): Remove lock.
5461         (configure.ac): Arrange to compile mbtowc-lock.c.
5462         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
5463         * modules/acl (Link): Likewise.
5464         * modules/argmatch (Link): Likewise.
5465         * modules/backup-rename (Link): Likewise.
5466         * modules/backupfile (Link): Likewise.
5467         * modules/closein (Link): Likewise.
5468         * modules/closeout (Link): Likewise.
5469         * modules/copy-file (Link): Likewise.
5470         * modules/csharpcomp (Link): Likewise.
5471         * modules/csharpexec (Link): Likewise.
5472         * modules/dfa (Link): Likewise.
5473         * modules/exclude (Link): Likewise.
5474         * modules/fnmatch (Link): Likewise.
5475         * modules/fnmatch-gnu (Link): Likewise.
5476         * modules/fnmatch-posix (Link): Likewise.
5477         * modules/glob (Link): Likewise.
5478         * modules/human (Link): Likewise.
5479         * modules/javacomp (Link): Likewise.
5480         * modules/javaexec (Link): Likewise.
5481         * modules/javaversion (Link): Likewise.
5482         * modules/mbfile (Link): Likewise.
5483         * modules/mbiter (Link): Likewise.
5484         * modules/mbmemcasecmp (Link): Likewise.
5485         * modules/mbmemcasecoll (Link): Likewise.
5486         * modules/mbrlen (Link): Likewise.
5487         * modules/mbscasecmp (Link): Likewise.
5488         * modules/mbscasestr (Link): Likewise.
5489         * modules/mbschr (Link): Likewise.
5490         * modules/mbscspn (Link): Likewise.
5491         * modules/mbsinit (Link): Likewise.
5492         * modules/mbslen (Link): Likewise.
5493         * modules/mbsncasecmp (Link): Likewise.
5494         * modules/mbsnlen (Link): Likewise.
5495         * modules/mbsnrtowcs (Link): Likewise.
5496         * modules/mbspbrk (Link): Likewise.
5497         * modules/mbspcasecmp (Link): Likewise.
5498         * modules/mbsrchr (Link): Likewise.
5499         * modules/mbsrtowcs (Link): Likewise.
5500         * modules/mbssep (Link): Likewise.
5501         * modules/mbsspn (Link): Likewise.
5502         * modules/mbsstr (Link): Likewise.
5503         * modules/mbstok_r (Link): Likewise.
5504         * modules/mbswidth (Link): Likewise.
5505         * modules/mbuiter (Link): Likewise.
5506         * modules/mkdir-p (Link): Likewise.
5507         * modules/propername (Link): Likewise.
5508         * modules/quote (Link): Likewise.
5509         * modules/quotearg (Link): Likewise.
5510         * modules/quotearg-simple (Link): Likewise.
5511         * modules/regex-quote (Link): Likewise.
5512         * modules/rpmatch (Link): Likewise.
5513         * modules/sh-quote (Link): Likewise.
5514         * modules/system-quote (Link): Likewise.
5515         * modules/trim (Link): Likewise.
5516         * modules/unistdio/ulc-asnprintf (Link): Likewise.
5517         * modules/unistdio/ulc-fprintf (Link): Likewise.
5518         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
5519         * modules/unistdio/ulc-vasprintf (Link): Likewise.
5520         * modules/unistdio/ulc-vfprintf (Link): Likewise.
5521         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
5522         * modules/unistdio/ulc-vsprintf (Link): Likewise.
5523         * modules/xfreopen (Link): Likewise.
5524         * modules/xmemcoll (Link): Likewise.
5525         * modules/yesno (Link): Likewise.
5526         * modules/regex (Link): Add $(LIB_MBRTOWC).
5527         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
5528         instead of $(LIBTHREAD).
5529         * modules/argmatch-tests (Makefile.am): Likewise.
5530         * modules/closein-tests (Makefile.am): Likewise.
5531         * modules/copy-file-tests (Makefile.am): Likewise.
5532         * modules/dfa-tests (Makefile.am): Likewise.
5533         * modules/fnmatch-tests (Makefile.am): Likewise.
5534         * modules/glob-tests (Makefile.am): Likewise.
5535         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
5536         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
5537         * modules/mbrtowc-tests (Makefile.am): Likewise.
5538         * modules/mbscasecmp-tests (Makefile.am): Likewise.
5539         * modules/mbscasestr-tests (Makefile.am): Likewise.
5540         * modules/mbschr-tests (Makefile.am): Likewise.
5541         * modules/mbscspn-tests (Makefile.am): Likewise.
5542         * modules/mbsinit-tests (Makefile.am): Likewise.
5543         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
5544         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
5545         * modules/mbspbrk-tests (Makefile.am): Likewise.
5546         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
5547         * modules/mbsrchr-tests (Makefile.am): Likewise.
5548         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
5549         * modules/mbsspn-tests (Makefile.am): Likewise.
5550         * modules/mbsstr-tests (Makefile.am): Likewise.
5551         * modules/quotearg-simple-tests (Makefile.am): Likewise.
5552         * modules/quotearg-tests (Makefile.am): Likewise.
5553         * modules/readtokens-tests (Makefile.am): Likewise.
5554         * modules/sh-quote-tests (Makefile.am): Likewise.
5555         * modules/system-quote-tests (Makefile.am): Likewise.
5556         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
5557         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
5558         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
5559         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
5560         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
5561         * modules/yesno-tests (Makefile.am): Likewise.
5562         * modules/exclude-tests (Makefile.am): Link the programs with
5563         $(LIB_MBRTOWC).
5564         * modules/regex-tests (Makefile.am): Likewise.
5565         * modules/regex-quote-tests (Makefile.am): Likewise.
5567 2020-01-03  Bruno Haible  <bruno@clisp.org>
5569         getopt-posix: Fix compilation failure in testdirs.
5570         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
5571         when the gnulib module 'getopt-posix' is enabled.
5572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
5573         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
5574         module indicator.
5575         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
5577 2020-01-03  Bruno Haible  <bruno@clisp.org>
5579         doc: Mention the 64-bit inode number problem.
5580         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
5581         64-bit inode number problem.
5582         * doc/posix-functions/stat.texi: Mention that this module fixes the
5583         64-bit inode number problem.
5584         * doc/posix-functions/lstat.texi: Likewise.
5585         * doc/posix-functions/fstat.texi: Likewise.
5586         * doc/posix-functions/readdir.texi: Add more details.
5587         * doc/posix-functions/readdir_r.texi: Likewise.
5589 2020-01-02  Bruno Haible  <bruno@clisp.org>
5591         wcrtomb: Add more tests.
5592         * tests/test-wcrtomb-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-wcrtomb-w32-6.sh: Remove old comment.
5596         * tests/test-wcrtomb-w32-7.sh: Likewise.
5597         * modules/wcrtomb-tests (Files): Add these files.
5598         (Depends-on): Add localcharset.
5599         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
5601 2020-01-02  Bruno Haible  <bruno@clisp.org>
5603         mbrtowc: Add more tests.
5604         * tests/test-mbrtowc-w32.c: Include localcharset.h.
5605         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
5606         locale_charset() returns the expected value; otherwise, skip the test.
5607         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
5608         * tests/test-mbrtowc-w32-7.sh: Likewise.
5609         * modules/mbrtowc-tests (Files): Add these files.
5610         (Depends-on): Add localcharset.
5611         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
5613 2020-01-02  Bruno Haible  <bruno@clisp.org>
5615         mbrtowc: Fix test failures on MSVC (regression by previous commit).
5616         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
5617         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
5618         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
5619         MBRTOWC_STORES_INCOMPLETE_BUG.
5620         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
5622 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
5624         doc: mention glibc bug 24269
5625         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
5626         Reformat slightly so that it looks nicer in the Grep manual.
5628 2020-01-02  Bruno Haible  <bruno@clisp.org>
5630         mbrtowc: Don't replace mbstate_t on MSVC.
5631         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
5632         a missing mbsinit function on native Windows.
5633         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
5634         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
5635         MSVC bug.
5636         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
5638 2020-01-02  Bruno Haible  <bruno@clisp.org>
5640         setlocale-null: Avoid crashing the MSVC linker.
5641         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
5642         MSVC.
5644 2020-01-02  Bruno Haible  <bruno@clisp.org>
5646         wchar: Make the HP-UX workaround work on HP-UX 11.31.
5647         * modules/wchar (Depends-on): Add inttypes-incomplete.
5648         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
5649         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
5650         of strtoimax.
5652 2020-01-02  Bruno Haible  <bruno@clisp.org>
5654         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
5655         * lib/mbrtowc.c: Include <stdint.h>.
5656         * modules/mbrtowc (Depends-on): Add stdint.
5658 2020-01-01  Pádraig Brady  <P@draigBrady.com>
5660         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
5661         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
5662         which will auto enable use of openssl, only for >= version 3,
5663         which is newly licensed under the Apache Software License.
5665 2020-01-01  Bruno Haible  <bruno@clisp.org>
5667         mbrtowc: Include function name in macro names.
5668         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
5669         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
5670         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
5671         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
5672         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
5673         C_LOCALE_MAYBE_EILSEQ.
5675 2020-01-01  Bruno Haible  <bruno@clisp.org>
5677         c32tob: New module.
5678         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
5679         (c32tob): New declaration.
5680         * lib/c32tob.c: New file.
5681         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
5682         macros.
5683         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
5684         * modules/uchar (Depends-on): Add snippet/c++defs.
5685         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
5686         uchar.h.
5687         * modules/c32tob: New file.
5688         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
5689         defined.
5690         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
5691         c32tob.
5692         * modules/uchar-c++-tests (Files): Add tests/signature.h.
5693         * doc/posix-functions/wctob.texi: Mention the new module.
5695 2020-01-01  Bruno Haible  <bruno@clisp.org>
5697         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
5698         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
5699         $(LIB_SETLOCALE).
5701 2020-01-01  Bruno Haible  <bruno@clisp.org>
5703         hard-locale tests: Fix a conflict with the C++ tests.
5704         * modules/hard-locale-tests (Makefile.am): Build a program named
5705         'current-locale', not 'locale'.
5707 2020-01-01  Bruno Haible  <bruno@clisp.org>
5709         doc: Update documentation about wchar_t.
5710         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
5711         wchar_t type.
5713 2020-01-01  Bruno Haible  <bruno@clisp.org>
5715         mbrtowc tests: Fix typos.
5716         * tests/test-mbrtowc.c (main): Fix typo.
5717         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
5719 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5721         maint: update copyright notices
5722         Before doing the following changes done by hand, I also ran ‘make
5723         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
5724         to do most of the copyright years automatically.  A few upstream
5725         sources are still in 2019 but these should eventually be changed
5726         automatically too.
5727         * build-aux/declared.sh (func_version):
5728         * build-aux/libtool-next-version (func_version):
5729         * build-aux/run-test (func_version):
5730         Update these notices by hand.  Put just the last year
5731         in output of programs, as per GNU coding standards.
5733 2019-12-31  Bruno Haible  <bruno@clisp.org>
5735         uchar: Add C++ tests.
5736         * tests/test-uchar-c++.cc: New file.
5737         * tests/test-uchar-c++2.cc: New file.
5738         * modules/uchar-c++-tests: New file.
5740         uchar: Add tests.
5741         * tests/test-uchar.c: New file.
5742         * modules/uchar-tests: New file.
5744         uchar: New module.
5745         * lib/uchar.in.h: New file.
5746         * m4/uchar.m4: New file.
5747         * modules/uchar: New file.
5748         * doc/posix-headers/uchar.texi: Mention the new module.
5750 2019-12-30  Jim Meyering  <meyering@fb.com>
5752         localeinfo: ->simple would be wrong for LC_ALL=C
5753         That would lead to using unnecessary and expensive code paths in dfa.c.
5754         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
5755         error that would have made grep many times slower in the C locale.
5756         With this change, and a file created like this:
5757           yes 00 | head -10000000 > in
5758         Running grep as follows becomes more than 40 times faster:
5759           LC_ALL=C grep -Fw 0 in
5761 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
5763         doc: document trouble with back-references
5764         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
5766 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5768         doc: use “back-reference” for \1 etc.
5769         * doc/regex.texi: Consistently spell “back-reference” with
5770         a hyphen, since that’s how POSIX does it.
5772 2019-12-26  Jim Meyering  <meyering@fb.com>
5774         test-framework-sh: tighten an internal grep regexp
5775         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
5776         that helps test for a working printf.
5778 2019-12-26  Bruno Haible  <bruno@clisp.org>
5780         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
5781         Reported by Paul Eggert in
5782         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
5783         Simplification by Jim Meyering.
5784         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
5785         octal escape sequence in a UTF-8 locale.
5787 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
5789         mbrtowc: port better to narrow-wchar_t platforms
5790         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
5791         wchar_t is too narrow to represent all the Unicode characters,
5792         consider a byte sequence for an out-of-wchar_t-range character to
5793         be an encoding error.  This fixes grep’s surrogate-pair test
5794         failure on AIX 7.2.
5796 2019-12-24  Bruno Haible  <bruno@clisp.org>
5798         localcharset: Avoid referencing rpl_setlocale on native Windows.
5799         * lib/localcharset.c (setlocale): Undefine.
5801 2019-12-24  Bruno Haible  <bruno@clisp.org>
5803         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
5804         * m4/semaphore.m4: New file.
5805         * modules/lock-tests (Files): Add it.
5806         (configure.ac): Require gl_SEMAPHORE.
5807         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
5809 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
5811         strptime: fix typo in previous patch
5812         Problem and fix reported by Bruno Haible in:
5813         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
5814         * lib/strptime.c (day_of_the_week): Fix paren bug.
5816 2019-12-24  Bruno Haible  <bruno@clisp.org>
5818         setlocale-null: Make it easy to rely on the lock in another library.
5819         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
5820         defined.
5822 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5824         gethrxtime, mktime, nstrftime, strptime: tweak division performance
5825         Performanced analyzed by Bruno Haible in:
5826         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
5827         * config/srclist.txt: Do not sync mktime.c for now.
5828         * lib/mktime.c (shr, ydhms_diff):
5829         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
5830         * lib/strptime.c (day_of_the_week):
5831         * lib/xtime.h (xtime_sec):
5832         Redo with neither ‘%’ nor conditional branches.
5834 2019-12-23  Bruno Haible  <bruno@clisp.org>
5836         setlocale-null: Export the lock function also on non-Windows platforms.
5837         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
5838         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
5839         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
5840         * modules/setlocale-null (configure.ac): Invoke it.
5841         (Files): Add m4/visibility.m4.
5843 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5845         gethrxtime: fix rounding bug with negative args
5846         Problem reported by Bruno Haible in:
5847         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
5848         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
5849         with negative rounding.  Common platforms can compute / and % with
5850         a single instruction, so the simplified code should be shorter and
5851         faster on these platforms anyway.
5853 2019-12-22  Bruno Haible  <bruno@clisp.org>
5855         gethrxtime: remove incorrect overflow detection
5856         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
5857         integer overflow, as it didn’t suffice.  This reverts the xtime.h
5858         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
5859         cannot now see the need for anyway (even in cases where it works),
5860         as the patch is helpful only when the signs of S and NS disagree,
5861         and all callers pass nonnegative values for S and NS.
5863 2019-12-22  Bruno Haible  <bruno@clisp.org>
5865         setlocale-null: Add standalone include file.
5866         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
5867         * lib/locale.in.h: Include setlocale_null.h.
5868         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
5869         setlocale_null): Remove declarations.
5870         * lib/setlocale_null.c: Include setlocale_null.h.
5871         * lib/localename.c: Likewise.
5872         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
5873         (Depends-on): Add snippet/arg-nonnull.
5874         (Include): Allow either "setlocale_null.h" or <locale.h>.
5876 2019-12-22  Bruno Haible  <bruno@clisp.org>
5878         strfmon_l: Fix test failures on FreeBSD and Cygwin.
5879         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
5880         AC_RUN_IFELSE test.
5881         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
5882         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
5883         problem.
5885 2019-12-22  Bruno Haible  <bruno@clisp.org>
5887         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
5888         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
5889         unconditional AC_LIBOBJ.
5890         * modules/selinux-at: Likewise.
5891         * modules/xmemdup0: Likewise.
5892         * modules/xstrtoll: Likewise.
5894 2019-12-22  Bruno Haible  <bruno@clisp.org>
5896         longlong: Mark module obsolete.
5897         * modules/longlong (Status, Notice): New sections.
5899         stdint: Assume that the compiler supports 'long long'.
5900         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
5901         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
5902         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
5903         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
5904         AC_TYPE_UNSIGNED_LONG_LONG_INT.
5905         * modules/stdint (Files): Remove longlong.m4.
5906         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
5907         HAVE_UNSIGNED_LONG_LONG_INT.
5909         inttypes-incomplete: Assume that the compiler supports 'long long'.
5910         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
5911         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
5912         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
5913         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
5914         HAVE_LONG_LONG_INT to be 1.
5915         * modules/inttypes-incomplete (Makefile.am): Don't substitute
5916         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
5918         malloca: Assume that the compiler supports 'long long'.
5919         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
5920         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
5921         * modules/malloca (Files): Remove longlong.m4.
5922         * modules/relocatable-prog-wrapper (Files): Likewise.
5924         atoll: Assume that the compiler supports 'long long'.
5925         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
5926         * modules/atoll (Files): Remove longlong.m4.
5928         strtoll: Assume that the compiler supports 'long long'.
5929         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
5930         * modules/strtoll (Files): Remove longlong.m4.
5932         strtoull: Assume that the compiler supports 'long long'.
5933         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
5934         AC_TYPE_UNSIGNED_LONG_LONG_INT.
5935         * modules/strtoull (Files): Remove longlong.m4.
5937         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
5938         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
5939         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
5940         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
5941         AC_TYPE_LONG_LONG_INT.
5942         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
5943         AC_TYPE_UNSIGNED_LONG_LONG_INT.
5944         * modules/strtoimax (Files): Remove longlong.m4.
5945         * modules/strtoumax (Files): Likewise.
5947         xstrtoll: Assume that the compiler supports 'long long'.
5948         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
5949         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
5951         vasnprintf: Assume that the compiler supports 'long long'.
5952         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
5953         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
5954         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
5955         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
5956         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
5957         require AC_TYPE_LONG_LONG_INT.
5958         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
5959         gl_PREREQ_VASNPRINTF): Likewise.
5960         * modules/vasnprintf (Files): Remove longlong.m4.
5961         * modules/c-vasnprintf (Files): Likewise.
5962         * modules/unistdio/u8-vasnprintf (Files): Likewise.
5963         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
5964         * modules/unistdio/u16-vasnprintf (Files): Likewise.
5965         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
5966         * modules/unistdio/u32-vasnprintf (Files): Likewise.
5967         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
5968         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
5970         gethrxtime: Assume that the compiler supports 'long long'.
5971         * lib/xtime.h (xtime_t): Define to 'long long int' always.
5972         (XTIME_PRECISION): Define to 1000000000 always.
5973         (xtime_make, xtime_sec): Optimize accordingly.
5974         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
5975         * modules/gethrxtime (Files): Remove longlong.m4.
5977         integer_length*: Assume that the compiler supports 'long long'.
5978         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
5979         * modules/integer_length (Files): Remove longlong.m4.
5980         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
5981         * modules/integer_length_l (Files): Remove longlong.m4.
5982         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
5983         * modules/integer_length_ll (Files): Remove longlong.m4.
5984         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
5986         count-one-bits: Assume that the compiler supports 'long long'.
5987         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
5988         * m4/count-one-bits.m4: Remove file.
5989         * modules/count-one-bits (Files): Remove it.
5990         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
5991         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
5992         unconditionally.
5994         count-trailing-zeros: Assume that the compiler supports 'long long'.
5995         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
5996         unconditionally.
5997         * m4/count-trailing-zeros.m4: Remove file.
5998         * modules/count-trailing-zeros (Files): Remove it.
5999         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
6000         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
6001         unconditionally.
6003         count-leading-zeros: Assume that the compiler supports 'long long'.
6004         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
6005         unconditionally.
6006         * m4/count-leading-zeros.m4: Remove file.
6007         * modules/count-leading-zeros (Files): Remove it.
6008         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
6009         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
6010         unconditionally.
6012 2019-12-22  Bruno Haible  <bruno@clisp.org>
6014         localcharset: Update support for OpenBSD.
6015         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
6017 2019-12-21  Bruno Haible  <bruno@clisp.org>
6019         pthread_sigmask: Avoid test failure on NetBSD 8.0.
6020         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
6021         NetBSD.
6022         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
6024 2019-12-21  Bruno Haible  <bruno@clisp.org>
6026         threadlib: Improve code structure.
6027         * m4/threadlib.m4: Reorder macros. Add comments.
6029 2019-12-21  Bruno Haible  <bruno@clisp.org>
6031         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
6032         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
6033         here from m4/threads.m4).
6034         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
6035         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
6036         (gl_STDTHREADLIB): New macro.
6037         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
6038         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
6040 2019-12-21  Bruno Haible  <bruno@clisp.org>
6042         sched_yield: Don't depend on threadlib and yield.
6043         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
6044         LIB_SCHED_YIELD.
6045         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
6046         m4/yield.m4).
6047         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
6048         gl_THREADLIB and gl_YIELD.
6049         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
6050         based on $(LIB_SCHED_YIELD).
6051         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
6052         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6053         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
6054         (Depends-on): Remove threadlib.
6055         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6056         * modules/threads-h (Files): Remove m4/yield.m4.
6057         * modules/pthread-cond-tests (Makefile.am): Link the programs against
6058         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6059         * modules/pthread-mutex-tests (Makefile.am): Likewise.
6060         * modules/pthread-once-tests (Makefile.am): Likewise.
6061         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
6062         * modules/pthread-tss-tests (Makefile.am): Likewise.
6064 2019-12-21  Bruno Haible  <bruno@clisp.org>
6066         threads-h: Don't depend on threadlib.
6067         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
6068         not gl_THREADLIB_EARLY.
6070 2019-12-21  Bruno Haible  <bruno@clisp.org>
6072         nl_langinfo tests: Fix link error (regression from 2019-12-18).
6073         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
6074         with $(LIB_SETLOCALE).
6076 2019-12-21  Bruno Haible  <bruno@clisp.org>
6078         threadlib: Remove unused dependency (left over from 2019-07-06).
6079         * modules/threadlib (Depends-on): Remove havelib.
6081 2019-12-21  Bruno Haible  <bruno@clisp.org>
6083         New convention for multithread-safety tests.
6084         * tests/test-setlocale_null-mt-one.c: Renamed from
6085         tests/test-setlocale_null-one.c.
6086         * tests/test-setlocale_null-mt-all.c: Renamed from
6087         tests/test-setlocale_null-all.c.
6088         * modules/setlocale-null-tests (Files, Makefile.am): Update.
6090 2019-12-21  Bruno Haible  <bruno@clisp.org>
6092         quotearg tests: Fix conflict with hard-locale tests.
6093         * tests/testlocale: Renamed from tests/locale.
6094         * modules/quotearg-tests (Files): Update.
6095         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
6097 2019-12-21  Bruno Haible  <bruno@clisp.org>
6099         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
6100         Reported by Daniel Richard G. in
6101         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
6102         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
6103         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
6104         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
6105         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
6106         alternative to PTHREAD_RWLOCK_INITIALIZER.
6107         * lib/glthread/lock.c: Likewise.
6109 2019-12-21  Bruno Haible  <bruno@clisp.org>
6111         memcmp tests: Work around the clang bug.
6112         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
6113         the clang optimization.
6115 2019-12-20  Bruno Haible  <bruno@clisp.org>
6117         localcharset: Add support for z/OS encoding names.
6118         * lib/localcharset.h: Mention which encodings are used as locale
6119         encodings on z/OS.
6121 2019-12-20  Bruno Haible  <bruno@clisp.org>
6123         iconv_open: Add support for z/OS encoding names.
6124         Reported by Daniel Richard G. in
6125         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
6126         * lib/iconv_open-zos.gperf: New file.
6127         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
6128         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
6129         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
6130         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
6131         * doc/posix-functions/iconv_open.texi: Mention z/OS.
6133 2019-12-20  Bruno Haible  <bruno@clisp.org>
6135         doc: Document the problem of the per-thread locale functions on z/OS.
6136         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
6137         * doc/posix-functions/newlocale.texi: Likewise.
6138         * doc/posix-functions/duplocale.texi: Likewise.
6139         * doc/posix-functions/freelocale.texi: Likewise.
6141 2019-12-20  Bruno Haible  <bruno@clisp.org>
6143         localename, gettext: Fix host_os value for z/OS.
6144         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
6145         cross-configuration code.
6147 2019-12-19  Jim Meyering  <meyering@fb.com>
6149         nstrftime: avoid a shadowing warning
6150         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
6151         to avoid shadowing an "i" declared hundreds of lines above.
6153 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6155         dfa: struct dfamust now uses flexible array
6156         * lib/dfa.c: Include flexmember.h.
6157         (dfamust, dfamustfree): Adjust to struct dfamust change.
6158         This saves a call to malloc+free.
6159         * lib/dfa.h (struct dfamust): Make the final member a
6160         flexible array member.
6161         * modules/dfa (Depends-on): Add flexmember.
6163         dfa: fast->small for array elements
6164         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
6165         since this type is used in arrays.  This change is more for
6166         documentation than for any practical effect, since the two types
6167         are the same on all known platforms.
6169 2019-12-19  Bruno Haible  <bruno@clisp.org>
6171         iconv tests: Test canonicalized, not system-dependent, encoding names.
6172         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
6173         * modules/iconv-tests (Depends-on): Add iconv_open.
6175 2019-12-18  Bruno Haible  <bruno@clisp.org>
6177         localename: Fix test failure on AIX 7.2.
6178         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
6179         locales on AIX.
6180         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
6181         locales on AIX.
6183 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6185         Improve port of AC_C_RESTRICT to Oracle C++
6186         Problem reported by Christian Biesinger in:
6187         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
6188         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
6189         Oracle Developer Studio C++ 12.5 or later.
6191 2019-12-18  Bruno Haible  <bruno@clisp.org>
6193         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
6194         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
6196 2019-12-18  Bruno Haible  <bruno@clisp.org>
6198         localename: Ensure multithread-safety in future changes.
6199         * lib/localename.c (setlocale): Reference the system's setlocale().
6200         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
6201         (gl_locale_name_posix): Likewise.
6202         * modules/localename (Depends-on): Add setlocale-null.
6204 2019-12-18  Bruno Haible  <bruno@clisp.org>
6206         setlocale-null: Make API more useful.
6207         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
6208         callers changed.
6209         (setlocale_null): New declaration.
6210         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
6211         extracted from setlocale_null_unlocked.
6212         (setlocale_null_unlocked): Invoke it.
6213         (setlocale_null_r): Renamed from setlocale_null.
6214         (setlocale_null): New function, extracted from setlocale_mtsafe in
6215         setlocale.c.
6216         * lib/setlocale.c: Don't include <errno.h>.
6217         (setlocale_mtsafe): Invoke setlocale_null.
6218         * lib/setlocale-lock.c: Update comments.
6219         * doc/posix-functions/setlocale.texi: Mention both functions.
6221 2019-12-18  Bruno Haible  <bruno@clisp.org>
6223         localename: Optimize code for native Windows.
6224         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
6225         category (not allowed here).
6227 2019-12-18  Bruno Haible  <bruno@clisp.org>
6229         setlocale: Make calls with NULL argument multithread-safe.
6230         * lib/setlocale.c: Include <errno.h>.
6231         (setlocale_mtsafe): New function.
6232         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
6233         (setlocale_improved): Renamed from rpl_setlocale.
6234         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
6235         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
6236         LIB_SETLOCALE.
6237         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
6238         (Link): New section.
6239         * tests/locale.c: Undefine setlocale.
6240         * tests/test-setlocale_null-one.c: Likewise.
6241         * tests/test-setlocale_null-all.c: Likewise.
6242         * modules/setlocale-tests (Makefile.am): Link the test programs with
6243         $(LIB_SETLOCALE).
6244         * modules/astrxfrm-tests (Makefile.am): Likewise.
6245         * modules/btowc-tests (Makefile.am): Likewise.
6246         * modules/c-ctype-tests (Makefile.am): Likewise.
6247         * modules/c-snprintf-tests (Makefile.am): Likewise.
6248         * modules/c-strcase-tests (Makefile.am): Likewise.
6249         * modules/c-vasprintf-tests (Makefile.am): Likewise.
6250         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
6251         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
6252         * modules/dfa-tests (Makefile.am): Likewise.
6253         * modules/duplocale-tests (Makefile.am): Likewise.
6254         * modules/hard-locale-tests (Makefile.am): Likewise.
6255         * modules/localcharset-tests (Makefile.am): Likewise.
6256         * modules/localename-tests (Makefile.am): Likewise.
6257         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6258         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6259         * modules/mbrtowc-tests (Makefile.am): Likewise.
6260         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6261         * modules/mbscasestr-tests (Makefile.am): Likewise.
6262         * modules/mbschr-tests (Makefile.am): Likewise.
6263         * modules/mbscspn-tests (Makefile.am): Likewise.
6264         * modules/mbsinit-tests (Makefile.am): Likewise.
6265         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6266         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6267         * modules/mbspbrk-tests (Makefile.am): Likewise.
6268         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6269         * modules/mbsrchr-tests (Makefile.am): Likewise.
6270         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6271         * modules/mbsspn-tests (Makefile.am): Likewise.
6272         * modules/mbsstr-tests (Makefile.am): Likewise.
6273         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6274         * modules/quotearg-tests (Makefile.am): Likewise.
6275         * modules/regex-tests (Makefile.am): Likewise.
6276         * modules/strfmon_l-tests (Makefile.am): Likewise.
6277         * modules/strtod-tests (Makefile.am): Likewise.
6278         * modules/strtold-tests (Makefile.am): Likewise.
6279         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6280         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6281         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6282         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
6283         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6284         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6285         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6286         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6287         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6288         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6289         * modules/wcrtomb-tests (Makefile.am): Likewise.
6290         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6291         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6292         * modules/wcwidth-tests (Makefile.am): Likewise.
6293         * doc/posix-functions/setlocale.texi: Mention that the multithread-
6294         safety fix is also available in module 'setlocale'.
6296 2019-12-18  Bruno Haible  <bruno@clisp.org>
6298         hard-locale: Make multithread-safe.
6299         * lib/hard-locale.h (hard_locale): Move documentation to here.
6300         * lib/hard-locale.c: Don't include <stdlib.h>.
6301         (GLIBC_VERSION): Remove macro.
6302         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
6303         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
6304         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
6305         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
6306         (Link): New section.
6307         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
6308         $(LIB_HARD_LOCALE).
6310 2019-12-18  Bruno Haible  <bruno@clisp.org>
6312         hard-locale: Avoid test failure on Haiku.
6313         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
6315 2019-12-18  Bruno Haible  <bruno@clisp.org>
6317         setlocale-null: Handle NULL result from setlocale.
6318         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
6319         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
6320         from setlocale or _wsetlocale.
6322 2019-12-18  Bruno Haible  <bruno@clisp.org>
6324         hard-locale: Add test.
6325         * tests/test-hard-locale.c: New file.
6326         * tests/locale.c: New file.
6327         * modules/hard-locale-tests: New file.
6329 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6331         dfa: do not match invalid UTF-8
6332         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
6333         from 5 to 9 tokens; this is needed due to the changes to
6334         add_utf8_anychar.
6335         (charclass_index): 2nd arg is now pointer-to-const.
6336         (add_utf8_anychar): Match only valid UTF-8 byte sequences
6337         instead of allowing overlong encodings or surrogate halves.
6339         dfa: simplify charclass by assuming C99
6340         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
6341         (charclass_word): Now always uint_fast64_t.
6342         (CHARCLASS_PAIR): Remove.
6343         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
6345         fts: tune via calloc
6346         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
6348         dfa: tune via xzalloc
6349         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
6351 2019-12-17  Bruno Haible  <bruno@clisp.org>
6353         localcharset: Fix multithread-safety bug on Windows and OS/2.
6354         * lib/localcharset.h (locale_charset): Clarify when the result becomes
6355         invalid.
6356         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
6357         assemble the result.
6359 2019-12-17  Bruno Haible  <bruno@clisp.org>
6361         localcharset: Optimize code for native Windows.
6362         * lib/localcharset.c (locale_charset): Don't bother calling
6363         setlocale (LC_ALL, NULL) since we're not interested in its result.
6365 2019-12-17  Bruno Haible  <bruno@clisp.org>
6367         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
6368         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
6369         setlocale.
6370         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
6371         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
6372         * modules/nl_langinfo (Depends-on): Add setlocale-null.
6374 2019-12-17  Bruno Haible  <bruno@clisp.org>
6376         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
6377         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
6378         stack-allocated buffer to assemble each result and different static
6379         buffers to return it.
6380         * tests/test-nl_langinfo-mt.c: New file.
6381         * modules/nl_langinfo-tests (Files): Add it.
6382         (Depends-on): Add thread, nanosleep.
6383         (Makefile.am): Build test-nl_langinfo-mt test.
6385 2019-12-17  Bruno Haible  <bruno@clisp.org>
6387         langinfo: Document more details.
6388         * doc/posix-headers/langinfo.texi: List platform details.
6389         * doc/posix-functions/nl_langinfo.texi: Likewise.
6391 2019-12-17  Bruno Haible  <bruno@clisp.org>
6393         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
6394         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
6395         and Martin Storsjö <martin@martin.st>
6396         in <https://savannah.gnu.org/bugs/?57406>.
6397         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
6398         mingw.
6400 2019-12-17  Bruno Haible  <bruno@clisp.org>
6402         glob: Avoid warning on mingw.
6403         Reported by Christian Biesinger <cbiesinger@google.com> in
6404         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
6405         * lib/glob.c (__stat64): Undefine first.
6407 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6409         xalloc: tune xzalloc for fresh allocations
6410         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
6411         because when the memory is freshly allocated from the OS via sbrk
6412         or mmap, calloc can avoid doing the memset.
6414         dfa: new function dfacopysyntax
6415         * lib/dfa.c (struct dfa): Move syntax member later so
6416         that dfacopysyntax can easily clear earlier members.
6417         (dfacopysyntax): New function, used by Gawk.
6419 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6421         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
6422         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
6423         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
6424         if not already defined.
6426         dfa: remove one dependency on MB_CUR_MAX
6427         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
6429         dfa: remove struct lexer_state.cur_mb_len
6430         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
6431         as it’s not needed and the code is simpler without it.
6432         All uses removed.
6434 2019-12-16  Bruno Haible  <bruno@clisp.org>
6436         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
6437         Reported by Arnold Robbins <arnold@skeeve.com>.
6438         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
6439         copied from lib/glthread/lock.h.
6440         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
6441         (setlocale_null_with_lock): If pthread_in_use() is false, use
6442         setlocale_null_unlocked directly.
6443         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
6444         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
6445         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
6446         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
6447         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
6448         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
6450 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6452         dfa: make dfasyntax thread-safe
6453         Problem reported by Bruno Haible in:
6454         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
6455         * lib/dfa.c: Do not include locale.h.
6456         (struct dfa): Remove simple_locale member.
6457         All uses replaced by localeinfo.simple.
6458         (using_simple_locale): Remove; now present (with some
6459         changes) in localeinfo.c.
6460         (dfasyntax): No need to initialize removed member.
6462         localeinfo: record whether locale is simple
6463         * lib/localeinfo.c (using_simple_locale): New function,
6464         copied here from lib/dfa.c but with a change: it uses
6465         strcoll for its heuristic, instead of using setlocale.
6466         This lets it be thread-safe.
6467         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
6469 2019-12-15  Bruno Haible  <bruno@clisp.org>
6471         duplocale: Fix multithread-safety bug on AIX.
6472         * lib/duplocale.c: Don't include <stdlib.h>.
6473         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
6474         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
6475         Set LIB_DUPLOCALE.
6476         * modules/duplocale (Depends-on): Add setlocale-null.
6477         (Link): New section.
6478         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
6479         $(LIB_DUPLOCALE).
6481 2019-12-15  Bruno Haible  <bruno@clisp.org>
6483         setlocale-null: Add tests.
6484         * tests/test-setlocale_null.c: New file.
6485         * tests/test-setlocale_null-one.c: New file.
6486         * tests/test-setlocale_null-all.c: New file.
6487         * modules/setlocale-null-tests: New file.
6489         setlocale-null: New module.
6490         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
6491         setlocale_null): New declarations.
6492         * lib/setlocale_null.c: New file.
6493         * lib/setlocale-lock.c: New file.
6494         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
6495         * m4/setlocale_null.m4: New file.
6496         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
6497         GNULIB_SETLOCALE_NULL.
6498         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
6499         * modules/setlocale-null: New file.
6500         * doc/posix-functions/setlocale.texi: Mention the new module.
6502 2019-12-15  Bruno Haible  <bruno@clisp.org>
6504         lock tests: Skip test when no multithreading is enabled.
6505         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
6507 2019-12-14  Bruno Haible  <bruno@clisp.org>
6509         locale, duplocale, localename: Fix last patch.
6510         Reported by Daniel Richard G. in
6511         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
6512         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
6513         Don't define if locale_t does not exist.
6515 2019-12-13  Bruno Haible  <bruno@clisp.org>
6517         locale, duplocale, localename: Fix errors if locale_t does not exist.
6518         Reported by Daniel Richard G. in
6519         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
6520         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
6521         macros.
6522         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
6523         HAVE_NEWLOCALE.
6524         * tests/test-localename.c: Likewise.
6525         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
6526         HAVE_DUPLOCALE.
6527         * tests/test-locale-c++.cc: Likewise.
6529 2019-12-13  Bruno Haible  <bruno@clisp.org>
6531         wcstok: Fix test failure on HP-UX.
6532         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
6533         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
6535 2019-12-12  Bruno Haible  <bruno@clisp.org>
6537         strtod, strtold tests: Avoid test failure on AIX 7.2.
6538         * tests/test-strtod1.c (main): Allow implementations in which ',' and
6539         '.' both are radix characters.
6540         * tests/test-strtold1.c (main): Likewise.
6542 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6544         dfa: prefer ptrdiff_t for API, too
6545         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
6546         but do this only for internal use for now.
6547         * NEWS: Mention the API change.
6548         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
6549         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
6550         values known to be nonnegative.
6551         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
6552         Prefer idx_t or ptrdiff_t to size_t for API.
6553         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
6554         Prefer ptrdiff_t to size_t for API.
6556         stdalign: port to xlclang 16.01
6557         Problem reportd by Bruno Haible in:
6558         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
6559         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
6560         ((__aligned__ (...))) with xlclang, as a top-level
6561         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
6562         xlclang version 16.01.0000.0001; the alignment directive is ignored.
6564 2019-12-12  Bruno Haible  <bruno@clisp.org>
6566         duplocale: Fix test failure on AIX 7.2 with xlclang.
6567         * lib/duplocale.c: Include <stdlib.h>.
6568         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
6569         value.
6571 2019-12-12  Bruno Haible  <bruno@clisp.org>
6573         stddef: Document the AIX xlc issue.
6574         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
6576 2019-12-12  Bruno Haible  <bruno@clisp.org>
6578         duplocale: Don't attempt to override if locale_t does not exist.
6579         Reported by Daniel Richard G. in
6580         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
6581         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
6582         HAVE_DUPLOCALE to 0.
6584 2019-12-12  Bruno Haible  <bruno@clisp.org>
6586         wcwidth: Avoid test failure on AIX 7.2.
6587         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
6588         negative.
6589         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
6591 2019-12-12  Bruno Haible  <bruno@clisp.org>
6593         ilogbl: Work around Cygwin bug.
6594         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
6595         correct.
6596         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
6598 2019-12-12  Bruno Haible  <bruno@clisp.org>
6600         strtold: Work around Cygwin bug.
6601         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
6602         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
6603         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
6604         STRTOLD_HAS_UNDERFLOW_BUG is defined.
6605         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
6607 2019-12-12  Bruno Haible  <bruno@clisp.org>
6609         strtold: Fix autoconf test.
6610         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
6612 2019-12-11  Bruno Haible  <bruno@clisp.org>
6614         fsync tests: Skip test that is known to fail.
6615         * doc/posix-functions/fsync.texi: Update list of platforms.
6616         * tests/test-fsync.c (main): Skip test with read-only file descriptors
6617         that is known to fail on AIX and Cygwin.
6619 2019-12-11  Bruno Haible  <bruno@clisp.org>
6621         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
6622         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
6623         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
6624         HAVE_GETADDRINFO as a C macro.
6625         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
6626         declare as replacement functions.
6627         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
6628         define as no-op overrides.
6629         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
6630         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
6631         * modules/getaddrinfo (Depends-on, configure.ac): Test
6632         REPLACE_GETADDRINFO.
6633         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
6634         problem.
6635         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
6636         convention problems.
6638 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
6640         dfa: prefer signed integers for internals
6641         Signed integers can be checked more easily for integer overflow.
6642         * lib/dfa.c (position, struct lexer_state, struct parser_state)
6643         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
6644         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
6645         (nsubtoks, copytoks, closure, alloc_position_set, delete)
6646         (replace, state_index, epsclosure, charclass_context)
6647         (state_separate_contexts, merge_nfa_state, dfaoptimize)
6648         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
6649         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
6650         (comsubs, inboth, allocmust):
6651         Prefer a signed to an unsigned integer when calculating indexes,
6652         unless the integer is part of the external API (a bigger deal,
6653         and to be done later).
6655         dfa: fix index overflow
6656         * lib/dfa.c (compare): Avoid integer overflow when analyzing
6657         very large regular expressions.
6659         dfa: update commentary for previous change
6660         * NEWS: Mention the change.
6661         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
6663 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6665         dfa: separate parse and compile phase
6666         ‘dfamust’ must be called after parsing and before tokens are
6667         reordered, but both are executed in the compilation phase.
6668         Token reordering was introduced in Gnulib commit
6669         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
6670         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
6671         * lib/dfa.c (dfaparse): Change it to global function.
6672         (dfacomp): If first argument is NULL, skip parse.
6673         * lib/dfa.h: (dfaparse): Add a prototype.
6675 2019-12-11  Bruno Haible  <bruno@clisp.org>
6677         unistd tests: Fix link error on MSVC.
6678         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
6679         $(LIB_GETLOGIN).
6681 2019-12-11  Bruno Haible  <bruno@clisp.org>
6683         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
6684         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
6685         and POSIX substitutes are supported in C++ mode.
6686         * NEWS: Likewise.
6688 2019-12-11  Bruno Haible  <bruno@clisp.org>
6690         stddef: Fix compilation error in C++ mode on MSVC.
6691         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
6692         instead, include <cstddef>.
6694 2019-12-11  Bruno Haible  <bruno@clisp.org>
6696         unistd: Fix compilation error in C++ mode on MSVC.
6697         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
6698         does not have <unistd.h>.
6700 2019-12-11  Bruno Haible  <bruno@clisp.org>
6702         locale: Fix compilation error in C++ mode on MSVC.
6703         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
6704         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
6705         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
6706         int_n_sep_by_space): Define as macros on MSVC.
6708 2019-12-11  Bruno Haible  <bruno@clisp.org>
6710         wchar: Fix compilation error in C++ mode on MSVC.
6711         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
6713 2019-12-11  Bruno Haible  <bruno@clisp.org>
6715         pthread-thread: Fix compilation error in C++ mode on MSVC.
6716         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
6717         _GL_CXXALIAS_RPL invocation.
6719 2019-12-08  Bruno Haible  <bruno@clisp.org>
6721         Fix compilation errors in C++ mode on Haiku.
6722         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
6723         non-glibc systems.
6724         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
6725         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6726         posix_spawnattr_setschedparam): Likewise.
6727         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
6728         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6729         * lib/unistd.in.h (usleep): Likewise.
6731 2019-12-08  Bruno Haible  <bruno@clisp.org>
6733         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
6734         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
6735         * modules/fseeko (configure.ac-early): Require it instead of
6736         AC_FUNC_FSEEKO.
6737         * modules/ftello (configure.ac-early): Likewise.
6738         * modules/fflush (configure.ac-early): Likewise.
6740 2019-12-08  Bruno Haible  <bruno@clisp.org>
6742         Fix compilation error in C++ mode on HP-UX 11.
6743         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
6744         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
6746 2019-12-08  Bruno Haible  <bruno@clisp.org>
6748         Fix compilation errors on HP-UX 11/ia64.
6749         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
6750         _GL_FUNCDECL_SYS.
6752 2019-12-08  Bruno Haible  <bruno@clisp.org>
6754         Fix compilation error in C++ mode on OpenBSD.
6755         * lib/signal.in.h (signal): Declare on OpenBSD.
6757 2019-12-08  Bruno Haible  <bruno@clisp.org>
6759         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
6760         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
6761         instead of #error.
6763 2019-12-08  Bruno Haible  <bruno@clisp.org>
6765         Fix compilation errors in C++ mode on FreeBSD.
6766         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
6767         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
6768         * lib/threads.in.h (thrd_exit): Likewise.
6769         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
6771 2019-12-08  Bruno Haible  <bruno@clisp.org>
6773         Fix compilation errors in C++ mode on macOS and FreeBSD.
6774         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
6775         or FreeBSD with clang, use the approach without C preprocessor macro.
6777 2019-12-07  Bruno Haible  <bruno@clisp.org>
6779         Fix compilation errors in C++ mode on AIX with xlclang++.
6780         Reported by Christian Biesinger <cbiesinger@google.com> in
6781         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
6782         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
6784 2019-12-07  Bruno Haible  <bruno@clisp.org>
6786         Document compilation error in C++ mode on NetBSD 8.0.
6787         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
6789 2019-12-07  Bruno Haible  <bruno@clisp.org>
6791         Fix compilation errors in C++ mode on Solaris 10.
6792         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
6793         to non-empty on Solaris with a non-GCC compiler.
6794         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
6796 2019-12-07  Bruno Haible  <bruno@clisp.org>
6798         Reword NEWS entry.
6799         * NEWS: Reword the latest NEWS entry.
6801 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
6803         Move xstrtol_fatal to a new xstrtol-error module.
6804         * lib/xstrtol.h: Stop including <getopt.h>.
6805         (xstrtol_fatal): Move ...
6806         * lib/xstrtol-error.h: ... here.  New file.
6807         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
6808         * tests/test-xstrtol.c: Likewise.
6809         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
6810         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
6811         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
6812         * modules/xstrtol-error: New file.
6813         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
6814         * MODULES.html.sh: Add xstrtol-error.
6815         * NEWS: Document the change.
6817 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
6819         nstrftime: better width support for %N, %z
6820         * lib/nstrftime.c (width_add, width_add1, width_cpy):
6821         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
6822         a new WIDTH parameter.
6823         (add, add1, cpy): Use these macros.
6824         (width_add): Do not treat digits == 0 as a special case,
6825         do not pad if padding is ‘-’, and do not use a negative width.
6826         (__strftime_internal): Redo formatting of nanoseconds and numeric
6827         timezones to avoid buffer misuse in unusual cases, and so that
6828         widths make more sense.  Add support for widths greater than 9 to
6829         the %N format; they are zero filled on the right.
6830         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
6832 2019-12-05  Bruno Haible  <bruno@clisp.org>
6834         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
6835         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
6836         set REPLACE_ISFINITE to 1.
6837         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
6838         REPLACE_ISINF to 1.
6839         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
6840         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
6841         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6842         * lib/threads.in.h (call_once): Likewise.
6843         * lib/iconv.in.h (iconv): Likewise.
6845 2019-12-05  Bruno Haible  <bruno@clisp.org>
6847         wchar: Add more C++ tests.
6848         Reported by Christian Biesinger <cbiesinger@google.com> in
6849         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
6850         * tests/test-wchar-c++3.cc: New file.
6851         * modules/wchar-c++-tests (Files): Add it.
6852         (Makefile.am): Compile it.
6854 2019-12-05  Bruno Haible  <bruno@clisp.org>
6856         Add more C++ tests.
6858         assert-h: Add C++ tests.
6859         * tests/test-assert-h-c++.cc: New file.
6860         * tests/test-assert-h-c++2.cc: New file.
6861         * modules/assert-h-c++-tests: New file.
6862         * modules/assert-h-tests: New file.
6864         ctype: Add C++ tests.
6865         * tests/test-ctype-c++.cc: New file.
6866         * tests/test-ctype-c++2.cc: New file.
6867         * modules/ctype-c++-tests: New file.
6868         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
6870         errno: Add C++ tests.
6871         * tests/test-errno-c++.cc: New file.
6872         * tests/test-errno-c++2.cc: New file.
6873         * modules/errno-c++-tests: New file.
6874         * modules/errno-tests (Depends-on): Add errno-c++-tests.
6876         float: Add C++ tests.
6877         * tests/test-float-c++.cc: New file.
6878         * tests/test-float-c++2.cc: New file.
6879         * modules/float-c++-tests: New file.
6880         * modules/float-tests (Depends-on): Add float-c++-tests.
6882         inttypes: Add more C++ tests.
6883         * tests/test-inttypes-c++2.cc: New file.
6884         * modules/inttypes-c++-tests (Files): Add it.
6885         (Makefile.am): Compile it.
6887         limits-h: Add C++ tests.
6888         * tests/test-limits-h-c++.cc: New file.
6889         * tests/test-limits-h-c++2.cc: New file.
6890         * modules/limits-h-c++-tests: New file.
6891         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
6893         stdarg: Add C++ tests.
6894         * tests/test-stdarg-c++.cc: New file.
6895         * tests/test-stdarg-c++2.cc: New file.
6896         * modules/stdarg-c++-tests: New file.
6897         * modules/stdarg-tests: New file.
6899         stdbool: Add C++ tests.
6900         * tests/test-stdbool-c++.cc: New file.
6901         * tests/test-stdbool-c++2.cc: New file.
6902         * modules/stdbool-c++-tests: New file.
6903         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
6905         stddef: Add C++ tests.
6906         * tests/test-stddef-c++.cc: New file.
6907         * tests/test-stddef-c++2.cc: New file.
6908         * modules/stddef-c++-tests: New file.
6909         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
6911         stdint: Add C++ tests.
6912         * tests/test-stdint-c++.cc: New file.
6913         * tests/test-stdint-c++2.cc: New file.
6914         * modules/stdint-c++-tests: New file.
6915         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
6917         wchar: Add more C++ tests.
6918         * tests/test-wchar-c++2.cc: New file.
6919         * modules/wchar-c++-tests (Files): Add it.
6920         (Makefile.am): Compile it.
6922         wctype-h: Add more C++ tests.
6923         * tests/test-wctype-h-c++2.cc: New file.
6924         * modules/wctype-h-c++-tests (Files): Add it.
6925         (Makefile.am): Compile it.
6927 2019-12-04  Bruno Haible  <bruno@clisp.org>
6929         Fix compilation errors in C++ mode with xlclang++ on AIX.
6930         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
6931         C++ mode on AIX.
6932         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
6933         without C preprocessor macro.
6934         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
6935         _GL_CXXALIAS_SYS.
6936         * lib/threads.in.h (thrd_exit): Likewise.
6938 2019-12-04  Bruno Haible  <bruno@clisp.org>
6940         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
6941         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
6942         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
6944 2019-12-04  Bruno Haible  <bruno@clisp.org>
6946         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
6947         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
6948         _GL_CXXALIASWARN invocation on non-glibc systems.
6949         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
6950         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
6951         iswctype, towlower, towupper): Likewise.
6953 2019-12-03  Bruno Haible  <bruno@clisp.org>
6955         Avoid hassles caused by [[noreturn]] in C++.
6956         Reported by Christian Biesinger <cbiesinger@google.com> in
6957         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
6958         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
6959         * lib/_Noreturn.h: Likewise.
6961 2019-12-02  Bruno Haible  <bruno@clisp.org>
6963         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
6964         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
6965         LIBMULTITHREAD.
6966         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
6967         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
6968         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
6969         gl_THREADLIB.
6970         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
6972 2019-12-02  Bruno Haible  <bruno@clisp.org>
6974         Fix some more link errors with --enable-threads=isoc.
6975         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
6976         * modules/pthread-rwlock (Depends-on): Likewise.
6978 2019-12-02  Bruno Haible  <bruno@clisp.org>
6980         Fix link errors with --enable-threads=posix on AIX.
6981         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
6982         program with $(LIBTHREAD).
6983         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
6984         program with $(LIBTHREAD).
6986 2019-12-02  Bruno Haible  <bruno@clisp.org>
6988         Fix link errors with --enable-threads=posix on AIX.
6989         * modules/mbrtowc (Link): New section.
6990         * modules/acl (Link): Likewise.
6991         * modules/argmatch (Link): Likewise.
6992         * modules/backup-rename (Link): Likewise.
6993         * modules/backupfile (Link): Likewise.
6994         * modules/closein (Link): Likewise.
6995         * modules/closeout (Link): Likewise.
6996         * modules/copy-file (Link): Likewise.
6997         * modules/csharpcomp (Link): Likewise.
6998         * modules/csharpexec (Link): Likewise.
6999         * modules/dfa (Link): Likewise.
7000         * modules/exclude (Link): Likewise.
7001         * modules/fnmatch (Link): Likewise.
7002         * modules/fnmatch-gnu (Link): Likewise.
7003         * modules/fnmatch-posix (Link): Likewise.
7004         * modules/glob (Link): Likewise.
7005         * modules/human (Link): Likewise.
7006         * modules/javacomp (Link): Likewise.
7007         * modules/javaexec (Link): Likewise.
7008         * modules/javaversion (Link): Likewise.
7009         * modules/mbfile (Link): Likewise.
7010         * modules/mbiter (Link): Likewise.
7011         * modules/mbmemcasecmp (Link): Likewise.
7012         * modules/mbmemcasecoll (Link): Likewise.
7013         * modules/mbrlen (Link): Likewise.
7014         * modules/mbscasecmp (Link): Likewise.
7015         * modules/mbscasestr (Link): Likewise.
7016         * modules/mbschr (Link): Likewise.
7017         * modules/mbscspn (Link): Likewise.
7018         * modules/mbsinit (Link): Likewise.
7019         * modules/mbslen (Link): Likewise.
7020         * modules/mbsncasecmp (Link): Likewise.
7021         * modules/mbsnlen (Link): Likewise.
7022         * modules/mbsnrtowcs (Link): Likewise.
7023         * modules/mbspbrk (Link): Likewise.
7024         * modules/mbspcasecmp (Link): Likewise.
7025         * modules/mbsrchr (Link): Likewise.
7026         * modules/mbsrtowcs (Link): Likewise.
7027         * modules/mbssep (Link): Likewise.
7028         * modules/mbsspn (Link): Likewise.
7029         * modules/mbsstr (Link): Likewise.
7030         * modules/mbstok_r (Link): Likewise.
7031         * modules/mbswidth (Link): Likewise.
7032         * modules/mbuiter (Link): Likewise.
7033         * modules/mkdir-p (Link): Likewise.
7034         * modules/propername (Link): Likewise.
7035         * modules/quote (Link): Likewise.
7036         * modules/quotearg (Link): Likewise.
7037         * modules/quotearg-simple (Link): Likewise.
7038         * modules/regex-quote (Link): Likewise.
7039         * modules/rpmatch (Link): Likewise.
7040         * modules/sh-quote (Link): Likewise.
7041         * modules/system-quote (Link): Likewise.
7042         * modules/trim (Link): Likewise.
7043         * modules/unistdio/ulc-asnprintf (Link): Likewise.
7044         * modules/unistdio/ulc-fprintf (Link): Likewise.
7045         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
7046         * modules/unistdio/ulc-vasprintf (Link): Likewise.
7047         * modules/unistdio/ulc-vfprintf (Link): Likewise.
7048         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
7049         * modules/unistdio/ulc-vsprintf (Link): Likewise.
7050         * modules/xfreopen (Link): Likewise.
7051         * modules/xmemcoll (Link): Likewise.
7052         * modules/yesno (Link): Likewise.
7053         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
7054         * modules/argmatch-tests (Makefile.am): Likewise.
7055         * modules/closein-tests (Makefile.am): Likewise.
7056         * modules/copy-file-tests (Makefile.am): Likewise.
7057         * modules/dfa-tests (Makefile.am): Likewise.
7058         * modules/fnmatch-tests (Makefile.am): Likewise.
7059         * modules/glob-tests (Makefile.am): Likewise.
7060         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7061         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7062         * modules/mbrtowc-tests (Makefile.am): Likewise.
7063         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7064         * modules/mbscasestr-tests (Makefile.am): Likewise.
7065         * modules/mbschr-tests (Makefile.am): Likewise.
7066         * modules/mbscspn-tests (Makefile.am): Likewise.
7067         * modules/mbsinit-tests (Makefile.am): Likewise.
7068         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7069         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7070         * modules/mbspbrk-tests (Makefile.am): Likewise.
7071         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7072         * modules/mbsrchr-tests (Makefile.am): Likewise.
7073         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7074         * modules/mbsspn-tests (Makefile.am): Likewise.
7075         * modules/mbsstr-tests (Makefile.am): Likewise.
7076         * modules/quotearg-tests (Makefile.am): Likewise.
7077         * modules/quotearg-simple-tests (Makefile.am): Likewise.
7078         * modules/readtokens-tests (Makefile.am): Likewise.
7079         * modules/regex-quote-tests (Makefile.am): Likewise.
7080         * modules/sh-quote-tests (Makefile.am): Likewise.
7081         * modules/system-quote-tests (Makefile.am): Likewise.
7082         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
7083         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7084         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
7085         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
7086         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
7087         * modules/yesno-tests (Makefile.am): Likewise.
7089 2019-12-02  Bruno Haible  <bruno@clisp.org>
7091         Simplify link sections.
7092         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
7093         * modules/lock (Link): Likewise.
7094         * modules/cond (Link): Likewise.
7095         * modules/tls (Link): Likewise.
7096         * modules/yield (Link): Likewise.
7097         * modules/regex (Link): Likewise.
7098         * modules/localename (Link): Likewise.
7099         * modules/unicase/locale-language (Link): Likewise.
7100         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
7102 2019-12-02  Bruno Haible  <bruno@clisp.org>
7104         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
7105         * tests/test-thread_self.c (main): Disable test on AIX.
7107 2019-12-01  Bruno Haible  <bruno@clisp.org>
7109         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
7110         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
7111         gl_THREADLIB_EARLY_BODY.
7112         (gl_THREADLIB_EARLY_BODY): Invoke it.
7113         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
7114         (gl_THREADLIB_BODY): Invoke it.
7115         (gl_PTHREADLIB): New macro.
7116         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
7117         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
7118         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
7119         * modules/pthread-h (Files): Add threadlib.m4.
7120         (Depends-on): Remove threadlib.
7121         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
7122         and _THREAD_SAFE here.
7123         (Link): Use LIBPTHREAD, not LIBTHREAD.
7124         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
7125         LIBMULTITHREAD.
7126         * modules/pthread-once (Link): Likewise.
7127         * modules/pthread-mutex (Link): Likewise.
7128         * modules/pthread-rwlock (Link): Likewise.
7129         * modules/pthread-cond (Link): Likewise.
7130         * modules/pthread-tss (Link): Likewise.
7131         * modules/pthread-spin (Link): Likewise.
7132         * modules/pthread (Link): Likewise.
7133         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
7134         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
7135         * modules/pthread-once-tests (test_pthread_once1_LDADD,
7136         test_pthread_once2_LDADD): Likewise.
7137         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
7138         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
7139         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
7140         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
7142 2019-12-01  Bruno Haible  <bruno@clisp.org>
7144         cond: State linking requirements.
7145         * modules/cond (Link): New section.
7147 2019-12-01  Bruno Haible  <bruno@clisp.org>
7149         threadlib: Remove unnecessary file (left over from 2019-07-06).
7150         * modules/threadlib (Files): Remove config.rpath.
7152 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
7154         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
7155         Reported by Dagobert Michelsen <dam@opencsw.org> in
7156         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
7157         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
7158         list of strings instead of one string.
7159         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
7160         * pygnulib/GLImport.py (execute): Likewise.
7162 2019-11-27  Bruno Haible  <bruno@clisp.org>
7164         openpty, forkpty: Fix build error on Solaris 11.4.
7165         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
7166         also in <termios.h>.
7167         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
7168         of the function also in <termios.h>.
7169         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
7170         * doc/glibc-functions/forkpty.texi: Likewise.
7172 2019-11-27  Bruno Haible  <bruno@clisp.org>
7174         New options --enable-threads=isoc and --enable-threads=isoc+posix.
7175         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
7176         --enable-threads=isoc and --enable-threads=isoc+posix.
7177         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
7178         When both the ISO C and the POSIX threads API are available, choose
7179         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
7180         --enable-threads=isoc+posix was specified. When only the ISO C threads
7181         API is available and --enable-threads=iso was specified, choose
7182         USE_ISOC_THREADS.
7183         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
7184         USE_ISOC_AND_POSIX_THREADS.
7185         * lib/glthread/lock.c: Likewise.
7186         * lib/glthread/cond.h: Likewise.
7187         * lib/glthread/cond.c: Likewise.
7188         * lib/glthread/tls.h: Likewise.
7189         * lib/glthread/tls.c: Likewise.
7190         * lib/glthread/yield.h: Likewise.
7191         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
7192         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
7193         * lib/glthread/thread.c: Likewise.
7194         * lib/glthread/threadlib.c: Likewise.
7195         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
7196         USE_ISOC_AND_POSIX_THREADS.
7197         * tests/test-cond.c: Consider USE_ISOC_THREADS and
7198         USE_ISOC_AND_POSIX_THREADS.
7199         * tests/test-tls.c: Likewise.
7200         * tests/test-thread_create.c (main): Likewise.
7201         * tests/test-pthread-cond.c: Likewise.
7202         * tests/test-pthread-mutex.c: Likewise.
7203         * tests/test-pthread-once2.c: Likewise.
7204         * tests/test-pthread-rwlock.c: Likewise.
7205         * tests/test-pthread-tss.c: Likewise.
7206         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
7207         USE_POSIX_THREADS.
7209 2019-11-24  Bruno Haible  <bruno@clisp.org>
7211         mbrtowc: Modernize autoconf test.
7212         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
7213         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
7214         try a UTF-8 locale.
7215         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
7217 2019-11-24  Bruno Haible  <bruno@clisp.org>
7219         Fix errors in C++ mode on mingw.
7220         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
7221         instead of _GL_CXXALIAS_SYS.
7222         * lib/signal.in.h (pthread_sigmask): Likewise.
7223         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
7224         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7225         Likewise.
7226         * lib/wchar.in.h (btowc): Likewise.
7228 2019-11-24  Bruno Haible  <bruno@clisp.org>
7230         sys_time: Fix errors in C++ mode on mingw.
7231         * lib/sys_time.in.h (timeval): Restore the redirection
7232         '#define timeval rpl_timeval', for when the symbol timeval is being used
7233         outside the 'gnulib' namespace.
7234         * lib/sys_select.in.h (select): In C++, write 'timeval', not
7235         'struct timeval'.
7237 2019-11-24  Bruno Haible  <bruno@clisp.org>
7239         iswctype: Fix errors in C++ mode on mingw.
7240         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
7241         is 1.
7242         * lib/iswctype.c (iswctype): Add another implementation, for the
7243         GNULIB_defined_wint_t case.
7244         * modules/iswctype (configure.ac): Compile iswctype.c also if
7245         GNULIB_OVERRIDES_WINT_T is 1.
7247 2019-11-24  Bruno Haible  <bruno@clisp.org>
7249         windows-timedmutex: Fix errors in C++ mode on mingw.
7250         * lib/windows-timedmutex.h: Add closing brace.
7252 2019-11-24  Bruno Haible  <bruno@clisp.org>
7254         Fix errors in C++ mode on Cygwin.
7255         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
7256         _GL_CXXALIAS_SYS.
7258 2019-11-24  Bruno Haible  <bruno@clisp.org>
7260         time_r: Fix for mingw (regression from 2019-11-16).
7261         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
7262         AC_LINK_IFELSE test only if the function does not appear to exist.
7264 2019-11-24  Bruno Haible  <bruno@clisp.org>
7266         wcstok: Add tests.
7267         * tests/test-wcstok.c: New file.
7268         * modules/wcstok-tests: New file.
7270 2019-11-24  Bruno Haible  <bruno@clisp.org>
7272         wcstok: Work around wrong signature on native Windows.
7273         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
7274         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
7275         REPLACE_WCSTOK.
7276         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
7277         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
7278         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
7279         * doc/posix-functions/wcstok.texi: Mention the problem.
7281 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
7283         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
7284         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
7285         remove workaround for GCC bug 91450 as the bug should be fixed
7286         there too.
7288 2019-11-21  Bruno Haible  <bruno@clisp.org>
7290         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
7291         Reported by Christian Biesinger <cbiesinger@google.com> in
7292         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
7293         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
7294         non-glibc systems.
7295         * lib/locale.in.h (localeconv, setlocale): Likewise.
7296         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
7297         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
7298         rint, round, trunc): Likewise.
7299         * lib/monetary.in.h (strfmon_l): Likewise.
7300         * lib/pthread.in.h (pthread_mutexattr_getrobust,
7301         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
7302         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
7303         pthread_spin_destroy): Likewise.
7304         * lib/signal.in.h (raise, signal): Likewise.
7305         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
7306         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
7307         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
7308         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
7309         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
7310         Likewise.
7311         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
7312         Likewise.
7313         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
7314         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
7315         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
7316         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
7317         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
7318         wcsftime): Likewise.
7319         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
7321 2019-11-21  Bruno Haible  <bruno@clisp.org>
7323         Fix various errors in _GL_CXXALIAS_SYS invocations.
7324         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
7325         _GL_CXXALIAS_SYS.
7326         * lib/pthread.in.h (pthread_mutexattr_gettype,
7327         pthread_mutexattr_getrobust): Likewise.
7328         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
7329         * lib/sys_socket.in.h (recv, send): Likewise.
7330         * lib/unistd.in.h (getdtablesize): Likewise.
7331         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
7332         'struct timeval'.
7334 2019-11-21  Bruno Haible  <bruno@clisp.org>
7336         math tests: Update after 2019-08-28 change.
7337         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
7338         return type of 'bool', not 'int'.
7340 2019-11-21  Bruno Haible  <bruno@clisp.org>
7342         pthread-spin: Fix errors in C++ mode.
7343         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
7344         functions as nonexistent when <pthread.h> exists but does not define
7345         the pthread_spinlock_t type.
7347 2019-11-21  Bruno Haible  <bruno@clisp.org>
7349         pthread-mutex: Fix errors in C++ mode.
7350         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
7351         pthread_mutexattr_getrobust exists. If not, define
7352         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
7353         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
7354         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
7355         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
7356         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
7357         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
7358         definition.
7360 2019-11-19  Bruno Haible  <bruno@clisp.org>
7362         threads-h tests: Fix typo.
7363         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
7365 2019-11-19  Bruno Haible  <bruno@clisp.org>
7367         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
7368         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
7369         to 'const pthread_attr_t *'.
7370         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
7371         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
7373 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7375         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
7376         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
7377         work around GCC bug 91450 as the bug should be fixed there.
7379 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7381         glob: get closer to glibc glob.c
7382         Omit differences from glibc when the differences don’t matter.
7383         * lib/glob.c [_LIBC]: Include shlib-compat.h.
7384         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
7385         (glob_lstat): New function.
7386         (glob_in_dir): Use it.
7387         (GLOB_ATTRIBUTE): Define to empty if not already defined.
7388         Use changed.
7390 2019-11-18  Bruno Haible  <bruno@clisp.org>
7392         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
7393         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
7394         UINTPTR_MAX): Consider _WIN64.
7395         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
7396         a pointer.
7398 2019-11-18  Bruno Haible  <bruno@clisp.org>
7400         stdint: Fix value of WINT_MAX when we override wint_t.
7401         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
7402         when GNULIB_OVERRIDES_WINT_T is 1.
7404 2019-11-18  Bruno Haible  <bruno@clisp.org>
7406         vcs-to-changelog: New module.
7407         * modules/vcs-to-changelog: New file.
7408         * MODULES.html.sh (func_all_modules): Add it.
7410 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7412         vcs-to-changelog: New script to generate ChangeLog-like output.
7413         Discussion:
7414         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
7415         * build-aux/vcs_to_changelog.py: New file.
7416         * build-aux/vcstocl/frontend_c.py: New file.
7417         * build-aux/vcstocl/misc_util.py: New file.
7418         * build-aux/vcstocl/vcs_git.py: New file.
7420 2019-11-18  Bruno Haible  <bruno@clisp.org>
7422         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
7423         Reported by Keith Marshall <keith@users.osdn.me> in
7424         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
7425         and <https://osdn.net/projects/mingw/ticket/39677>.
7426         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
7427         already been defined by mingw's <crtdefs.h>.
7429 2019-11-18  Bruno Haible  <bruno@clisp.org>
7431         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
7432         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
7433         conditionally enabled.
7435 2019-11-18  Bruno Haible  <bruno@clisp.org>
7437         gc: Mirror libgcrypt.m4 from libgcrypt.
7438         * config/srclistvars.sh (LIBGCRYPT): New variable.
7439         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
7441 2019-11-17  Bruno Haible  <bruno@clisp.org>
7443         locale, localename: Improve z/OS support.
7444         Reported by Daniel Richard G. in
7445         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
7446         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
7447         gl_LOCALE_H.
7448         (gl_LOCALE_H): Require it.
7449         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
7450         defined, don't even check for newlocale, duplocale, freelocale.
7451         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
7452         locale_t is not defined.
7454 2019-11-17  Bruno Haible  <bruno@clisp.org>
7456         havelib: Make libdirstems processing more flexible.
7457         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
7458         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
7459         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
7460         patch from 2017-02-19).
7461         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
7462         libdirs, even when the first one exists as a directory.
7464 2019-11-17  Bruno Haible  <bruno@clisp.org>
7466         havelib: Match the bitness when searching for libraries.
7467         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
7468         acl_is_expected_elfclass.
7469         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
7470         file exists, in ELF, also test whether it has the ELF class that
7471         corresponds to the host's bitness.
7473 2019-11-17  Bruno Haible  <bruno@clisp.org>
7475         host-cpu-c-abi: Add support for unknown CPUs.
7476         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
7477         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
7478         32-bit or 64-bit.
7480 2019-11-17  Bruno Haible  <bruno@clisp.org>
7482         havelib: Remove redundant code.
7483         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
7484         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
7486 2019-11-17  Bruno Haible  <bruno@clisp.org>
7488         havelib: Fix a bug in dependency processing.
7489         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
7490         of .la files, don't overwrite the value of additional_libdir for the
7491         next rounds.
7493 2019-11-16  Bruno Haible  <bruno@clisp.org>
7495         wctype-h: When overriding wint_t, override also the related functions.
7496         Reported by Christian Biesinger <cbiesinger@google.com> in
7497         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
7498         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
7499         REPLACE_ISWCNTRL to 1.
7500         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
7501         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
7502         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
7503         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
7504         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
7505         on mingw.
7506         * doc/posix-headers/wctype.texi: Likewise.
7508 2019-11-16  Bruno Haible  <bruno@clisp.org>
7510         time_r: Fix for mingw.
7511         Reported by Christian Biesinger <cbiesinger@google.com> in
7512         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
7513         * lib/time.in.h: On mingw, include <unistd.h>.
7514         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
7515         <time.h>. Test for localtime_r in a way that works when it is defined
7516         as an inline function.
7518 2019-11-13  Bruno Haible  <bruno@clisp.org>
7520         havelib: Revert last change.
7521         * build-aux/config.rpath: Revert last change. We can add msys2 support
7522         when it has been added to libtool.m4 upstream.
7524 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7526         config: add msys support
7527         Requested by Arnold Robbins in:
7528         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
7529         He also requested a change to config.guess, which I’ll forward
7530         upstream.
7531         * build-aux/ar-lib (func_file_conv):
7532         * build-aux/compile (func_file_conv):
7533         * build-aux/config.rpath (wl, with_gnu_ld)
7534         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
7535         Treat msys like cygwin.
7537 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7539         regex: now back in sync with glibc
7540         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
7541         regexec.c got merged into glibc and are now copies again.
7543 2019-10-27  Bruno Haible  <bruno@clisp.org>
7545         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
7546         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
7547         statement.
7548         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
7549         32-bit CPUs.
7551 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
7553         timespec-add, timespec-sub: simplify
7554         * lib/timespec-add.c (timespec_add):
7555         * lib/timespec-sub.c (timespec_sub):
7556         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
7557         work on unsigned integers.
7559 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7561         nstrftime: speed up integer overflow checking
7562         * lib/nstrftime.c: Include intprops.h.
7563         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
7564         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
7565         instead of doing it by hand.
7566         * modules/nstrftime (Depends-on): Add intprops.
7568         Port better to GCC under macOS
7569         Work around macOS header that has ‘#define __has_builtin(x) 0’
7570         when compiled by GCC.  Apple really, really doesn’t want you to
7571         use GCC, apparently.  Rroblem reported by Akim Demaille in:
7572         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
7573         The fix is to not trust __has_builtin when being compiled by
7574         recent-enough GCC.
7575         * lib/intprops.h (__has_builtin)
7576         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
7577         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
7578         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
7579         Remove.  All uses removed.
7580         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
7581         directly, if defined and if not newer GCC.
7582         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
7583         New macro, that use __has_builtin directly, if defined and if
7584         not newer GCC.
7585         (assume): Use them.
7587 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
7589         maintainer-makefile: update rule for argmatch.
7590         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
7592 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
7594         bitset: let freeing functions accept NULL.
7595         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
7596         given NULL.
7597         * lib/bitset.h: Document that.
7598         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
7600 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
7602         inttypes: use more-robust test for int range
7603         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
7604         Problem reported by Dagobert Michelsen in:
7605         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
7606         * lib/inttypes.in.h: Rely only on limits.h when checking
7607         int range.
7609 2019-10-15  Bruno Haible  <bruno@clisp.org>
7611         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
7612         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
7613         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
7614         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
7615         term_ostream_set_hyperlink): New functions.
7616         (term_styled_ostream_get_hyperlink_ref,
7617         term_styled_ostream_get_hyperlink_id,
7618         term_styled_ostream_set_hyperlink): New function aliases.
7620 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
7622         update-copyright: use en dashes in .texi ranges
7623         * build-aux/update-copyright: Match year ranges like "1998--2019",
7624         which are used in the Autoconf manual.  Also, update ranges in
7625         .tex, .texi, and .texinfo files to use en dashes instead of
7626         hyphens.
7628 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7630         * config/srclist.txt: Remove posix/regex_internal.c for now.
7632 2019-10-13  Bruno Haible  <bruno@clisp.org>
7634         git-version-gen: Allow 'snapshot' as .tarball-version contents.
7635         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
7636         contents to the empty string.
7638 2019-10-12  Bruno Haible  <bruno@clisp.org>
7640         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
7641         * tests/test-intprops.c (main): Disable two more tests when using
7642         HP-UX cc.
7644 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7646         Simplify and regularize regex use of ‘assert’
7647         Also, tell GCC about the asserts even when compiling without
7648         debugging, to give it further optimization opportunities.
7649         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
7650         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
7651         (parse_expression, parse_bracket_exp):
7652         * lib/regex_internal.c (build_wcs_buffer)
7653         (build_wcs_upper_buffer, re_string_reconstruct)
7654         (re_string_context_at):
7655         * lib/regexec.c (re_search_stub, re_copy_regs)
7656         (re_search_internal, prune_impossible_nodes, check_matching)
7657         (check_halt_state_context, set_regs, sift_states_backward)
7658         (build_sifted_states, transit_state_mb, transit_state_bkref)
7659         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
7660         (match_ctx_add_subtop):
7661         Use it instead of plain ‘assert’.
7663 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
7665         regex: omit debug assignment when not debugging
7666         * lib/regexec.c (re_search_internal) [!DEBUG]:
7667         Remove unnecessary assignment.
7669         regex: tell compiler there’s at most 256 arcs out
7670         Partly this is to help the reader (and maybe help GCC);
7671         partly this is to pacify Coverity.
7672         * lib/regex_internal.h: Include verify.h.
7673         * lib/regexec.c (group_nodes_into_DFAstates):
7674         Tell the compiler that ndests cannot exceed SBC_MAX.
7675         * modules/regex (Depends-on): Add ‘verify’.
7677         regex: simplify by assuming C99
7678         * config/srclist.txt: Comment out regex_internal.h and regexec.c
7679         temporarily.
7680         * lib/regex_internal.h (lock_define, re_match_context_t):
7681         Simplify by assuming C99 macros and const.
7682         * lib/regexec.c (re_search_internal): Simplify by assuming C99
7683         initializers.  Remove unnecessary assignment, as mctx is now
7684         safely initialized earlier.
7686         regex: avoid copying of uninitialized storage
7687         * config/srclist.txt: Comment out regcomp.c temporarily.
7688         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
7689         Initialize even when not checking for lint, as the behavior is
7690         arguably undefined otherwise and Coverity warns about it.
7692 2019-10-06  Bruno Haible  <bruno@clisp.org>
7694         access tests: Fix test failure when run as root.
7695         * tests/test-access.c: Include root-uid.h.
7696         (geteuid): Define fallback.
7697         (main): Don't expect that writing to a read-only file would fail when
7698         running as root. Also, remove the created files at the end.
7699         * modules/access-tests (Depends-on): Add root-uid.
7700         (configure.ac): Test whether geteuid exists.
7702 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
7704         users.txt: add GNU nano
7705         Nano has been making use of gnulib since March 2017, version 2.8.0.
7707 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7709         bootstrap: simplify debugging of wget failures
7710         Problem reported by Tim Rühsen in:
7711         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
7712         * build-aux/bootstrap (po_download_command_format):
7713         Invoke wget with -nv instead of -q, to make debugging easier.
7715 2019-09-29  Bruno Haible  <bruno@clisp.org>
7717         avltree-list: Fix compilation warning (introduced on 2014-09-16).
7718         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
7719         'const' attribute.
7721 2019-09-29  Bruno Haible  <bruno@clisp.org>
7723         fbufmode: Fix compilation error on glibc >= 2.28 systems.
7724         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
7726 2019-09-28  Bruno Haible  <bruno@clisp.org>
7728         Update comments that refer to POSIX.
7729         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
7730         sentence about trailing slashes.
7731         * lib/fflush.c: Clarify the reasoning.
7732         * tests/test-fflush2.c: Cite the relevant sentence.
7734 2019-09-28  Bruno Haible  <bruno@clisp.org>
7736         access: Document limitations on Windows.
7737         Suggested by Zaretskii <eliz@gnu.org>.
7738         * doc/posix-functions/access.texi: Mention two limitations on Windows.
7740 2019-09-28  Bruno Haible  <bruno@clisp.org>
7742         findprog-in: Fix comment.
7743         Reported by Eli Zaretskii <eliz@gnu.org>.
7744         * lib/findprog.h (find_in_given_path): Extend description of EACCES
7745         condition.
7746         * lib/stat.c (rpl_stat): Fix typo in comment.
7747         * lib/utime.c (_gl_utimens_windows): Likewise.
7749 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7751         Update URLs and associated text
7752         (Thanks to Bruno Haible for proofreading this patch.)
7753         Prefer https: to http: in URLs where either will do, for the usual
7754         security reasons.  I also updated broken and/or moved URLs
7755         discovered during the process. In a few places I had to resort to
7756         archive.org, since I didn't find the originals elsewhere.
7758 2019-09-15  Paul Smith  <psmith@gnu.org>
7759             Bruno Haible  <bruno@clisp.org>
7761         findprog-in: Set errno when the search fails.
7762         * lib/findprog-in.c: Include <errno.h>.
7763         (find_in_given_path): Set errno before returning NULL.
7764         * lib/findprog.h (find_in_given_path): Update comment accordingly.
7765         Define the term "slash".
7767 2019-09-15  Bruno Haible  <bruno@clisp.org>
7769         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
7770         * modules/findprog (Depends-on): Add access.
7771         * modules/findprog-lgpl (Depends-on): Likewise.
7772         * modules/findprog-in (Depends-on): Likewise.
7774 2019-09-15  Bruno Haible  <bruno@clisp.org>
7776         access: Add tests.
7777         * tests/test-access.c: New file.
7778         * modules/access-tests: New file.
7780         access: New module.
7781         * lib/unistd.in.h (access): New declaration.
7782         * lib/access.c: New file.
7783         * m4/access.m4: New file.
7784         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
7785         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
7786         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
7787         REPLACE_ACCESS.
7788         * modules/access: New file.
7789         * tests/test-unistd-c++.cc (access): Check signature.
7790         * doc/posix-functions/access.texi: Mention the new module.
7792 2019-09-15  Bruno Haible  <bruno@clisp.org>
7794         fcntl-h: Fix compilation error of creat.c on MSVC.
7795         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
7796         defined.
7798 2019-09-15  Bruno Haible  <bruno@clisp.org>
7800         creat: Add tests.
7801         * tests/test-creat.c: New file, based on tests/test-open.h.
7802         * modules/creat-tests: New file.
7804         creat: New module.
7805         * lib/fcntl.in.h (creat): New declaration.
7806         * lib/creat.c: New file, based on lib/open.c.
7807         * m4/creat.m4: New file.
7808         * m4/open-slash.m4: New file, extracted from m4/open.m4.
7809         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
7810         Invoke gl_OPEN_TRAILING_SLASH_BUG.
7811         * modules/open (Files): Add m4/open-slash.m4.
7812         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
7813         REPLACE_CREAT.
7814         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
7815         * modules/creat: New file.
7816         * tests/test-fcntl-h-c++.cc (creat): Check signature.
7817         * doc/posix-functions/creat.texi: Mention the new module.
7819 2019-09-15  Bruno Haible  <bruno@clisp.org>
7821         open tests: Enhance test.
7822         * tests/test-open.h (test_open): Test the creation of an executable
7823         regular file. Also improve initial cleanup.
7825 2019-09-15  Bruno Haible  <bruno@clisp.org>
7827         intprops tests: Avoid build failure with HP-UX cc.
7828         * tests/test-intprops.c: Disable a check that makes HP cc choke with
7829         "error 4018: Macro param too large after substitution - use -H option.".
7831 2019-09-14  Bruno Haible  <bruno@clisp.org>
7833         Make autoconf tests work with -Werror=implicit-function-declaration.
7834         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
7835         towupper() declaration.
7836         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
7837         declaration.
7839 2019-09-14  Bruno Haible  <bruno@clisp.org>
7841         findprog-in: Better mimic the system on native Windows.
7842         Reported by Paul Smith <psmith@gnu.org>.
7843         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
7844         non-empty suffixes when the file name already contains a '.'.
7846 2019-09-10  Bruno Haible  <bruno@clisp.org>
7848         wctob: Fix autoconf test.
7849         Based on patch by Florian Weimer <fweimer@redhat.com>.
7850         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
7852 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
7854         xhash: provide hash_xinitialize.
7855         Suggested by Egor Pugin <egor.pugin@gmail.com>
7856         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
7857         * modules/xhash, lib/xhash.c: New.
7858         * lib/hash.h (hash_xinitialize): New.
7860 2019-09-09  Bruno Haible  <bruno@clisp.org>
7862         findprog-in: Make exec optimization optional.
7863         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
7864         (find_in_given_path): Add optimize_for_exec parameter.
7865         * lib/findprog-in.c (find_in_given_path): Likewise.
7867 2019-09-08  Bruno Haible  <bruno@clisp.org>
7869         Add option to assume the best, not the worst, when cross-compiling.
7870         Suggested by Jonas Termansen <sortie@maxsi.org>.
7871         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
7872         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
7873         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
7874         lt_cv_sys_argz_works.
7875         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
7876         ac_cv_func_calloc_0_nonnull.
7877         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
7878         --enable-cross-guesses for gl_cv_func_realpath_works.
7879         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
7880         gl_cv_func_cbrtl_ieee.
7881         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
7882         gl_cv_func_ceil_ieee.
7883         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
7884         gl_cv_func_ceilf_ieee.
7885         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
7886         gl_cv_func_ceill_ieee.
7887         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
7888         ac_cv_func_chown_works.
7889         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
7890         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
7891         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
7892         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
7893         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
7894         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
7895         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
7896         gl_cv_func_expl_works.
7897         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
7898         gl_cv_func_expm1_ieee.
7899         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
7900         gl_cv_func_expm1l_works.
7901         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
7902         gl_cv_func_open_directory_works.
7903         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
7904         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
7905         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
7906         gl_cv_func_fchownat_empty_filename_works.
7907         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
7908         gl_cv_func_fdopendir_works.
7909         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
7910         gl_cv_func_floor_ieee.
7911         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
7912         gl_cv_func_floorf_ieee.
7913         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
7914         gl_cv_func_fma_works.
7915         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
7916         gl_cv_func_fmaf_works.
7917         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
7918         gl_cv_func_fmal_works.
7919         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
7920         gl_cv_func_fmod_ieee.
7921         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
7922         gl_cv_func_fmodf_ieee.
7923         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
7924         gl_cv_func_fmodl_ieee.
7925         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
7926         gl_cv_func_fpurge_works.
7927         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
7928         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
7929         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
7930         gl_cv_func_getcwd_null.
7931         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
7932         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
7933         gl_cv_func_working_getdelim.
7934         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
7935         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
7936         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
7937         gl_cv_func_getgroups_works.
7938         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
7939         am_cv_func_working_getline.
7940         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
7941         for gl_cv_func_getopt_gnu.
7942         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
7943         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
7944         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
7945         gl_cv_func_hypot_ieee.
7946         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
7947         gl_cv_func_hypotf_ieee.
7948         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
7949         gl_cv_func_hypotl_ieee.
7950         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
7951         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
7952         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
7953         gl_cv_func_link_works.
7954         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
7955         gl_cv_func_linkat_slash.
7956         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
7957         gl_cv_func_log_ieee.
7958         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
7959         gl_cv_func_logf_ieee.
7960         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
7961         gl_cv_func_logl_works.
7962         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
7963         gl_cv_func_log10_ieee.
7964         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
7965         gl_cv_func_log10f_ieee.
7966         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
7967         gl_cv_func_log10l_works.
7968         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
7969         gl_cv_func_log1p_ieee.
7970         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
7971         gl_cv_func_log1pf_ieee.
7972         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
7973         gl_cv_func_log1pl_ieee.
7974         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
7975         gl_cv_func_log2_ieee.
7976         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
7977         gl_cv_func_log2f_ieee.
7978         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
7979         --enable-cross-guesses for
7980         gl_cv_func_lstat_dereferences_slashed_symlink.
7981         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
7982         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
7983         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
7984         gl_cv_C_locale_sans_EILSEQ.
7985         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
7986         gl_cv_func_memchr_works.
7987         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
7988         gl_cv_func_memmem_works_always.
7989         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
7990         gl_cv_func_memmem_works_fast.
7991         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
7992         gl_cv_func_mkdir_trailing_slash_works,
7993         gl_cv_func_mkdir_trailing_dot_works.
7994         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
7995         gl_cv_func_mkfifo_works.
7996         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
7997         gl_cv_func_mknod_works.
7998         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
7999         gl_cv_func_working_mkstemp.
8000         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
8001         gl_cv_func_working_mktime.
8002         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
8003         gl_cv_func_modf_ieee.
8004         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
8005         gl_cv_func_modff_ieee.
8006         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
8007         gl_cv_func_modfl_ieee.
8008         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
8009         gl_cv_func_nanosleep.
8010         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
8011         gl_cv_func_perror_works.
8012         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
8013         gl_cv_func_printf_sizes_c99.
8014         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
8015         gl_cv_func_printf_infinite.
8016         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
8017         gl_cv_func_printf_infinite_long_double.
8018         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
8019         gl_cv_func_printf_directive_a.
8020         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
8021         gl_cv_func_printf_directive_f.
8022         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
8023         gl_cv_func_printf_flag_zero.
8024         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
8025         gl_cv_func_printf_enomem.
8026         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
8027         gl_cv_func_snprintf_truncation_c99.
8028         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
8029         gl_cv_func_snprintf_retval_c99.
8030         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
8031         gl_cv_func_snprintf_directive_n.
8032         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
8033         gl_cv_func_vsnprintf_zerosize_c99.
8034         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
8035         gl_cv_func_pselect_detects_ebadf.
8036         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
8037         Obey --enable-cross-guesses for
8038         gl_cv_pthread_rwlock_rdlock_prefer_writer.
8039         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
8040         gl_cv_func_ptsname_sets_errno.
8041         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
8042         gl_cv_func_svid_putenv.
8043         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
8044         gl_cv_func_readlink_works.
8045         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
8046         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
8047         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
8048         gl_cv_func_re_compile_pattern_working.
8049         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
8050         gl_cv_func_remainder_ieee.
8051         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
8052         gl_cv_func_remainderf_ieee.
8053         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
8054         gl_cv_func_remainderl_ieee.
8055         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
8056         gl_cv_func_rintl_works.
8057         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
8058         gl_cv_func_rmdir_works.
8059         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
8060         gl_cv_func_round_ieee.
8061         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
8062         gl_cv_func_roundf_ieee.
8063         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
8064         gl_cv_func_roundl_ieee.
8065         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
8066         gl_cv_func_select_detects_ebadf.
8067         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
8068         gl_cv_func_setenv_works.
8069         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
8070         gl_cv_func_unsetenv_works.
8071         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
8072         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
8073         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
8074         gl_cv_func_sleep_works.
8075         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
8076         gl_cv_func_stat_file_slash.
8077         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
8078         gl_cv_func_stpncpy.
8079         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
8080         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
8081         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
8082         gl_cv_func_strcasestr_linear.
8083         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
8084         gl_cv_func_working_strerror.
8085         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
8086         gl_cv_func_strerror_0_works.
8087         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
8088         --enable-cross-guesses for gl_cv_func_strerror_r_works.
8089         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
8090         gl_cv_func_strstr_works_always.
8091         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
8092         gl_cv_func_strstr_linear.
8093         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
8094         gl_cv_func_strtod_works.
8095         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
8096         gl_cv_func_strtold_works.
8097         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
8098         gl_cv_func_symlink_works.
8099         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
8100         gl_cv_func_symlinkat_works.
8101         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
8102         gl_cv_func_trunc_ieee.
8103         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
8104         gl_cv_func_truncf_ieee.
8105         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
8106         gl_cv_func_truncl_ieee.
8107         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
8108         gl_cv_func_tzset_clobber.
8109         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
8110         gl_cv_func_ungetc_works.
8111         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
8112         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
8113         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
8114         gl_cv_func_usleep_works.
8115         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
8116         gl_cv_func_futimesat_works.
8117         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
8118         gl_cv_func_working_utimes.
8119         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
8120         gl_cv_func_wcwidth_works.
8121         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
8122         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
8123         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
8124         links for testing. Obey --enable-cross-guesses for
8125         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
8126         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
8128 2019-09-08  Bruno Haible  <bruno@clisp.org>
8130         Clarify that cross-compilation guesses are guesses.
8131         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
8132         cross-compiling.
8134 2019-09-08  Bruno Haible  <bruno@clisp.org>
8136         chown: Fix configure output (regression from 2019-03-23).
8137         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
8138         gl_cv_func_chown_follows_symlink variable.
8140 2019-09-08  Bruno Haible  <bruno@clisp.org>
8142         findprog-in: New module.
8143         Suggested by Paul Smith <psmith@gnu.org>.
8144         * lib/findprog.h (find_in_given_path): New declaration.
8145         * lib/findprog-in.c: New file, based on lib/findprog.c.
8146         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
8147         * modules/findprog-in: New file.
8149 2019-09-08  Bruno Haible  <bruno@clisp.org>
8151         findprog: Remove unused dependency.
8152         * modules/findprog (Depends-on): Remove strdup.
8154 2019-09-08  Bruno Haible  <bruno@clisp.org>
8156         findprog: Remove test that is obsolete since 2006-04-24.
8157         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
8159 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
8161         bitset: style changes
8162         * lib/bitset/vector.c (vbitset_resize): Factor computation.
8163         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
8164         xzalloc to xcalloc.
8165         Suggested by Paul Eggert.
8167 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
8169         bitset: check memory allocation
8170         Reported by 江 祖铭 (Zu-Ming Jiang).
8171         With help from Paul Eggert.
8172         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
8173         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
8174         instead of realloc.
8175         When shrinking, accept failures.
8176         * lib/bitset/vector.c (vbitset_resize): Likewise.
8178 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8180         scratch_buffer: sync from glibc
8181         * config/srclist.txt: Add the scratch_buffer source
8182         code from glibc, since these should be in sync.
8183         Autoupdate.
8185 2019-09-07  Bruno Haible  <bruno@clisp.org>
8187         doc: Update for glibc 2.30.
8188         * doc/glibc-functions/gettid.texi: New file.
8189         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
8190         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
8191         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
8192         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
8193         * doc/glibc-functions/sem_clockwait.texi: New file.
8194         * doc/glibc-functions/tgkill.texi: New file.
8195         * doc/glibc-functions/twalk_r.texi: New file.
8196         * doc/gnulib.texi: Include them.
8197         (Glibc semaphore.h): New section.
8198         * doc/pastposix-functions/h_errno.texi: Update.
8199         * doc/posix-functions/*.texi: Likewise.
8201 2019-09-06  Bruno Haible  <bruno@clisp.org>
8203         symlink tests: Avoid test failure on Linux with Lustre file system.
8204         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
8205         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
8206         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
8208 2019-09-01  Bruno Haible  <bruno@clisp.org>
8210         gitsub.sh: Add support for shallow-cloning of subdirectories.
8211         * top/gitsub.sh (func_usage): Document allowed git options with
8212         'git pull'.
8213         (func_pull): Accept GIT_OPTIONS argument.
8214         (pull): Parse git options before complaining about too many arguments.
8215         Pass the git options to func_pull.
8217 2019-08-29  Bruno Haible  <bruno@clisp.org>
8219         lock: Fix cross-compilation guesses.
8220         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
8221         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
8222         platforms.
8224 2019-08-28  Bruno Haible  <bruno@clisp.org>
8226         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
8227         Reported by Martin Storsjö <martin@martin.st> in
8228         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
8229         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
8230         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
8231         files from GCC 6 or newer, use an override through '#define', because
8232         the inline definitions in the platform's <cmath> cannot be overridden
8233         in another way.
8235 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8237         Revert macOS INT_MULTIPLY_WRAPV patch
8238         Problem reported by Bruno Haible in:
8239         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
8240         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
8241         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
8242         Go back to working around the Clang bug on macOS.
8244 2019-08-27  Bruno Haible  <bruno@clisp.org>
8246         libtool-next-version: Fix error output.
8247         * build-aux/libtool-next-version (func_fatal_error): Fix the program
8248         name.
8250 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8252         Speed up INT_MULTIPLY_WRAPV on macOS
8253         Assume that __builtin_mul_overflow works OK with Clang on macOS.
8254         Mattias Engdegård says it’s safe to assume the relevant library
8255         is always available there.
8256         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
8257         New temporary internal macro.
8258         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
8259         No need to work around the Clang bug on macOS.
8261 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
8263         intprops.h, verify.h: port better to clang
8264         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
8265         with Clang.  Problem reported privately by Mattias Engdegård.
8266         Also, insulate intprops.h and verify.h better against each other’s
8267         definitions of __has_builtin on non-Clang hosts.
8268         * lib/intprops.h (__has_builtin): Define a temporary substitute
8269         if __has_builtin is not already defined.
8270         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
8271         New temporary internal macros.
8272         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
8273         Now two separate macros, replacing the old
8274         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
8275         __builtin_mul_overflow is like the rest.  All uses changed.
8276         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
8277         Adjust to above changes.
8278         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
8279         longer relevant.  All uses changed.
8280         * lib/verify.h (__has_builtin): Treat like intprops.h,
8281         so that the two .h files do not collide with each other.
8282         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
8283         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
8285 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8287         intprops: say why not Clang __builtin_add_overflow
8288         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
8289         Mention Clang in comment, responding to a query from
8290         Mattias Engdegård.
8292 2019-08-24  Bruno Haible  <bruno@clisp.org>
8294         doc: Document most of the files outside of modules.
8295         * doc/gnulib.texi (Build Infrastructure Files,
8296         Release Management Files): New chapters.
8298 2019-08-24  Bruno Haible  <bruno@clisp.org>
8300         bootstrap: Keep in sync with the 'gettext' module.
8301         Reported by Assaf Gordon in
8302         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
8303         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
8304         * build-aux/po/remove-potcdate.sin: Likewise.
8306 2019-08-24  Bruno Haible  <bruno@clisp.org>
8308         crypto/gc-sha512: Add tests.
8309         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
8310         * modules/crypto/gc-sha512-tests: New file.
8312         crypto/gc-sha256: Add tests.
8313         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
8314         * modules/crypto/gc-sha256-tests: New file.
8316         crypto/gc-sha256, crypto/gc-sha512: New modules.
8317         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
8318         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
8319         (MAX_DIGEST_SIZE): Set to 64.
8320         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
8321         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
8322         (gc_sha256, gc_sha512): New functions.
8323         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
8324         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
8325         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
8327 2019-08-24  Bruno Haible  <bruno@clisp.org>
8329         crypto/gc-sha1 tests: Improve output when the test fails.
8330         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
8331         output.
8333 2019-08-24  Bruno Haible  <bruno@clisp.org>
8335         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
8336         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
8337         LIBGCRYPT_HAS_MD_SM3.
8338         * lib/gc-libgcrypt.c: Include sm3.h.
8339         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
8340         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
8341         implementation if libgcrypt does not support SM3.
8343 2019-08-24  Bruno Haible  <bruno@clisp.org>
8345         crypto/gc-md2: Optimize and clarify code.
8346         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
8347         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
8348         is not needed.
8350 2019-08-24  Bruno Haible  <bruno@clisp.org>
8352         crypto/gc-md2: Add comment.
8353         * lib/gc-libgcrypt.c: Add comment.
8355 2019-08-24  Bruno Haible  <bruno@clisp.org>
8357         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
8358         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
8359         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
8360         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
8361         variable.
8363 2019-08-24  Bruno Haible  <bruno@clisp.org>
8365         crypto/gc: Fix link error with --with-libgcrypt.
8366         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
8367         AC_LIB_HAVE_LINKFLAGS invocation.
8369 2019-08-24  Bruno Haible  <bruno@clisp.org>
8371         crypto/gc: Access the module indicators correctly.
8372         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
8373         * lib/gc-libgcrypt.c: Likewise.
8375 2019-08-24  Bruno Haible  <bruno@clisp.org>
8377         crypto/gc: Fix configuration with --with-libgcrypt.
8378         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
8379         * modules/crypto/gc (Files): Add it.
8380         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
8382 2019-08-24  Bruno Haible  <bruno@clisp.org>
8384         Remove unused file.
8385         * m4/stat-macros.m4: Remove file.
8387 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
8389         New strip-trailing-space option for srclist-update
8390         * config/srclist-update (fixfile): Support new option.
8391         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
8392         Use it.
8394 2019-08-20  Eric Blake  <eblake@redhat.com>
8396         accept4: Support SOCK_NONBLOCK, if defined
8397         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
8399         accept4: Fix compilation when native accept4() exists.
8400         Reported by Richard W.M. Jones <rjones@redhat.com> in
8401         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
8402         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
8404 2019-08-18  Bruno Haible  <bruno@clisp.org>
8406         Defeat -flto GCC optimization in math autoconf tests.
8407         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
8408         at <https://savannah.gnu.org/bugs/?56109>.
8409         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
8410         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
8411         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8412         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8413         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8414         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
8415         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8416         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
8417         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
8418         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8419         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8420         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8422 2019-08-17  Bruno Haible  <bruno@clisp.org>
8424         windows-spin: Implement declared functions.
8425         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8426         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
8427         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
8428         name.
8430 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8432         intprops: port to Oracle Developer Studio 12.6
8433         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
8434         typos that were in a section not compiled by GCC.
8436 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
8438         intprops: support uchar, ushort _WRAPV dests
8439         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
8440         when __builtin_add_overflow etc. and _Generic are not used.
8441         (_GL_INT_OP_WRAPV): Use it to support destinations that
8442         are unsigned char or unsigned short, even in compilers
8443         that lack __typeof__ and are not C11-compatible.
8445         intprops: pacify picky GCC
8446         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
8447         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
8448         possibly-incorrect result.
8449         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
8450         about (A) used as a boolean, when A is an expression like 3 * 4.
8452         intprops: support unsigned *_WRAPV results
8453         Add support for unsigned, unsigned long, and unsigned long long
8454         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
8455         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
8456         bug with unsigned inputs reported by Eli Zaretskii in:
8457         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
8458         * config/srclist.txt: Break the glibc connection for intprops.h
8459         temporarily, while more testing is done in Gnulib-using apps.
8460         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
8461         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
8462         Support unsigned results no narrower than unsigned int.  Report
8463         overflow correctly if some arguments are unsigned.
8464         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
8465         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
8466         the right thing with narrow args.
8467         (_GL_INT_OP_CALC1): Remove.  All callers removed.
8468         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
8469         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
8470         * tests/test-intprops.c: Check for bugs and test new behavior.
8472 2019-08-14  Bruno Haible  <bruno@clisp.org>
8474         get_progname_of: New module.
8475         * lib/get_progname_of.h: New file.
8476         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
8477         * lib/getprogname.c (getprogname): Tweak coding style.
8478         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
8479         * modules/get_progname_of: New file.
8481 2019-08-14  Bruno Haible  <bruno@clisp.org>
8483         get_ppid_of: New module.
8484         * lib/get_ppid_of.h: New file.
8485         * lib/get_ppid_of.c: New file.
8486         * modules/get_ppid_of: New file.
8488 2019-08-13  Bruno Haible  <bruno@clisp.org>
8490         libtextstyle-optional tests: Support the NO_COLOR environment variable.
8491         * tests/test-libtextstyle.c (main): Do not emit styling when the
8492         environment variable NO_COLOR is set.
8494 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
8496         verify: improve diagnostic quality in recent GCC
8497         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
8498         useful line number containing the top-level caller of the macro.
8499         So, bring back the older way of issuing a diagnostic containing
8500         the top-level call’s arg, so that it is easier to diagnose
8501         ‘verify’ failures with recent GCC.
8502         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
8503         Bring back DIAGNOSTIC arg.  All callers changed.
8504         (verify): Just use _GL_VERIFY.
8506 2019-08-11  Bruno Haible  <bruno@clisp.org>
8508         localcharset: Add more aliases for OS/2.
8509         Based on patch by KO Myung-Hun <komh78@gmail.com> in
8510         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
8511         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
8513 2019-08-10  Eric Blake  <eblake@redhat.com>
8515         configmake: Update advice on usage.
8516         * modules/configmake (Include): No longer necessary to include
8517         last, since configmake.h itself worries about collision avoidance.
8519 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
8521         parse-datetime: fix 'T' military timezone handling
8522         * lib/parse-datetime.y (zone):
8523         follow-up to the previous commit: the 'T' case is handled outside the
8524         conversion table (used as either military timezone UTC-7 or ISO8601
8525         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
8526         timezone letters.
8528 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
8530         parse-datetime: fix military timezone letters
8531         Problem and trivial fix reported by Neil Hoggarth in:
8532         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
8533         * lib/parse-datetime.y (military_table):
8534         Do it the right way, not the RFC 822 way.
8536 2019-08-08  Eric Blake  <eblake@redhat.com>
8538         configmake: Avoid namespace pollution issue on mingw.
8539         * modules/configmake (Makefile.am): If the project uses
8540         <winsock2.h>, include that header before defining DATADIR.
8542 2019-07-28  Bruno Haible  <bruno@clisp.org>
8544         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
8545         * tests/test-mbrtowc.c (main): Fix expected value of wc.
8547 2019-07-24  Bruno Haible  <bruno@clisp.org>
8549         pthread-h: Fix definitions of types and macros on mingw.
8550         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
8551         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
8552         not in use.
8553         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
8554         'pthread-once' is not in use.
8555         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
8556         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
8557         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
8558         in use.
8559         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
8560         Define also when module 'pthread-rwlock' is not in use.
8561         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
8562         also when module 'pthread-cond' is not in use.
8563         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
8564         'pthread-tss' is not in use.
8565         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
8566         use.
8568 2019-07-24  Simon Josefsson  <simon@josefsson.org>
8570         crypto/gc: Cope with libgcrypt without SM3.
8571         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
8573 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
8575         backupfile: fix resource leak on memory failure
8576         Problem found by Coverity (CID 1484214).
8577         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
8579 2019-07-22  Bruno Haible  <bruno@clisp.org>
8581         Avoid missing-declarations warning in various tests.
8582         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
8583         test6, test_optional, test7, test8, test9, test10, test11, test12,
8584         test13, test14, test15, test_fun): Declare static.
8585         * tests/test-cnd.c (test_cnd_wait): Likewise.
8586         * tests/test-cond.c (test_cond): Likewise.
8588 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
8590         pthread tests: Avoid missing-declarations warning.
8591         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
8593 2019-07-19  Bruno Haible  <bruno@clisp.org>
8595         parse-datetime: Avoid warnings from bison versions >= 3.3.
8596         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
8597         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
8599 2019-07-19  Bruno Haible  <bruno@clisp.org>
8601         parse-datetime: Require Bison 2.4 or newer.
8602         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
8603         Code taken from gettext's intl.m4.
8604         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
8605         of YACC.
8607 2019-07-19  Bruno Haible  <bruno@clisp.org>
8609         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
8610         * lib/areadlink-with-size.c: Include <string.h>.
8611         * lib/areadlinkat-with-size.c: Likewise.
8612         * lib/xgethostname.c: Likewise.
8613         * lib/xgetdomainname.c: Likewise.
8615 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
8617         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
8618         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
8619         "%pure-parser".  The former is available since Bison 2.3b (2008),
8620         while the latter is marked as obsolete since version 3.4 (May 2019).
8622 2019-07-16  Bruno Haible  <bruno@clisp.org>
8624         update-copyright: Make it work again (regression from 2019-06-15).
8625         Reported by Brian C. Lane <bcl@redhat.com>.
8626         * build-aux/update-copyright: Add back the -0777, -p, -i options.
8628 2019-07-14  Bruno Haible  <bruno@clisp.org>
8630         doc: Update info about <pthread.h>.
8631         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
8632         of 'pthread'.
8634 2019-07-14  Bruno Haible  <bruno@clisp.org>
8636         pthread_sigmask tests: Use new multithread modules.
8637         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
8638         glthread/thread.h.
8639         (main_thread, killer_thread): Change type to pthread_t.
8640         (main): Update accordingly.
8641         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
8642         thread.
8644 2019-07-14  Bruno Haible  <bruno@clisp.org>
8646         pthread-tss: Add tests.
8647         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
8648         tests/test-tss.c.
8649         * modules/pthread-tss-tests: New file.
8651 2019-07-14  Bruno Haible  <bruno@clisp.org>
8653         pthread-cond: Add tests.
8654         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
8655         tests/test-cnd.c.
8656         * modules/pthread-cond-tests: New file.
8658 2019-07-14  Bruno Haible  <bruno@clisp.org>
8660         pthread-rwlock: Add tests.
8661         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
8662         * modules/pthread-rwlock-tests: New file.
8664 2019-07-14  Bruno Haible  <bruno@clisp.org>
8666         pthread-mutex: Add tests.
8667         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
8668         tests/test-mtx.c.
8669         * modules/pthread-mutex-tests: New file.
8671 2019-07-14  Bruno Haible  <bruno@clisp.org>
8673         pthread-once: Add tests.
8674         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
8675         tests/test-call_once.c.
8676         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
8677         tests/test-mtx.c.
8678         * modules/pthread-once-tests: New file.
8680 2019-07-14  Bruno Haible  <bruno@clisp.org>
8682         pthread-thread: Add tests.
8683         * tests/test-pthread-thread.c: New file, based on
8684         tests/test-thread_create.c and tests/test-thrd_create.c.
8685         * modules/pthread-thread-tests: New file.
8687 2019-07-14  Bruno Haible  <bruno@clisp.org>
8689         pthread: Turn into a convenience module.
8690         * lib/pthread.in.h: Remove declarations for extern inline functions.
8691         * lib/pthread.c: Remove file.
8692         * modules/pthread (Files): Remove it.
8693         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
8694         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
8695         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
8696         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
8697         GNULIB_PTHREAD.
8698         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
8700 2019-07-14  Bruno Haible  <bruno@clisp.org>
8702         pthread-spin: New module.
8703         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
8704         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
8705         inline definitions.
8706         * lib/pthread-spin.c: New file.
8707         * m4/pthread-spin.m4: New file.
8708         * modules/pthread-spin: New file.
8709         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
8710         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
8711         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
8712         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
8713         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
8715 2019-07-14  Bruno Haible  <bruno@clisp.org>
8717         pthread-tss: New module.
8718         * lib/pthread-tss.c: New file.
8719         * m4/pthread-tss.m4: New file.
8720         * modules/pthread-tss: New file.
8721         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
8722         * doc/posix-functions/pthread_setspecific.texi: Likewise.
8723         * doc/posix-functions/pthread_getspecific.texi: Likewise.
8724         * doc/posix-functions/pthread_key_delete.texi: Likewise.
8726 2019-07-14  Bruno Haible  <bruno@clisp.org>
8728         pthread-cond: New module.
8729         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
8730         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
8731         * lib/pthread-cond.c: New file.
8732         * m4/pthread-cond.m4: New file.
8733         * modules/pthread-cond: New file.
8734         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
8735         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
8736         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
8737         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
8738         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
8739         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
8740         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
8741         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
8743 2019-07-14  Bruno Haible  <bruno@clisp.org>
8745         pthread-rwlock: New module.
8746         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
8747         * m4/pthread-rwlock.m4: New file.
8748         * modules/pthread-rwlock: New file.
8749         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
8750         and the Android problem.
8751         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
8752         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
8753         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
8754         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
8755         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
8756         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
8757         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
8758         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
8759         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
8760         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
8762 2019-07-14  Bruno Haible  <bruno@clisp.org>
8764         pthread-mutex: New module.
8765         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
8766         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
8767         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
8768         pthread_mutex_unlock): Remove inline definitions.
8769         * lib/pthread-mutex.c: New file.
8770         * m4/pthread-mutex.m4: New file.
8771         * modules/pthread-mutex: New file.
8772         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
8773         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
8774         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
8775         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
8776         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
8777         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
8778         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
8779         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
8780         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
8781         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
8782         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
8783         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
8785 2019-07-14  Bruno Haible  <bruno@clisp.org>
8787         pthread-once: New module.
8788         * lib/pthread-once.c: New file.
8789         * m4/pthread-once.m4: New file.
8790         * modules/pthread-once: New file.
8791         * doc/posix-functions/pthread_once.texi: Mention the new module.
8793 2019-07-14  Bruno Haible  <bruno@clisp.org>
8795         pthread-thread: New module.
8796         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
8797         inline definitions.
8798         * lib/pthread-thread.c: New file.
8799         * m4/pthread-thread.m4: New file.
8800         * modules/pthread-thread: New file.
8801         * doc/posix-functions/pthread_create.texi: Mention the new module.
8802         * doc/posix-functions/pthread_attr_init.texi: Likewise.
8803         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
8804         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
8805         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
8806         * doc/posix-functions/pthread_self.texi: Likewise.
8807         * doc/posix-functions/pthread_equal.texi: Likewise.
8808         * doc/posix-functions/pthread_detach.texi: Likewise.
8809         * doc/posix-functions/pthread_join.texi: Likewise.
8810         * doc/posix-functions/pthread_exit.texi: Likewise.
8812 2019-07-14  Bruno Haible  <bruno@clisp.org>
8814         pthread-h: Prepare for adding new modules.
8815         * lib/pthread.in.h: Define the types and macros for each of the
8816         facilities separately.
8817         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
8818         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
8819         HAVE_PTHREAD_PROCESS_SHARED.
8820         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
8821         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
8822         HAVE_PTHREAD_PROCESS_SHARED.
8823         * modules/pthread-h (Makefile.am): Substitute
8824         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
8825         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
8827 2019-07-14  Bruno Haible  <bruno@clisp.org>
8829         pthread-h: Add declarations of essential pthread functions.
8830         * lib/pthread.in.h: Include snippets.
8831         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
8832         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
8833         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
8834         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
8835         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
8836         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
8837         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
8838         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
8839         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
8840         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
8841         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
8842         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
8843         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
8844         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
8845         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
8846         pthread_key_create, pthread_setspecific, pthread_getspecific,
8847         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
8848         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
8849         declarations.
8850         (pthread_mutex_timedlock): Move declaration.
8851         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
8852         declared.
8853         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
8854         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
8855         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
8856         HAVE_* and REPLACE_* variables for the new functions.
8857         * modules/pthread-h (Depends-on): Add snippet/c++defs,
8858         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
8859         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
8860         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
8861         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
8862         variables for the new functions. Split the sed script, to avoid the
8863         limit of 99 commands of HP-UX sed.
8864         * tests/test-pthread-c++.cc: Check the signature of the new functions.
8866 2019-07-14  Bruno Haible  <bruno@clisp.org>
8868         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
8869         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
8870         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
8871         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
8872         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
8873         * modules/pthread-h (Depends-on): Add threadlib.
8874         (Link): Change to $(LIBTHREAD).
8875         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
8876         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
8878 2019-07-14  Bruno Haible  <bruno@clisp.org>
8880         pthread-h: Add C++ tests.
8881         * tests/test-pthread-c++.cc: New file.
8882         * modules/pthread-h-c++-tests: New file.
8884 2019-07-14  Bruno Haible  <bruno@clisp.org>
8886         pthread-h: Add tests.
8887         * tests/test-pthread.c: New file.
8888         * modules/pthread-h-tests: New file.
8890 2019-07-14  Bruno Haible  <bruno@clisp.org>
8892         pthread-h: New module.
8893         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
8894         is 1.
8895         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
8896         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
8897         <pthread.h> pollutes the namespace; instead, prepare for generating a
8898         pthread.h always. Substitute HAVE_PTHREAD_H here.
8899         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
8900         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
8901         * modules/pthread-h: New file, based on modules/pthread.
8902         * modules/pthread: Rely on 'pthread-h'.
8903         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
8904         Update.
8905         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
8906         pthread.
8908 2019-07-14  Bruno Haible  <bruno@clisp.org>
8910         sched_yield: New module.
8911         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
8912         (sched_yield): New declaration.
8913         * lib/sched_yield.c: New file.
8914         * m4/sched_yield.m4: New file.
8915         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
8916         provide a replacement sched.h always. Test whether sched_yield is
8917         declared.
8918         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
8919         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
8920         (Makefile.am): Provide a replacement sched.h always. Substitute
8921         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
8922         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
8923         * modules/sched_yield: New file.
8924         * doc/posix-functions/sched_yield.texi: Mention the new module.
8926 2019-07-14  Bruno Haible  <bruno@clisp.org>
8928         windows-spin: New module.
8929         * lib/windows-spin.h: New file.
8930         * lib/windows-spin.c: New file.
8931         * modules/windows-spin: New file.
8933 2019-07-14  Bruno Haible  <bruno@clisp.org>
8935         windows-timedrwlock: New module.
8936         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
8937         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
8938         windows-cond.c.
8939         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
8940         redefinition conflict with windows-timedrwlock.h.
8941         * modules/windows-timedrwlock: New file.
8943 2019-07-14  Bruno Haible  <bruno@clisp.org>
8945         windows-rwlock: New module.
8946         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
8947         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
8948         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
8949         windows-initguard.h.
8950         (gl_rwlock_t): Define using glwthread_rwlock_t.
8951         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
8952         (glthread_rwlock_init): Define using glwthread_rwlock_init.
8953         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
8954         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
8955         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
8956         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
8957         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
8958         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
8959         glthread_rwlock_destroy_func): Remove declarations.
8960         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
8961         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
8962         gl_waitqueue_notify_all, glthread_rwlock_init_func,
8963         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
8964         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
8965         functions.
8966         * modules/windows-rwlock: New file.
8967         * modules/lock (Depends-on): Add windows-rwlock.
8969 2019-07-14  Bruno Haible  <bruno@clisp.org>
8971         windows-thread: Add support for creating a thread in detached state.
8972         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
8973         (glwthread_thread_create): Add attr argument.
8974         * lib/windows-thread.c (glwthread_thread_create): Likewise.
8975         * lib/glthread/thread.h (glthread_create): Update.
8976         * lib/thrd.c (thrd_create): Update.
8978 2019-07-14  Bruno Haible  <bruno@clisp.org>
8980         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
8981         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
8982         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
8983         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
8984         * lib/windows-mutex.h: Update.
8985         * lib/windows-recmutex.h: Likewise.
8986         * lib/windows-timedmutex.h: Likewise.
8987         * lib/windows-timedrecmutex.h: Likewise.
8988         * lib/windows-cond.h: Likewise.
8989         * lib/glthread/lock.h: Likewise.
8990         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
8991         lib/windows-spinlock.h.
8992         * modules/windows-recmutex (Files): Likewise.
8993         * modules/windows-timedmutex (Files): Likewise.
8994         * modules/windows-timedrecmutex (Files): Likewise.
8995         * modules/windows-cond (Files): Likewise.
8996         * modules/threads-h (Files): Likewise.
8998 2019-07-14  Bruno Haible  <bruno@clisp.org>
9000         doc: Fix info about pthread API in HP-UX.
9001         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
9003 2019-07-14  Bruno Haible  <bruno@clisp.org>
9005         threads-h: Fix generation of threads.h.
9006         * modules/threads-h (Makefile.am): Insert the required header file
9007         snippets.
9009 2019-07-09  Bruno Haible  <bruno@clisp.org>
9011         striconveh test: Fix a compilation failure when iconv is not available.
9012         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9013         * tests/test-striconveh.c (main): Move iconv_close invocations inside
9014         HAVE_ICONV.
9016 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
9018         argmatch: adjust columns for help2man.
9019         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
9020         requires column 20 or more, return 20.
9022 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9024         areadlink-with-size: avoid realloc when size==0
9025         * lib/areadlink-with-size.c (areadlink_with_size):
9026         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
9027         Reallocate at the end to the actual size, to avoid memory waste,
9028         as suggested by Bruno Haible.  But when the guessed size is zero -
9029         useful when the size is unknown - do the initial small readlink
9030         into the stack, to avoid that realloc in the usual case.
9032 2019-07-06  Pádraig Brady  <P@draigBrady.com>
9034         areadlink-with-size: guess a buffer size with 0 size
9035         The size is usually taken from st_size, which can be zero,
9036         resulting in inefficient operation.
9037         Instead let zero select an initial memory allocation
9038         of 128 bytes, which most symlinks fit within.
9039         * lib/areadlink-with-size.c (areadlink_with_size):
9040         Start with a 128 byte buffer, for SIZE == 0.
9041         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
9043 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
9045         Replace manually crafted hex regexes with [:xdigit:]
9046         * build-aux/gitlog-to-changelog (parse_amend_file)
9047         (git_dir_option):
9048         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
9049         This patch is backported from Emacs (Bug#36167).
9051 2019-07-06  Bruno Haible  <bruno@clisp.org>
9053         error: Fix documentation.
9054         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
9055         module provides.
9056         * doc/glibc-functions/error_message_count.texi: Likewise.
9057         * doc/glibc-functions/error_one_per_line.texi: Likewise.
9058         * doc/glibc-functions/error_print_progname.texi: Likewise.
9060 2019-07-06  Bruno Haible  <bruno@clisp.org>
9062         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
9063         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
9064         and older is unsupported.
9065         * doc/**/*.texi: Update.
9067 2019-07-06  Bruno Haible  <bruno@clisp.org>
9069         doc: Remove documentation of Linux libc5 as a supported platform.
9070         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
9071         to Linux libc5.
9072         * doc/posix-functions/iswalpha.texi: Likewise.
9073         * doc/posix-functions/iswblank.texi: Likewise.
9074         * doc/posix-functions/iswcntrl.texi: Likewise.
9075         * doc/posix-functions/iswdigit.texi: Likewise.
9076         * doc/posix-functions/iswgraph.texi: Likewise.
9077         * doc/posix-functions/iswlower.texi: Likewise.
9078         * doc/posix-functions/iswprint.texi: Likewise.
9079         * doc/posix-functions/iswpunct.texi: Likewise.
9080         * doc/posix-functions/iswspace.texi: Likewise.
9081         * doc/posix-functions/iswupper.texi: Likewise.
9082         * doc/posix-functions/iswxdigit.texi: Likewise.
9083         * doc/posix-functions/snprintf.texi: Likewise.
9084         * doc/posix-functions/vsnprintf.texi: Likewise.
9086 2019-07-06  Bruno Haible  <bruno@clisp.org>
9088         doc: Remove documentation of Tandem/NSK as a supported platform.
9089         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
9090         Tandem/NSK.
9091         * doc/**/*.texi: Update.
9093 2019-07-06  Bruno Haible  <bruno@clisp.org>
9095         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
9096         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
9097         and older is unsupported.
9098         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
9099         Mac OS X 10.4 and older.
9100         * doc/posix-functions/asinl.texi: Likewise.
9101         * doc/posix-functions/atanl.texi: Likewise.
9102         * doc/posix-functions/cosl.texi: Likewise.
9103         * doc/posix-functions/expl.texi: Likewise.
9104         * doc/posix-functions/frexpl.texi: Likewise.
9105         * doc/posix-functions/gettimeofday.texi: Likewise.
9106         * doc/posix-functions/logl.texi: Likewise.
9107         * doc/posix-functions/mkstemp.texi: Likewise.
9108         * doc/posix-functions/sinl.texi: Likewise.
9109         * doc/posix-functions/sqrtl.texi: Likewise.
9110         * doc/posix-functions/tanl.texi: Likewise.
9111         * doc/posix-functions/wcswidth.texi: Likewise.
9112         * doc/**/*.texi: Update.
9114 2019-07-06  Bruno Haible  <bruno@clisp.org>
9116         doc: Remove documentation of AIX 4 as a supported platform.
9117         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
9118         unsupported.
9119         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
9120         workarounds.
9121         * doc/posix-functions/strnlen.texi: Likewise.
9122         * doc/posix-headers/inttypes.texi: Likewise.
9123         * doc/**/*.texi: Update.
9125 2019-07-06  Bruno Haible  <bruno@clisp.org>
9127         doc: Remove documentation of HP-UX 10 as a supported platform.
9128         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
9129         unsupported.
9130         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
9131         workarounds.
9132         * doc/posix-functions/gmtime_r.texi: Likewise.
9133         * doc/posix-functions/localtime_r.texi: Likewise.
9134         * doc/posix-functions/mkstemp.texi: Likewise.
9135         * doc/**/*.texi: Update.
9137 2019-07-06  Bruno Haible  <bruno@clisp.org>
9139         doc: Remove documentation of Interix 3.5 as a supported platform.
9140         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
9141         unsupported.
9142         * doc/posix-functions/select.texi: Don't mention Interix specific
9143         workarounds.
9144         * doc/posix-headers/signal.texi: Likewise.
9145         * doc/**/*.texi: Update.
9147 2019-07-06  Bruno Haible  <bruno@clisp.org>
9149         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
9150         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
9151         unsupported.
9152         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
9153         workarounds.
9154         * doc/posix-functions/nl_langinfo.texi: Likewise.
9155         * doc/posix-functions/remainder.texi: Likewise.
9156         * doc/posix-functions/towlower.texi: Likewise.
9157         * doc/posix-functions/towupper.texi: Likewise.
9158         * doc/posix-functions/vsnprintf.texi: Likewise.
9159         * doc/posix-functions/wcscat.texi: Likewise.
9160         * doc/posix-functions/wcschr.texi: Likewise.
9161         * doc/posix-functions/wcscmp.texi: Likewise.
9162         * doc/posix-functions/wcscpy.texi: Likewise.
9163         * doc/posix-functions/wcscspn.texi: Likewise.
9164         * doc/posix-functions/wcslen.texi: Likewise.
9165         * doc/posix-functions/wcsncat.texi: Likewise.
9166         * doc/posix-functions/wcsncmp.texi: Likewise.
9167         * doc/posix-functions/wcsncpy.texi: Likewise.
9168         * doc/posix-functions/wcspbrk.texi: Likewise.
9169         * doc/posix-functions/wcsrchr.texi: Likewise.
9170         * doc/posix-functions/wcsspn.texi: Likewise.
9171         * doc/posix-headers/langinfo.texi: Likewise.
9172         * doc/posix-headers/signal.texi: Likewise.
9173         * doc/posix-headers/wchar.texi: Likewise.
9174         * doc/posix-headers/wctype.texi: Likewise.
9175         * doc/**/*.texi: Update.
9177 2019-07-05  Bruno Haible  <bruno@clisp.org>
9179         doc: Remove documentation of OSF/1 as supported platform.
9180         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
9181         unsupported.
9182         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
9183         workarounds.
9184         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
9185         * doc/glibc-functions/ptsname_r.texi: Likewise.
9186         * doc/posix-functions/ceil.texi: Likewise.
9187         * doc/posix-functions/ceilf.texi: Likewise.
9188         * doc/posix-functions/ceill.texi: Likewise.
9189         * doc/posix-functions/fchdir.texi: Likewise.
9190         * doc/posix-functions/floor.texi: Likewise.
9191         * doc/posix-functions/floorf.texi: Likewise.
9192         * doc/posix-functions/fmod.texi: Likewise.
9193         * doc/posix-functions/fmodf.texi: Likewise.
9194         * doc/posix-functions/fmodl.texi: Likewise.
9195         * doc/posix-functions/log.texi: Likewise.
9196         * doc/posix-functions/logf.texi: Likewise.
9197         * doc/posix-functions/logl.texi: Likewise.
9198         * doc/posix-functions/log10.texi: Likewise.
9199         * doc/posix-functions/log10f.texi: Likewise.
9200         * doc/posix-functions/log10l.texi: Likewise.
9201         * doc/posix-functions/log2.texi: Likewise.
9202         * doc/posix-functions/log2f.texi: Likewise.
9203         * doc/posix-functions/log2l.texi: Likewise.
9204         * doc/posix-functions/mbrtowc.texi: Likewise.
9205         * doc/posix-functions/recv.texi: Likewise.
9206         * doc/posix-functions/recvfrom.texi: Likewise.
9207         * doc/posix-functions/remainder.texi: Likewise.
9208         * doc/posix-functions/remainderf.texi: Likewise.
9209         * doc/posix-functions/remainderl.texi: Likewise.
9210         * doc/posix-functions/round.texi: Likewise.
9211         * doc/posix-functions/roundf.texi: Likewise.
9212         * doc/posix-functions/roundl.texi: Likewise.
9213         * doc/posix-functions/send.texi: Likewise.
9214         * doc/posix-functions/sendto.texi: Likewise.
9215         * doc/posix-functions/setenv.texi: Likewise.
9216         * doc/posix-functions/snprintf.texi: Likewise.
9217         * doc/posix-functions/tcgetsid.texi: Likewise.
9218         * doc/posix-functions/trunc.texi: Likewise.
9219         * doc/posix-functions/truncf.texi: Likewise.
9220         * doc/posix-functions/truncl.texi: Likewise.
9221         * doc/posix-functions/ttyname_r.texi: Likewise.
9222         * doc/posix-functions/unsetenv.texi: Likewise.
9223         * doc/posix-functions/wcsrtombs.texi: Likewise.
9224         * doc/posix-headers/sys_select.texi: Likewise.
9225         * doc/posix-headers/wchar.texi: Likewise.
9226         * doc/posix-headers/wctype.texi: Likewise.
9227         * doc/**/*.texi: Update.
9229 2019-07-05  Bruno Haible  <bruno@clisp.org>
9231         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
9232         * doc/**/*.texi: Update.
9234 2019-07-05  Bruno Haible  <bruno@clisp.org>
9236         doc: Remove documentation of Solaris 8 and older as supported platforms.
9237         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
9238         unsupported.
9239         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
9240         workarounds.
9241         * doc/posix-functions/memcmp.texi: Likewise.
9242         * doc/posix-functions/rename.texi: Likewise.
9243         * doc/posix-functions/tzset.texi: Likewise.
9244         * doc/posix-headers/wctype.texi: Likewise.
9245         * doc/**/*.texi: Update.
9247 2019-07-05  Bruno Haible  <bruno@clisp.org>
9249         doc: Remove documentation of Interix 3.5 as a supported platform.
9250         * doc/**/*.texi: Update.
9252 2019-07-05  Bruno Haible  <bruno@clisp.org>
9254         doc: Remove documentation of BeOS as a supported platform.
9255         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
9256         unsupported.
9257         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
9258         * doc/posix-functions/getdelim.texi: Likewise.
9259         * doc/**/*.texi: Update.
9261 2019-07-05  Bruno Haible  <bruno@clisp.org>
9263         thread, lock, cond, tls: Remove support for Pth threads.
9264         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
9265         --enable-threads=pth any more.
9266         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
9267         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
9268         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
9269         threads and ISO C11 threads.
9270         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
9271         * lib/glthread/lock.h: Likewise.
9272         * lib/glthread/lock.c: Likewise.
9273         * lib/glthread/cond.h: Likewise.
9274         * lib/glthread/cond.c: Likewise.
9275         * lib/glthread/tls.h: Likewise.
9276         * lib/glthread/tls.c: Likewise.
9277         * lib/glthread/yield.h: Likewise.
9278         * lib/regex_internal.h: Likewise.
9279         * tests/test-thread_create.c: Likewise.
9280         * tests/test-lock.c: Likewise.
9281         * tests/test-cond.c: Likewise.
9282         * tests/test-tls.c: Likewise.
9283         * tests/test-rwlock1.c: Don't include glthread/yield.h.
9284         (main): Sleep without calling gl_thread_yield.
9286 2019-07-05  Bruno Haible  <bruno@clisp.org>
9288         thread, lock, cond, tls: Remove support for old Solaris threads.
9289         Solaris >= 2.5.1 has POSIX threads.
9290         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
9291         --enable-threads=solaris any more.
9292         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
9293         * lib/glthread/thread.c: Update comment.
9294         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
9295         * lib/glthread/lock.h: Likewise.
9296         * lib/glthread/lock.c: Likewise.
9297         * lib/glthread/cond.h: Likewise.
9298         * lib/glthread/cond.c: Likewise.
9299         * lib/glthread/tls.h: Likewise.
9300         * lib/glthread/tls.c: Likewise.
9301         * lib/glthread/yield.h: Likewise.
9302         * lib/regex_internal.h: Likewise.
9303         * tests/test-thread_create.c: Likewise.
9304         * tests/test-lock.c: Likewise.
9305         * tests/test-cond.c: Likewise.
9306         * tests/test-tls.c: Likewise.
9308 2019-07-05  Bruno Haible  <bruno@clisp.org>
9310         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
9311         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
9312         needed size is equal to the allocated size.
9313         * lib/getcwd.c (__getcwd): Likewise.
9315 2019-07-05  Bruno Haible  <bruno@clisp.org>
9317         xgetdomainname: Don't return an excessive memory allocation.
9318         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
9319         before returning it.
9321 2019-07-05  Bruno Haible  <bruno@clisp.org>
9323         xgethostname: Don't return an excessive memory allocation.
9324         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
9325         returning it.
9327 2019-07-05  Bruno Haible  <bruno@clisp.org>
9329         areadlinkat-with-size: Don't return an excessive memory allocation.
9330         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
9331         before returning it.
9333 2019-07-05  Bruno Haible  <bruno@clisp.org>
9335         areadlink-with-size: Don't return an excessive memory allocation.
9336         Reported by Andreas Dilger <adilger@whamcloud.com>.
9337         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
9338         before returning it.
9340 2019-07-03  Bruno Haible  <bruno@clisp.org>
9342         renameatu: Fix test failure on MSVC.
9343         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
9344         empty string.
9346 2019-07-03  Bruno Haible  <bruno@clisp.org>
9348         mbrtowc: Fix invalid use of mbtowc() on MSVC.
9349         * lib/mbrtowc.c: Include glthread/lock.h.
9350         (mbtowc_lock): New variable.
9351         (mbrtowc): Treat UTF-8 encoding without locking. For the other
9352         encodings, explicitly reset the internal state of mbtowc, and protect
9353         this through a lock.
9354         * modules/mbrtowc (Depends-on): Add lock.
9356 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
9358         argmatch: don't define _ in the header.
9359         Reported by Jim Meyering.
9360         * lib/argmatch.h (N_, _): Don't define.
9361         Use gettext instead.
9362         * lib/argmatch.h (_): Define.
9363         * tests/test-argmatch.c (N_): Define.
9365 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
9367         verify: document ‘assume’ better
9368         * lib/verify.h: Reword doc (Bug#36370).
9370 2019-07-02  Bruno Haible  <bruno@clisp.org>
9372         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
9373         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
9374         "CPutf8".
9375         * lib/nl_langinfo.c (ctype_codeset): Likewise.
9377 2019-07-02  Bruno Haible  <bruno@clisp.org>
9379         getcwd: Fix crash when invoked with size = 0 on MSVC.
9380         * lib/getcwd.c: Include msvc-inval.h.
9381         (getcwd_nothrow): New function/macro.
9382         (getcwd_system): New macro.
9383         (__getcwd): Use it instead of getcwd.
9384         * modules/getcwd (Depends-on): Add msvc-inval.
9385         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
9387 2019-07-02  Bruno Haible  <bruno@clisp.org>
9389         nonblocking-pipe tests: Fix test failure on MSVC.
9390         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
9391         native Windows.
9393 2019-07-02  Bruno Haible  <bruno@clisp.org>
9395         usleep: Implement with millisecond resolution on native Windows.
9396         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
9397         * doc/pastposix-functions/usleep.texi: Update accordingly.
9399 2019-07-02  Bruno Haible  <bruno@clisp.org>
9401         lstat tests: Fix test failure on MSVC.
9402         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
9403         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9405 2019-07-02  Bruno Haible  <bruno@clisp.org>
9407         stat tests: Fix test failure on MSVC.
9408         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
9409         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9411 2019-07-02  Bruno Haible  <bruno@clisp.org>
9413         getaddrinfo tests: Fix test failure on MSVC.
9414         * tests/test-getaddrinfo.c: Include sockets.h.
9415         (main): Invoke gl_sockets_startup.
9416         * modules/getaddrinfo-tests (Depends-on): Add sockets.
9418 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
9420         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
9421         * lib/poll.c: Call Windows native select() with Windows native timeval.
9423 2019-06-30  Bruno Haible  <bruno@clisp.org>
9425         argmatch: Fix compilation errors.
9426         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
9427         * tests/test-argmatch.c (main): Update after last-minute function names
9428         change.
9430 2019-06-30  Bruno Haible  <bruno@clisp.org>
9432         Include <stdlib.h> when needed.
9433         * lib/cnd.c: Include <stdlib.h>, needed for abort().
9434         * lib/fcntl.c: Likewise.
9435         * lib/mbscasestr.c: Likewise.
9436         * lib/mbssep.c: Likewise.
9437         * lib/mbsstr.c: Likewise.
9438         * lib/openat.c: Include <stdlib.h>, needed for free().
9439         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
9440         abort().
9442 2019-06-30  Bruno Haible  <bruno@clisp.org>
9444         Include <stdlib.h> when needed.
9445         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
9446         * lib/faccessat.c: Likewise.
9447         * lib/fchmodat.c: Likewise.
9448         * lib/fchownat.c: Likewise.
9449         * lib/fstatat.c: Likewise.
9450         * lib/mkfifoat.c: Likewise.
9451         * lib/mknodat.c: Likewise.
9452         * lib/readlinkat.c: Likewise.
9453         * lib/symlinkat.c: Likewise.
9454         * lib/utimensat.c: Likewise.
9455         * lib/mkdirat.c: Likewise. Include also the specification header.
9457 2019-06-30  Bruno Haible  <bruno@clisp.org>
9459         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
9460         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
9461         from gl_PREREQ_SYS_H_SOCKET.
9462         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
9463         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
9464         gl_PREREQ_SYS_H_WS2TCPIP.
9465         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
9466         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
9467         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
9469 2019-06-30  Bruno Haible  <bruno@clisp.org>
9471         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
9472         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
9473         REPLACE_INET_NTOP to 1 always.
9474         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
9475         REPLACE_INET_PTON to 1 always.
9477 2019-06-30  Bruno Haible  <bruno@clisp.org>
9479         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
9480         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
9481         not REPLACE_INET_NTOP.
9483 2019-06-30  Bruno Haible  <bruno@clisp.org>
9485         poll: Add comment.
9486         * lib/poll.c: Add comment about WSAPoll.
9488 2019-06-30  Bruno Haible  <bruno@clisp.org>
9490         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
9491         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
9492         * lib/poll.in.h: Include <winsock2.h>.
9493         (POLL*, pollfd): Override on native Windows.
9494         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9495         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
9496         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9498 2019-06-28  Bruno Haible  <bruno@clisp.org>
9500         accept4: Fix compilation error on OpenIndiana.
9501         Reported by Michal Nowak <mnowak@startmail.com>
9502         via Mark H Weaver <mhw@netris.org>.
9503         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
9504         whether it exists as a function.
9506 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
9508         strverscmp: sync from glibc
9509         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
9510         comments, include libc-config.h, define __strverscmp to be
9511         strverscmp, and don’t assume types line uint8_t and int8_t that
9512         that C99 doesn’t guarantee.
9513         [!_LIBC]: Include libc-config.h; define __strverscmp.
9514         Include stdint.h.
9515         (__strverscmp): Assume C99.  Use uint_least8_t
9516         and int_least8_t instead of unsigned char and signed char.
9517         * modules/strverscmp (Depends-on): Add libc-config, stdint.
9519 2019-06-25  Bruno Haible  <bruno@clisp.org>
9521         tss tests: Add tests for destructors and races.
9522         * tests/test-tss.c (worker_thread): Fix typo in debug message.
9523         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
9524         functions.
9525         (main): Invoke them.
9526         * modules/tls-tests (Depends-on): Add mtx.
9528 2019-06-25  Bruno Haible  <bruno@clisp.org>
9530         tls tests: Add tests for destructors and races.
9531         * tests/test-tls.c: Include glthread/lock.h.
9532         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
9533         functions.
9534         (main): Invoke them.
9535         * modules/tls-tests (Depends-on): Add lock.
9537 2019-06-25  Bruno Haible  <bruno@clisp.org>
9539         windows-tls: Implement TLS key destructors for native Windows.
9540         * lib/windows-tls.h (glwthread_tls_process_destructors): New
9541         declaration.
9542         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
9543         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
9544         (dtor_table_init_once, dtor_table_lock: New variables.
9545         (struct dtor): New type.
9546         (dtor_table, dtors_count, dtors_used, dtors_allocated,
9547         dtor_processing_threads): New variables.
9548         (dtor_table_initialize, dtor_table_ensure_initialized,
9549         dtor_table_shrink_used, glwthread_tls_process_destructors): New
9550         functions.
9551         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
9552         handle non-NULL destructors.
9553         * modules/windows-tls (Depends-on): Add windows-once.
9554         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
9555         Use the functions declared in windows-tls.h.
9556         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
9557         GLWTHREAD_DESTRUCTOR_ITERATIONS.
9558         * lib/windows-thread.c: Include windows-tls.h.
9559         (wrapper_func, glwthread_thread_exit): Invoke
9560         glwthread_tls_process_destructors.
9561         * modules/windows-thread (Depends-on): Add windows-tls.
9563 2019-06-25  Bruno Haible  <bruno@clisp.org>
9565         threadlib: Avoid autoconf warning "was expanded before it was required".
9566         * modules/threadlib (configure.ac): Require gl_THREADLIB.
9568 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
9570         argmatch: remove duplicate const qualifier
9571         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
9573 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
9575         unistd: stddef.h and sys/types.h namespace cleanup
9576         * lib/unistd.in.h [__GLIBC__]:
9577         Do not include stddef.h or sys/types.h.
9578         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
9579         supposed to declare off_t and ssize_t.  Problem found when looking
9580         at why @GNULIB_PWRITE@ was different from the newly-added
9581         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
9583 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
9585         maintainer-makefile: restore portability to non-GNU awks
9586         Reported by Tim Rühsen.
9587         * top/maint.mk (AWK): New variable.  Use it.
9588         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
9590 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9592         Document setvbuf _IOLBF problem
9593         * doc/posix-functions/setvbuf.texi (setvbuf):
9594         Document MS-Windows portability problem with _IOLBF.
9596         Document lseek SEEK_DATA/SEEK_HOLE
9597         * doc/posix-functions/lseek.texi (lseek):
9598         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
9600 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
9602         argmatch: put all the docs member last.
9603         Reported by Bruno Haible.
9604         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
9605         member before the docs done.
9606         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
9608 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
9610         argmatch: add support to generate the usage message.
9611         * lib/argmatch.c: Move some #includes and gettext support to...
9612         * lib/argmatch.h: here.
9613         (ARGMATCH_DEFINE_GROUP): New macro.
9614         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
9615         (argmatch_backup_group): New.
9616         (CHECK): New.
9617         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
9618         argmatch_backup_argument and argmatch_backup_usage.
9619         * modules/argmatch: We depend on c99.
9620         * doc/argmatch.texi (Recognizing Option Arguments): New.
9621         * doc/gnulib.texi: Use it.
9623 2019-06-21  Bruno Haible  <bruno@clisp.org>
9625         thrd: Add comment.
9626         * lib/thrd.c (pthread_main_func): Add comment.
9628 2019-06-21  Bruno Haible  <bruno@clisp.org>
9630         threads-h: Define 'thread_local' if and only if it actually works.
9631         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
9632         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
9633         Oracle Solaris Studio C. Compile a simple program, to see whether
9634         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
9635         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
9636         * lib/threads.in.h (thread_local): Undefine if it does not work.
9637         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
9638         (Link): Mention LIBTHREADLOCAL.
9639         * tests/test-threads.c: Don't check that thread_local is defined.
9640         * tests/test-thread_local.c: New file.
9641         * modules/threads-h-tests (Files): Add it and macros.h.
9642         (Depends-on): Add thrd and stdint.
9643         (configure.ac): Test whether 'alarm' is declared.
9644         (Makefile.am): Arrange to build and link test-thread_local.
9645         * doc/posix-headers/threads.texi: Mention the platforms that don't
9646         support 'thread_local'.
9648 2019-06-20  Bruno Haible  <bruno@clisp.org>
9650         threads-h: Simplify link dependencies.
9651         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
9652         Don't set LTLIBSTDTHREAD.
9653         * modules/thrd (Link): Simplify accordingly.
9654         * modules/mtx (Link): Likewise.
9655         * modules/cnd (Link): Likewise.
9656         * modules/tss (Link): Likewise.
9657         * modules/threads (Link): Likewise.
9659 2019-06-20  Bruno Haible  <bruno@clisp.org>
9661         threads-h: Fix link error on FreeBSD 11.
9662         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
9663         also with -lpthread.
9665 2019-06-20  Bruno Haible  <bruno@clisp.org>
9667         threadlib: Fix typo (regression from today).
9668         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
9670 2019-06-20  Bruno Haible  <bruno@clisp.org>
9672         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
9673         * lib/windows-thread.c: Include <errno.h>.
9674         * lib/windows-tls.c: Likewise.
9676 2019-06-20  Bruno Haible  <bruno@clisp.org>
9678         tss tests: Small improvement.
9679         * tests/test-tss.c (test_tss): Pass a different id to each thread.
9681 2019-06-20  Bruno Haible  <bruno@clisp.org>
9683         threads: New module.
9684         * modules/threads: New file.
9686 2019-06-20  Bruno Haible  <bruno@clisp.org>
9688         tss: Add tests.
9689         * tests/test-tss.c: New file, based on tests/test-tls.c.
9690         * modules/tss-tests: New file.
9692 2019-06-20  Bruno Haible  <bruno@clisp.org>
9694         cnd: Add tests.
9695         * tests/test-cnd.c: New file, based on tests/test-cond.c.
9696         * modules/cnd-tests: New file.
9698 2019-06-20  Bruno Haible  <bruno@clisp.org>
9700         mtx: Add tests.
9701         * tests/test-mtx.c: New file, based on tests/test-lock.c.
9702         * tests/test-call_once.c: New file, based on tests/test-once.c.
9703         * modules/mtx-tests: New file.
9705 2019-06-20  Bruno Haible  <bruno@clisp.org>
9707         thrd: Add tests.
9708         * tests/test-thrd_create.c: New file, based on
9709         tests/test-thread_create.c.
9710         * tests/test-thrd_current.c: New file, based on
9711         tests/test-thread_self.c.
9712         * modules/thrd-tests: New file.
9714 2019-06-20  Bruno Haible  <bruno@clisp.org>
9716         tss: New module.
9717         * lib/tss.c: New file.
9718         * modules/tss: New file.
9719         * doc/posix-functions/tss_create.texi: Mention the new module.
9720         * doc/posix-functions/tss_set.texi: Likewise.
9721         * doc/posix-functions/tss_get.texi: Likewise.
9722         * doc/posix-functions/tss_delete.texi: Likewise.
9724 2019-06-20  Bruno Haible  <bruno@clisp.org>
9726         cnd: New module.
9727         * lib/cnd.c: New file.
9728         * modules/cnd: New file.
9729         * doc/posix-functions/cnd_init.texi: Mention the new module.
9730         * doc/posix-functions/cnd_wait.texi: Likewise.
9731         * doc/posix-functions/cnd_timedwait.texi: Likewise.
9732         * doc/posix-functions/cnd_signal.texi: Likewise.
9733         * doc/posix-functions/cnd_broadcast.texi: Likewise.
9734         * doc/posix-functions/cnd_destroy.texi: Likewise.
9736 2019-06-20  Bruno Haible  <bruno@clisp.org>
9738         mtx: New module.
9739         * lib/mtx.c: New file.
9740         * modules/mtx: New file.
9741         * doc/posix-functions/call_once.texi: Mention the new module.
9742         * doc/posix-functions/mtx_init.texi: Likewise.
9743         * doc/posix-functions/mtx_lock.texi: Likewise.
9744         * doc/posix-functions/mtx_trylock.texi: Likewise.
9745         * doc/posix-functions/mtx_timedlock.texi: Likewise.
9746         * doc/posix-functions/mtx_unlock.texi: Likewise.
9747         * doc/posix-functions/mtx_destroy.texi: Likewise.
9749 2019-06-20  Bruno Haible  <bruno@clisp.org>
9751         thrd: New module.
9752         * lib/thrd.c: New file.
9753         * m4/thrd.m4: New file.
9754         * modules/thrd: New file.
9755         * doc/posix-functions/thrd_current.texi: Mention the new module.
9756         * doc/posix-functions/thrd_detach.texi: Likewise.
9757         * doc/posix-functions/thrd_equal.texi: Likewise.
9758         * doc/posix-functions/thrd_exit.texi: Likewise.
9759         * doc/posix-functions/thrd_sleep.texi: Likewise.
9760         * doc/posix-functions/thrd_yield.texi: Likewise.
9761         * doc/posix-functions/thrd_create.texi: Mention the new module and the
9762         AIX bug.
9763         * doc/posix-functions/thrd_join.texi: Mention the new module and the
9764         AIX and Solaris bugs.
9766 2019-06-20  Bruno Haible  <bruno@clisp.org>
9768         threads-h: Add tests.
9769         * tests/test-threads.c: New file.
9770         * modules/threads-h-tests: New file.
9771         * tests/test-threads-c++.cc: New file.
9772         * modules/threads-h-c++-tests: New file.
9774 2019-06-20  Bruno Haible  <bruno@clisp.org>
9776         threads-h: New module.
9777         * lib/threads.in.h: New file.
9778         * m4/threads.m4: New file.
9779         * m4/yield.m4 (gl_YIELD): Update comment.
9780         * modules/threads-h: New file.
9781         * modules/yields (configure.ac): Use AC_REQUIRE.
9782         * doc/posix-headers/threads.texi: Mention the new module and the AIX
9783         bugs.
9785 2019-06-20  Bruno Haible  <bruno@clisp.org>
9787         windows-thread: New module.
9788         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
9789         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
9790         * lib/glthread/thread.h: Include windows-thread.h.
9791         (gl_thread_t): Define using glwthread_thread_t.
9792         (glthread_create): Define using glwthread_thread_create.
9793         (glthread_join): Define using glwthread_thread_join.
9794         (gl_thread_self): Define using glwthread_thread_self.
9795         (gl_thread_exit): Define using glwthread_thread_exit.
9796         (glthread_create_func, glthread_join_func, gl_thread_self_func,
9797         gl_thread_exit_func): Remove declarations.
9798         * lib/glthread/thread.c (self_key): Remove variable.
9799         (do_init_self_key, init_self_key): Remove functions.
9800         (struct gl_thread_struct): Remove type.
9801         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
9802         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
9803         functions.
9804         * modules/windows-thread: New file.
9805         * modules/thread (Depends-on): Add windows-thread.
9807 2019-06-20  Bruno Haible  <bruno@clisp.org>
9809         windows-tls: New module.
9810         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
9811         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
9812         * lib/glthread/tls.h: Include windows-tls.h.
9813         (gl_tls_key_t): Define using glwthread_tls_key_t.
9814         * modules/windows-tls: New file.
9815         * modules/tls (Depends-on): Add windows-tls.
9817 2019-06-20  Bruno Haible  <bruno@clisp.org>
9819         windows-cond: New module.
9820         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
9821         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
9822         * lib/glthread/cond.h: Include windows-cond.h.
9823         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
9824         (gl_cond_t): Define using glwthread_cond_t.
9825         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
9826         (glthread_cond_init): Define using glwthread_cond_init.
9827         (glthread_cond_wait): Define using glwthread_cond_wait.
9828         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
9829         (glthread_cond_signal): Define using glwthread_cond_signal.
9830         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
9831         (glthread_cond_destroy): Define using glwthread_cond_destroy.
9832         (glthread_cond_init_func, glthread_cond_wait_func,
9833         glthread_cond_timedwait_func, glthread_cond_signal_func,
9834         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
9835         declarations.
9836         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
9837         types.
9838         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
9839         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
9840         glthread_cond_init_func, glthread_cond_wait_func,
9841         glthread_cond_timedwait_func, glthread_cond_signal_func,
9842         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
9843         functions.
9844         * modules/windows-cond: New file.
9845         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
9847 2019-06-20  Bruno Haible  <bruno@clisp.org>
9849         windows-timedrecmutex: New module.
9850         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
9851         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
9852         * modules/windows-timedrecmutex: New file.
9854 2019-06-20  Bruno Haible  <bruno@clisp.org>
9856         windows-timedmutex: New module.
9857         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
9858         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
9859         * modules/windows-timedmutex: New file.
9861 2019-06-20  Bruno Haible  <bruno@clisp.org>
9863         windows-recmutex: New module.
9864         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
9865         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
9866         * lib/glthread/lock.h: Include windows-recmutex.h.
9867         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
9868         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
9869         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
9870         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
9871         (glthread_recursive_lock_unlock): Define using
9872         glwthread_recmutex_unlock.
9873         (glthread_recursive_lock_destroy): Define using
9874         glwthread_recmutex_destroy.
9875         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
9876         glthread_recursive_lock_unlock_func,
9877         glthread_recursive_lock_destroy_func): Remove declarations.
9878         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
9879         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
9880         glthread_recursive_lock_destroy_func): Remove functions.
9881         * modules/windows-recmutex: New file.
9882         * modules/lock (Depends-on): Add windows-recmutex.
9884 2019-06-20  Bruno Haible  <bruno@clisp.org>
9886         windows-mutex: New module.
9887         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
9888         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
9889         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
9890         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
9891         (gl_spinlock_t): Remove type.
9892         (gl_lock_t): Define using glwthread_mutex_t.
9893         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
9894         (glthread_lock_init): Define using glwthread_mutex_init.
9895         (glthread_lock_lock): Define using glwthread_mutex_lock.
9896         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
9897         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
9898         (glthread_lock_init_func, glthread_lock_lock_func,
9899         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
9900         declarations.
9901         Use glwthread_spinlock_t instead of gl_spinlock_t.
9902         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
9903         GLWTHREAD_SPINLOCK_INIT.
9904         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
9905         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
9906         functions.
9907         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
9908         gl_spinlock_t.
9909         * modules/windows-mutex: New file.
9910         * modules/lock (Depends-on): Add windows-mutex.
9912 2019-06-20  Bruno Haible  <bruno@clisp.org>
9914         windows-once: New module.
9915         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
9916         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
9917         * lib/glthread/lock.h: Include windows-once.h.
9918         (gl_once_t): Define using glwthread_once_t.
9919         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
9920         (glthread_once): Define using glwthread_once.
9921         (glthread_once_func): Remove declaration.
9922         * lib/glthread/lock.c (glthread_once_func): Remove function.
9923         * modules/windows-once: New file.
9924         * modules/lock (Depends-on): Add windows-once.
9926 2019-06-20  Bruno Haible  <bruno@clisp.org>
9928         lock, cond: Avoid possible counter wraparound on Windows.
9929         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
9930         field of the guard unchanged if it was already positive.
9931         (glthread_rwlock_rdlock_func): Likewise.
9932         (glthread_rwlock_wrlock_func): Likewise.
9933         (glthread_recursive_lock_lock_func): Likewise.
9934         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
9935         (glthread_cond_timedwait_func): Likewise.
9937 2019-06-20  Bruno Haible  <bruno@clisp.org>
9939         cond: Make glthread_cond_timedwait more reliable on Windows.
9940         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
9941         condition variable before looking at the current time.
9943 2019-06-20  Bruno Haible  <bruno@clisp.org>
9945         pthread_mutex_timedlock: New module.
9946         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
9947         new declaration.
9948         * lib/pthread_mutex_timedlock.c: New file.
9949         * m4/pthread_mutex_timedlock.m4: New file.
9950         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
9951         whether pthread_mutex_timedlock is declared.
9952         (gl_PTHREAD_MODULE_INDICATOR): New macro.
9953         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
9954         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
9955         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
9956         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
9957         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
9958         * modules/pthread_mutex_timedlock: New file.
9959         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
9960         module.
9962 2019-06-20  Bruno Haible  <bruno@clisp.org>
9964         thread, lock, cond, tls: Recognize C11 multithreaded applications.
9965         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
9966         * lib/glthread/thread.h (c11_threads_in_use): New macro.
9967         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9968         * lib/glthread/lock.h (c11_threads_in_use): New macro.
9969         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9970         * lib/glthread/cond.h (c11_threads_in_use): New macro.
9971         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9972         * lib/glthread/tls.h (c11_threads_in_use): New macro.
9973         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9975 2019-06-20  Bruno Haible  <bruno@clisp.org>
9977         tls tests: Small improvements.
9978         * tests/test-tls.c: Include <stdint.h>.
9979         (worker_thread): Avoid gcc warning on 64-bit mingw.
9980         (test_tls): Pass a different id to each thread.
9981         * modules/tls-tests (Depends-on): Add stdint.
9983 2019-06-20  Bruno Haible  <bruno@clisp.org>
9985         cond tests: Simplify.
9986         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
9988 2019-06-20  Bruno Haible  <bruno@clisp.org>
9990         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
9991         * tests/test-lock.c (test_once): Don't reference fire_signal if
9992         !ENABLE_LOCKING.
9994 2019-06-19  Bruno Haible  <bruno@clisp.org>
9996         nanosleep: Relicense under LGPLv2+.
9997         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
9998         * modules/nanosleep (License): Change to LGPLv2+.
10000 2019-06-19  Bruno Haible  <bruno@clisp.org>
10002         Reorder pieces of header in perl scripts.
10003         The desired order is
10004         - Prologue part 1 (2 lines with #!)
10005         - Program short description
10006         - Copyright and license notice
10007         - Written-by notice
10008         - Program short description (optional)
10009         - Program long description (optional)
10010         - Prologue part 2
10011         - Time stamp
10012         - Code
10013         Reported by Paul Eggert.
10014         * build-aux/announce-gen: Reorder header.
10015         * build-aux/gitlog-to-changelog: Likewise.
10016         * build-aux/useless-if-before-free: Likewise.
10017         * build-aux/prefix-gnulib-mk: Add copyright notice and short
10018         description.
10019         * build-aux/update-copyright: Likewise. Add short description. Bump
10020         time-stamp-line-limit to 200.
10022 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
10024         verify-tests: work around xlc bug
10025         Problem reported by Bruno Haible in:
10026         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
10027         * tests/test-verify.c (item): Move the arithmetic inside the
10028         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
10030 2019-06-16  Bruno Haible  <bruno@clisp.org>
10032         Restore Emacs time-stamp hook applicability.
10033         Reported by Darshit Shah <darnir@gnu.org>.
10034         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
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.
10040 2019-06-15  Bruno Haible  <bruno@clisp.org>
10042         Fix scripts to have valid executable format on Alpine Linux.
10043         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
10044         Idea by Paul Eggert.
10045         * build-aux/useless-if-before-free: Use a prologue that starts with
10046         '#!/bin/sh'.
10047         * build-aux/announce-gen: Likewise.
10048         * build-aux/gitlog-to-changelog: Likewise.
10049         * build-aux/prefix-gnulib-mk: Likewise.
10050         * build-aux/update-copyright: Likewise.
10051         * tests/test-update-copyright.sh: Update test program accordingly.
10053 2019-06-10  Bruno Haible  <bruno@clisp.org>
10055         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
10056         Reported by Nikita Ermakov <arei@altlinux.org> in
10057         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
10058         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
10059         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
10061 2019-06-10  Bruno Haible  <bruno@clisp.org>
10063         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
10064         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
10065         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
10066         a copy of the path argument.
10067         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
10068         it.
10070 2019-06-10  Bruno Haible  <bruno@clisp.org>
10072         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
10073         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
10074         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
10075         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
10076         a copy of the path argument.
10077         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
10078         it.
10080 2019-06-10  Bruno Haible  <bruno@clisp.org>
10082         posix_spawn_file_actions_addfchdir: Add tests.
10083         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
10084         * tests/test-posix_spawn5.c: New file.
10085         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
10087 2019-06-10  Bruno Haible  <bruno@clisp.org>
10089         posix_spawn_file_actions_addfchdir: New module.
10090         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
10091         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
10092         union member 'fchdir_action'.
10093         * lib/spawn_faction_addfchdir.c: New file.
10094         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
10095         * m4/posix_spawn_faction_addfchdir.m4: New file.
10096         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
10097         'posix_spawn_file_actions_addfchdir' is present and whether
10098         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
10099         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
10100         posix_spawn_file_actions_addfchdir is declared.
10101         (gl_SPAWN_H_DEFAULTS): Initialize
10102         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10103         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10104         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
10105         * modules/spawn (Makefile.am): Substitute
10106         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10107         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10108         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
10109         * modules/posix_spawn_file_actions_addfchdir: New file.
10110         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
10111         signature.
10112         * doc/posix-functions/posix_spawn.texi: Mention the new module.
10113         * doc/posix-functions/posix_spawnp.texi: Likewise.
10114         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
10115         Likewise.
10117 2019-06-10  Bruno Haible  <bruno@clisp.org>
10119         doc: Document existence of posix_spawn_file_actions_addchdir module.
10120         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
10121         the posix_spawn_file_actions_addchdir module.
10123 2019-06-10  Bruno Haible  <bruno@clisp.org>
10125         posix_spawn-internal: Fix module description.
10126         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
10127         from here...
10128         * modules/posix_spawnp (configure.ac): ... and here...
10129         * modules/posix_spawn-internal (configure.ac): ... to here.
10131 2019-06-10  Bruno Haible  <bruno@clisp.org>
10133         doc: Update and improve documentation of glibc functions.
10134         This is a series of commits that
10135         - updates the documentation to the state of glibc 2.29,
10136         - adds references to Linux man pages and glibc documentation,
10137         - marks Linux specific functions as such.
10138         These are the commits:
10139         doc: Update after removal of crypt functions from glibc 2.28.
10140         doc: Remove mention of function vm86 (does not exist on x86_64).
10141         doc: Remove mention of functions that are gone from glibc.
10142         doc: Mention that glibc no longer provides h_errno.
10143         doc: Mention the availability of specific functions in glibc versions.
10144         doc: Mention eaccess.
10145         doc: Add references to Linux man pages.
10146         doc: Add references to glibc documentation.
10147         doc: Mention inotify_* functions.
10148         doc: Mention ppoll.
10149         doc: Mention sched_getcpu.
10150         doc: Mention sync_file_range.
10151         doc: Mention epoll_pwait.
10152         doc: Mention eventfd, eventfd_read, eventfd_write.
10153         doc: Mention signalfd.
10154         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
10155         doc: Mention epoll_create1.
10156         doc: Mention getauxval.
10157         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
10158         doc: Mention nextdown, nextup.
10159         doc: Mention more ISO TS 18661-1 <math.h> functions.
10160         doc: Mention ISO TS 18661-1 <fenv.h> functions.
10161         doc: Mention getrandom, getentropy.
10162         doc: Mention strfromf, strfromd, strfroml.
10163         doc: Mention preadv2, pwritev2.
10164         doc: Mention copy_file_range.
10165         doc: Mention memfd_create.
10166         doc: Mention mlock2.
10167         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
10168         doc: Mention more ISO TS 18661-1 <math.h> functions.
10169         doc: Mention renameat2.
10170         doc: Mention statx.
10171         doc: Mention the ISO C11 multithreading header and functions.
10172         doc: Mention getcpu.
10173         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
10174         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
10175         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
10176         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
10177         doc: Some glibc functions also exist on Solaris 11.
10178         doc: Some glibc functions also exist on Solaris 11.4.
10179         doc: Some glibc functions also exist on FreeBSD.
10180         doc: Some glibc functions also exist on BeOS.
10181         doc: Some glibc functions also exist on Haiku.
10182         doc: Mark functions which exist only on Linux.
10183         doc: Mark functions which exist only on Linux and illumos.
10185 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10187         copy-file: fix typo
10188         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
10190         copy-file-range: simplify into a stub
10191         Based on a comment by Florian Weimer in:
10192         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
10193         It turns out that Emacs (which will use this module) won’t need an
10194         emulation and I suspect other programs won’t either, because these
10195         programs will need to fall back on read+write anyway.  Perhaps I
10196         am wrong and other programs will be able to use an emulation; if
10197         so, this patch can be reverted.
10198         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
10199         Just call it copy_file_range.
10200         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
10201         Check via AC_LINK_IFELSE.
10202         * modules/copy-file-range (Depends-on): Remove modules no longer used.
10204 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
10206         copy-file: prefer copy_file_range
10207         * lib/copy-file.c: Do not include xalloc.h.
10208         (qcopy_file_preserving): Allocate a buffer only if
10209         copy_file_range does not suffice.  If the allocation fails
10210         don't give up; just use a small stack-based buffer.
10211         Prefer copy_file_range if it works.
10212         * modules/copy-file (Depends-on): Add copy-file-range.
10213         Remove xalloc.
10215         copy-file-range: new module
10216         * MODULES.html.sh: Add copy-file-range.
10217         * lib/copy-file-range.c, m4/copy-file-range.m4:
10218         * modules/copy-file-range: New files.
10219         * lib/unistd.in.h (copy_file_range): Declare.
10220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
10221         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
10222         * modules/unistd (unistd.h): Substitute them.
10224 2019-05-28  Bruno Haible  <bruno@clisp.org>
10226         binary-io: Attempted use of O_BINARY on consoles no longer fails.
10227         Reported by KO Myung-Hun <komh78@gmail.com> in
10228         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
10229         * lib/binary-io.h (__gl_setmode_check): Remove function.
10230         (set_binary_mode): Declare as notinline on DJGPP and EMX.
10231         * lib/binary-io.c (__gl_setmode_check): Remove function.
10232         (set_binary_mode): Define here on DJGPP and EMX. Inline
10233         __gl_setmode_check. In case of a tty, don't return an error code.
10235 2019-05-28  James Youngman  <jay@gnu.org>
10237         dirent-safer: Make opendir_safer usable from C++.
10238         * lib/dirent-safer.h: use extern "C".
10240 2019-05-28  James Youngman  <jay@gnu.org>
10242         canonicalize: Make canonicalize_filename_mode usable from C++.
10243         * lib/canonicalize.h: use extern "C".
10245 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
10247         prefix-gnulib-mk: Fix CPPFLAGS migration.
10248         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
10249         _a part of the library name.
10251 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10253         flexmember: update comments again
10254         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
10256         flexmember: update comment
10257         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
10259 2019-05-20  Bruno Haible  <bruno@clisp.org>
10261         setlocale: Improve fallback on macOS.
10262         * lib/setlocale.c (search): Optimize away a redundant strcmp()
10263         invocation.
10264         (locales_with_principal_territory): New array.
10265         (langcmp, get_main_locale_with_same_language): New functions.
10266         (locales_with_principal_language): New array.
10267         (terrcmp, get_main_locale_with_same_territory): New functions.
10268         (rpl_setlocale): When setlocale_single failed, try again with a locale
10269         that is more likely to exist. Don't warn if the environment variable
10270         SETLOCALE_VERBOSE is not set.
10272 2019-05-19  Bruno Haible  <bruno@clisp.org>
10274         localename: Fix default on macOS.
10275         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
10276         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
10277         (gl_locale_name_environ, gl_locale_name_default): Remove code for
10278         HAVE_CFLOCALECOPYCURRENT.
10279         * lib/localename.h (gl_locale_name_default): Update.
10281 2019-05-19  Karl Berry  <karl@freefriends.org>
10283         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
10284         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
10285         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
10287 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
10289         maintainer-makefile: catch uses of $< in non-implicit rules
10290         * top/maint.mk (sc_prohibit_magic_number_exit): New.
10292 2019-05-18  Bruno Haible  <bruno@clisp.org>
10294         threadlib: Provide an easy way to avoid mingw's winpthreads library.
10295         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
10296         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
10297         gl_use_threads accordingly.
10299 2019-05-18  Bruno Haible  <bruno@clisp.org>
10301         pthread_sigmask: Fix compilation error with --enable-threads=windows.
10302         Reported by Tim Rühsen in
10303         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
10304         and Michele Locati in
10305         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
10306         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
10307         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
10308         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
10309         in use and regardless which threads API is chosen.
10311 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
10313         close-stream, closein, closeout: simplify
10314         I noticed this opportunity for simplification while drafting a
10315         new, related module that I haven’t had time to finish yet.
10316         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
10317         * modules/close-stream (Files): Remove m4/close-stream.m4.
10318         (configure.ac): Omit gl_CLOSE_STREAM.
10319         * modules/closein (Files): Remove m4/closein.m4
10320         (configure.ac): Omit gl_CLOSEIN.
10321         * modules/closeout (Files): Remove m4/closeout.m4.
10322         (configure.ac): Omit gl_CLOSEOUT.
10324 2019-05-12  Bruno Haible  <bruno@clisp.org>
10326         libtool-next-version: New program.
10327         * build-aux/libtool-next-version: New file.
10329 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
10330             Bruno Haible  <bruno@clisp.org>
10332         version-etc: Ease translation.
10333         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
10334         URLs and formatting newlines out of translatable string.
10336 2019-05-11  Bruno Haible  <bruno@clisp.org>
10338         gnupload: Explain how to create symlinks.
10339         * build-aux/gnupload (usage): Add an example that creates symlinks.
10341 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
10343         fpucw: port to gcc -pedantic
10344         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
10345         Use __extension__ if using ({ ... }).
10347         crypto/af_alg: port to strict C compilers
10348         * lib/af_alg.c: Include af_alg.h regardless, so that the
10349         compilation unit is nonempty.
10351 2019-05-10  Bruno Haible  <bruno@clisp.org>
10353         base64: Avoid false positive warning from Coverity.
10354         Reported by Kamil Dudka <kdudka@redhat.com>.
10355         Idea by Paul Eggert.
10356         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
10357         '& 0x3f' to the array index expressions. This convinces Coverity that
10358         there is no out-of-bounds array reference, regardless of the input.
10360 2019-05-09  Bruno Haible  <bruno@clisp.org>
10362         gettext: Update to gettext 0.20.
10363         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
10364         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
10365         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
10366         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
10367         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
10368         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
10369         (configure.ac): Request infrastructure compatible with gettext 0.20.
10370         * m4/glibc2.m4: Remove file.
10371         * m4/intdiv0.m4: Remove file.
10372         * m4/intl.m4: Remove file.
10373         * m4/intldir.m4: Remove file.
10374         * m4/intmax.m4: Remove file.
10375         * m4/printf-posix.m4: Remove file.
10376         * m4/uintmax_t.m4: Remove file.
10377         * m4/gettext.m4: Update from gettext 0.20.
10378         * m4/po.m4: Likewise.
10380 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
10382         verify: remove verify_true
10383         * NEWS: Mention this.
10384         * lib/verify.h (verify_true): Remove.
10385         * tests/test-verify.c (item): Test verify_expr, not verify_true.
10387         Support C2X and C++17 static_assert
10388         C2X and C++17 finally added support for a simple, single-argument
10389         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
10390         doing back in 2005.  Implement static_assert on older platforms.
10391         The only remaining advantage of ‘verify’ is a shorter name.
10392         * doc/posix-headers/assert.texi (assert.h):
10393         * doc/verify.texi (Compile-time Assertions):
10394         Modernize for C2X and C++17.
10395         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
10396         New macros.
10397         (_GL_HAVE__STATIC_ASSERT): Remove.
10398         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
10399         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
10400         string.  All callers changed.
10401         (_GL_VERIFY): Require 3 or more args, of which only the first 2
10402         are used.  All callers changed.
10403         (_Static_assert): Allow either 1 or 2 args, and define if
10404         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
10405         !_GL_HAVE__STATIC_ASSERT.
10406         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
10407         of defining if !_GL_HAVE_STATIC_ASSERT.
10408         (verify_expr, verify): Don’t bother trying to copy the expression
10409         into the diagnostic, since 1-argument static_assert doesn’t.
10410         (verify): Prefer 1-argument _Static_assert if it works.
10411         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
10413 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10415         Fix _GL_HAVE__STATIC_ASSERT typo
10416         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
10417         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
10419 2019-05-05  Bruno Haible  <bruno@clisp.org>
10421         wcwidth: Ensure width 1, not 2, for ambiguous characters.
10422         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
10423         via Akim Demaille <akim.demaille@gmail.com>.
10424         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
10425         en_US.UTF-8 locale, since that is more likely to be present than an
10426         fr_FR.UTF-8 locale.
10427         * tests/test-wcwidth.c (main): Check the width of U+2202.
10428         * doc/posix-functions/wcwidth.texi: Mention the issue.
10430 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
10432         Port manywarnings to GCC 9
10433         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
10434         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
10435         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
10436         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
10437         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
10438         --help=warnings output.
10439         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
10440         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
10441         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
10443 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
10445         Sync lib/mktime-internal.h from glibc
10446         * config/srclist.txt: Add entry for lib/mktime-internal.h.
10447         * lib/mktime-internal.h: Autoupdate.
10449 2019-04-28  Bruno Haible  <bruno@clisp.org>
10451         tls tests: Prevent that the test takes too long.
10452         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
10453         (main): Let the test fail if it takes more than 10 minutes.
10454         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
10456 2019-04-27  Bruno Haible  <bruno@clisp.org>
10458         lock tests: Prevent that the test takes too long.
10459         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
10460         (main): Let the test fail if it takes more than 10 minutes.
10461         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
10463 2019-04-27  Bruno Haible  <bruno@clisp.org>
10465         localename: Fix crash on mingw (regression from 2018-11-23).
10466         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
10467         locale name that is null.
10469 2019-04-27  Bruno Haible  <bruno@clisp.org>
10471         Fix gcc warnings on 64-bit mode mingw.
10472         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
10473         * lib/gl_array_list.c: Likewise.
10474         * lib/gl_array_map.c: Likewise.
10475         * lib/gl_array_set.c: Likewise.
10476         * lib/gl_carray_list.c: Likewise.
10477         * lib/gl_sublist.c: Likewise.
10478         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
10479         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
10480         * lib/gl_hash_map.c (uintptr_t): Likewise.
10481         * lib/gl_hash_set.c (uintptr_t): Likewise.
10482         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
10483         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
10484         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
10485         * lib/iconv.c (uintptr_t): Likewise.
10486         * lib/iconv_close.c (uintptr_t): Likewise.
10487         * tests/test-lock.c: Include <stdint.h>.
10488         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
10489         'long'.
10490         * modules/clean-temp (Depends-on): Add stdint.
10491         * modules/array-list (Depends-on): Likewise.
10492         * modules/array-map (Depends-on): Likewise.
10493         * modules/array-set (Depends-on): Likewise.
10494         * modules/carray-list (Depends-on): Likewise.
10495         * modules/sublist (Depends-on): Likewise.
10496         * modules/lock-tests (Depends-on): Likewise.
10498 2019-04-27  Bruno Haible  <bruno@clisp.org>
10500         error: Tweak indentation.
10501         * lib/error.c: Correct indentation.
10503 2019-04-27  Bruno Haible  <bruno@clisp.org>
10505         term-style-control: Fix gcc warning on mingw.
10506         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
10507         of i.
10509 2019-04-26  Bruno Haible  <bruno@clisp.org>
10511         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
10512         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
10514 2019-04-26  Bruno Haible  <bruno@clisp.org>
10516         relocatable-prog: Fix gcc warning on mingw.
10517         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
10518         on EMX.
10520 2019-04-02  Bruno Haible  <bruno@clisp.org>
10522         gitsub.sh: New file.
10523         * top/gitsub.sh: New file.
10525 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
10527         argmatch: use void* for raw memory pointers
10528         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
10529         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
10530         to "values", keep char* for strings.
10532 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
10534         prefix-gnulib-mk: fix the support for gnulib-po
10535         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
10536         Don't touch HAVE_* variables.
10537         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
10539 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
10541         di-set: allow free with 'ino_map' being NULL.
10542         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
10543         is NULL.  Bug introduced in commit 3703dbbe88dd.
10544         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
10545         as a test.
10547 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
10549         * lib/str-two-way.h: Fix comment typo.
10551 2019-04-13  Bruno Haible  <bruno@clisp.org>
10553         x-to-1: Restore ability to use original calling convention.
10554         * build-aux/x-to-1.in: Add comments. Accept the original form of
10555         HELP2MAN argument as well as the form expected since 2012-12-12.
10557 2019-04-13  Bruno Haible  <bruno@clisp.org>
10559         x-to-1: Avoid failure due to missing perl modules.
10560         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
10561         needs are installed.
10563 2019-04-13  Bruno Haible  <bruno@clisp.org>
10565         openmp-init: New module.
10566         * modules/openmp-init: New file.
10567         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
10568         the changes from 2019-04-09.
10570 2019-04-12  Bruno Haible  <bruno@clisp.org>
10572         signbit: Fix compilation error when gnulib's math.h exists twice.
10573         * lib/math.in.h (GNULIB_defined_signbit): New macro.
10575 2019-04-12  Bruno Haible  <bruno@clisp.org>
10577         openmp: Fix compilation error on platforms without OpenMP.
10578         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
10580 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
10582         mountlist: make parsing /proc/self/mountinfo more robust
10583         Cater for the following issues with mountinfo parsing (the first
10584         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
10585         in <https://bugs.gnu.org/35137>).
10586         1. The fields source, target, mntroot and fstype may contain characters
10587         like '\r'; sscanf(3) fails to read such values with the %s format
10588         specifier because it would stop at such characters.
10589         Example: "mount -t tmpfs tmpfs /foo^Mbar".
10590         The only true separator in that file is the ' ' character.
10591         2. The source field may be an empty string, which happens e.g. with
10592         "mount -t tmpfs '' /target".
10593         3. The fstype field may contain mangled characters as well which need
10594         unescaping.
10595         * lib/mountlist.c (terminate_at_blank): Add utility function.
10596         (read_file_system_list): In the block trying to read the mountinfo file,
10597         avoid using sscanf(3) with %s format; instead, parse the above fields
10598         separated by spaces one by one.
10599         This also handles the case when the source field is an empty string.
10600         Unescape the fstype field.
10602 2019-04-09  Bruno Haible  <bruno@clisp.org>
10604         openmp: Add workaround for 32-bit programs on AIX.
10605         * lib/omp.in.h: New file.
10606         * lib/omp-init.c: New file, based on lib/nproc.c.
10607         * m4/omp_h.m4: New file.
10608         * modules/openmp (Files): Add them.
10609         (Depends-on): Add include_next, c-ctype, setenv.
10610         (configure.ac): Invoke gl_OMP_H.
10611         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
10612         (Include): Mention <omp.h>.
10614 2019-04-09  Bruno Haible  <bruno@clisp.org>
10616         nproc: Fix return value for privileged processes.
10617         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
10618         getpid().
10620 2019-04-07  Bruno Haible  <bruno@clisp.org>
10622         Add copyright notices in several files.
10623         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
10624         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
10625         * lib/libunistring.valgrind: Likewise.
10626         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
10627         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
10628         * lib/memchr.valgrind: Likewise.
10629         * lib/memchr2.valgrind: Likewise.
10630         * lib/rawmemchr.valgrind: Likewise.
10631         * lib/relocatable.valgrind: Likewise.
10632         * lib/strchrnul.valgrind: Likewise.
10634 2019-03-25  Bruno Haible  <bruno@clisp.org>
10636         term-style-control tests: Fix link error.
10637         Reported by Tom G. Christensen in
10638         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
10639         * modules/term-style-control-tests (Makefile.am): Link
10640         test-term-style-control-hello and test-term-style-control-yes against
10641         LIBINTL.
10643 2019-03-24  Bruno Haible  <bruno@clisp.org>
10645         term-style-control: Add tests.
10646         * tests/test-term-style-control-hello.c: New file.
10647         * tests/test-term-style-control-yes.c: New file.
10648         * modules/term-style-control-tests: New file.
10650         term-style-control: New module.
10651         * lib/term-style-control.h: New file, based on libtextstyle's
10652         term-ostream.oo.h and term-ostream.oo.c.
10653         * lib/term-style-control.c: New file, based on libtextstyle's
10654         term-ostream.oo.c.
10655         * modules/term-style-control: New file.
10657 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
10659         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
10660         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
10661         C++98 appears to be supported by Clang, but not by GCC nor ICC.
10663 2019-03-23  Bruno Haible  <bruno@clisp.org>
10665         Support cross-compilation to musl libc.
10666         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
10667         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
10668         musl libc.
10669         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10670         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
10671         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
10672         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10673         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10674         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
10675         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10676         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
10677         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10678         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
10679         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
10680         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
10681         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
10682         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10683         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
10684         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
10685         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
10686         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10687         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
10688         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10689         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10690         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10691         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
10692         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10693         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
10694         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
10695         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
10696         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
10697         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
10698         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10699         * m4/log.m4 (gl_FUNC_LOG): Likewise.
10700         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
10701         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
10702         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
10703         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
10704         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
10705         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
10706         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
10707         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
10708         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
10709         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
10710         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
10711         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
10712         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10713         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
10714         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
10715         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
10716         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
10717         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
10718         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
10719         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
10720         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
10721         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10722         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
10723         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10724         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
10725         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
10726         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
10727         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
10728         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10729         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10730         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10731         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10732         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
10733         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10734         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10735         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10736         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
10737         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10738         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
10739         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10740         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10741         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10742         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
10743         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
10744         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
10745         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10746         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10748 2019-03-23  Bruno Haible  <bruno@clisp.org>
10750         posix_spawn_file_actions_*: Document musl libc bugs.
10751         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10752         the bug.
10753         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
10754         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
10755         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
10756         cross-compiling to a musl system, guess no.
10757         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
10758         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
10760 2019-03-23  Bruno Haible  <bruno@clisp.org>
10762         futimens: Document musl libc bug.
10763         * doc/posix-functions/futimens.texi: Mention the bug.
10764         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
10765         cross-compiling, guess no on glibc and musl systems.
10767 2019-03-23  Bruno Haible  <bruno@clisp.org>
10769         Clarify that cross-compilation guesses are guesses.
10770         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
10771         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
10772         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
10773         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
10774         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
10775         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
10776         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
10777         gl_cv_glob_lists_symlinks.
10778         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
10779         'guessing ' to ac_cv_func_malloc_0_nonnull.
10780         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
10781         'guessing ' to ac_cv_func_realloc_0_nonnull.
10782         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
10783         'guessing ' to gl_cv_func_poll.
10784         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
10785         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
10786         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
10788 2019-03-23  Bruno Haible  <bruno@clisp.org>
10790         strtold: Fix typo.
10791         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
10793 2019-03-23  Bruno Haible  <bruno@clisp.org>
10795         noreturn: In C++ mode with clang, use _Noreturn as fallback.
10796         Reported by Akim Demaille.
10797         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
10798         [[noreturn]] would not work, use _Noreturn instead.
10800 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
10802         libtextstyle-optional: Fix compiler warnings.
10803         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
10804         as unused.
10806 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10808         bitset: fix memory leaks
10809         Reported by Bruno Haible.
10810         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
10811         * lib/bitset/vector.c (vbitset_free): New.
10812         (vbitset_vtable): Use it.
10814 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10816         bitset: minor changes
10817         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
10818         * lib/bitset/table.c: Formatting changes.
10819         Remove useless braces.
10820         Prefer using else in cascades of if/else-if with returns.
10821         * lib/bitset/vector.c: Reduce scopes.
10823 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10825         bitset: expose bitset_resize
10826         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
10827         * tests/test-bitset.c (check_attributes): Check bitset_resize.
10828         (main): Use a variable bitset as reference, since fixed does not support resize.
10830 2019-03-19  Bruno Haible  <bruno@clisp.org>
10832         doc: Document the 'stdnoreturn' and 'noreturn' modules.
10833         Reported by Akim Demaille.
10834         * doc/noreturn.texi: New file.
10835         * doc/gnulib.texi: Include it.
10837 2019-03-19  Bruno Haible  <bruno@clisp.org>
10839         doc: Document how to use 'static inline'.
10840         * doc/static-inline.texi: New file.
10841         * doc/gnulib.texi: Include it.
10843 2019-03-19  Bruno Haible  <bruno@clisp.org>
10845         libtextstyle-optional: Add tests.
10846         * tests/test-libtextstyle.c: New file, based on libtextstyle's
10847         adhoc-tests/hello.c.
10848         * tests/test-libtextstyle-default.css: New file, copied from
10849         libtextstyle's adhoc-tests/hello-default.css.
10850         * modules/libtextstyle-optional-tests: New file.
10852         libtextstyle-optional: New module.
10853         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
10854         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
10855         * modules/libtextstyle-optional: New file.
10857 2019-03-19  Bruno Haible  <bruno@clisp.org>
10859         c-stack: Make signal handlers more reliable.
10860         * lib/c-stack.c (progname): New variable.
10861         (die): Use it.
10862         (c_stack_action): Initialize it.
10863         (segv_handler): Save and restore errno.
10865 2019-03-19  Bruno Haible  <bruno@clisp.org>
10867         Help making signal handlers more reliable.
10868         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
10869         _GL_ASYNC_SAFE into config.h.
10870         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
10871         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
10872         argument.
10873         * lib/fatal-signal.c (action_t, uninstall_handlers,
10874         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
10875         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
10876         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
10877         _GL_ASYNC_SAFE.
10878         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
10879         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
10881 2019-03-18  Bruno Haible  <bruno@clisp.org>
10883         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
10884         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
10885         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
10887 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
10889         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
10890         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
10891         GCC 4.8.
10893 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
10895         fts: minor simplification
10896         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
10898 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
10900         bitset, timevar: Depend on c99.
10901         Reported by Bruno Haible.
10902         * modules/bitset, modules/timevar (Depends-on): Add c99.
10904 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
10906         bitset: a bit (...) more tests
10907         * tests/test-bitset.c (check_attributes): Check zero and ones.
10909 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
10911         bitset: fix overflows.
10912         Reported by Bruno Haible.
10913         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
10914         * lib/bitset/table.c (tbitset_test): last_bit is the position of
10915         the bit in the array of bitset_word, so be sure to take its modulo
10916         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
10917         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
10919 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
10921         bitset: style changes.
10922         * lib/bitset/table.c: Use NULL, not 0, for pointers.
10923         Formatting changes.
10924         (tbitset_list): Reduce scopes.
10926 2019-03-16  Bruno Haible  <bruno@clisp.org>
10928         fatal-signal: Pass the signal number to the action.
10929         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
10930         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
10931         (fatal_signal_handler): Pass the signal number to the action.
10932         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
10933         signal number as parameter.
10934         (create_temp_dir): Update.
10935         * lib/wait-process.c (cleanup_slaves_action): New function.
10936         (register_slave_subprocess): Update at_fatal_signal invocation.
10937         * NEWS: Mention the change.
10939 2019-03-16  Bruno Haible  <bruno@clisp.org>
10941         fatal-signal: Add function that lists the fatal signals.
10942         * lib/fatal-signal.h (get_fatal_signals): New declaration.
10943         * lib/fatal-signal.c (get_fatal_signals): New function.
10945 2019-03-14  Bruno Haible  <bruno@clisp.org>
10947         isatty: Make it return true in Cygwin consoles on native Windows.
10948         * lib/isatty.c: Include <string.h>.
10949         (GetProcAddress): New macro.
10950         (GetNamedPipeClientProcessIdFuncType): New type.
10951         (GetNamedPipeClientProcessIdFunc): New variable.
10952         (QueryFullProcessImageNameFuncType): New type.
10953         (QueryFullProcessImageNameFunc): New variable.
10954         (initialized): New variable.
10955         (initialize): New function.
10956         (IsCygwinConsoleHandle): New function.
10957         (isatty): Invoke it.
10958         * doc/posix-functions/isatty.texi: Mention the issue.
10960 2019-03-14  Bruno Haible  <bruno@clisp.org>
10962         all: Update URLs to msdn.microsoft.com.
10963         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
10964         was moved to docs.microsoft.com.
10966 2019-03-13  Bruno Haible  <bruno@clisp.org>
10968         gnulib-tool: Clarify the coding style.
10969         Suggested by Pavel Raiskup <praiskup@redhat.com>.
10970         * gnulib-tool: Add comment about coding style.
10972 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
10974         strtod: fix clash with strtold
10975         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
10976         * lib/strtod.c (compute_minus_zero, minus_zero):
10977         Simplify by remving the macro / external variable,
10978         and having just a function.  User changed.  This avoids
10979         the need for an external variable that might clash.
10981 2019-03-10  Bruno Haible  <bruno@clisp.org>
10983         alloca-opt: Fix conflict mingw's new <alloca.h> file.
10984         Reported by Eli Zaretskii <eliz@gnu.org>.
10985         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
10986         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
10987         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
10989 2019-03-10  Bruno Haible  <bruno@clisp.org>
10991         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
10992         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
10993         is in use.
10994         * tests/test-printf-posix2.c: Likewise.
10996 2019-03-10  Bruno Haible  <bruno@clisp.org>
10998         uninorm tests: Free allocated memory.
10999         * tests/uninorm/test-u32-normalize-big.h
11000         (struct normalization_test_file): Remove 'const' from allocated member.
11001         (free_normalization_test_file): New declaration.
11002         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
11003         memory.
11004         (free_normalization_test_file): New function.
11005         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
11006         'struct normalization_test_file' contents.
11007         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
11008         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
11009         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
11011 2019-03-10  Bruno Haible  <bruno@clisp.org>
11013         di-set: Fix memory leak.
11014         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
11015         not free().
11017 2019-03-10  Bruno Haible  <bruno@clisp.org>
11019         tests: Free allocated memory.
11020         Reported by <deltatau@protonmail.com> via Assaf Gordon.
11021         * tests/test-astrxfrm.c (main): Free allocated memory.
11022         * tests/test-bitset.c (compare, check_attributes): Free allocated
11023         bitsets.
11024         * tests/test-filenamecat.c (main): Free allocated memory.
11025         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
11026         * tests/test-freadptr.c (main): Likewise.
11027         * tests/test-freadptr2.c (main): Free allocated memory.
11028         * tests/test-freadseek.c (main): Likewise.
11029         * tests/test-gc-arcfour.c (main): Close allocated context.
11030         * tests/test-gc-arctwo.c (main): Likewise.
11031         * tests/test-gc-des.c (main): Close all allocated contexts.
11032         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
11033         * tests/test-pipe-filter-ii1.c (main): Likewise.
11034         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
11035         allocated file actions.
11036         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
11037         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
11038         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
11039         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
11040         * tests/test-strfmon_l.c (main): Free allocated locales.
11041         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
11042         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
11043         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11044         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
11045         * tests/unistr/test-chr.h (main): Free input32.
11046         * tests/unistr/test-strchr.h (test_strchr): Likewise.
11048 2019-03-10  Bruno Haible  <bruno@clisp.org>
11050         tests: Prepare for using valgrind.
11051         * tests/*.sh: Invoke all test programs through ${CHECKER}.
11052         * tests/*/*.sh: Likewise.
11053         * tests/test-freadptr.c (main): Update accordingly.
11054         * tests/test-freadseek.c (main): Likewise.
11056 2019-03-09  Bruno Haible  <bruno@clisp.org>
11058         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
11059         * lib/get-rusage-as.c (get_rusage_as): When compiled by
11060         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
11061         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
11062         before exiting.
11064 2019-03-09  Jim Meyering  <meyering@fb.com>
11066         test-userspec.c: don't print NULL
11067         * tests/test-userspec.c (main): A test release of gcc,
11068         9.0.1 20190310, warned that this test would attempt to
11069         print a NULL pointer via a %s printf format.  Fix that
11070         and remove the unnecessary preceding "!diag" conjunct.
11071         Also add a comment.
11073 2019-03-03  Bruno Haible  <bruno@clisp.org>
11075         getloadavg: Write NULL for the null pointer.
11076         Reported by Michal Privoznik <mprivozn@redhat.com>.
11077         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
11079 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
11081         alloca, tsearch-tests: Write NULL for the null pointer.
11082         * lib/alloca.c (i00afunc): Write NULL instead of 0.
11083         * tests/test-tsearch.c (mangle_tree): Likewise.
11085 2019-03-09  Bruno Haible  <bruno@clisp.org>
11087         strfmon_l: Fix -fsanitize=address finding.
11088         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
11089         <string.h>.
11090         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
11091         (directive_t, directives_t): New types.
11092         (fmon_parse): New function.
11093         (rpl_strfmon_l): Don't call va_arg more often than needed for the
11094         format string. Consume 'long double' arguments in places where the
11095         format string indicates so.
11096         * modules/strfmon_l (Depends-on): Add 'stdbool'.
11098 2019-03-09  Bruno Haible  <bruno@clisp.org>
11100         crypto/des: Fix undefined behaviour.
11101         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
11102         shift operations on 'int'.
11104 2019-03-09  Bruno Haible  <bruno@clisp.org>
11106         Fix undefined behaviour.
11107         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
11108         'unsigned int', to avoid shift operations on 'int'.
11109         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
11110         * tests/test-count-leading-zeros.c (main): Use a random number that has
11111         as many bits as TYPE, not only 2*15 or 2*31 bits.
11112         * tests/test-count-trailing-zeros.c (main): Likewise.
11113         * tests/test-count-one-bits.c (main): Likewise.
11114         * tests/test-memmem.c: Don't include "null-ptr.h".
11115         (main): Use zerosize_ptr() instead of null_ptr().
11116         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
11118 2019-03-08  Bruno Haible  <bruno@clisp.org>
11120         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
11121         Reported by Jeffrey Walton <noloader@gmail.com>.
11122         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
11123         invoke memset with a zero size.
11124         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
11125         Likewise.
11126         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
11127         Adjust accordingly.
11129 2019-03-08  Bruno Haible  <bruno@clisp.org>
11131         unistr/*, uniconv/*: Fix undefined behaviour.
11132         Reported by Jeffrey Walton <noloader@gmail.com>.
11133         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
11134         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
11135         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
11136         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
11138 2019-03-08  Bruno Haible  <bruno@clisp.org>
11140         unistr/u8-cmp: Fix undefined behaviour.
11141         Reported by Jeffrey Walton <noloader@gmail.com>.
11142         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
11144 2019-03-08  Bruno Haible  <bruno@clisp.org>
11146         unictype/numeric: Fix undefined behaviour.
11147         Reported by Jeffrey Walton <noloader@gmail.com>.
11148         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
11149         on shift overflow, caught by "gcc -fsanitize=undefined".
11150         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
11151         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
11152         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
11154 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
11156         git-version-gen: fix --version copyright year
11157         * build-aux/git-version-gen, build-aux/move-if-change (version):
11158         --version output copyright year is now taken from script year,
11159         so that it no longer needs to be updated by hand.
11161 2019-03-04  Bruno Haible  <bruno@clisp.org>
11163         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
11164         This approach supports relocatable installation of shared libraries
11165         which depend on other shared libraries from the same package.
11166         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
11167         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
11168         wrapper around the original LIBTOOL.
11169         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
11170         token '@loader_path' instead of '$ORIGIN'.
11171         * build-aux/libtool-reloc: New file.
11172         * modules/relocatable-prog (Files): Add it.
11173         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
11174         the recent changes. Document the need to set the *_LDFLAGS of libraries.
11175         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
11176         Makefile.am, not in configure.ac.
11178 2019-03-04  Bruno Haible  <bruno@clisp.org>
11180         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
11181         * build-aux/install-reloc: Revert change.
11182         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
11184 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11186         nstrftime: support the ‘+’ flag
11187         * lib/nstrftime.c (add, __strftime_internal):
11188         Add support for the ‘+’ flag introduced in POSIX.1-2017.
11189         (__strftime_internal): New arg ‘width’.  All uses changed.
11190         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
11192 2019-02-24  Bruno Haible  <bruno@clisp.org>
11194         relocatable-prog: Improve verbose output.
11195         * build-aux/install-reloc (func_verbose): Escape characters that would
11196         be interpreted by the shell.
11198 2019-02-24  Bruno Haible  <bruno@clisp.org>
11200         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
11201         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
11202         "sys/stat.h".
11203         * lib/lstat.c: Likewise.
11204         * lib/fstat.c: Likewise.
11205         * lib/fstatat.c: Likewise.
11207 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
11209         long-options: add parse_gnu_standard_options_only
11210         Discussed in https://bugs.gnu.org/33468 .
11212         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
11213         (parse_gnu_standard_options_only): Add function to process
11214         the GNU default options --help and --version and fail for
11215         any other unknown long or short option. See
11216         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
11217         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
11218         * modules/long-options (depends-on): Add stdbool, exitfail.
11219         * top/maint.mk (sc_prohibit_long_options_without_use): Update
11220         syntax-check rule, add new function name.
11222 2019-02-23  Bruno Haible  <bruno@clisp.org>
11224         relocatable-prog: Update documentation.
11225         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
11226         the recent changes.
11228 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11230         nstrftime: tweak arg order
11231         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
11232         All callers changed.  Suggested by TAMUKI Shoichi in:
11233         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
11235 2019-02-23  Bruno Haible  <bruno@clisp.org>
11237         relocatable-prog: Use wrapper-free installation also on Mac OS X.
11238         Reported by Paul Smith <psmith@gnu.org>.
11239         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
11240         (func_relativize): New function, from gnulib-tool.
11241         Handle mode 'macosx' through invocations of 'otool' and
11242         'install_name_tool'.
11243         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
11244         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
11245         'install-reloc' invocation with mode 'macosx'.
11247 2019-02-23  Bruno Haible  <bruno@clisp.org>
11249         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
11250         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
11251         Hurd with glibc >= 2.27.
11253 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
11255         nstrftime: merge glibc strftime changes
11256         This incorporates:
11257         2019-02-11 Fix a few whitespace arrangement inconsistencies
11258         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
11259         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
11260         2019-01-11 strftime: use the "L_" macro with character literals
11261         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
11262         callers changed.  Default width of %Ey is now 2.  This is needed
11263         for proper handling of Japanese dates starting on 2019-05-01.
11265 2019-02-19  Bruno Haible  <bruno@clisp.org>
11267         relocatable-prog: Use $ORIGIN trick on more platforms.
11268         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
11269         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
11270         Solaris >= 10, Haiku. But don't use it on Android.
11271         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
11272         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
11274 2019-02-19  Bruno Haible  <bruno@clisp.org>
11276         progreloc: Speed up executable lookup on various platforms.
11277         * lib/progreloc.c: Include <errno.h>.
11278         (safe_read, full_read): New functions.
11279         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
11280         prefer the information from the /proc file system to a PATH search.
11282 2019-02-19  Bruno Haible  <bruno@clisp.org>
11284         progreloc: Simplify code for Android.
11285         * lib/progreloc.c (executable_fd): Don't define on Android.
11286         (maybe_executable, find_executable): Don't use executable_fd on Android.
11288 2019-02-15  Bruno Haible  <bruno@clisp.org>
11290         gnulib-tool: Support --import with just a few tests, not --with-tests.
11291         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
11292         'inctests' when generating files; use 'inctests' only for computing the
11293         transitive closure.
11295 2019-02-14  Bruno Haible  <bruno@clisp.org>
11297         gnulib-tool: Improve handling of multiple --local-dir options.
11298         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
11299         options work.
11300         * gnulib-tool (func_path_prepend): Remove function.
11301         (func_path_foreach): Make IFS handling more robust.
11302         (local_gnulib_path): Collect --local-dir values using func_path_append,
11303         not func_path_prepend.
11304         (func_determine_path_separator): Make IFS handling more robust.
11305         (func_lookup_file_cb): New function.
11306         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
11307         func_lookup_local_file. Apply the patches in the reverse order of their
11308         origin in $local_gnulib_path.
11309         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
11310         * NEWS: Mention that the first --local-dir option is the one with
11311         highest priority.
11313 2019-02-10  Bruno Haible  <bruno@clisp.org>
11315         libtextstyle: New module.
11316         * m4/libtextstyle.m4: New file.
11317         * modules/libtextstyle: New file.
11319 2019-02-05  Bruno Haible  <bruno@clisp.org>
11321         declared.sh: Fix bug with variables of pointer type.
11322         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
11323         before the symbol to be omitted if the preceding character is a '*'.
11325 2019-02-04  Bruno Haible  <bruno@clisp.org>
11327         Add script for running tests under valgrind.
11328         * build-aux/run-test: New file, from GNU libunistring.
11329         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
11330         as well.
11332 2019-02-04  Bruno Haible  <bruno@clisp.org>
11334         declared.sh: Fix --version output.
11335         * build-aux/declared.sh (func_version): Update package name.
11337 2019-02-03  Bruno Haible  <bruno@clisp.org>
11339         Add script for determining the set of symbols to export from a library.
11340         * build-aux/declared.sh: New file, from GNU libunistring.
11341         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
11342         Mention it.
11344 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
11346         vla: add commentary about VLA_ELEMS
11347         * lib/vla.h (VLA_ELEMS): Add commentary,
11348         some inspired by Bruno Haible’s proposal in:
11349         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
11351         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
11352         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
11353         assume the C99 signatures for strtod and strtold.  Programs that
11354         require stricter adherence to C99 should also use the strtod and
11355         strtold modules as needed, and we no longer need the
11356         HAVE_C99_STRTOLD macro.
11357         * NEWS: Mention this.
11358         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
11359         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
11360         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
11361         (Files): Remove m4/c-strtod.m4.
11362         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
11363         exists.
11365 2019-02-02  Bruno Haible  <bruno@clisp.org>
11367         fma: Improve code style.
11368         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
11370 2019-02-02  Colin Watson  <cjwatson@debian.org>
11372         *-map tests: Fix compilation error.
11373         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
11374         * tests/test-hash_map.c: Likewise.
11375         * tests/test-linkedhash_map.c: Likewise.
11377 2019-01-31  Bruno Haible  <bruno@clisp.org>
11379         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
11380         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
11381         GNULIB_defined_strtold_function): New macros.
11382         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
11383         (STRTOD): Ignore HAVE_C99_STRTOLD.
11384         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
11385         deemed buggy. But do use it on platforms where uselocale exists and is
11386         usable.
11387         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
11388         deemed buggy. On platforms where uselocale exists and is usable, use
11389         uselocale and strtod/strtold.
11390         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
11391         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
11392         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
11393         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
11394         (Depends-on): Add strtod.
11395         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
11396         (Depends-on): Add strtold.
11398 2019-01-31  Bruno Haible  <bruno@clisp.org>
11400         strtod, strtold: Use the locale's decimal point.
11401         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
11402         (decimal_point_char): New function, copied from lib/vasnprintf.c.
11403         (parse_number): Add a radixchar argument. Use it instead of '.'.
11404         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
11405         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
11406         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
11407         * tests/test-strtod1.c: New file.
11408         * tests/test-strtod1.sh: New file.
11409         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
11410         locale-fr.m4 and its dependencies.
11411         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11412         (Makefile.am): Arrange to compile test-strtod1.c and run
11413         test-strtod1.sh.
11414         * tests/test-strtold1.c: New file.
11415         * tests/test-strtold1.sh: New file.
11416         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
11417         locale-fr.m4 and its dependencies.
11418         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11419         (Makefile.am): Arrange to compile test-strtold1.c and run
11420         test-strtold1.sh.
11422 2019-01-31  Bruno Haible  <bruno@clisp.org>
11424         strtod, strtold tests: Simplify tests.
11425         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
11426         * tests/test-strtold.c (main): Likewise.
11428 2019-01-31  Bruno Haible  <bruno@clisp.org>
11430         strtod, strtold: Avoid unnecessary rounding errors.
11431         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
11432         decimal to DOUBLE conversion.
11434 2019-01-31  Bruno Haible  <bruno@clisp.org>
11436         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
11437         * lib/strtod.c (STRTOD): When there is an extra character after the
11438         exponent marker 'p', reparse the number.
11439         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
11440         * doc/posix-functions/strtold.texi: Likewise.
11442 2019-01-29  Bruno Haible  <bruno@clisp.org>
11444         strtold: Add tests.
11445         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
11446         * modules/strtold-tests: New file.
11448 2019-01-29  Bruno Haible  <bruno@clisp.org>
11450         strtold: New module.
11451         * lib/stdlib.in.h (strtold): New declaration.
11452         * lib/strtold.c: New file.
11453         * lib/strtod.c: Consider USE_LONG_DOUBLE.
11454         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
11455         USE_LDEXP): New macros.
11456         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
11457         USE_LONG_DOUBLE.
11458         (underlying_strtod): Remove function. Replace with some macros.
11459         Re-add the code for a missing underlying function that was removed on
11460         2013-02-19.
11461         * m4/strtold.m4: New file.
11462         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
11463         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
11464         REPLACE_STRTOLD.
11465         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
11466         REPLACE_STRTOLD.
11467         * modules/strtold: New file.
11468         * doc/posix-functions/strtold.texi: Document the new module.
11470 2019-01-29  Bruno Haible  <bruno@clisp.org>
11472         strtod: Fix compilation error on IRIX 6.5.
11473         * modules/strtod (Depends-on): Add 'math'.
11475 2019-01-28  Bruno Haible  <bruno@clisp.org>
11477         Fix build error when building a shared libunistring on Android.
11478         * tests/uninorm/test-nfc.c (n): Don't define on Android.
11479         (main): Add 'volatile', to defeat a GCC optimization that would
11480         eliminate the reference.
11481         * tests/uninorm/test-nfd.c (n): Don't define on Android.
11482         (main): Add 'volatile', to defeat a GCC optimization that would
11483         eliminate the reference.
11484         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
11485         (main): Add 'volatile', to defeat a GCC optimization that would
11486         eliminate the reference.
11487         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
11488         (main): Add 'volatile', to defeat a GCC optimization that would
11489         eliminate the reference.
11491 2019-01-27  Bruno Haible  <bruno@clisp.org>
11493         Avoid build errors due to wrong references between modules.
11494         * lib/uninorm/canonical-decomposition.c: Include
11495         "uninorm/decomposition-table.h", not "decomposition-table.h".
11496         * lib/uninorm/decomposition.c: Likewise.
11497         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
11498         not "decompose-internal.h".
11499         * lib/uninorm/u16-normalize.c: Likewise.
11500         * lib/uninorm/u32-normalize.c: Likewise.
11501         * lib/uninorm/uninorm-filter.c: Likewise.
11502         * lib/uninorm/nfkc.c: Likewise.
11503         * lib/uninorm/nfkd.c: Likewise.
11504         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
11505         "caseprop.h".
11506         * lib/unicase/u8-ct-totitle.c: Likewise.
11507         * lib/unicase/u8-prefix-context.c: Likewise.
11508         * lib/unicase/u8-suffix-context.c: Likewise.
11509         * lib/unicase/u16-casemap.c: Likewise.
11510         * lib/unicase/u16-ct-totitle.c: Likewise.
11511         * lib/unicase/u16-prefix-context.c: Likewise.
11512         * lib/unicase/u16-suffix-context.c: Likewise.
11513         * lib/unicase/u32-casemap.c: Likewise.
11514         * lib/unicase/u32-ct-totitle.c: Likewise.
11515         * lib/unicase/u32-prefix-context.c: Likewise.
11516         * lib/unicase/u32-suffix-context.c: Likewise.
11517         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
11518         "unicasemap.h".
11519         * lib/unicase/u8-toupper.c: Likewise.
11520         * lib/unicase/u8-ct-tolower.c: Likewise.
11521         * lib/unicase/u8-ct-toupper.c: Likewise.
11522         * lib/unicase/u16-tolower.c: Likewise.
11523         * lib/unicase/u16-toupper.c: Likewise.
11524         * lib/unicase/u16-ct-tolower.c: Likewise.
11525         * lib/unicase/u16-ct-toupper.c: Likewise.
11526         * lib/unicase/u32-tolower.c: Likewise.
11527         * lib/unicase/u32-toupper.c: Likewise.
11528         * lib/unicase/u32-ct-tolower.c: Likewise.
11529         * lib/unicase/u32-ct-toupper.c: Likewise.
11530         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
11531         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
11532         * lib/unicase/u16-ct-casefold.c: Likewise.
11533         * lib/unicase/u32-ct-casefold.c: Likewise.
11535 2019-01-27  Bruno Haible  <bruno@clisp.org>
11537         gperf: Fix error when this module is required by some test module.
11538         * modules/gperf (Applicability): Set to 'all'.
11540 2019-01-27  Bruno Haible  <bruno@clisp.org>
11542         tmpfile: Add support for Android.
11543         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
11544         works.
11545         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
11546         Android.
11547         * modules/tmpfile (Depends-on): Add 'stdbool'.
11548         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
11549         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
11551 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
11553         bitsetv: allow free on NULL.
11554         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
11556 2019-01-27  Bruno Haible  <bruno@clisp.org>
11558         test-framework-sh: Improve maintainability.
11559         * tests/init.sh: Clarify what belongs together. Reorder definitions.
11561 2019-01-27  Bruno Haible  <bruno@clisp.org>
11563         tests: Don't assume that /tmp exists.
11564         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
11565         * tests/test-copy-acl-1.sh: Likewise.
11566         * tests/test-file-has-acl-1.sh: Likewise.
11567         * tests/test-copy-file-1.sh: Likewise.
11569 2019-01-27  Bruno Haible  <bruno@clisp.org>
11571         tests: Accommodate a shell that is not in /bin/sh.
11572         * tests/init.sh (setup_): Set srcdir and builddir.
11573         (BOURNE_SHELL): New variable.
11574         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
11575         * modules/file-has-acl-tests (Depends-on): Likewise.
11576         * modules/copy-file-tests (Depends-on): Likewise.
11577         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
11578         scripts through $BOURNE_SHELL.
11579         * tests/test-set-mode-acl-2.sh: Likewise.
11580         * tests/test-copy-acl-1.sh: Likewise.
11581         * tests/test-copy-acl-2.sh: Likewise.
11582         * tests/test-file-has-acl-1.sh: Likewise.
11583         * tests/test-file-has-acl-2.sh: Likewise.
11584         * tests/test-copy-file-1.sh: Likewise.
11585         * tests/test-copy-file-2.sh: Likewise.
11586         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
11587         invoker.
11588         * tests/test-copy-acl.sh (builddir): Likewise.
11589         * tests/test-file-has-acl.sh (builddir): Likewise.
11590         * tests/test-copy-file.sh (builddir): Likewise.
11591         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
11592         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
11593         * tests/test-vc-list-files-git.sh: Likewise.
11595 2019-01-27  Bruno Haible  <bruno@clisp.org>
11597         tests: Fix some "unused variable" warnings.
11598         * tests/test-fts.c (fts_dealloc): Remove unused variable.
11599         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
11600         * tests/test-striconveh.c (main): Move some variable into the
11601         '#if HAVE_ICONV'.
11602         * tests/test-striconveha.c (main): Likewise.
11603         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
11604         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11605         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11606         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
11607         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11608         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
11609         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11610         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11611         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11612         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
11613         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
11614         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
11615         * tests/test-tsearch.c (main): Move some variable into the
11616         '#if HAVE_INITSTATE'.
11618 2019-01-27  Bruno Haible  <bruno@clisp.org>
11620         unigbrk/uc-grapheme-breaks: Fix build failure.
11621         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
11622         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
11624 2019-01-27  Bruno Haible  <bruno@clisp.org>
11626         mountlist: Merge two .m4 files.
11627         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
11628         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
11629         * m4/ls-mntd-fs.m4: Remove file.
11630         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
11632 2019-01-27  Bruno Haible  <bruno@clisp.org>
11634         tests: Enable Linux specific tests on Android.
11635         * tests/test-flock.c (main): Treat Android like Linux.
11636         * tests/test-openat-safer.c (main): Likewise.
11638 2019-01-27  Bruno Haible  <bruno@clisp.org>
11640         relocatable-prog: Use Linux code on Android.
11641         * lib/progreloc.c: Treat Android like Linux.
11643 2019-01-26  Bruno Haible  <bruno@clisp.org>
11645         getloadavg: Add support for Android.
11646         * lib/getloadavg.c: Treat Android like Linux.
11648 2019-01-26  Bruno Haible  <bruno@clisp.org>
11650         vma-iter: Add support for Android.
11651         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
11652         * lib/vma-iter.c: Treat Android like Linux.
11653         * lib/get-rusage-data.c (get_rusage_data): Likewise.
11655 2019-01-26  Bruno Haible  <bruno@clisp.org>
11657         fts: Optimize on Android.
11658         * lib/fts.c: Treat Android like Linux.
11660 2019-01-26  Bruno Haible  <bruno@clisp.org>
11662         fts: Add support for Android.
11663         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
11664         defined by this module and the ones in libc.
11665         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
11667 2019-01-26  Bruno Haible  <bruno@clisp.org>
11669         mountlist: Use Linux code on Android.
11670         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
11671         (unescape_tab, read_file_system_list): Enable Linux code on Android
11672         as well.
11673         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
11674         and endmntent.
11675         * modules/mountlist (Depends-on): Add 'getline'.
11677 2019-01-26  Bruno Haible  <bruno@clisp.org>
11679         localename tests: Fix test failure on Android.
11680         * modules/localename-tests (Depends-on): Add 'setlocale'.
11682 2019-01-26  Bruno Haible  <bruno@clisp.org>
11684         mountlist: Port better to Android.
11685         * lib/mountlist.c (MOUNTED): Redefine on Android.
11686         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
11687         Android.
11689 2019-01-26  Bruno Haible  <bruno@clisp.org>
11691         striconveh: Fix use of uninitialized iconv_t.
11692         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
11693         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
11694         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
11696 2019-01-26  Bruno Haible  <bruno@clisp.org>
11698         nonblocking-socket-tests: Fix test failure on Android 4.3.
11699         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
11700         also on Android.
11702 2019-01-26  Bruno Haible  <bruno@clisp.org>
11704         sh-filename: Add support for Android 4.3.
11705         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
11707 2019-01-26  Bruno Haible  <bruno@clisp.org>
11709         ptsname_r: Work around bug on Android 4.3.
11710         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
11711         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
11712         correct.
11713         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
11714         is defined, just fix the return value.
11715         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
11716         The behaviour of musl libc is nothing to be "fixed", since it is
11717         compliant with the next POSIX standard.
11719 2019-01-26  Bruno Haible  <bruno@clisp.org>
11721         ttyname_r: Work around bug on Android 4.3.
11722         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
11723         * lib/ttyname_r.c (ttyname_r): Implement for Android.
11724         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
11725         * doc/posix-functions/ttyname.texi: Likewise.
11727 2019-01-25  Bruno Haible  <bruno@clisp.org>
11729         getprogname: Port to Android 4.3.
11730         * lib/getprogname.c (getprogname): On Android, take only the last
11731         component of __progname.
11733 2019-01-25  Bruno Haible  <bruno@clisp.org>
11735         wcrtomb: Work around bug on Android 4.3.
11736         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
11737         the C locale.
11738         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
11739         which does not have the 'wctomb' function.
11740         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
11741         * tests/test-wcrtomb.c (main): Accept argument '5'.
11742         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
11744 2019-01-25  Bruno Haible  <bruno@clisp.org>
11746         setlocale: Work around bug on Android 4.3.
11747         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
11748         the "C" locale.
11749         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
11750         * doc/posix-functions/setlocale.texi: Mention the Android bug.
11752 2019-01-24  Bruno Haible  <bruno@clisp.org>
11754         memchr: Work around bug on Android <= 5.0.
11755         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
11756         * doc/posix-functions/memchr.texi: Mention the Android bug.
11758 2019-01-24  Bruno Haible  <bruno@clisp.org>
11760         random: Fix compilation error on Android 4.3.
11761         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
11762         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
11763         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
11764         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
11765         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11766         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
11767         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11768         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
11769         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11770         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
11771         REPLACE_INITSTATE, REPLACE_SETSTATE.
11772         * doc/posix-functions/random.texi: Correct the description of the
11773         situation on Android.
11774         * doc/posix-functions/srandom.texi: Likewise.
11775         * doc/posix-functions/rand.texi: Likewise.
11776         * doc/posix-functions/srand.texi: Likewise.
11778 2019-01-24  Bruno Haible  <bruno@clisp.org>
11780         mbtowc: Fix compilation error on Android 4.3.
11781         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
11782         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
11783         HAVE_MBTOWC.
11784         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
11785         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
11786         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
11787         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
11788         * doc/posix-functions/mbtowc.texi: Mention the change.
11790 2019-01-24  Bruno Haible  <bruno@clisp.org>
11792         fdatasync: Fix compilation error on Android 4.3.
11793         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
11794         test whether fdatasync() exists.
11796 2019-01-24  Bruno Haible  <bruno@clisp.org>
11798         unlinkat: Fix compilation error on Android 4.3.
11799         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
11800         also on Android.
11801         * doc/posix-functions/unlinkat.texi: Mention the issue.
11803 2019-01-24  Bruno Haible  <bruno@clisp.org>
11805         renameat: Fix compilation error on Android 4.3.
11806         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
11807         * doc/posix-functions/renameat.texi: Mention the issue.
11809 2019-01-24  Bruno Haible  <bruno@clisp.org>
11811         fchownat: Fix compilation error on Android 4.3.
11812         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
11813         use.
11814         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
11815         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
11816         * doc/posix-functions/fchownat.texi: Mention the issue.
11818 2019-01-23  Bruno Haible  <bruno@clisp.org>
11820         gnulib-tool: Support running testdirs on Android.
11821         * build-aux/test-driver.diff: New file.
11822         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
11823         build-aux/test-driver after running automake.
11825 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
11827         relocatable-prog: avoid warnings from Automake
11828         * modules/relocatable-prog: Don't declare PHONY dependencies in
11829         Automake conditionals.
11831 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
11833         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
11834         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
11836 2019-01-23  Bruno Haible  <bruno@clisp.org>
11838         threadlib: Revert commit from 2018-06-25. We now have a better fix.
11839         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
11840         preceding -Wl,--as-needed option. Don't check whether the linker
11841         supports --as-needed/--no-as-needed and --push-state/--pop-state.
11843 2019-01-23  Bruno Haible  <bruno@clisp.org>
11845         thread: Force linking with -lpthread, even when --as-needed is in use.
11846         Reported by Richard W.M. Jones <rjones@redhat.com> in
11847         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
11848         * lib/glthread/thread.h (pthread_create): Don't declare weak.
11850 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
11851             Bruno Haible  <bruno@clisp.org>
11853         relocatable: avoid compiler warnings (-Wshadow)
11854         * lib/relocatable.c (compute_curr_prefix): Rename local variables
11855         to avoid name collisions with global variables.
11857 2019-01-22  Bruno Haible  <bruno@clisp.org>
11859         vasnprintf: Don't use %n on Android.
11860         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
11861         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
11862         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
11864 2019-01-22  Bruno Haible  <bruno@clisp.org>
11866         *printf: Support cross-compilation to Android.
11867         * m4/printf.m4: Add cross-compilation guesses for Android.
11869 2019-01-21  Bruno Haible  <bruno@clisp.org>
11871         diacrit: Mark deprecated.
11872         * modules/diacrit (Status, Notice): Mark as deprecated.
11873         * NEWS: Mention it.
11875 2019-01-20  Bruno Haible  <bruno@clisp.org>
11877         rintl: Override broken implementation on NetBSD.
11878         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
11879         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
11880         REPLACE_RINTL.
11881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
11882         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
11883         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
11884         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
11886 2019-01-20  Bruno Haible  <bruno@clisp.org>
11888         log10l: Work around inaccurate implementation on NetBSD.
11889         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
11890         * lib/log10l.c: Comment out too simplistic override.
11891         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
11893 2019-01-20  Bruno Haible  <bruno@clisp.org>
11895         logl: Work around inaccurate implementation on NetBSD.
11896         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
11897         * lib/logl.c: Comment out unused code.
11898         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
11900 2019-01-20  Bruno Haible  <bruno@clisp.org>
11902         expm1l: Work around inaccurate implementation on NetBSD.
11903         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
11904         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
11905         REPLACE_EXPM1L.
11906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
11907         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
11908         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
11909         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
11911 2019-01-20  Bruno Haible  <bruno@clisp.org>
11913         expl: Work around inaccurate implementation on NetBSD.
11914         * lib/math.in.h (expl): Test also REPLACE_EXPL.
11915         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
11916         REPLACE_EXPL.
11917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
11918         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
11919         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
11920         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
11922 2019-01-20  Bruno Haible  <bruno@clisp.org>
11924         exp2l: Work around inaccurate implementation on NetBSD.
11925         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
11926         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
11928 2019-01-20  Bruno Haible  <bruno@clisp.org>
11930         floor, floorl: Avoid autoconf warnings.
11931         * modules/floor (configure.ac): Use AC_REQUIRE.
11932         * modules/floorl (configure.ac): Likewise.
11934 2019-01-20  Bruno Haible  <bruno@clisp.org>
11936         Defeat current GCC optimizations in math autoconf tests.
11937         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
11938         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11939         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11940         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11941         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
11942         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11943         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11944         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11945         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
11946         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
11947         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
11948         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
11949         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
11950         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
11951         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
11952         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
11953         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
11954         * m4/log.m4 (gl_FUNC_LOG): Likewise.
11955         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
11956         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
11957         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
11958         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
11959         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
11960         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
11961         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
11962         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
11963         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
11964         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
11965         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
11966         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
11967         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
11968         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
11969         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11970         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11971         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11972         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11973         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11974         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11976 2019-01-19  Pádraig Brady  <P@draigBrady.com>
11978         gettext: support disabling use of VLAs
11979         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
11981 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
11983         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
11984         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
11986 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
11988         fcntl: Fix syntax error (regression from 2018-10-05).
11989         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
11991 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
11993         relocatable: improve documentation.
11994         * doc/relocatable-maint.texi (Supporting Relocation): For
11995         substitutions performed by config.status, we need more variables
11996         (for instance datarootdir defaults to '${prefix}/share' so we need
11997         prefix).
11999 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
12001         backup: update dependencies
12002         * modules/backup-rename (Depends-on): It now depends on opendirat
12003         instead of opendir.  It also uses stdint, and xalloc-oversized.
12004         But no longer dirfd.
12005         * modules/backupfile (Depends-on): Add xalloc-oversized.
12007 2019-01-13  Bruno Haible  <bruno@clisp.org>
12009         getcwd: Fix test failure when building on a Linux 9p file system.
12010         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
12011         EINVAL from mkdir like ENAMETOOLONG.
12012         * tests/test-getcwd.c (test_long_name): Likewise.
12014 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
12016         Fix typos found by codespell.
12017         * lib/*.[hc]: Fix typos in comments.
12018         * pygnulib/*.py: Fix typos in error messages and comments.
12020 2019-01-12  Bruno Haible  <bruno@clisp.org>
12022         doc: Fix documentation about container data types.
12023         Reported by Werner Lemberg <wl@gnu.org>.
12024         * doc/containers.texi (Container data types): Fix typo.
12026 2019-01-10  Bruno Haible  <bruno@clisp.org>
12028         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
12029         Reported by Reuben Thomas <rrt@sc3d.org>.
12030         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
12032 2019-01-06  Bruno Haible  <bruno@clisp.org>
12034         maintainer-makefile: Make the configure.ac section optional.
12035         * top/maint.mk (GREP, SED): Define if not defined.
12037 2019-01-06  Bruno Haible  <bruno@clisp.org>
12039         localename: Assume setlocale function.
12040         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
12041         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
12043 2019-01-06  Bruno Haible  <bruno@clisp.org>
12045         doc: Add documentation about container data types.
12046         * doc/containers.texi: New file.
12047         * doc/gnulib.texi (Particular Modules): Include it.
12049 2019-01-06  Bruno Haible  <bruno@clisp.org>
12051         doc: Update documentation about 'progname' module.
12052         * doc/progname.texi: Rename from doc/error.texi. Change node name and
12053         title. Rewrite.
12054         * doc/gnulib.texi (Particular Modules): Update.
12056 2019-01-06  Bruno Haible  <bruno@clisp.org>
12058         doc: Document the xstdopen and *-safer modules.
12059         * doc/xstdopen.texi: New file.
12060         * doc/gnulib.texi (Particular Modules): Include it.
12062 2019-01-06  Bruno Haible  <bruno@clisp.org>
12064         xstdopen: Add tests.
12065         * tests/test-xstdopen.c: New file.
12066         * tests/test-xstdopen.sh: New file.
12067         * modules/xstdopen-tests: New file.
12069         xstdopen: New module.
12070         * lib/xstdopen.h: New file.
12071         * lib/xstdopen.c: New file.
12072         * modules/xstdopen: New file.
12074 2019-01-06  Bruno Haible  <bruno@clisp.org>
12076         stdopen: Fix compilation error with IRIX cc.
12077         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
12079 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
12081         xfreopen need not include stdio--.h
12082         * lib/xfreopen.c: Do not include stdio--.h.
12084         xfreopen need not depend on freopen-safer
12085         * modules/xfreopen (Depends-on):
12086         Depend on freopen, not freopen-safer.
12088         stdopen: modernize and simplify
12089         * lib/stdopen.c: Update copyright date
12090         Do not include sys/types.h; no longer needed these days.
12091         (stdopen): Use C99-style decl in loop.  Return int errno
12092         value, rather than just a bool.  Do not worry about fd mismatches,
12093         since the caller cares only if 0, 1, 2 are occupied.
12094         * lib/stdopen.h: No need to include <stdbool.h>.
12095         * m4/stdopen.m4: Remove.
12096         * modules/stdopen: New file.
12098         stdopen: copy from last use in coreutils
12099         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
12100         New files, taken from their last commit in coreutils
12101         2007-07-23T12:35:58Z!jim@meyering.net
12102         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
12104 2019-01-05  Bruno Haible  <bruno@clisp.org>
12106         argp: Don't pass an invalid argument to dgettext().
12107         Reported by He X <xw897002528@gmail.com>.
12108         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
12109         dgettext().
12111 2019-01-05  Bruno Haible  <bruno@clisp.org>
12113         argp: Don't pass an invalid argument to dgettext().
12114         Reported by He X <xw897002528@gmail.com>.
12115         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
12116         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
12117         dgettext().
12119 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12121         stdioext: port to newer 32-bit Android
12122         Problem reported by Tom Yan in:
12123         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
12124         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
12125         (fp_) [__ANDROID__]: Use it.
12127 2019-01-04  Bruno Haible  <bruno@clisp.org>
12129         lock: Fix link error with --enable-threads=pth.
12130         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
12131         Mark as weak.
12133 2019-01-04  Bruno Haible  <bruno@clisp.org>
12135         Fix link errors in unit tests.
12136         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12137         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
12138         * modules/array-map-tests (Makefile.am): Link test-array_map against
12139         libintl.
12140         * modules/array-set-tests (Makefile.am): Link test-array_set against
12141         libintl.
12142         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
12143         libintl.
12144         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
12145         libintl.
12146         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
12147         against libintl.
12148         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
12149         against libintl.
12151 2019-01-04  Bruno Haible  <bruno@clisp.org>
12153         Fix incorrect 'Link' sections.
12154         * modules/regex (Link): Mention the link requirement of module 'lock'.
12155         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
12157 2019-01-04  Bruno Haible  <bruno@clisp.org>
12159         Fix some 'Link' sections.
12160         * modules/c-stack (Link): Add link directive from the 'gettext-h'
12161         dependency.
12162         * modules/getaddrinfo (Link): Likewise.
12164 2019-01-04  Bruno Haible  <bruno@clisp.org>
12166         Remove redundant 'Link' sections.
12167         * modules/canon-host (Link): Remove section.
12168         * modules/timevar (Link): Likewise.
12170 2019-01-04  Bruno Haible  <bruno@clisp.org>
12172         Remove incorrect 'Link' sections.
12173         * modules/acl (Link): Remove section. Use combined 'Link' sections from
12174         the dependencies instead.
12175         * modules/crypto/md5 (Link): Likewise.
12176         * modules/crypto/sha1 (Link): Likewise.
12177         * modules/crypto/sha256 (Link): Likewise.
12178         * modules/crypto/sha512 (Link): Likewise.
12179         * modules/faccessat (Link): Likewise.
12180         * modules/fdutimensat (Link): Likewise.
12181         * modules/iconv_open-utf (Link): Likewise.
12182         * modules/propername (Link): Likewise.
12183         * modules/qacl (Link): Likewise.
12184         * modules/unicodeio (Link): Likewise.
12185         * modules/utimecmp (Link): Likewise.
12186         * modules/utimensat (Link): Likewise.
12187         * modules/xstriconv (Link): Likewise.
12188         * modules/xstriconveh (Link): Likewise.
12190 2019-01-04  Bruno Haible  <bruno@clisp.org>
12192         gnulib-tool: New option --extract-recursive-link-directive.
12193         * gnulib-tool (func_usage): Document the new options
12194         --extract-recursive-dependencies, --extract-recursive-link-directive.
12195         (func_verify_module): Document output variables.
12196         (func_get_dependencies_recursively): New function.
12197         (func_get_link_directive_recursively): New function.
12198         Use them to implement the new options
12199         --extract-recursive-dependencies, --extract-recursive-link-directive.
12200         * doc/gnulib-tool.texi (Link-time requirements): New section.
12202 2019-01-04  Bruno Haible  <bruno@clisp.org>
12204         Clarify meaning of 'Link' section in module description.
12205         * doc/gnulib.texi (Module description): Clarify the meaning of the
12206         'Link' section versus the one of the dependencies.
12207         * NEWS: Mention the change.
12209 2019-01-04  Bruno Haible  <bruno@clisp.org>
12211         pselect: Fix module description.
12212         * modules/pselect (Link): Put one link option per line.
12214 2019-01-04  Bruno Haible  <bruno@clisp.org>
12216         cosl: Fix module description.
12217         * modules/cosl (Link): Fix typo.
12218         * modules/mathl (configure.ac): Likewise.
12220 2019-01-04  Bruno Haible  <bruno@clisp.org>
12222         c-xvasprintf: Fix module dependencies.
12223         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
12225 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
12227         bootstrap: die when some submodules are not initialized
12228         * build-aux/bootstrap: Make sure all submodules are initialized.
12230 2019-01-04  Bruno Haible  <bruno@clisp.org>
12232         bitsetv: Fix module dependencies.
12233         * lib/bitsetv.c: Include xalloc.h.
12234         * modules/bitsetv (Depends-on): Add 'xalloc'.
12236 2019-01-04  Bruno Haible  <bruno@clisp.org>
12238         xmemdup0: Remove redundant code.
12239         * lib/xmemdup0.h (xalloc_die): Remove declaration.
12241 2019-01-04  Bruno Haible  <bruno@clisp.org>
12243         backupfile: Fix module dependencies.
12244         * modules/backupfile (Depends-on): Add 'xalloc'.
12246 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
12248         bitset, crypto/gc: fix conflicts with Solaris 11
12249         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
12250         avoid clash with Solaris 11 <sys/bitset.h>.
12251         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
12252         with Solaris 11 <xorg/gc.h>.
12254 2019-01-04  Bruno Haible  <bruno@clisp.org>
12256         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
12257         Reported by Andy Fiddaman <andy@omniosce.org>.
12258         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
12260 2019-01-03  Eric Blake  <eblake@redhat.com>
12262         maintainer-makefile: fix typo in previous patch
12263         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
12264         of Roman's work.
12266 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
12268         maintainer-makefile: prefer $(GREP) over grep
12269         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
12270         defined.
12271         * top/maint.mk: Use it everywhere.
12273         maintainer-makefile: split long argument lines
12274         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
12275         it would be too long for exec limits on BSD.
12277 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12279         mkfifo: bring back HAVE_MKFIFO macro
12280         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
12281         Problem reported by Andrew Janke in:
12282         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
12284 2018-12-21  Bruno Haible  <bruno@clisp.org>
12286         Assume Autoconf >= 2.63.
12287         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
12288         versions < 2.60.
12290 2018-12-21  Bruno Haible  <bruno@clisp.org>
12292         memcmp: Mention the clang bug.
12293         * tests/test-memcmp.c: Add comment about a known test failure.
12294         * doc/posix-functions/memcmp.texi: Mention the clang bug.
12296 2018-12-20  Jim Meyering  <meyering@fb.com>
12298         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
12299         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
12300           echo '123-x'|LC_ALL=C grep -E '.\bx'
12301         The goal is to revert the first, but reverting it requires to restore
12302         the function deleted in the second. I ran this to restore the deleted
12303         function:
12304           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
12305             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
12306             | patch -R -p1
12307         * lib/dfa.c (charclass_context): Restore deleted function.
12308         Reverting the primary commit removes this change:
12309         dfa: Simplify a building state
12310         * lib/dfa.c (build_state): Simplify a building state.
12312 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12314         version-etc: allow zero authors
12315         * lib/version-etc.c (version_etc_arn): If no authors are given,
12316         omit authorship info instead of dumping core.
12318 2018-12-19  Bruno Haible  <bruno@clisp.org>
12320         lchown tests: Be more permissive regarding errno values.
12321         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
12322         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
12323         alternative to ENOSYS.
12324         * modules/lchown-tests (Depends-on): Add 'errno'.
12325         * modules/fchownat-tests (Depends-on): Likewise.
12327 2018-12-18  Bruno Haible  <bruno@clisp.org>
12329         duplocale: Avoid test failure on AIX 7.
12330         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
12331         (configure.ac): Invoke gt_FUNC_USELOCALE.
12332         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
12333         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
12334         works.
12336 2018-12-18  Bruno Haible  <bruno@clisp.org>
12338         localename: Fix test failure on AIX 7.
12339         Reported by Assaf Gordon in
12340         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
12341         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
12342         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
12343         instead of ac_cv_func_uselocale.
12344         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
12345         HAVE_USELOCALE.
12346         * lib/localename-table.h: Likewise.
12347         * lib/localename-table.c: Likewise.
12348         * tests/test-localename.c: Likewise.
12349         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
12351 2018-12-18  Bruno Haible  <bruno@clisp.org>
12353         localename: Update comments regarding Cygwin.
12354         * lib/localename.c: Update comment.
12355         * doc/posix-functions/uselocale.texi: Update platforms list.
12356         * doc/posix-functions/newlocale.texi: Likewise.
12357         * doc/posix-functions/duplocale.texi: Likewise.
12358         * doc/posix-functions/freelocale.texi: Likewise.
12360 2018-12-16  Bruno Haible  <bruno@clisp.org>
12362         c-stack: Fix for Linux/sparc.
12363         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
12364         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
12366 2018-12-16  Bruno Haible  <bruno@clisp.org>
12368         localename: Avoid test failure on some glibc systems.
12369         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
12370         Unset environment variables that might disturb the first setlocale call,
12371         and verify that this setlocale call succeeds.
12373 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
12375         random: Fix build error on native Windows (regression from 2018-06-21).
12376         * lib/random.c (__srandom, __initstate, __setstate, __random,
12377         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
12378         to the symbols without '__' prefix.
12380 2018-12-16  Bruno Haible  <bruno@clisp.org>
12382         obstack, libc-config: Support HP-UX cc in C99 mode.
12383         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
12384         compiler, even when in C99 mode.
12385         * lib/cdefs.h (__flexarr): Likewise.
12386         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
12388 2018-12-16  Bruno Haible  <bruno@clisp.org>
12390         localename: Fix test failure on OpenBSD >= 6.2.
12391         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
12392         locale system. Define HAVE_FAKE_LOCALES in this case.
12393         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
12394         HAVE_USELOCALE.
12395         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
12396         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
12397         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
12398         platforms list.
12399         * doc/posix-functions/newlocale.texi: Likewise.
12400         * doc/posix-functions/duplocale.texi: Update platforms list.
12401         * doc/posix-functions/freelocale.texi: Likewise.
12403 2018-12-16  Bruno Haible  <bruno@clisp.org>
12405         duplocale tests: Re-enable the test on platforms without <monetary.h>.
12406         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
12407         of the test, on platforms without <monetary.h>.
12409 2018-12-16  Bruno Haible  <bruno@clisp.org>
12411         localename: Update comments.
12412         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
12414 2018-12-15  Jim Meyering  <meyering@fb.com>
12416         regex: fix indentation
12417         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
12419 2018-12-15  Bruno Haible  <bruno@clisp.org>
12421         openat-safer tests: Avoid test failure on NetBSD 8.
12422         * tests/test-openat-safer.c (main): Execute a Linux specific test only
12423         on Linux.
12425 2018-12-15  Jim Meyering  <meyering@fb.com>
12427         regex: work around a bug in glibc-2.27 and prior
12428         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
12429         assertion for /0|()0|\1|0/.
12430         * tests/test-regex.c (main): Add the same test here.
12432 2018-12-15  Bruno Haible  <bruno@clisp.org>
12434         localename: Fix use of uninitialized shell variable.
12435         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
12436         gt_cv_locale_solaris114 always before use. Remove assignment without
12437         effect.
12439 2018-12-15  Bruno Haible  <bruno@clisp.org>
12441         dfa tests: Avoid test failure on Alpine Linux.
12442         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
12443         command found on Alpine Linux.
12445 2018-12-15  Jim Meyering  <meyering@fb.com>
12447         dfa: avoid new warnings from gcc
12448         These would prevent building with -Werror and a Dec snapshot of gcc.
12449         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
12450         Rename each inner instance to "p".
12451         (charclass_context): Remove unused static function.
12453 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
12455         mkdir-p: improve diagnostic for FUSE mounts
12456         Problem reported by Niklas Hambüchen in:
12457         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
12458         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
12459         errno to mkdir errno if the stat errno is likely more interesting.
12461 2018-12-14  Bruno Haible  <bruno@clisp.org>
12463         hash-map: Add tests.
12464         * tests/test-hash_map.c: New file.
12465         * modules/hash-map-tests: New file.
12467         linkedhash-map: Add tests.
12468         * tests/test-linkedhash_map.c: New file.
12469         * modules/linkedhash-map-tests: New file.
12471         array-map: Add tests.
12472         * tests/test-array_map.c: New file.
12473         * modules/array-map-tests: New file.
12475         xmap: New module.
12476         * lib/gl_xmap.h: New file.
12477         * lib/gl_xmap.c: New file.
12478         * modules/xmap: New file.
12480         hash-map: New module.
12481         * lib/gl_hash_map.h: New file.
12482         * lib/gl_hash_map.c: New file.
12483         * modules/hash-map: New file.
12485         linkedhash-map: New module.
12486         * lib/gl_linkedhash_map.h: New file.
12487         * lib/gl_linkedhash_map.c: New file.
12488         * lib/gl_anyhash1.h: Update comments.
12489         * lib/gl_anyhash2.h: Likewise.
12490         * modules/linkedhash-map: New file.
12492         array-map: New module.
12493         * lib/gl_array_map.h: New file.
12494         * lib/gl_array_map.c: New file.
12495         * modules/array-map: New file.
12497         map: New module.
12498         * lib/gl_map.h: New file.
12499         * lib/gl_map.c: New file.
12500         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
12501         conflict with gl_map.h.
12502         * modules/map: New file.
12504 2018-12-13  Bruno Haible  <bruno@clisp.org>
12506         select tests: Avoid test failure on Cygwin.
12507         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
12509 2018-12-13  Bruno Haible  <bruno@clisp.org>
12511         localtime-buffer: Avoid endless recursion in localtime and gmtime.
12512         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
12514 2018-12-13  Bruno Haible  <bruno@clisp.org>
12516         localeconv tests: Avoid test failure on Cygwin.
12517         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
12518         'mon_grouping' tests.
12520 2018-12-11  Bruno Haible  <bruno@clisp.org>
12522         omap: Don't dispose the old value when the function returns it.
12523         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
12524         here.
12525         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
12526         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
12527         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
12528         here.
12530         array-omap, avltree-omap, rbtree-omap: Tweak style.
12531         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
12532         false.
12533         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
12535         rbtree-omap: Add tests.
12536         * tests/test-rbtree_omap.c: New file.
12537         * modules/rbtree-omap-tests: New file.
12539         avltree-omap: Add tests.
12540         * tests/test-avltree_omap.c: New file.
12541         * modules/avltree-omap-tests: New file.
12543         array-omap: Add tests.
12544         * tests/test-array_omap.c: New file.
12545         * modules/array-omap-tests: New file.
12547         xomap: New module.
12548         * lib/gl_xomap.h: New file.
12549         * lib/gl_xomap.c: New file.
12550         * modules/xomap: New file.
12552         rbtree-omap: New module.
12553         * lib/gl_rbtree_omap.h: New file.
12554         * lib/gl_rbtree_omap.c: New file.
12555         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
12556         Parameterize.
12557         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
12558         * modules/rbtree-omap: New file.
12559         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
12560         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
12562         avltree-omap: New module.
12563         * lib/gl_avltree_omap.h: New file.
12564         * lib/gl_avltree_omap.c: New file.
12565         * lib/gl_avltree_ordered.h: Code moved to here from
12566         lib/gl_avltree_oset.c. Parameterize.
12567         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
12568         * lib/gl_anytree_omap.h: New file.
12569         * modules/avltree-omap: New file.
12570         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
12571         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
12573         array-omap: New module.
12574         * lib/gl_array_omap.h: New file.
12575         * lib/gl_array_omap.c: New file.
12576         * modules/array-omap: New file.
12578         omap: New module.
12579         * lib/gl_omap.h: New file.
12580         * lib/gl_omap.c: New file.
12581         * modules/omap: New file.
12583 2018-12-11  Bruno Haible  <bruno@clisp.org>
12585         hash-set, linkedhash-set: Reduce code duplication.
12586         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
12587         lib/gl_anyhash_set1.h.
12588         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
12589         lib/gl_anyhash_set2.h. Parameterize.
12590         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
12591         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
12592         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
12593         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
12594         * lib/gl_rbtreehash_list.c: Likewise.
12595         * lib/gl_linkedhash_list.c: Likewise.
12596         (hash_resize_after_add): Remove function.
12597         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
12598         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
12599         * gl_hash_set.c: Likewise.
12600         * modules/avltreehash-list (Files, Makefile.am): Update file list.
12601         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
12602         * modules/linkedhash-list (Files, Makefile.am): Likewise.
12603         * modules/linkedhash-set (Files, Makefile.am): Likewise.
12604         * modules/hash-set (Files, Makefile.am): Likewise.
12606 2018-12-11  Bruno Haible  <bruno@clisp.org>
12608         array-set: Optimize.
12609         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
12610         outside the loop, not inside the loop.
12612 2018-12-11  Bruno Haible  <bruno@clisp.org>
12614         times: Fix tests.
12615         * tests/test-times.c (doublecmp): Implement a total order.
12617 2018-12-11  Bruno Haible  <bruno@clisp.org>
12619         array-set, linkedhash-set, hash-set: Fix tests.
12620         * tests/test-array_set.c (cmp_objects_in_array): New function.
12621         (check_equals): Use it.
12622         * tests/test-hash_set.c: Likewise.
12623         * tests/test-linkedhash_set.c: Likewise.
12625 2018-12-08  Bruno Haible  <bruno@clisp.org>
12627         Fix comments.
12628         * lib/gl_list.h (gl_list_free): Clarify what it does.
12629         * lib/gl_oset.h (gl_oset_free): Likewise.
12630         * lib/gl_set.h (gl_set_free): Likewise.
12631         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
12632         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
12633         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
12634         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
12636 2018-12-03  Bruno Haible  <bruno@clisp.org>
12638         hash-set: Add tests.
12639         * tests/test-hash_set.c: New file.
12640         * modules/hash-set-tests: New file.
12642         linkedhash-set: Add tests.
12643         * tests/test-linkedhash_set.c: New file.
12644         * modules/linkedhash-set-tests: New file.
12646         array-set: Add tests.
12647         * tests/test-array_set.c: New file.
12648         * modules/array-set-tests: New file.
12650         xset: New module.
12651         * lib/gl_xset.h: New file.
12652         * lib/gl_xset.c: New file.
12653         * modules/xset: New file.
12655         hash-set: New module.
12656         * lib/gl_hash_set.h: New file.
12657         * lib/gl_hash_set.c: New file.
12658         * modules/hash-set: New file.
12660         linkedhash-set: New module.
12661         * lib/gl_linkedhash_set.h: New file.
12662         * lib/gl_linkedhash_set.c: New file.
12663         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
12664         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
12665         * lib/gl_anyhash_primes.h: New file, extracted from
12666         lib/gl_anyhash_list2.h.
12667         * lib/gl_anyhash_list2.h: Include it.
12668         (primes, next_prime): Remove definitions.
12669         * modules/linkedhash-set: New file.
12670         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
12671         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12672         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
12673         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12674         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
12675         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12677         array-set: New module.
12678         * lib/gl_array_set.h: New file.
12679         * lib/gl_array_set.c: New file.
12680         * modules/array-set: New file.
12682         set: New module.
12683         * lib/gl_set.h: New file.
12684         * lib/gl_set.c: New file.
12685         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
12686         gl_set.h.
12687         * modules/set: New file.
12689 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
12691         bison: don't force the Yacc mode
12692         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
12693         errors when Bison features are used in the grammar file.  Some of
12694         these features (such as %expect) were flagged non-yacc recently.  Most
12695         of the time, -y is actually used to please Automake's ylwrap which
12696         expects the output to be y.tab.c.
12697         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
12699 2018-12-01  Bruno Haible  <bruno@clisp.org>
12701         gnupload: Document short options.
12702         * build-aux/gnupload (usage): Document the short options.
12704 2018-11-28  Ben Elliston  <bje@gnu.org>
12706         gnupload: Support option -h as alias of --help.
12707         * build-aux/gnupload: Support -h.
12709 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
12711         memrchr: port better to clang
12712         * lib/memrchr.c (__memrchr): Cast to void * instead of to
12713         longword *, to pacify clang -Wcast-align (Bug#33544).
12715 2018-11-29  Eric Blake  <eblake@redhat.com>
12717         docs: mention printf %m considerations
12718         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
12719         is not portable, and is easy enough to work around.
12720         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
12721         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
12722         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
12723         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
12724         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12725         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12726         * doc/posix-functions/printf.texi (printf): Likewise.
12727         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
12728         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
12729         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
12730         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12731         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12732         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12733         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12734         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12735         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
12736         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
12737         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12738         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12740 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
12742         bitset: rename ebitset/expandable.* as tbitset/table.*
12743         See
12744         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
12745         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
12746         * lib/bitset/table.h, lib/bitset/table.c: these.
12747         Rename all the ebitset* symbols as tbitset*.
12748         Adjust dependencies.
12750 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12752         bitset: check the operations
12753         * tests/test-bitset.c (bitset_random): New.
12754         Use it.
12755         * lib/bitset/expandable.c (ebitset_not): Fix typo.
12757 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12759         bitset: properly use false/true instead of 0/1 for Booleans
12760         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
12761         0/1, as Booleans.
12763 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12765         bitset: rename BITSET_VARRAY as BITSET_VECTOR
12766         For consistency with the name of the file.
12767         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
12768         * lib/bitset/stats.c, lib/bitset/vector.c
12769         (BITSET_VARRAY): Rename as...
12770         (BITSET_VECTOR): this.
12772 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
12774         strerror_r-posix: memmove, not memcpy
12775         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
12776         since the source and destination might overlap in the call
12777         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
12778         Simplify.
12780 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12782         bitsetv: new module
12783         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
12785 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12787         bitset: add tests and doc
12788         First stabs at providing a documentation and test for the bitset
12789         module.
12790         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
12792 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12794         bitset: new module
12795         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
12796         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
12797         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
12798         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
12799         * lib/bitset/vector.h, modules/bitset:
12800         New.
12802 2018-11-23  Bruno Haible  <bruno@clisp.org>
12804         localename: Fix gettext test failures on mingw.
12805         * lib/localename.c (gl_locale_name_posix): Convert the result of
12806         gl_locale_name_environ to XPG syntax.
12808 2018-11-23  Karl Berry  <karl@freefriends.org>
12810         * config/srclistvars.txt,
12811         * config/srclist.txt: remove all gettext references;
12812         the gettext maintainers will sync as needed.
12814 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
12816         mktime: add libc-config dependency
12817         I missed this when we synced from glibc.
12818         * modules/mktime (Depends-on): Add libc-config.
12820 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
12822         longlong: fix comment typo
12823         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
12825 2018-11-11  Bruno Haible  <bruno@clisp.org>
12827         havelib: Remove the need to include asm-underscore.m4.
12828         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
12829         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
12830         gl_HOST_CPU_C_ABI.
12831         * modules/havelib (Files): Add host-cpu-c-abi.m4.
12832         (Depends-on): Remove host-cpu-c-abi.
12834 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12836         parse-datetime: simplify test for mktime failure
12837         * lib/parse-datetime.y (mktime_ok): Simplify.
12838         Remove args TZ and T; no longer needed.  Callers changed.
12840         posixtm: simplify test for mktime failure
12841         * lib/posixtm.c (posixtime): Simplify.
12843         nstrftime: simplify test for mktime failure
12844         * lib/nstrftime.c (__strftime_internal): Simplify.
12846 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12848         gnulib-common.m4: port _Noreturn to C++
12849         Problem reported by Akim Demaille in:
12850         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
12851         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
12852         Merge adjustments from _Noreturn.h and from glibc into the non-C++
12853         version.
12854         * lib/_Noreturn.h: Match gnulib-common.
12856 2018-10-30  Bruno Haible  <bruno@clisp.org>
12858         gnu-make: Fix for NetBSD 8 'make'.
12859         Reported by Reuben Thomas in
12860         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
12861         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
12862         output, ignoring exit codes.
12864 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
12866         maintainer-makefile: fix syntax-check rule for "same.h"
12867         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
12868         for 'same_nameat', too.
12870 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
12872         havelib: fix nested ‘configure’ chatter
12873         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
12874         AC_CACHE_CHECK calls, which resulted in confusing output like
12875         “checking for the common suffixes of directories in the library
12876         search path... checking for 64-bit host... no lib,lib”.
12878         backupfile: tweak for better code
12879         * lib/backupfile.c: Sort include directives, and remove
12880         unnecessary <limits.h> include.
12881         (FALLTHROUGH): New macro, copied from other modules.
12882         (backupfile_internal): Use it to avoid code duplication.
12883         This lets GCC 8.2.1 generate better code by inlining the
12884         call to check_extension.
12886 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12888         backupfile: new dir_fd args
12889         New module opendirat with code taken from fts.
12890         Use this module to let backupfile use a directory file descriptor.
12891         * NEWS: Document the incompatible change.
12892         * lib/backup-find.c (find_backup_file_name):
12893         * lib/backup-rename.c (backup_file_rename):
12894         New arg DIR_FD.
12895         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
12896         (SIZE_MAX): Remove.
12897         Include opendirat.h rather than dirent--.h.
12898         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
12899         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
12900         (backupfile_internal): New arg DIR_FD.  All callers changed.
12901         * lib/fts.c: Include opendirat.h.
12902         (opendirat): Move to opendirat.c.
12903         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
12904         * modules/backupfile (Depends-on): Remove dirfd, opendir.
12905         Add opendirat.
12906         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
12907         Add opendirat.
12909 2018-10-23  Bruno Haible  <bruno@clisp.org>
12911         localename: Simplify support for per-thread locales on Solaris 11.4.
12912         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
12913         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
12914         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
12915         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
12916         specific code.
12917         * lib/localename-table.h: Update comments.
12918         * lib/localename-table.c: Update comments.
12919         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
12920         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
12921         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
12922         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
12923         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
12924         HAVE_NAMELESS_LOCALES here.
12925         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
12926         m4/intlsolaris.m4.
12927         * modules/gettext (Files): Likewise.
12929 2018-10-22  Bruno Haible  <bruno@clisp.org>
12931         std-gnu11: Support Autoconf versions < 2.64.
12932         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
12933         when _AC_DO_LIMIT does not exist.
12935 2018-10-22  Bruno Haible  <bruno@clisp.org>
12937         Assume Autoconf >= 2.63.
12938         * DEPENDENCIES: Mention the requirement.
12940         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
12941         (func_get_filelist): Don't list m4/onceonly.m4 any more.
12942         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
12943         * m4/onceonly.m4: Remove file.
12945         * m4/openmp.m4: Remove file.
12946         * modules/openmp (Files): Remove m4/openmp.m4.
12948         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
12949         htmldir, dvidir, pdfdir, psdir, localedir.
12950         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
12952         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
12953         Autoconf < 2.60.
12954         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
12955         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
12957         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
12958         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
12959         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
12961         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
12962         exists.
12963         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
12965         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
12966         Autoconf < 2.61.
12968         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
12969         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
12970         Autoconf >= 2.52.
12972         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
12973         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
12974         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
12976 2018-10-22  Bruno Haible  <bruno@clisp.org>
12978         Assume Automake >= 1.11.
12979         * m4/configmake.m4: Update comments.
12980         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
12981         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
12982         of 'eval'.
12983         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
12984         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
12985         requires Automake >= 1.11.
12987 2018-10-22  Bruno Haible  <bruno@clisp.org>
12989         localename: Fix typo in comment.
12990         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
12992 2018-10-22  Bruno Haible  <bruno@clisp.org>
12994         Fix failure of 'gnulib-tool --create-testdir' with all modules.
12995         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
12997 2018-10-21  Bruno Haible  <bruno@clisp.org>
12999         locale: Ease integration with GNU libintl.
13000         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
13001         GNULIB_defined_freelocale): New macros.
13003 2018-10-21  Bruno Haible  <bruno@clisp.org>
13005         localename: Fine-tune support for per-thread locales on Solaris 11.4.
13006         * lib/localename-table.h: New file, extracted from lib/localename.c.
13007         * lib/localename-table.c: Likewise.
13008         * lib/localename.c: Include localename-table.h.
13009         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
13010         locale_hash_function instead of pointer_hash.
13011         * modules/localename (Files): Add lib/localename-table.h,
13012         lib/localename-table.c.
13013         (lib_SOURCES): Add localename-table.c.
13014         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
13015         for Solaris 11.4 locale system only on Solaris. Test for it
13016         independently whether getlocalename_l exists.
13017         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
13018         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
13019         HAVE_NAMELESS_LOCALES.
13020         * modules/gettext (Files): Add m4/intlsolaris.m4.
13022 2018-10-21  Bruno Haible  <bruno@clisp.org>
13024         Small update from gettext.
13025         * m4/intl.m4: Update from gettext:
13026         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
13027         mode on AIX.
13028         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
13029         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
13031 2018-10-16  Bruno Haible  <bruno@clisp.org>
13033         mountlist: Remove support for Cray with UNICOS 9.
13034         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13035         MOUNTED_LISTMNTENT.
13036         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
13038 2018-10-16  Bruno Haible  <bruno@clisp.org>
13040         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
13041         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
13042         STAT_STATFS2_FS_DATA.
13043         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
13044         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13045         MOUNTED_GETMNT.
13046         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
13047         * lib/getloadavg.c (decstation): Remove definition and case.
13048         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
13049         * lib/getgroups.c: Likewise.
13050         * doc/posix-functions/getgroups.texi: Likewise.
13051         * lib/time.in.h: Update comments.
13053 2018-10-16  Bruno Haible  <bruno@clisp.org>
13055         getloadavg: Remove support for ConvexOS.
13056         * lib/getloadavg.c: Remove convex case.
13058 2018-10-16  Bruno Haible  <bruno@clisp.org>
13060         getloadavg: Remove support for Sony NEWS.
13061         * lib/getloadavg.c: Remove sony_news case.
13063 2018-10-16  Bruno Haible  <bruno@clisp.org>
13065         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
13066         * lib/fsusage.c: Remove _SEQUENT_ case.
13067         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
13068         * lib/mountlist.c: Don't test for MNTTABNAME.
13069         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
13070         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
13071         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
13072         * lib/stat-size.h: Don't mention the Sequent bug.
13073         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
13075 2018-10-16  Bruno Haible  <bruno@clisp.org>
13077         fsusage: Remove support for AIX 3.
13078         * lib/fsusage.c: Remove code for AIX 3.
13079         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
13081 2018-10-16  Bruno Haible  <bruno@clisp.org>
13083         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
13084         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
13085         * lib/fsusage.c: Remove code for AIX PS/2.
13086         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
13087         * lib/getloadavg.c: Likewise.
13089 2018-10-16  Bruno Haible  <bruno@clisp.org>
13091         getloadavg: Remove support for HP-UX on m68k.
13092         * lib/getloadavg.c: Remove hp9000s300 case.
13094 2018-10-16  Bruno Haible  <bruno@clisp.org>
13096         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
13097         * lib/fsusage.c: Remove DOLPHIN case.
13098         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
13099         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
13101 2018-10-16  Bruno Haible  <bruno@clisp.org>
13103         getloadavg: Remove support for Alliant FX/2800.
13104         * lib/getloadavg.c: Remove alliant case.
13106 2018-10-16  Bruno Haible  <bruno@clisp.org>
13108         getloadavg: Remove support for tek4300.
13109         * lib/getloadavg.c: Remove tek4300 case.
13111 2018-10-16  Bruno Haible  <bruno@clisp.org>
13113         getloadavg: Remove support for Ardent.
13114         * lib/getloadavg.c: Remove ardent case.
13116 2018-10-16  Bruno Haible  <bruno@clisp.org>
13118         mountlist: Remove support for SVR2.
13119         Reported by Andrew Borodin <aborodin@vmail.ru> in
13120         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
13121         * lib/mountlist.c: Remove MOUNTED_FREAD case.
13122         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13123         MOUNTED_FREAD.
13125 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
13127         libc-config: merge from glibc
13128         * lib/cdefs.h (__glibc_has_attribute): New macro.
13130         regex: depend on libc-config
13131         * modules/regex (Depends-on): Add libc-config.
13132         This is needed after the recent autoupdate from glibc.
13134 2018-10-14  Bruno Haible  <bruno@clisp.org>
13136         localename: Add support for per-thread locales on Solaris 11.4.
13137         * lib/locale.in.h (newlocale, freelocale): New declarations.
13138         (duplocale): Declare also when the 'localename' module requests it.
13139         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
13140         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
13141         (struniq): Update.
13142         (struct locale_categories_names, struct locale_hash_node): New types.
13143         (LOCALE_HASH_TABLE_SIZE): New constant.
13144         (locale_hash_table, locale_lock): New variables.
13145         (pointer_hash, get_locale_t_name): New functions.
13146         (newlocale, duplocale, freelocale): New overridden functions.
13147         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
13148         * m4/intlsolaris.m4: New file.
13149         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
13150         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
13151         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
13152         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
13153         declared.
13154         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
13155         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
13156         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
13157         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
13158         * modules/localename (Files): Add intlsolaris.m4.
13159         (Depends-on): Add 'locale'.
13160         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
13161         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
13162         the signatures.
13164 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
13166         timevar: use gethrxtime to get wall clock time
13167         clock_gettime is not portable.  gethrxtime takes the best available
13168         option to get the wall clock time, including clock_gettime (monotonic
13169         clock), and gettime (non monotonic).
13170         Also, using xtime_t instead of float preserves the precision.
13171         Suggested by Bruno Haible.
13172         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
13173         * modules/timevar (Depends-on): We need gethrxtime.
13174         We no longer use times().
13175         (Link): Update.
13176         * lib/timevar.h (timevar_time_def): Use xtime_t.
13177         * lib/timevar.c (set_to_current_time): Use gethrxtime.
13178         (timevar_print): Instead of checking whether the timings themselves
13179         are large enough for the timevar to be printed, check the percentages.
13181 2018-10-14  Bruno Haible  <bruno@clisp.org>
13183         wcsnrtombs: Work around Solaris 11.4 bug.
13184         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
13185         macro.
13186         (gl_FUNC_WCSNRTOMBS): Invoke it.
13187         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
13189 2018-10-14  Bruno Haible  <bruno@clisp.org>
13191         mbsnrtowcs: Work around Solaris 11.4 bug.
13192         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
13193         macro.
13194         (gl_FUNC_MBSNRTOWCS): Invoke it.
13195         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
13197 2018-10-14  Bruno Haible  <bruno@clisp.org>
13199         doc: Update for Solaris 11.4.
13200         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
13201         mention Solaris 11.4.
13202         * m4/printf.m4: Update comments about Solaris.
13203         * m4/log.m4: Likewise.
13204         * m4/log10.m4: Likewise.
13205         * m4/logb.m4: Likewise.
13206         * m4/logbf.m4: Likewise.
13207         * m4/logbl.m4: Likewise.
13208         * m4/rename.m4: Likewise.
13209         * m4/wcrtomb.m4: Likewise.
13210         * m4/hostent.m4: Likewise.
13211         * m4/servent.m4: Likewise.
13213 2018-10-14  Bruno Haible  <bruno@clisp.org>
13215         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
13216         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
13217         pointer.
13218         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
13219         pointer.
13220         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
13221         pointer.
13222         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
13223         pointer.
13224         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
13225         pointer.
13227 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13229         bootstrap: fix wget command for po files.
13230         * build-aux/bootstrap (po_download_command_format): Fix comment,
13231         and adjust callers.
13233 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13235         timevar: improve the output format
13236         Suggested by Bruno Haible.
13237         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
13238         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
13239         wall, since its resolution is much higher.
13241 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13243         timevar: expect that getrusage is available.
13244         Don't keep both times and getrusage as backend: both are guaranteed by
13245         gnulib, a single one suffices.  Using getrusage is open to possibly
13246         tracking other types of resources in the future.
13247         * modules/timevar (Depends-on): Add getrusage.
13248         (configure.ac): Remove gl_TIMEVAR.
13249         (Files): Remove m4/timevar.m4.
13250         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
13251         * lib/timevar.h (timevar_enabled): Clarify documentation.
13252         * lib/timevar.c: Remove all the code about times.
13253         Remove all the CPP guards about getrusage: expect it to be present
13254         (courtesy of gnulib).
13256 2018-10-12  Bruno Haible  <bruno@clisp.org>
13258         mountlist: Improve support for Solaris in 64-bit mode.
13259         Reported by David Wood <David.Wood@deshaw.com> in
13260         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
13261         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
13262         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
13263         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
13265 2018-10-12  Bruno Haible  <bruno@clisp.org>
13267         mountlist: Add support for Minix.
13268         Reported by Assaf Gordon in
13269         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
13270         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
13271         AC_CHECK_FUNCS to check for 'getmntinfo'.
13272         * lib/mountlist.c: Update comments.
13274 2018-10-12  Bruno Haible  <bruno@clisp.org>
13276         Make better use of Autoconf.
13277         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
13278         * m4/manywarnings.m4: Likewise.
13279         * m4/manywarnings-c++.m4: Likewise.
13280         * m4/socklen.m4: Likewise.
13281         * m4/sockpfaf.m4: Likewise.
13282         * m4/stdarg.m4: Likewise.
13283         * m4/visibility.m4: Likewise.
13284         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
13285         indentation.
13286         * m4/ls-mntd-fs.m4: Likewise.
13288 2018-10-11  Bruno Haible  <bruno@clisp.org>
13290         mountlist: Modernize platform lists.
13291         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
13292         platforms, deemphasizing the obsolete ones.
13293         * lib/mountlist.c: Likewise.
13295 2018-10-11  Bruno Haible  <bruno@clisp.org>
13297         getprogname: Add support for 32-bit programs on HP-UX.
13298         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
13299         try the similar functions 32-bit programs on 64-bit HP-UX.
13301 2018-10-11  Bruno Haible  <bruno@clisp.org>
13303         getprogname: Work around program name truncation when possible.
13304         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
13305         possibly use pst_cmd instead.
13307 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13309         fts: cleanup after FTS_NOATIME removal
13310         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
13311         (FTS_STOP): Shrink to minimal values.  We don’t need to
13312         worry about binary compatibility in Gnulib, and the old way
13313         of doing things had a hole in the user options that caused
13314         FTS_OPTIONMASK to not work as desired.
13316 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
13318         fts: remove FTS_NOATIME
13319         This reverts commit da4d6974013c822af1498941e32db774b2031765.
13320         We cannot guarantee that O_NOATIME works: e.g. openat fails
13321         with EPERM if the effective user ID of the caller does not match
13322         the owner of the file and the caller is not privileged.
13323         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
13324         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
13325         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
13326         (FTS_OPTIONMASK): Adjust.
13327         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
13328         (fd_ring_check): Likewise.
13330 2018-10-08  Bruno Haible  <bruno@clisp.org>
13332         csharpcomp*, csharpexec*: Remove support for pnet.
13333         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
13334         HAVE_CSCC.
13335         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
13336         Don't test HAVE_CSCC.
13337         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
13338         (compile_csharp_class): Don't invoke it.
13339         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
13340         HAVE_ILRUN.
13341         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
13342         Don't test HAVE_ILRUN.
13343         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
13344         (execute_csharp_program): Don't invoke it.
13345         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
13346         any more.
13348 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
13350         renameatu: prefer renameat2 to syscall
13351         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
13352         Use renameat2 instead of syscall (Bug#32796).
13353         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
13355 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
13357         bootstrap, gnulib-tool: use https instead of insecure rsync
13358         * build-aux/bootstrap (download_po_files, po_download_command_format):
13359         Don't try using rsync; always use wget over https to fetch PO files.
13360         * gnulib-tool (func_import): Likewise.
13361         * pygnulib/GLImport.py (GLImport.execute): Likewise.
13363 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
13365         bootstrap, gnulib-tool: correct the translations wget command
13366         * build-aux/bootstrap (po_download_command_format2): Restrict
13367         recursion to a single level.
13368         * gnulib-tool (func_import): Likewise.
13369         * pygnulib/GLImport.py (GLImport.execute): Likewise.
13371 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13373         doc: the gnulib snapshots are not maintained
13374         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
13376 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13378         timevar: add to lib_SOURCES
13379         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
13381 2018-10-07  Bruno Haible  <bruno@clisp.org>
13383         dirent: Update documentation.
13384         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
13386 2018-10-05  Bruno Haible  <bruno@clisp.org>
13388         strpbrk: Make it possible to namespace the defined symbol.
13389         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
13391 2018-10-05  Bruno Haible  <bruno@clisp.org>
13393         strcspn: Make it possible to namespace the defined symbol.
13394         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
13396 2018-10-05  Bruno Haible  <bruno@clisp.org>
13398         raise: Make it possible to namespace the defined symbol.
13399         * lib/raise.c (raise): Undefine only after the replacement function has
13400         been defined.
13401         (raise): Renamed from rpl_raise.
13402         (raise_nothrow): Move to the end of the compilation unit.
13404 2018-10-05  Bruno Haible  <bruno@clisp.org>
13406         memcmp: Make it possible to namespace the defined symbol.
13407         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
13409 2018-10-05  Bruno Haible  <bruno@clisp.org>
13411         explicit_bzero: Make it possible to namespace the defined symbol.
13412         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
13413         glibc.
13415 2018-10-05  Bruno Haible  <bruno@clisp.org>
13417         mkdir-p: Depend on 'mkdir'.
13418         * modules/mkdir-p (Depends-on): Add 'mkdir'.
13420 2018-10-05  Bruno Haible  <bruno@clisp.org>
13422         tempname: Depend on 'mkdir'.
13423         Reported by Maarten Bosmans <mkbosmans@gmail.com>
13424         at <https://savannah.gnu.org/bugs/?33379>.
13425         * modules/tempname (Depends-on): Add 'mkdir'.
13427 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
13429         timevar: rely on gnulib modules for time portability.
13430         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
13431         * m4/timevar.m4: Don't check for clock_t and struct tms,
13432         guaranteed by gnulib.
13433         * lib/timevar.h: Use extern "C" protection.
13434         Include <stdio.h> for FILE.
13435         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
13436         they are guaranteed by gnulib.
13437         Remove uses of clock as (now useless) fallback.
13439 2018-10-04  Bruno Haible  <bruno@clisp.org>
13441         sh-filename: New module.
13442         * m4/sh-filename.m4: New file.
13443         * modules/sh-filename: New file.
13444         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
13445         "/bin/sh".
13446         * tests/test-posix_spawn1.c (main): Likewise.
13447         * tests/test-posix_spawn2.c (main): Likewise.
13448         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
13449         is_envjavac_gcj43): Likewise.
13450         * lib/javaexec.c (execute_java_class): Likewise.
13451         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
13452         * modules/posix_spawnp-tests (Depends-on): Likewise.
13453         * modules/javacomp (Depends-on): Likewise.
13454         * modules/javaexec (Depends-on): Likewise.
13456 2018-10-04  Bruno Haible  <bruno@clisp.org>
13458         spawn-pipe tests: Avoid test failure on native Windows.
13459         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
13460         that fd 2 is closed.
13462 2018-10-04  Bruno Haible  <bruno@clisp.org>
13464         fcntl: Make it possible to namespace the defined symbol.
13465         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
13466         been defined.
13467         (fcntl): Renamed from rpl_fcntl.
13468         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
13469         from fcntl.
13470         (klibc_fcntl): Move to the end of the compilation unit.
13472 2018-10-02  Bruno Haible  <bruno@clisp.org>
13474         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
13475         * tests/test-vasnprintf.c (test_function): Change the test added on
13476         2018-09-23 to check only the 18 most significant digits.
13478         vasnprintf tests: Avoid test failure on Cygwin.
13479         * tests/test-vasnprintf.c (test_function): Change the test added on
13480         2018-09-23 to check only the 42 most significant digits.
13482 2018-10-01  Bruno Haible  <bruno@clisp.org>
13484         mkostemp, mkostemps: Update documentation.
13485         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
13486         * doc/glibc-functions/mkostemps.texi: Likewise.
13488 2018-10-01  Tom Tromey  <tom@tromey.com>
13490         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
13491         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
13492         on OS X.
13494 2018-09-30  Pádraig Brady  <P@draigBrady.com>
13496         hmac-*: refactor to remove repetitive code
13497         * lib/hmac.c: A new parameterized single implementation.
13498         * lib/hmac-md5.c: Define parameters and include implementation.
13499         * lib/hmac-sha1.c: Likewise.
13500         * lib/hmac-sha256.c: Likewise.
13501         * lib/hmac-sha512.c: Likewise.
13502         * modules/crypto/hmac-md5: Reference the new implementation file.
13503         * modules/crypto/hmac-sha1: Likewise.
13504         * modules/crypto/hmac-sha256: Likewise.
13505         * modules/crypto/hmac-sha512: Likewise.
13506         * tests/test-hmac-md5.c: Refactor common code to a single function.
13507         * tests/test-hmac-sha1.c: Likewise.
13508         * tests/test-hmac-sha256.c: Likewise.
13509         * tests/test-hmac-sha512.c: Likewise.
13511 2018-09-30  Zhang Qing  <zhangqingl@126.com>
13513         hmac-sha512: fix hash for keys > blocksize (128 bytes)
13514         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
13515         key length to that output by sha512, not the blocksize.
13516         Otherwise uninitialized data from the stack
13517         is used when computing the hash.
13518         * tests/test-hmac-sha512.c: Add a shortened key test case.
13519         Reported at https://github.com/coreutils/gnulib/pull/5
13521 2018-09-30  Bruno Haible  <bruno@clisp.org>
13523         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
13524         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
13525         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
13526         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
13527         'unsigned int' before comparison with an unsigned value.
13529 2018-09-30  Bruno Haible  <bruno@clisp.org>
13531         grantpt: Remove unnecessary dependency.
13532         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
13534 2018-09-30  Bruno Haible  <bruno@clisp.org>
13536         timevar: Small tweaks.
13537         * lib/timevar.h: Fix comments. Add parameter names to function
13538         declarations.
13539         * lib/timevar.c: Include timevar.h immediately after config.h.
13540         * lib/timevar.def: Fix comments.
13541         * modules/timevar (Maintainer): List Akim Demaille.
13543 2018-09-30  Bruno Haible  <bruno@clisp.org>
13545         timevar: Include documentation in gnulib manual.
13546         * doc/timevar.texi: Change node and section name to 'Profiling of
13547         program phases'.
13548         In the code snippets, tweak the #includes and use GNU coding style.
13549         * doc/gnulib.texi: Include timevar.texi.
13551 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
13553         timevar: import from Bison.
13554         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
13555         New files.
13556         * lib/timevar.def: New file.
13557         * doc/timevar.texi: New file.
13559 2018-09-26  Bruno Haible  <bruno@clisp.org>
13561         javacomp-script, javacomp: Add preliminary support for Java 12..17.
13562         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
13563         * lib/javacomp.c (default_target_version): Likewise.
13565 2018-09-26  Bruno Haible  <bruno@clisp.org>
13567         javacomp-script, javacomp: Add support for Java 11.
13568         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
13569         target-version 11.
13570         * lib/javaversion.h: Update comments.
13571         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
13572         source_version_index, get_goodcode_snippet, get_failcode_snippet,
13573         TARGET_VERSION_BOUND, target_version_index,
13574         corresponding_classfile_version): Accept source_version 11 and
13575         target_version 11.
13576         * lib/javacomp.h: Update comments accordingly.
13578 2018-09-23  Bruno Haible  <bruno@clisp.org>
13580         vasnprintf: Fix heap memory overrun bug.
13581         Reported by Ben Pfaff <blp@cs.stanford.edu> in
13582         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
13583         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
13584         memory.
13585         * tests/test-vasnprintf.c (test_function): Add another test.
13587 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13589         maint: mktime.c now shared with glibc
13590         * config/srclist.txt: intprops.h, timegm.c and mktime.c
13591         are now the same in Gnulib and glibc.
13593         mktime: fix _LIBC typo
13594         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
13596 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
13598         dfa: optimization for state merge
13599         * lib/dfa.c (merge2): New function.
13600         (merge_nfa_state): Use it.
13602 2018-09-18  Jim Meyering  <meyering@fb.com>
13604         dfa: trivial comment fix: s/is/if/
13605         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
13607 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13609         dfa: use more-informative function name
13610         * lib/dfa.c (maybe_disable_superset_dfa):
13611         Rename from dfautf8noss.  Use change.
13613         dfa: tweak allocation performance
13614         * lib/dfa.c (merge_nfa_state, dfaoptimize):
13615         Prefer ptrdiff_t for indexes some more.
13616         Use char for flags, as it’s wide enough.
13617         Allocate queue and flags together, with one malloc call.
13618         No need to use xnmalloc since the multiplication and
13619         addition cannot overflow (it’s already been checked by
13620         earlier allocation).  Prefer memset to open-coding.
13622         dfa: prune states as we go
13623         * lib/dfa.c (prune): Remove.
13624         dfa: reorder enum for efficiency
13625         (merge_nfa_state): Prune as we go instead of at the end.
13626         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
13628         * lib/dfa.c (END): Now -1 again.  Reorder other elements
13629         of the enumeration to make it easier for GCC to generate
13630         efficient code by using fewer comparisons to check for
13631         ranges of values.
13632         (atom): Take advantage of the reordering.
13634 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
13636         dfa: optimize alternation in NFA
13637         Even when similar states exist in alternation, the DFA treats them
13638         as separate items, which may complicate the transition in NFA and
13639         cause slowdown.  This change assembles the states into one.  For
13640         example, ab|ac is changed into a(b|c).  This change speeds-up
13641         matching for many branched patterns.  For example, grep speeds up
13642         more than 30× in:
13644           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
13645           time -p env LC_ALL=C grep -vf in in
13647         * lib/dfa.c (prune): New function.
13648         (merge_nfa_state): New function.  It merges similar NFA states.
13649         (dfaoptimize): New function.  It seeks merged and removed nodes.
13650         (dfaanalyze): Call new function.
13651         (dfautf8noss): Change name from dfaoptimize because of addition of new
13652         function.
13653         (dfacomp): Update caller.
13655         dfa: simplify initial state
13656         Simplifying the initial state enables easier optimization of the NFA.
13657         * lib/dfa.c (enum token): Add new element BEG.
13658         (prtok): Adjust due to adding element BEG.
13659         (dfaparse): Put BEG at a head of tokens.
13660         (state_index): Adjust due to adding element BEG.
13661         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
13662         build initial state.
13663         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
13665 2018-09-18  Bruno Haible  <bruno@clisp.org>
13667         file-has-acl: Fix test failure on Cygwin 2.9.
13668         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
13669         * lib/acl-internal.h: Likewise.
13670         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
13671         * lib/acl-internal.c: Update comments regarding Cygwin.
13672         * lib/acl_entries.c: Likewise.
13673         * lib/file-has-acl.c: Likewise.
13674         (file_has_acl): For Cygwin, use a different way to determine whether
13675         the "default" ACL of a directory is nontrivial.
13676         * lib/get-permissions.c: Update comments regarding Cygwin.
13677         * lib/set-permissions.c: Likewise.
13679 2018-09-18  Bruno Haible  <bruno@clisp.org>
13681         stat-time tests: Fix test failure on Cygwin.
13682         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
13684 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13686         doc: OS X 10.11 lacked ns time functions
13687         According to <https://github.com/zeromq/libzmq/issues/2175>,
13688         nanosecond-resolution timestamp functions were introduced
13689         in macOS 10.12, so document the last version (OS X 10.11)
13690         where they were absent.
13692         gettime: nanotime never existed
13693         Problem reported by Bruno Haible in:
13694         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
13695         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
13696         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
13698 2018-09-18  Bruno Haible  <bruno@clisp.org>
13700         doc: Update statement about target platforms.
13701         Reported by Simon Sobisch.
13702         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
13703         restrictions on MSVC versions.
13705 2018-09-18  Bruno Haible  <bruno@clisp.org>
13707         posix_spawn tests: Fix link error on 64-bit Cygwin.
13708         * tests/test-posix_spawn1.c (environ): Remove declaration.
13709         * tests/test-posix_spawn2.c (environ): Likewise.
13710         * tests/test-posix_spawn3.c (environ): Likewise.
13711         * tests/test-posix_spawn4.c (environ): Likewise.
13712         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
13713         * modules/posix_spawnp-tests (Depends-on): Likewise.
13715 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
13717         timespec: new function current_timespec
13718         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
13719         and don’t worry about it failing on a CLOCK_REALTIME arg.
13720         POSIX requires it to succeed and I don’t know of any
13721         counterexamples where the fallbacks would work.
13722         (current_timespec): New function, taken from Emacs.  It is more
13723         convenient than gettime, and can help register allocation.
13724         * lib/timespec.h: Include arg-nonnull.h.
13725         (current_timespec): New declaration.
13726         (gettime, settime): Declare args to be nonnull.
13727         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
13729 2018-09-16  Bruno Haible  <bruno@clisp.org>
13731         setlocale: Improve locale handling on macOS 10.12 or newer.
13732         * lib/setlocale.c: Include header files for CoreFoundation. Declare
13733         gl_locale_name_canonicalize.
13734         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
13735         and LC_MESSAGES.
13736         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
13738 2018-09-16  Bruno Haible  <bruno@clisp.org>
13740         Update list of locale names with scripts on macOS.
13741         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
13742         match Mac OS X 10.13 and recent glibc.
13744 2018-09-16  Bruno Haible  <bruno@clisp.org>
13746         gettext: Use newer macOS APIs when possible.
13747         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
13748         CFLocaleCopyPreferredLanguages.
13750 2018-09-16  Bruno Haible  <bruno@clisp.org>
13752         localename: Revisit macOS specific code.
13753         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
13754         Fix comments about Mac OS X versions.
13756 2018-09-15  Bruno Haible  <bruno@clisp.org>
13758         setlocale: Improve support for locales not supported by libc.
13759         Reported by Dapeng Gao <peter@dpgao.cc> at
13760         <https://savannah.gnu.org/bugs/?54479>.
13761         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
13762         (libintl_setlocale): Use a more error-tolerant strategy when the locale
13763         to be set is not supported by libc: Emit warnings instead of failing.
13765 2018-09-15  Bruno Haible  <bruno@clisp.org>
13767         strstr, strcasestr: Add workaround against glibc-2.28 bug.
13768         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
13769         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
13770         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
13771         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
13772         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
13773         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
13774         * doc/glibc-functions/strcasestr.texi: Likewise.
13776 2018-09-14  Bruno Haible  <bruno@clisp.org>
13778         doc: Fix bottom of top-level page.
13779         Reported by Akim Demaille <akim.demaille@gmail.com> in
13780         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
13781         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
13782         mode.
13783         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
13784         accordingly.
13786 2018-09-12  Bruno Haible  <bruno@clisp.org>
13788         Add test case from a recent glibc bug.
13789         * tests/test-strstr.c (main): Add test of long needle.
13790         * tests/test-strcasestr.c (main): Likewise.
13791         * tests/test-c-strstr.c (main): Likewise.
13792         * tests/test-c-strcasestr.c (main): Likewise.
13793         * tests/test-memmem.c (main): Likewise.
13795 2018-09-12  Bruno Haible  <bruno@clisp.org>
13797         Apply Eric Blake's improvements from 2011-02-25 to more tests.
13798         * tests/test-c-strstr.c (main): Add the same tests here as well.
13800 2018-09-12  Bruno Haible  <bruno@clisp.org>
13802         Apply Jim Meyering's fix from 2015-01-11 to more tests.
13803         * tests/test-memmem.c (main): Free haystack.
13804         * tests/test-strcasestr.c (main): Likewise.
13805         * tests/test-c-strcasestr.c (main): Likewise.
13807 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
13809         xstrtol: fix missing-TYPE_SIGNED typo
13810         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
13812 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13814         timespec: fix resolution confusion
13815         In normal usage, clock resolution is given in seconds, but the
13816         code was mistakenly using inverse seconds and calling it
13817         “resolution”.  Fix this, partly by renaming two identifiers.
13818         The old names will be kept for a bit, to ease transition.
13819         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
13820         New constants, replacing TIMESPEC_RESOLUTION and
13821         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
13822         All uses changed.
13824 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
13826         mktime: simplify in prep for glibc merge
13827         * lib/mktime.c, lib/timegm.c [_LIBC]:
13828         Include mktime-internal.h (a small file just for glibc)
13829         instead of using a typedef.
13831 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
13833         intprops: minor clarification of code
13834         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
13835         Use _GL_INT_CONVERT rather than reinventing it.
13837 2018-09-07  Bruno Haible  <bruno@clisp.org>
13839         Fix a comment.
13840         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
13842 2018-09-07  Bruno Haible  <bruno@clisp.org>
13844         posix_spawn_file_actions_addchdir: Add tests.
13845         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
13846         * tests/test-posix_spawn4.c: New file.
13847         * modules/posix_spawn_file_actions_addchdir-tests: New file.
13849 2018-09-07  Bruno Haible  <bruno@clisp.org>
13851         posix_spawn_file_actions_addchdir: New module.
13852         Suggested by Eric Blake in
13853         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
13854         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
13855         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
13856         union member 'chdir_action'.
13857         * lib/spawn_faction_addchdir.c: New file.
13858         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
13859         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
13860         HAVE_WORKING_POSIX_SPAWN.
13861         * lib/spawn_faction_adddup2.c: Likewise.
13862         * lib/spawn_faction_addopen.c: Likewise.
13863         * m4/posix_spawn_faction_addchdir.m4: New file.
13864         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
13865         'posix_spawn_file_actions_addchdir' is present and whether
13866         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
13867         instead of HAVE_WORKING_POSIX_SPAWN.
13868         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
13869         posix_spawn_file_actions_addchdir is declared.
13870         (gl_SPAWN_H_DEFAULTS): Initialize
13871         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13872         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13873         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
13874         * modules/spawn (Makefile.am): Substitute
13875         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13876         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13877         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
13878         * modules/posix_spawn_file_actions_addchdir: New file.
13879         * modules/posix_spawn_file_actions_addclose (Depends-on,
13880         configure.ac): Test also REPLACE_POSIX_SPAWN.
13881         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
13882         configure.ac): Likewise.
13883         * modules/posix_spawn_file_actions_addopen (Depends-on,
13884         configure.ac): Likewise.
13885         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
13886         signature.
13887         * doc/posix-functions/posix_spawn.texi: Mention the new module.
13888         * doc/posix-functions/posix_spawnp.texi: Likewise.
13890 2018-09-06  Bruno Haible  <bruno@clisp.org>
13892         stddef: Override max_align_t on NetBSD 8.0/x86.
13893         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
13894         the value of __alignof__ (max_align_t).
13895         * doc/posix-headers/stddef.texi: Mention the issue.
13897 2018-09-06  Bruno Haible  <bruno@clisp.org>
13899         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
13900         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
13901         system fcntl.
13902         * doc/posix-functions/fcntl.texi: Document the issue.
13904 2018-09-06  Bruno Haible  <bruno@clisp.org>
13906         count-trailing-zeros tests: Rely on limits-h module.
13907         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
13908         definition.
13909         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
13911 2018-09-06  Bruno Haible  <bruno@clisp.org>
13913         count-leading-zeros tests: Rely on limits-h module.
13914         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
13915         definition.
13916         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
13918 2018-09-06  Bruno Haible  <bruno@clisp.org>
13920         count-one-bits tests: Rely on limits-h module.
13921         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
13922         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
13924 2018-09-06  Bruno Haible  <bruno@clisp.org>
13926         xstrtoll: Rely on limits-h module.
13927         * lib/xstrtol.c: Don't include intprops.h.
13928         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
13929         * modules/xstrtol (Depends-on): Remove 'intprops'.
13930         * modules/xstrtoll (Depends-on): Add 'limits-h'.
13932 2018-09-06  Bruno Haible  <bruno@clisp.org>
13934         strtoll, strtoull: Rely on limits-h module.
13935         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
13936         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
13937         * modules/strtoll (Depends-on): Add limits-h.
13938         * modules/strtoull (Depends-on): Likewise.
13940 2018-09-06  Bruno Haible  <bruno@clisp.org>
13942         intprops tests: Fix compilation error with pre-C99 compiler.
13943         * tests/test-intprops.c (verify_stmt): New macro.
13944         (VERIFY, main): Use it.
13946 2018-09-06  Bruno Haible  <bruno@clisp.org>
13948         limits-h: Provide numerical limits macros.
13949         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
13950         IRIX and for GCC.
13951         (WORD_BIT, LONG_BIT): Define.
13952         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
13953         <limits.h> does not define LLONG_MAX or WORD_BIT.
13954         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
13955         TYPE_MAXIMUM): New macros, from intprops.h.
13956         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
13957         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
13958         provides.
13960 2018-09-05  Bruno Haible  <bruno@clisp.org>
13962         fcntl: Don't access nonexistent optional argument.
13963         Reported by Frank Busse <f.busse@imperial.ac.uk> in
13964         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
13965         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
13966         don't consume an argument. For actions that take an 'int' argument,
13967         consume an 'int' argument.
13969 2018-09-05  Eric Blake  <eblake@redhat.com>
13971         doc: mention environ pitfall
13972         * doc/posix-functions/environ.texi (environ): Assigning NULL to
13973         environ is a glibc extension.
13975 2018-09-03  Bruno Haible  <bruno@clisp.org>
13977         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
13978         Reported by Antoine Luong <antoine.luong@c-s.fr> in
13979         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
13980         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
13981         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
13982         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
13984 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13986         mktime: fix unlikely race+overflow bug
13987         Problem reported by Alexandre Oliva in:
13988         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
13989         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
13990         to avoid an unlikely race if the compiler delays a load and
13991         if this cascades into a signed integer overflow.
13993 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13995         mktime, timegm: simplify glibc time64_t
13996         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
13997         Now long int, not time_t, since long int is the longstanding type
13998         for this in glibc and there is no need to change it even if time_t
13999         becomes 64 bits - even int would do, though this would be a change
14000         to the glibc generated code.  When this change is merged into
14001         glibc, it should simplify the time_t vs time64_t situation.
14003         mktime, timegm: simplify merge to glibc
14004         Move code around to make a merge to glibc easier to audit.
14005         This should not change behavior.
14006         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
14007         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
14008         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
14009         simplify later conditionals; default the others to zero.  In uses
14010         of these conditionals, explicitly spell out how _LIBC affects
14011         things, so it’s easier to review from a glibc viewpoint.
14012         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
14013         compartmentalize tzset issues.  Move system-dependent tzsettish
14014         code here from mktime.
14015         (mktime): Move tzsettish code to my_tzset, and move
14016         localtime_offset to within mktime so that it doesn’t
14017         need a separate ifdef.
14019 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
14021         intprops: avoid evaluation of some expressions
14022         This makes EXPR_SIGNED (e) easier to use, as it no longer
14023         evaluates the expression E.  Formerly, E was required to be free
14024         of side effects.
14025         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
14026         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
14027         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
14029 2018-08-23  Bruno Haible  <bruno@clisp.org>
14031         getcwd: Add cross-compilation guesses.
14032         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
14033         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
14034         Based on a patch by Paul Eggert.
14035         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
14036         guesses for all GNU systems.
14038 2018-08-19  Bruno Haible  <bruno@clisp.org>
14040         glob-h: Formalize side effects from other modules.
14041         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
14042         * m4/glob.m4 (gl_GLOB): Invoke it.
14044         fnmatch-h: Formalize side effects from other modules.
14045         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
14046         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
14048         limits-h: Formalize side effects from other modules.
14049         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
14050         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
14052 2018-08-19  Bruno Haible  <bruno@clisp.org>
14054         getpass: Move declaration to <unistd.h>.
14055         * lib/unistd.in.h (getpass): New declaration.
14056         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
14057         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
14058         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
14059         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
14060         On glibc systems, don't set REPLACE_GETPASS to 1.
14061         * modules/getpass (Depends-on): Add 'unistd'.
14062         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
14063         (Include): Specify <unistd.h> instead of "getpass.h".
14064         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
14065         (configure.ac): Sync with the configure.ac section of modules/getpass.
14066         (Include): Specify <unistd.h> instead of "getpass.h".
14067         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
14068         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
14069         REPLACE_GETPASS.
14070         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
14071         REPLACE_GETPASS.
14072         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
14073         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
14074         and musl.
14075         * NEWS: Mention the change.
14077 2018-08-19  Bruno Haible  <bruno@clisp.org>
14079         glob: Fix over-optimization due to attribute __nonnull__.
14080         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
14082 2018-08-19  Bruno Haible  <bruno@clisp.org>
14084         glob: Fix another compilation error when glob.h is not replaced.
14085         Reported by Reuben Thomas <rrt@sc3d.org> in
14086         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
14087         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
14088         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
14090 2018-08-18  Bruno Haible  <bruno@clisp.org>
14092         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
14093         Reported by Reuben Thomas <rrt@sc3d.org> in
14094         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
14095         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
14096         in config.h.
14098 2018-08-18  Bruno Haible  <bruno@clisp.org>
14100         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
14101         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
14102         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
14103         Solution proposed by Eli Zaretskii.
14104         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
14105         * lib/gettimeofday.c (GetProcAddress): Likewise.
14106         * lib/link.c (GetProcAddress): Likewise.
14107         * lib/physmem.c (GetProcAddress): Likewise.
14108         * lib/poll.c (GetProcAddress): Likewise.
14109         * lib/select.c (GetProcAddress): Likewise.
14110         * lib/stat-w32.c (GetProcAddress): Likewise.
14112 2018-08-18  Bruno Haible  <bruno@clisp.org>
14114         glob: Fix another compilation error when glob.h is not replaced.
14115         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
14116         * lib/globfree.c: Include <libc-config.h>.
14118 2018-08-18  Bruno Haible  <bruno@clisp.org>
14120         glob: Fix compilation error when glob.h is not replaced.
14121         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
14122         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
14123         * lib/glob_pattern_p.c: Include <libc-config.h>.
14124         * modules/glob (Depends-on): Add libc-config.
14126 2018-08-18  Bruno Haible  <bruno@clisp.org>
14128         scratch_buffer: Add tests.
14129         * tests/test-scratch-buffer.c: New file.
14130         * modules/scratch_buffer-tests: New file.
14132 2018-08-18  Bruno Haible  <bruno@clisp.org>
14134         scratch_buffer: Fix include file.
14135         Reported by Reuben Thomas <rrt@sc3d.org> in
14136         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
14137         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
14138         double-inclusion guard.
14140 2018-08-18  Bruno Haible  <bruno@clisp.org>
14142         glob-h: Revert Paul Eggert's revert.
14143         * m4/glob_h.m4: Revert to previous state.
14144         * modules/glob-h: Likewise.
14146 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14148         glob-h: always build glob.h
14149         This works around a problem reported by Reuben Thomas in:
14150         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
14151         This workaround always builds glob.h, even on platforms that
14152         do not need it; perhaps this could be improved someday.
14153         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
14154         is always created now.
14155         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
14157 2018-08-13  Bruno Haible  <bruno@clisp.org>
14159         monetary: Simplify m4 code.
14160         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
14161         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
14163 2018-08-13  Bruno Haible  <bruno@clisp.org>
14165         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
14166         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
14167         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
14168         and by Paul J. Lucas <paul@lucasmail.org> in
14169         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
14170         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
14172 2018-08-11  Bruno Haible  <bruno@clisp.org>
14174         setlocale: Trivial simplification.
14175         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
14177 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14179         verify: port 'assume' to traditional tools
14180         * lib/verify.h (assume): Port better to Oracle Studio 12.6
14181         and other tools that use /*NOTREACHED*/ comments.
14183 2018-08-10  Bruno Haible  <bruno@clisp.org>
14185         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
14186         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14187         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
14188         'fnmatch-gnu' is in use.
14190 2018-08-07  Bruno Haible  <bruno@clisp.org>
14192         glob-h: Add tests.
14193         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
14194         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
14195         tests/test-glob-h.c.
14196         * modules/glob-h-tests: New file.
14197         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
14198         conditions.
14199         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
14200         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
14202 2018-08-07  Bruno Haible  <bruno@clisp.org>
14204         glob-h: New module.
14205         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
14206         replacements.
14207         * lib/glob.c: Include <config.h>.
14208         * m4/glob_h.m4: New file.
14209         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
14210         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
14211         REPLACE_GLOB_PATTERN_P as appropriate.
14212         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
14213         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
14214         * modules/glob-h: New file.
14215         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
14216         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
14217         lstat, sys_stat. Change conditions.
14218         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
14219         REPLACE_GLOB_PATTERN_P. Set module indicator.
14220         (Makefile.am): Remove code that is moved to glob-h.
14221         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
14222         * modules/posixcheck (Depends-on): Add glob-h.
14224 2018-08-06  Bruno Haible  <bruno@clisp.org>
14226         Force generation of substitute .h file when C++ support is enabled.
14227         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
14228         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
14229         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
14230         FNMATCH_H to non-empty.
14231         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
14232         ICONV_H to non-empty.
14233         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
14234         MONETARY_H to non-empty.
14235         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
14236         non-empty.
14238 2018-08-06  Bruno Haible  <bruno@clisp.org>
14240         fnmatch-h: Fix test compilation error on mingw (regression from today).
14241         * lib/fnmatch.in.h: Fix conditions.
14243 2018-08-06  Bruno Haible  <bruno@clisp.org>
14245         sys_resource: Relicense under LGPLv2+.
14246         John Malmberg's approval is in
14247         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
14248         * modules/sys_resource (License): Change to LGPLv2+.
14250 2018-08-06  Bruno Haible  <bruno@clisp.org>
14252         fnmatch-h: Add tests.
14253         * tests/test-fnmatch-h.c: New file.
14254         * modules/fnmatch-h-tests: New file.
14255         * tests/test-fnmatch-h-c++.cc: New file.
14256         * modules/fnmatch-h-c++-tests: New file.
14258 2018-08-06  Bruno Haible  <bruno@clisp.org>
14260         fnmatch-h: New module.
14261         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
14262         replacements.
14263         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
14264         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
14265         'posixcheck' warning.
14266         * m4/fnmatch_h.m4: New file.
14267         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
14268         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
14269         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
14270         as appropriate.
14271         * modules/fnmatch-h: New file.
14272         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
14273         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
14274         conditions.
14275         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
14276         indicator.
14277         (Makefile.am): Remove code that is moved to fnmatch-h.
14278         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
14279         REPLACE_FNMATCH.
14280         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
14281         * modules/posixcheck (Depends-on): Add fnmatch-h.
14283 2018-08-06  Bruno Haible  <bruno@clisp.org>
14285         Enable more C++ tests.
14286         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
14287         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
14288         * modules/strings-tests (Depends-on): Add strings-c++-tests.
14289         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
14290         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
14292 2018-08-06  Bruno Haible  <bruno@clisp.org>
14294         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
14295         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
14296         getopt.h.
14297         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
14299 2018-08-05  Bruno Haible  <bruno@clisp.org>
14301         utime-h: Generate header file when module 'posixcheck' is in use.
14302         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
14303         UTIME_H to non-empty.
14305 2018-08-05  Bruno Haible  <bruno@clisp.org>
14307         monetary: Generate header file when module 'posixcheck' is in use.
14308         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
14309         use, set MONETARY_H to non-empty.
14311 2018-08-05  Bruno Haible  <bruno@clisp.org>
14313         iconv-h: Generate header file when module 'posixcheck' is in use.
14314         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
14315         set ICONV_H to non-empty.
14317 2018-08-05  Bruno Haible  <bruno@clisp.org>
14319         Optimize the "checking whether ... is declared without a macro" checks.
14320         Suggested by Paul Eggert in
14321         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
14322         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
14323         Gnulib module 'posixcheck' is not in use.
14325 2018-08-05  Bruno Haible  <bruno@clisp.org>
14327         iconv-h: Enable 'posixcheck' warnings.
14328         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
14329         iconv_open.
14330         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
14332 2018-08-05  Bruno Haible  <bruno@clisp.org>
14334         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
14335         * m4/extern-inline.m4: Add more comments.
14336         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
14337         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
14338         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
14340 2018-08-04  Bruno Haible  <bruno@clisp.org>
14342         New module 'posixcheck'.
14343         * modules/posixcheck: New file.
14344         * m4/posixcheck.m4: New file.
14345         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
14346         (Which modules?): Reference it.
14348 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
14350         dfa: fix memory leak
14351         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
14353 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
14355         ieee754-h: new module
14356         It looks like Emacs can use this for some NaN processing.
14357         Emacs uses it only on double NaNs so it should be safe.
14358         * MODULES.html.sh (func_all_modules): Add ieee754-h.
14359         * config/srclist.txt: Mention ieee754.h in a comment.
14360         * doc/glibc-headers/ieee754.texi (ieee754.h):
14361         Gnulib now has a substitute that should work
14362         except for long double and for non-IEEE platforms.
14363         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
14364         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
14366 2018-07-27  Bruno Haible  <bruno@clisp.org>
14368         iswcntrl: Mention minor problem on macOS.
14369         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
14371 2018-07-26  Colin Watson  <cjwatson@debian.org>
14373         bootstrap, gnulib-tool: fix translations rsync
14374         Previously, we created files such as $pobase/Makefile.in.in and then the
14375         subsequent rsync would immediately delete them.
14376         * build-aux/bootstrap (po_download_command_format): Avoid deleting
14377         non-.po files in target directory when rsyncing translations.
14378         * gnulib-tool (func_import): Likewise.
14379         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14381 2018-07-25  Jim Meyering  <meyering@fb.com>
14383         bootstrap: reinstate definition fo gnulib_mk.
14384         That variable is used at least by cppi.
14385         * build-aux/bootstrap (gnulib_mk): Restore definition.
14386         This reverts the deletion from v0.1-1844-gc66dba9ba.
14388 2018-07-23  Bruno Haible  <bruno@clisp.org>
14390         doc: For module names, use texinfo markup @code{} or @samp{}.
14391         * doc/alloca.texi: Mark gnulib module names with @code.
14392         * doc/alloca-opt.texi: Likewise.
14393         * doc/quote.texi: Likewise.
14394         * doc/posix-functions/freopen.texi: Likewise.
14395         * doc/posix-functions/open.texi: Likewise.
14396         * doc/posix-functions/readlink.texi: Likewise.
14397         * doc/posix-functions/readlinkat.texi: Likewise.
14398         * doc/posix-functions/stdout.texi: Likewise.
14399         * doc/posix-functions/stderr.texi: Likewise.
14400         * doc/posix-functions/unlink.texi: Likewise.
14401         * doc/posix-functions/unlinkat.texi: Likewise.
14402         * doc/posix-functions/utime.texi: Likewise.
14403         * doc/posix-functions/utimensat.texi: Likewise.
14404         * doc/posix-functions/utimes.texi: Likewise.
14405         * doc/posix-headers/stdint.texi: Likewise.
14406         * doc/glibc-functions/futimesat.texi: Likewise.
14407         * doc/glibc-functions/lutimes.texi: Likewise.
14408         * doc/glibc-functions/memmem.texi: Likewise.
14410 2018-07-23  Werner LEMBERG  <wl@gnu.org>
14412         doc: Avoid some overfull lines in the TeX output.
14413         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
14414         @example.
14415         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
14416         newline before the long URL.
14417         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
14418         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
14419         Add line breaks in code snippets.
14421 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
14423         hard-locale: simplify by removing hard-locale.m4
14424         * m4/hard-locale.m4: Remove.
14425         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
14426         (configure.ac): Do not call gl_HARD_LOCALE.
14428         gnulib-tool: limit line length for git send-email
14429         * gnulib-tool (func_import): Break actioncmd log line
14430         into multiple lines.
14432 2018-07-16  Bruno Haible  <bruno@clisp.org>
14434         ffs: Ensure declaration on mingw.
14435         Reported by Daniel P. Berrangé <berrange@redhat.com>
14436         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
14437         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
14438         also declared.
14440 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
14442         regex-tests: add dependency
14443         * modules/regex-tests (Depends-on): Add gettext-h.
14444         This is needed given the recent changes to regex,
14445         which no longer depends on gettext-h.
14447 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14449         regex: now in sync with glibc
14450         * config/srclist.txt: Gnulib and glibc regex code
14451         are synchronized again.
14453 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14455         renameatu: rename from renameat2
14456         It's looking like Glibc will add a renameat2 function
14457         that is incompatible with Gnulib renameat2; see:
14458         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
14459         To help avoid future confusion, rename renameat2 to something else.
14460         Use the name 'renameatu', as the Gnulib function is close to the
14461         Glibc function.  Perhaps someday there will also be a renameat2
14462         Gnulib module, which mimicks the future glibc renameat2, but that
14463         can wait as nobody seems to need such a module now.
14464         * NEWS: Mention this.
14465         * lib/renameatu.c: Rename from lib/renameat2.c.
14466         * lib/renameatu.h: Rename from lib/renameat2.h.
14467         * modules/renameatu: Rename from modules/renameat2.
14468         * modules/renameatu-tests: Rename from modules/renameat2-tests.
14469         All uses of "renameat2" in identifiers or file name
14470         changed to "renameatu", except for two instances in
14471         lib/renameatu.c that deal with the Linux kernel's
14472         renameat2 syscall.
14474 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14476         gnulib-tool: minor tweaks for --gnu-make
14477         * gnulib-tool: Do not allow --gnu-make in test modes,
14478         since they all require automake.
14479         (func_emit_lib_Makefile_am): Don’t emit automake comment
14480         if --gnu-make.
14482         regex: work around conditional-dependencies glitch
14483         * modules/regex (Depends-on): Add langinfo.
14484         Without this change, I had problems building an experimental
14485         version of GNU Emacs.  The symptom of the bug was a message
14486         ‘./configure: line 12726: test: =: unary operator expected’.
14487         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
14488         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
14489         was unset.  Although gl_FUNC_NL_LANGINFO has
14490         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
14491         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
14492         --conditional-dependencies sometimes arranges for the
14493         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
14494         code.  Since the regex code includes <langinfo.h> it should be
14495         depending on the langinfo module anyway, and this happens to work
14496         around the bug, so install that as a workaround for now.  To
14497         reproduce the original problem, run the following shell script on
14498         the version of Gnulib just before this patch was installed.
14499                 rm -fr foo
14500                 mkdir foo
14501                 cat >foo/configure.ac <<'EOF'
14502                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
14503                 gl_EARLY
14504                 gl_INIT
14505                 AC_OUTPUT
14506                 EOF
14507                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
14508                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
14509                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
14510                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
14511                 cd foo
14512                 aclocal -I m4
14513                 autoconf
14514                 ./configure --with-included-regex
14516 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14518         wchar: fix bug when checking for ‘inline’
14519         I discovered this when looking into using the regex module
14520         with Emacs.
14521         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
14522         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
14523         conftest1.c and conftest2.c but these files were not created.
14524         As far as I can see, this check never worked and nobody reported
14525         it until now, which is a bit worrisome.
14527 2018-06-30  Jim Meyering  <meyering@fb.com>
14529         bootstrap: s/--option val/--option=val/
14530         * build-aux/bootstrap (gnulib_tool_options): Change the
14531         spelling of "--option val" pairs to "--option=val", for
14532         aesthetics, and also so that this file no longer triggers
14533         a common help2man syntax-check warning when copied into
14534         projects like grep, gzip, etc.
14536 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14538         manywarnings: omit -Wswitch-default
14539         This should make things more consistent, as we already ignore
14540         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
14541         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
14542         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
14543         Add -Wswitch-default.
14544         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
14545         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
14546         Remove -Wswitch-default.
14548         regex: revert most trimming
14549         Problems reported by Bruno Haible in:
14550         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
14551         * modules/regex (Depends-on): Add lock, memcmp, memmove,
14552         and wctype back in.  lock because regex users shouldn’t
14553         need to know that regex needs locking, and the rest because
14554         gnulib-tool should ordinarily ignore them anyway.
14556 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14558         regex: trim module dependencies
14559         * modules/regex (Depends-on): Remove gettext-h and lock,
14560         since the regex code should work OK without these modules,
14561         and Emacs uses it that way.  Also remove memcmp, memmove,
14562         and wctype, as these modules are obsolete and should not be
14563         needed any more.
14565 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
14567         regex: glibc does not use intprops.h
14568         Maybe we can talk glibc into using intprops.h someday, but
14569         now doesn’t seem to be a good time.
14570         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
14571         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
14572         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
14574 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
14576         regex: port to recently proposed glibc regex merge
14577         This patch is inspired by Adhemerval Zanella's recent proposal
14578         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
14579         to merge glibc and Gnulib regex.  It aims to simplify the merge on
14580         the glibc side, without keeping Gnulib portable.
14581         * lib/regex.h: Fix a problem with glibc installed-header checking,
14582         as follows:
14583         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
14584         (_Restrict_arr_): Prefer __restrict_arr if defined,
14585         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
14586         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
14587         (build_wcs_upper_buffer, build_upper_buffer)
14588         (re_string_translate_buffer, re_string_context_at):
14589         Move decls here from lib/regex_internal.h, for glibc internal tests.
14590         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
14591         glibc BZ #18496.
14592         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
14593         -Wunused-value.
14594         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
14595         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
14596         (bitset_mask): Now static inline, and without any __attribute__
14597         ((unused)) decoration, for glibc internal tests.
14599 2018-06-25  Bruno Haible  <bruno@clisp.org>
14601         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
14602         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
14603         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
14604         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
14605         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
14606         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
14607         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
14608         / -lthread / -lpth does not get optimized away by a preceding
14609         --as-needed option.
14611 2018-06-25  Bruno Haible  <bruno@clisp.org>
14613         Continue to use spaces for indentation, not tabs.
14614         * MODULES.html.sh: Untabify.
14615         * doc/regex.texi: Likewise.
14616         * lib/acl-internal.c: Likewise.
14617         * lib/dfa.c: Likewise.
14618         * lib/exclude.c: Likewise.
14619         * lib/exclude.h: Likewise.
14620         * lib/get-permissions.c: Likewise.
14621         * lib/gettimeofday.c: Likewise.
14622         * lib/parse-datetime.y: Likewise.
14623         * lib/pselect.c: Likewise.
14624         * lib/set-permissions.c: Likewise.
14625         * lib/time.in.h: Likewise.
14626         * m4/canonicalize.m4: Likewise.
14627         * m4/gc.m4: Likewise.
14628         * m4/gnulib-common.m4: Likewise.
14629         * m4/pthread_sigmask.m4: Likewise.
14630         * m4/vararrays.m4: Likewise.
14631         * tests/test-digest.h: Likewise.
14632         * tests/test-fcntl-h.c: Likewise.
14633         * tests/test-timespec.c: Likewise.
14634         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
14636 2018-06-25  Bruno Haible  <bruno@clisp.org>
14638         manywarnings: Don't enable -Wjump-misses-init warnings by default.
14639         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
14640         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
14641         -Wjump-misses-init.
14643 2018-06-25  Jim Meyering  <meyering@fb.com>
14645         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
14646         * lib/acl-internal.h (free_permission_context): Remove that
14647         attribute directive.  Otherwise, it would provoke this from GCC 9:
14648         lib/acl-internal.h:300:3: error: 'const' attribute on function \
14649           returning 'void' [-Werror=attributes]
14651 2018-06-24  Jim Meyering  <meyering@fb.com>
14653         parse-datetime: accommodate gcc-4.8.5
14654         Bruno Haible reported the build failure in
14655         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
14656         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
14657         on declaration of new local.
14659 2018-06-24  Bruno Haible  <bruno@clisp.org>
14661         af_alg: Fail in continuable manner on Linux/powerpc64le.
14662         Reported by Assaf Gordon <assafgordon@gmail.com>
14663         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
14664         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
14665         byte send() as the first round.
14667 2018-06-24  Bruno Haible  <bruno@clisp.org>
14669         af_alg: Fix state of stream after sendfile() succeeds.
14670         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
14671         the stream is correctly positioned afterwards.
14672         * modules/crypto/af_alg (Depends-on): Add fflush.
14673         * tests/test-digest.h (test_digest_on_files): Verify that after the
14674         operation the stream is positioned at end of file.
14676 2018-06-24  Jim Meyering  <meyering@fb.com>
14678         canon-host: take GCC9's advice rather than ignoring warning
14679         Pádraig Brady suggested not to ignore this GCC9 advice.
14680         * lib/canon-host.c: Undo preceding change.
14681         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
14683         parse-datetime.y: avoid spurious GCC 9 warning
14684         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
14685         a function local prior to the first "goto fail".  The prior use would
14686         evoke this:
14687         parse-datetime.y: In function 'parse_datetime2':
14688         parse-datetime.y:1791:19: error: jump skips variable initialization \
14689           [-Werror=jump-misses-init]
14690         parse-datetime.y:2385:2: note: label 'fail' defined here
14691         parse-datetime.y:188:43: note: '({anonymous})' declared here
14692         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
14694         canon-host.c: avoid spurious GCC 9 warning
14695         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
14697         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
14698         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
14699         * m4/manywarnings.m4: Remove them.
14700         Otherwise, building coreutils, I would see this:
14701         cc1: error: deprecated command line option '-Wchkp' [-Werror]
14702         cc1: error: -Wabi won't warn about anything [-Werror=abi]
14703         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
14704           which is also used by default
14705         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
14707 2018-06-24  Bruno Haible  <bruno@clisp.org>
14709         af_alg tests: Add another test.
14710         * tests/test-digest.h (test_digest_on_files): Also check a large file
14711         with a skipped header.
14712         * tests/test-md5.c: Include macros.h.
14713         * tests/test-sha1.c: Likewise.
14714         * tests/test-sha256.c: Likewise.
14715         * tests/test-sha512.c: Likewise.
14716         * modules/crypto/md5-tests (Files): Add tests/macros.h.
14717         * modules/crypto/sha1-tests (Files): Likewise.
14718         * modules/crypto/sha256-tests (Files): Likewise.
14719         * modules/crypto/sha512-tests (Files): Likewise.
14721 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14723         maint: clarify comments about sticky EOF
14724         * lib/af_alg.c: Be more direct that we can't
14725         assume stickiness of EOF for portability reasons.
14726         * lib/md5.c: Clarify that this isn't just a glibc issue.
14727         * lib/sha1.c: Likewise.
14728         * lib/sha256.c: Likewise.
14729         * lib/sha512.c: Likewise.
14731 2018-06-24  Bruno Haible  <bruno@clisp.org>
14733         af_alg: Comment and style improvements.
14734         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
14735         (afalg_buffer, afalg_stream): Improve comments.
14737 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14739         af_alg: disable kernel hash functions by default
14740         All the kernel routines were seen to be significantly slower
14741         with these relatively recent components on an i3-2310M system:
14742           kernel-4.10.6-200.fc25.x86_64
14743           openssl-1.0.2m-1.fc25.x86_64
14744         sha1 was nearly twice as slow in the kernel for example.
14745         Further considerations why this should not be the default, at:
14746         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
14748         * m4/af_alg.m4: Require --with-linux-crypto to enable.
14749         * m4/gl-openssl.m4: Tweak accordingly.
14751 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14753         af_alg: avoid hangs when reading from streams
14754         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
14755         and thus avoid doing a fread() when feof() is set.
14756         * lib/md5.c: Ensure feof() is called before fread().
14757         * lib/sha1.c: Likewise.
14758         * lib/sha256.c: Likewise.
14759         * lib/sha512.c: Likewise.
14761 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14763         af_alg: fix error handling when hash not returned
14764         * lib/af_alg.c (afalg_stream): Handle the case where we've
14765         successfully written data to the kernel in the read/write loop,
14766         but the kernel doesn't respond with the hash.
14768 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14770         libc-config: merge from glibc
14771         * lib/cdefs.h (__inline, __restrict):
14772         Copy from current glibc.  This fixes glibc bug 17721,
14773         which Gnulib had already fixed in a different way.
14774         (__nonnull): Lessen the distance from glibc by using the
14775         glibc definition inside an ‘#ifndef __nonnull’.
14776         (__attribute_nonstring__): New macro, copied from
14777         current glibc.
14778         * lib/libc-config.h (__attribute_nonstring__): New undef.
14779         (__restrict): Remove; workaround no longer needed.
14780         Keep the __inline workaround, though, as it uses HAVE___INLINE to
14781         support more compilers than the glibc __inline can.
14783 2018-06-24  Bruno Haible  <bruno@clisp.org>
14785         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
14786         * lib/mbrtowc.c (enc_t): New enum type.
14787         (locale_enc, locale_enc_cached): New functions.
14788         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
14789         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
14790         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
14791         instead.
14792         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
14793         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
14794         * modules/wcwidth (configure.ac): Invoke it.
14796 2018-06-24  Bruno Haible  <bruno@clisp.org>
14798         wchar-single: Fix test failure in wcwidth tests.
14799         * tests/test-wcwidth.c (main): If the wchar-single module is present,
14800         skip the tests in the C locale.
14802 2018-06-23  Pádraig Brady  <P@draigBrady.com>
14804         crypto: mention --without-linux-crypto in --with-openssl --help
14805         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
14806         routines take precedence in --with-openssl help output.
14808 2018-06-23  Pádraig Brady  <P@draigBrady.com>
14810         wchar-single: a new module to enable optimizations in wchar replacements
14811         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
14812         GNULIB_WCHAR_SINGLE is enabled.
14813         * lib/wcwidth.c (wcwidth): Likewise.
14815 2018-06-23  Bruno Haible  <bruno@clisp.org>
14817         libc-config: Fix conflict with FreeBSD include files.
14818         * lib/cdefs.h (__nonnull): Remove definition.
14819         * lib/libc-config.h (__nonnull): Remove undefinition.
14821 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14823         random_r: do not crash if state is unaligned
14824         Problem reported by Bruce Korb in:
14825         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
14826         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
14827         with 'cc -O2 -xmemalign=8s'.
14828         * lib/random_r.c: Include string.h, for memcpy.
14829         (get_int32, set_int32): New functions.
14830         (__srandom_r, __initstate_r, __setstate_r, __random_r):
14831         Use them to avoid assumption that state pointer is aligned.
14832         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
14833         * tests/test-random_r.c (test_failed): New function.
14834         (main): Use it, to test for alignment bugs.
14836         random_r: omit unnecessary include
14837         * lib/random_r.c: Do not include limits.h.
14839         random, random_r: merge from glibc
14840         * lib/random.c, lib/random_r.c:
14841         Include libc-config.h if !_LIBC, not config.h unilaterally.
14842         * lib/random.c:
14843         Do not include stdint.h or time.h; not needed.
14844         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
14845         (unsafe_state): Rename from generator.  All uses changed.
14846         Use C99-style initializers.
14847         (__random, __srandom, __initstate, __setstate): Rename from
14848         non-underscored version, but define it to non-underscored version
14849         on Gnulib.  Add a lock.
14850         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
14851         Likewise.
14852         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
14853         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
14854         (__srandom_r): Use int32_t instead of long int where int32_t will do.
14855         (__random_r): Use uint32 to fix glibc bug 17343.
14856         * modules/random, modules/random_r (Depends-on): Add libc-config.
14857         Depend on stdint only if $HAVE_RANDOM = 0.
14859 2018-06-19  Jim Meyering  <meyering@fb.com>
14861         README-release: also run any check-very-expensive tests
14862         * top/README-release: Adjust instructions so they run the
14863         check-very-expensive tests when there is such a target.
14865 2018-06-18  Bruno Haible  <bruno@clisp.org>
14867         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
14868         * m4/pthread_rwlock_rdlock.m4: Add comment.
14869         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
14870         are reader-preferring in glibc.
14871         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
14872         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
14874 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
14876         crypto: use byteswap
14877         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
14878         * lib/sm3.c: Include <byteswap.h>.
14879         (SWAP): Use its macros rather than reinventing the wheel.
14880         * modules/crypto/md4, modules/crypto/md5-buffer:
14881         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
14882         * modules/crypto/sha512-buffer, modules/crypto/sm3:
14883         (Depends-on): Add byteswap.
14885 2018-06-17  Pádraig Brady  <P@draigBrady.com>
14887         gendocs.sh: fix support for legacy --texi2html
14888         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
14889         to the default makeinfo invocation.
14890         Reported by Bruce Korb
14892 2018-06-17  Bruno Haible  <bruno@clisp.org>
14894         gettext po infrastructure: Update from current gettext git.
14895         Reported by Akim Demaille <akim@lrde.epita.fr>.
14896         * build-aux/po/Makefile.in.in: Update from current gettext git.
14897         * build-aux/po/remove-potcdate.sin: Likewise.
14898         * config/srclist.txt: Temporarily disable sync for these files.
14900 2018-06-17  Bruno Haible  <bruno@clisp.org>
14902         getloadavg: Return 0 on Windows without Cygwin.
14903         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
14905 2018-06-17  Paul Smith  <psmith@gnu.org>
14907         getloadavg: Allow building on Windows without Cygwin
14908         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
14909         * m4/getloadavg.m4: Check for unistd.h.
14911 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
14913         Port crypto/af_alg to GCC 4.8.4
14914         Problem reported by Peter Simons in:
14915         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
14916         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
14918 2018-05-27  Colin Watson  <cjwatson@debian.org>
14920         bootstrap: document source fetching in --help
14921         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
14923 2018-04-09  Colin Watson  <cjwatson@debian.org>
14925         bootstrap: allow non-submodule control of gnulib
14926         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
14927         bootstrap.conf when fetching gnulib using "git clone" or via
14928         GNULIB_SRCDIR.
14930 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14932         crypto: omit stream ops Emacs doesn’t need
14933         * lib/md5.c (md5_stream):
14934         * lib/sha1.c (sha1_stream):
14935         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
14936         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
14937         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
14938         defined.  Emacs needs this, as it does not use the stream
14939         operations and doesn’t need all the af_alg stuff we’ve recently
14940         added.  Perhaps a similar change is needed to the other crypto
14941         modules, but this patch changes only those needed for Emacs.
14942         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
14943         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
14944         New modules, used by Emacs.
14945         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
14946         * modules/crypto/sha512: Rewrite to depend on the new modules.
14948 2018-05-20  Pádraig Brady  <P@draigBrady.com>
14950         fts: avoid a memory leak edge case
14951         * lib/fts.c (fts_open): Set an appropriate fts_level
14952         so that an immediate fts_close() will free the allocation.
14953         * tests/test-fts.c (fts_dealloc): Add a test case which
14954         will trigger under valgrind or address sanitizer.
14955         Fixes https://bugs.gnu.org/31439
14957 2018-05-20  Bruno Haible  <bruno@clisp.org>
14959         wcwidth tests: Fix link error.
14960         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
14961         $(LIBUNISTRING).
14963 2018-05-20  Bruno Haible  <bruno@clisp.org>
14965         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
14966         * modules/regex (Files): Add m4/glibc21.m4.
14968 2018-05-20  Bruno Haible  <bruno@clisp.org>
14970         localcharset: Optimize.
14971         * lib/localcharset.c (alias_table): Comment out no-op mappings for
14972         platforms where these don't matter. This reduces the table size,
14973         which in turn reduces the lookup time.
14975 2018-05-19  Bruno Haible  <bruno@clisp.org>
14977         localcharset: Map the locale encodings found in newer OSes.
14978         * lib/localcharset.c (alias_table): Add mapping for locale encodings
14979         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
14980         IRIX 6.5, Minix 3.3.
14981         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
14983 2018-05-19  Bruno Haible  <bruno@clisp.org>
14985         localcharset: Move mapping tables into the code. Use a binary search.
14986         * lib/localcharset.h: Document the GNU canonical names for character
14987         encodings here.
14988         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
14989         relocatable.h, configmake.h.
14990         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
14991         macros.
14992         (charset_aliases): Remove variable.
14993         (get_charset_aliases): Remove function.
14994         (struct table_entry): New type.
14995         (alias_table, locale_table): New constants.
14996         (locale_charset): Use the alias_table or locale_table to get the
14997         canonicalized encoding name.
14998         * lib/config.charset: Remove file.
14999         * lib/ref-add.sin: Remove file.
15000         * lib/ref-del.sin: Remove file.
15001         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
15002         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
15003         * modules/localcharset (Notice): Remove.
15004         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
15005         glibc21.m4.
15006         (Depends-on): Remove configmake.
15007         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
15008         (Makefile.am): Simplify.
15009         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
15011 2018-05-19  Bruno Haible  <bruno@clisp.org>
15013         localcharset: Add a manual test.
15014         * tests/test-localcharset.c: New file.
15015         * modules/localcharset-tests: New file.
15017 2018-05-19  Bruno Haible  <bruno@clisp.org>
15019         localcharset: Remove support for obsolete platforms.
15020         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
15021         Mac OS X 10.2. Comment out dubious entry for Solaris.
15023 2018-05-19  Jim Meyering  <meyering@fb.com>
15025         gnupload: adjust comment
15026         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
15027         more likely we'll remove the just-added code in a year or two.
15029 2018-05-19  Bruno Haible  <bruno@clisp.org>
15031         gnupload: Fix "gpg-agent is not available in this session" error.
15032         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
15034 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15036         crypto/af_alg: fix --help
15037         * m4/af_alg.m4: Avoid spurious newline in --help output.
15039 2018-05-13  Bruno Haible  <bruno@clisp.org>
15041         nl_langinfo: Fix compilation error on Android.
15042         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
15043         INT_CURR_SYMBOL, etc. only if these items are defined.
15045 2018-05-13  Bruno Haible  <bruno@clisp.org>
15047         truncate: Fix compilation error on Android.
15048         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
15049         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
15050         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
15051         HAVE_TRUNCATE.
15052         * modules/truncate: Likewise.
15053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
15054         not HAVE_TRUNCATE.
15055         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
15056         HAVE_TRUNCATE.
15057         * doc/posix-functions/truncate.texi: Mention the issue.
15059 2018-05-13  Bruno Haible  <bruno@clisp.org>
15061         pthread: Fix compilation error on Android.
15062         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
15063         recursive inclusion of this file.
15065 2018-05-13  Bruno Haible  <bruno@clisp.org>
15067         posix_spawn: Fix compilation error on Android.
15068         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
15069         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
15070         (posix_spawn_file_actions_t): Consider also the case
15071         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
15073 2018-05-13  Bruno Haible  <bruno@clisp.org>
15075         tsearch: Move from K&R C to ANSI C.
15076         * lib/tsearch.c (tfind): Convert definition to ANSI C.
15078 2018-05-13  Bruno Haible  <bruno@clisp.org>
15080         tsearch: Fix compilation error on Android.
15081         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
15082         is 0.
15083         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
15084         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
15085         GNULIB_defined_tsearch is true.
15086         (twalk): Define only if GNULIB_defined_twalk is true.
15087         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
15088         is 0.
15089         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
15090         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
15091         * modules/search (Makefile.am): Substitute HAVE_TWALK.
15093 2018-05-13  Bruno Haible  <bruno@clisp.org>
15095         imaxdiv: Fix compilation error on Android.
15096         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
15097         is not defined.
15098         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
15099         HAVE_DECL_IMAXDIV, is 0.
15100         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
15101         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
15103 2018-05-13  Bruno Haible  <bruno@clisp.org>
15105         Support selective inclusion mechanism of recent mingw.org header files.
15106         Reported by Eli Zaretskii <eliz@gnu.org>.
15107         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
15108         __need_ssize_t, or __need_time_t is defined, just include the system's
15109         <sys/types.h>.
15110         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
15111         include the system's <locale.h>.
15113 2018-05-13  Bruno Haible  <bruno@clisp.org>
15115         Avoid compilation error due to 'mmap' on Android.
15116         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
15117         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
15118         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
15119         Undefine on Android.
15121 2018-05-13  Bruno Haible  <bruno@clisp.org>
15123         Add cross-compilation guesses for Linux systems without glibc.
15124         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
15125         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
15126         * m4/link.m4 (gl_FUNC_LINK): Likewise.
15127         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15128         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
15129         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
15130         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15131         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
15132         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
15133         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
15134         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15135         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15136         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15137         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15138         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15139         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15140         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15141         * m4/utimens.m4 (gl_UTIMENS): Likewise.
15143 2018-05-13  Bruno Haible  <bruno@clisp.org>
15145         getpagesize: Fix compilation error on Android.
15146         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
15147         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
15148         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
15149         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
15150         HAVE_GETPAGESIZE accordingly.
15151         * modules/getcwd (Files): Add m4/getpagesize.m4.
15153 2018-05-13  Bruno Haible  <bruno@clisp.org>
15155         tcgetsid: Fix compilation error on Android.
15156         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
15157         AC_CHECK_FUNC.
15159 2018-05-13  Bruno Haible  <bruno@clisp.org>
15161         getpass: Fix configure test for Android.
15162         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
15163         AC_CHECK_FUNC.
15165 2018-05-13  Bruno Haible  <bruno@clisp.org>
15167         ffs: Fix compilation error on Android.
15168         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
15170 2018-05-13  Bruno Haible  <bruno@clisp.org>
15172         mkfifo: Fix compilation error on Android.
15173         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
15174         AC_CHECK_FUNC.
15176 2018-05-13  Bruno Haible  <bruno@clisp.org>
15178         c-strtod: Fix configure test for Android.
15179         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
15180         AC_CHECK_FUNC.
15182 2018-05-13  Bruno Haible  <bruno@clisp.org>
15184         random: Fix compilation error on Android.
15185         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
15186         AC_CHECK_FUNC.
15188 2018-05-13  Bruno Haible  <bruno@clisp.org>
15190         grantpt: Fix compilation error on Android.
15191         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
15192         AC_CHECK_FUNC.
15194 2018-05-13  Bruno Haible  <bruno@clisp.org>
15196         stdioext: Fix compilation errors with newer Android headers.
15197         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
15198         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
15199         fallbacks for Android.
15200         * lib/fpending.c: Update comments.
15201         * lib/fpurge.c: Likewise.
15202         * lib/freadable.h: Likewise.
15203         * lib/freadable.c: Likewise.
15204         * lib/freadahead.c: Likewise.
15205         * lib/freading.h: Likewise.
15206         * lib/freadptr.c: Likewise.
15207         * lib/fseterr.c: Likewise.
15208         * lib/fwritable.h: Likewise.
15209         * lib/fwritable.c: Likewise.
15210         * lib/fwriting.h: Likewise.
15211         * lib/fwriting.c: Likewise.
15213 2018-05-13  Bruno Haible  <bruno@clisp.org>
15215         doc: Add info about Android versions 2.0 to 8.1.
15216         * doc/**/*.texi: Add info about functions in all released versions of
15217         Bionic.
15219 2018-05-12  Bruno Haible  <bruno@clisp.org>
15221         fseeko: On mingw, don't use the hidden function _fseeki64.
15222         Reported by Eli Zaretskii <eliz@gnu.org>.
15223         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
15224         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
15226 2018-05-12  Bruno Haible  <bruno@clisp.org>
15228         glob: Choose 'dirent_type' in a way that works better on mingw.
15229         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
15230         * lib/glob.c (dirent_type): Define as uint_fast32_t.
15232 2018-05-12  Bruno Haible  <bruno@clisp.org>
15234         execute, spawn-pipe: Avoid warning about redefining 'close'.
15235         Reported by Eli Zaretskii <eliz@gnu.org>.
15236         * lib/execute.c: Undefine 'close' before redefining it.
15237         * lib/spawn-pipe.c: Likewise.
15239 2018-05-12  Bruno Haible  <bruno@clisp.org>
15241         nanosleep: Avoid test failure on mingw when it has nanosleep.
15242         Reported by Eli Zaretskii <eliz@gnu.org>.
15243         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
15244         If it does not exist, use a simpler test program that does not call
15245         alarm().
15247 2018-05-10  Bruno Haible  <bruno@clisp.org>
15249         lock, cond, thread, tls: Use a different symbol as libpthread witness.
15250         Reported by Devin Hussey <husseydevin@gmail.com>.
15251         Based on a patch by Paul Eggert.
15252         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
15253         as witness of libpthread.
15254         * lib/glthread/cond.h (pthread_in_use): Likewise.
15255         * lib/glthread/thread.h (pthread_in_use): Likewise.
15256         * lib/glthread/tls.h (pthread_in_use): Likewise.
15258 2018-05-10  Bruno Haible  <bruno@clisp.org>
15260         cond tests: Fix compilation error on Solaris.
15261         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
15262         macro.
15264 2018-05-10  Bruno Haible  <bruno@clisp.org>
15266         doc: Add partial info about Android 4.3.
15267         * doc/*-functions/*.texi: Add info about functions that were added
15268         to Bionic between Android 4.3 and Android 9.0.
15270 2018-05-10  Bruno Haible  <bruno@clisp.org>
15272         doc: Add info about Android 9.0.
15273         * doc/**/*.texi: Add info about functions and headers in Bionic from
15274         Android 9.0.
15276 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
15278         af_alg: fix my typo in afalg_buffer
15279         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
15280         (afalg_stream): Simplify and avoid the need for a runtime test
15281         at the end.
15283         af_alg: recover better from crypto failures
15284         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
15285         input stream is seekable, by repositioning the stream back to
15286         where it was, possibly by just calling sendfile with an offset
15287         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
15288         cases, which lets our callers try again with user-mode code.
15289         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
15290         instead of on fflush and lseek.
15292         af_alg: distiguish I/O errors better
15293         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
15294         not -EIO, if it’s OK for the caller to try again with user-mode code.
15295         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
15296         some other error number) if fflush fails, as the caller should not
15297         try again that case.
15299         af_alg: avoid gotos
15300         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
15301         gotos, as they were a source of unreliability and made the code a
15302         bit harder to follow.
15304         af_alg: don’t leak file descriptors into children
15305         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
15306         This code should be compiled only on recent GNU/Linux platforms
15307         so we shouldn’t have to also depend on the accept4 module.
15309         af_alg: coalesce socket creation
15310         * lib/af_alg.c (alg_socket): New function.
15311         (afalg_buffer, afalg_stream): Use it.  This avoids some
15312         code duplication and gotos.
15314         af_alg: fix file descriptor leak
15315         * lib/af_alg.c (afalg_stream): Close leak.
15317         af_alg: Pacify --enable-gcc-warnings on GCC 8
15318         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
15319         and checking to pacify gcc -Wjump-misses-init on GCC 8.
15321 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15323         af_alg: Pacify --enable-gcc-warnings
15324         Problem reported by Assaf Gordon in:
15325         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
15326         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
15327         gcc -Wjump-misses-init.
15328         * lib/sha512.c (shaxxx_stream): Now static.
15330 2018-05-06  Bruno Haible  <bruno@clisp.org>
15332         af_alg: Add ability to use Linux kernel crypto API on data in memory.
15333         * lib/af_alg.h (afalg_buffer): New declaration.
15334         * lib/af_alg.c (afalg_buffer): New function.
15336 2018-05-06  Bruno Haible  <bruno@clisp.org>
15338         af_alg: Avoid warnings.
15339         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
15340         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
15342 2018-05-06  Bruno Haible  <bruno@clisp.org>
15344         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
15345         * tests/bench-digest.h: New file.
15346         * tests/bench-md5.c: New file.
15347         * tests/bench-sha1.c: New file.
15348         * tests/bench-sha224.c: New file.
15349         * tests/bench-sha256.c: New file.
15350         * tests/bench-sha384.c: New file.
15351         * tests/bench-sha512.c: New file.
15352         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
15353         tests/bench-digest.h.
15354         (Depends-on): Add getrusage, gettimeofday.
15355         (Makefile.am): Add variables to build bench-md5.
15356         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
15357         tests/bench-digest.h.
15358         (Depends-on): Add getrusage, gettimeofday.
15359         (Makefile.am): Add variables to build bench-sha1.
15360         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
15361         tests/bench-sha256.c, tests/bench-digest.h.
15362         (Depends-on): Add getrusage, gettimeofday.
15363         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
15364         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
15365         tests/bench-sha512.c, tests/bench-digest.h.
15366         (Depends-on): Add getrusage, gettimeofday.
15367         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
15369 2018-05-06  Bruno Haible  <bruno@clisp.org>
15371         af_alg: Fix a resource leak.
15372         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
15373         New local variable 'result'.
15375 2018-05-06  Bruno Haible  <bruno@clisp.org>
15377         af_alg: Fix bug with streams that are not at position 0.
15378         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
15379         assume that the stream is positioned at position 0.
15380         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
15381         of the stream.
15382         * lib/md5.h (md5_stream): Likewise.
15383         * lib/sha1.h (sha1_stream): Likewise.
15384         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
15385         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
15386         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
15388         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
15389         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
15390         stream that is not positioned at the beginning.
15392 2018-05-06  Bruno Haible  <bruno@clisp.org>
15394         af_alg: Add configure option to enable/disable use of Linux crypto API.
15395         Suggested by Assaf Gordon <assafgordon@gmail.com>.
15396         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
15397         USE_LINUX_CRYPTO_API.
15398         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
15399         * lib/af_alg.c: Likewise.
15401 2018-05-06  Bruno Haible  <bruno@clisp.org>
15403         Followup to 'af_alg: New module.'.
15404         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
15405         * modules/crypto/sha1 (Depends-on): Likewise.
15406         * modules/crypto/sha256 (Depends-on): Likewise.
15407         * modules/crypto/sha512 (Depends-on): Likewise.
15409 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15411         crypto/{md5,sha1,sha256,sha512}: simplify
15412         * lib/md5.c (md5_stream):
15413         * lib/sha1.c (sha1_stream):
15414         * lib/sha256.c (shaxxx_stream):
15415         Simplify, partly by assuming C99.
15416         * lib/sha256.c (shaxxx_stream):
15417         New function, which implements both sha256 and sha224.
15418         Simplify, partly by assuming C99.
15419         (sha256_stream, sha224_stream):
15420         Use it to avoid code duplication, removing a FIXME.
15421         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
15422         Likewise.
15424         af_alg: Improve comments.
15425         * lib/af_alg.h: Use imperatives and tighten up wording.
15427 2018-05-05  Bruno Haible  <bruno@clisp.org>
15429         af_alg: Improve comments.
15430         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
15432 2018-05-05  Bruno Haible  <bruno@clisp.org>
15434         af_alg: New module.
15435         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
15436         * lib/af_alg.c: Include "af_alg.h" before the other header files.
15437         * lib/md5.c: Include "af_alg.h" unconditionally.
15438         (md5_stream): Invoke afalg_stream unconditionally.
15439         * lib/sha1.c: Include "af_alg.h" unconditionally.
15440         (sha1_stream): Invoke afalg_stream unconditionally.
15441         * lib/sha256.c: Include "af_alg.h" unconditionally.
15442         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
15443         * lib/sha512.c: Include "af_alg.h" unconditionally.
15444         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
15445         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
15446         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
15447         * modules/crypto/af_alg: New file.
15448         * modules/crypto/md5 (Files): Remove files that are now in the
15449         'crypto/af_alg' module.
15450         (Depends-on): Add crypto/af_alg.
15451         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15452         (Makefile.am): Don't mention af_alg.c here.
15453         * modules/crypto/sha1 (Files): Remove files that are now in the
15454         'crypto/af_alg' module.
15455         (Depends-on): Add crypto/af_alg.
15456         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15457         (Makefile.am): Don't mention af_alg.c here.
15458         * modules/crypto/sha256 (Files): Remove files that are now in the
15459         'crypto/af_alg' module.
15460         (Depends-on): Add crypto/af_alg.
15461         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15462         (Makefile.am): Don't mention af_alg.c here.
15463         * modules/crypto/sha512 (Files): Remove files that are now in the
15464         'crypto/af_alg' module.
15465         (Depends-on): Add crypto/af_alg.
15466         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15467         (Makefile.am): Don't mention af_alg.c here.
15469 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15471         crypto tests: pacify GCC
15472         * tests/test-digest.h (test_digest_on_files):
15473         Don’t assume digest size fits in int (!).
15475         af_alg: minor style improvements
15476         * lib/af_alg.c (afalg_stream): Prefer C99 style
15477         decl-after-statement, since we’re already assuming C99.  Clarify
15478         by strengthening the bind test and omit unnecessary assignment.
15480 2018-05-05  Bruno Haible  <bruno@clisp.org>
15482         af_alg: Fix bug on empty files.
15483         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
15484         stream is empty.
15486 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15488         sys-limits.h: new file for crypto and safe I/O
15489         * lib/af_alg.c: Include sys-limits.h.
15490         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
15491         (afalg_stream): Also reject negative sizes for sendfile; they
15492         should not happen and the code is a bit cleaner and faster this way.
15493         * lib/safe-read.c: Include sys-limits.h.
15494         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
15495         * lib/sys-limits.h: New file, with values and commentary derived
15496         from the old safe-read.c and from GNU Emacs sysdep.c.
15497         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
15498         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
15499         Add lib/sys-limits.h to Files section.
15501 2018-05-05  Bruno Haible  <bruno@clisp.org>
15503         af_alg: Improve function signature.
15504         * lib/af_alg.h (afalg_stream): Swap second and third argument.
15505         * lib/af_alg.c (afalg_stream): Likewise.
15506         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
15508 2018-05-05  Bruno Haible  <bruno@clisp.org>
15510         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
15511         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
15512         * modules/crypto/sha1 (Depends-on): Likewise.
15513         * modules/crypto/sha256 (Depends-on): Likewise.
15514         * modules/crypto/sha512 (Depends-on): Likewise.
15516 2018-05-05  Bruno Haible  <bruno@clisp.org>
15518         crypto/{md5,sha1,sha256,sha512}: Fix module description.
15519         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
15520         * modules/crypto/sha1 (Depends-on): Likewise.
15521         * modules/crypto/sha256 (Depends-on): Likewise.
15522         * modules/crypto/sha512 (Depends-on): Likewise.
15524 2018-05-05  Bruno Haible  <bruno@clisp.org>
15526         af_alg: Add documentation.
15527         * lib/af_alg.h: Add comments.
15529 2018-05-05  Bruno Haible  <bruno@clisp.org>
15531         sha512: Add tests.
15532         * tests/test-sha512.c: New file.
15533         * modules/crypto/sha512-tests: New file.
15535 2018-05-05  Bruno Haible  <bruno@clisp.org>
15537         sha256: Add tests.
15538         * tests/test-sha256.c: New file.
15539         * modules/crypto/sha256-tests: New file.
15541 2018-05-05  Bruno Haible  <bruno@clisp.org>
15543         sha1 tests: Add test for sha1_stream.
15544         * tests/test-sha1.c: Include test-digest.h.
15545         (main): Invoke test_digest_on_files on 'sha1_stream'.
15546         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
15548 2018-05-05  Bruno Haible  <bruno@clisp.org>
15550         md5 tests: Add test for md5_stream.
15551         * tests/test-digest.h: New file.
15552         * tests/test-md5.c: Include test-digest.h.
15553         (main): Invoke test_digest_on_files on 'md5_stream'.
15554         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
15556 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15558         md5sum: Use AF_ALG when available.
15559         * lib/md5.c: Include af_alg.h.
15560         (md5_stream): Use afalg_stream when available.
15561         * modules/crypto/md5 (Files): Add the af_alg files.
15562         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15563         (Makefile.am): Add af_alg.c.
15565 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15567         sha512sum: Use AF_ALG when available.
15568         * lib/sha512.c: Include af_alg.h.
15569         (sha512_stream, sha384_stream): Use afalg_stream when available.
15570         * modules/crypto/sha512 (Files): Add the af_alg files.
15571         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15572         (Makefile.am): Add af_alg.c.
15574 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15576         sha256sum: Use AF_ALG when available.
15577         * lib/sha256.c: Include af_alg.h.
15578         (sha256_stream, sha224_stream): Use afalg_stream when available.
15579         * modules/crypto/sha256 (Files): Add the af_alg files.
15580         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15581         (Makefile.am): Add af_alg.c.
15583 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15585         sha1sum: Use AF_ALG when available.
15586         * lib/af_alg.h: New file.
15587         * lib/af_alg.c: New file.
15588         * lib/sha1.c: Include af_alg.h.
15589         (sha1_stream): Use afalg_stream when available.
15590         * m4/linux-if-alg.m4: New file.
15591         * modules/crypto/sha1 (Files): Add the new files.
15592         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15593         (Makefile.am): Add af_alg.c.
15595 2018-05-05  Bruno Haible  <bruno@clisp.org>
15597         all: Replace more http URLs by https URLs.
15598         * lib/localename.c: Use https: URL.
15599         * lib/timespec.h: Likewise.
15601 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15603         maint: port more modules to GCC 8
15604         * lib/dirname.h (base_name):
15605         * lib/exclude.h (new_exclude):
15606         * lib/xstrndup.h (xstrndup):
15607         Add malloc attribute.
15608         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
15609         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
15610         This pacifies GCC 8.
15611         * m4/gnulib-common.m4 (gl_COMMON_BODY):
15612         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
15614 2018-05-03  Bruno Haible  <bruno@clisp.org>
15616         Simplify code. Drop support for Borland C++ on Windows.
15617         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
15618         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
15619         'defined _WIN32'.
15620         * lib/canonicalize-lgpl.c: Likewise.
15621         * lib/classpath.c: Likewise.
15622         * lib/clean-temp.c: Likewise.
15623         * lib/csharpexec.c: Likewise.
15624         * lib/ctime.c: Likewise.
15625         * lib/dosname.h: Likewise.
15626         * lib/dup2.c: Likewise.
15627         * lib/errno.in.h: Likewise.
15628         * lib/error.c: Likewise.
15629         * lib/euidaccess.c: Likewise.
15630         * lib/execute.c: Likewise.
15631         * lib/fcntl.in.h: Likewise.
15632         * lib/fcntl.c: Likewise.
15633         * lib/filename.h: Likewise.
15634         * lib/findprog.c: Likewise.
15635         * lib/flock.c: Likewise.
15636         * lib/fopen.c: Likewise.
15637         * lib/freopen.c: Likewise.
15638         * lib/fstat.c: Likewise.
15639         * lib/fsync.c: Likewise.
15640         * lib/gc-gnulib.c: Likewise.
15641         * lib/get-rusage-data.c: Likewise.
15642         * lib/getaddrinfo.c: Likewise.
15643         * lib/getdelim.c: Likewise.
15644         * lib/getdtablesize.c: Likewise.
15645         * lib/gethostname.c: Likewise.
15646         * lib/getlogin.c: Likewise.
15647         * lib/getlogin_r.c: Likewise.
15648         * lib/getopt.c: Likewise.
15649         * lib/getpagesize.c: Likewise.
15650         * lib/getpass.c: Likewise.
15651         * lib/getrusage.c: Likewise.
15652         * lib/gettimeofday.c: Likewise.
15653         * lib/glob.c: Likewise.
15654         * lib/inttypes.in.h: Likewise.
15655         * lib/isapipe.c: Likewise.
15656         * lib/javaexec.c: Likewise.
15657         * lib/link.c: Likewise.
15658         * lib/localcharset.c: Likewise.
15659         * lib/localename.h: Likewise.
15660         * lib/localename.c: Likewise.
15661         * lib/localtime.c: Likewise.
15662         * lib/lseek.c: Likewise.
15663         * lib/mbsinit.c: Likewise.
15664         * lib/mkdir.c: Likewise.
15665         * lib/msvc-nothrow.h: Likewise.
15666         * lib/nanosleep.c: Likewise.
15667         * lib/nl_langinfo.c: Likewise.
15668         * lib/nonblocking.c: Likewise.
15669         * lib/nproc.c: Likewise.
15670         * lib/open.c: Likewise.
15671         * lib/openpty.c: Likewise.
15672         * lib/pathmax.h: Likewise.
15673         * lib/pipe-filter-aux.c: Likewise.
15674         * lib/pipe-filter-gi.c: Likewise.
15675         * lib/pipe-filter-ii.c: Likewise.
15676         * lib/pipe.c: Likewise.
15677         * lib/pipe2.c: Likewise.
15678         * lib/poll.c: Likewise.
15679         * lib/popen.c: Likewise.
15680         * lib/posix_openpt.c: Likewise.
15681         * lib/printf-parse.c: Likewise.
15682         * lib/progreloc.c: Likewise.
15683         * lib/putenv.c: Likewise.
15684         * lib/read.c: Likewise.
15685         * lib/relocatable.c: Likewise.
15686         * lib/rename.c: Likewise.
15687         * lib/same-inode.h: Likewise.
15688         * lib/secure_getenv.c: Likewise.
15689         * lib/select.c: Likewise.
15690         * lib/sethostname.c: Likewise.
15691         * lib/setlocale.c: Likewise.
15692         * lib/sigaction.c: Likewise.
15693         * lib/sigprocmask.c: Likewise.
15694         * lib/sleep.c: Likewise.
15695         * lib/spawn-pipe.h: Likewise.
15696         * lib/spawn-pipe.c: Likewise.
15697         * lib/spawni.c: Likewise.
15698         * lib/stat-time.h: Likewise.
15699         * lib/stat-w32.c: Likewise.
15700         * lib/stat.c: Likewise.
15701         * lib/stdio.in.h: Likewise.
15702         * lib/stdio-impl.h: Likewise.
15703         * lib/stdio-read.c: Likewise.
15704         * lib/stdio-write.c: Likewise.
15705         * lib/stdlib.in.h: Likewise.
15706         * lib/strerror_r.c: Likewise.
15707         * lib/strftime-fixes.c: Likewise.
15708         * lib/sys_stat.in.h: Likewise.
15709         * lib/sys_types.in.h: Likewise.
15710         * lib/sys_wait.in.h : Likewise.
15711         * lib/system-quote.h: Likewise.
15712         * lib/system-quote.c: Likewise.
15713         * lib/tmpdir.c: Likewise.
15714         * lib/tzset.c: Likewise.
15715         * lib/uname.c: Likewise.
15716         * lib/unistd.in.h: Likewise.
15717         * lib/utime.in.h: Likewise.
15718         * lib/utime.c: Likewise.
15719         * lib/utimecmp.c: Likewise.
15720         * lib/utimens.c: Likewise.
15721         * lib/vasnprintf.c: Likewise.
15722         * lib/vma-iter.h: Likewise.
15723         * lib/vma-iter.c: Likewise.
15724         * lib/wait-process.c: Likewise.
15725         * lib/wcsftime.c: Likewise.
15726         * lib/wctype.in.h: Likewise.
15727         * lib/write.c: Likewise.
15728         * tests/nap.h: Likewise.
15729         * tests/test-cloexec.c: Likewise.
15730         * tests/test-dup-safer.c: Likewise.
15731         * tests/test-dup2.c: Likewise.
15732         * tests/test-dup3.c: Likewise.
15733         * tests/test-fcntl.c: Likewise.
15734         * tests/test-get-rusage-data.c: Likewise.
15735         * tests/test-getaddrinfo.c: Likewise.
15736         * tests/test-getlogin.h: Likewise.
15737         * tests/test-isatty.c: Likewise.
15738         * tests/test-localename.c: Likewise.
15739         * tests/test-mbrtowc-w32.c: Likewise.
15740         * tests/test-nonblocking.c: Likewise.
15741         * tests/test-nonblocking-pipe-main.c: Likewise.
15742         * tests/test-nonblocking-socket-main.c: Likewise.
15743         * tests/test-nonblocking-socket.h: Likewise.
15744         * tests/test-pipe.c: Likewise.
15745         * tests/test-pipe2.c: Likewise.
15746         * tests/test-poll.c: Likewise.
15747         * tests/test-pthread_sigmask1.c: Likewise.
15748         * tests/test-select.h: Likewise.
15749         * tests/test-sethostname2.c: Likewise.
15750         * tests/test-sigprocmask.c: Likewise.
15751         * tests/test-spawn-pipe-child.c: Likewise.
15752         * tests/test-stat-time.c: Likewise.
15753         * tests/test-system-quote-main.c: Likewise.
15754         * tests/test-utimens-common.h: Likewise.
15755         * tests/test-wcrtomb-w32.c: Likewise.
15756         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
15757         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15758         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
15759         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
15760         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
15761         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15762         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15763         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15764         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15765         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15766         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
15767         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
15768         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
15769         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
15770         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
15771         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15773 2018-05-02  Bruno Haible  <bruno@clisp.org>
15775         localename: Fix test failures on mingw.
15776         * lib/localename.c (gl_locale_name_thread): Remove code specific to
15777         native Windows.
15778         (gl_locale_name_posix): Move code specific to native Windows here.
15779         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
15780         Accept result without charset suffix, as it appears on mingw.
15782 2018-04-28  Paul Smith  <psmith@gnu.org>
15784         bootstrap: Avoid gnulib operations if not needed
15785         * build-aux/bootstrap: Remove unused variable gnulib_mk.
15786         Set $gnulib_extra_files early so it can be overridden in .conf.
15787         Remove redundant --import flag from $gnulib_tool_options.
15788         Set $use_gnulib to false if no gnulib modules or files are needed.
15789         If $use_gnulib is false, don't do anything related to gnulib.
15790         A lot of this is just whitespace (indentation) changes.
15792 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
15794         manywarnings: port to GCC 8.0
15795         * build-aux/gcc-warning.spec: Add -Wcatch-value,
15796         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
15797         fact that the GCC help message now mentions operands for
15798         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
15799         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
15800         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
15801         and -Wunused-const-variable.
15802         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
15803         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
15804         -Wmissing-attributes, -Wmultistatement-macros,
15805         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
15806         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
15808 2018-04-24  Bruno Haible  <bruno@clisp.org>
15810         sys_socket: Make SO_REUSEPORT available across platforms.
15811         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15812         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
15813         * doc/posix-headers/sys_socket.texi: Mention the issue.
15814         * tests/test-poll.c (SO_REUSEPORT): Remove.
15815         * tests/test-select.h: Include <sys/socket.h>.
15816         (SO_REUSEPORT): Remove.
15817         * modules/select-tests (Depends-on): Add 'sys_socket'.
15819 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
15821         localcharset: short-circuit the search for an alias on a Mac
15822         * lib/localcharset.c (get_charset_aliases): Add a tautological
15823         UTF-8 entry to speed up the search for this case.
15824         Most machines default to a UTF-8 locale nowadays, so begin the
15825         list of aliases with a dummy UTF-8 entry so it will be found
15826         immediately and a time-consuming search through the rest of
15827         the list is avoided.
15829 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
15831         fts: add comment
15832         * lib/fts.c (fts_build): Explain why ==, not >.
15833         See remark by Bernhard Voelker in:
15834         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
15836         fts: fix bug in find across filesystems
15837         This fixes a bug I introduced last summer.
15838         Problem reported by Kamil Dudka in:
15839         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
15840         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
15841         (leaf_optimization):
15842         New arg for file descriptor.  All callers changed.
15843         (fts_build): Check for whether inodes should be sorted
15844         before closing the directory.
15846 2018-04-07  Bruno Haible  <bruno@clisp.org>
15848         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
15849         Reported by Genki Sky <sky@genki.is>.
15850         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
15851         version 0.9.10 or newer.
15852         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
15853         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
15854         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
15855         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
15856         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
15858 2018-04-07  Bruno Haible  <bruno@clisp.org>
15860         execute: Update comment.
15861         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
15863 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15865         fts: treat CIFS like NFS
15866         Problem reported by Kamil Dudka in:
15867         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
15868         * lib/fts.c (S_MAGIC_CIFS): New macro.
15869         (dirent_inode_sort_may_be_useful, leaf_optimization):
15870         Treat CIFS like NFS.
15872 2018-03-28  Bruno Haible  <bruno@clisp.org>
15874         c-stack: Fix possible build failure on some platforms.
15875         * lib/c-stack.c (die): Define whenever this function is referenced.
15877 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
15879         time_rz: fix workaround for Mac OS X 10.6 infloop
15880         Problems reported by Charles A. Roelli (Bug#27736#117).
15881         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
15882         Also, discard output, which clutters the 'configure' log.
15884 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15886         havelib: port to Solaris 10 /bin/sh
15887         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
15888         instead of '! test EXPR'.
15890 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
15892         time_rz: work around Mac OS X 10.6 infloop
15893         * doc/posix-functions/localtime.texi:
15894         * doc/posix-functions/localtime_r.texi: Mention the bug.
15895         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
15896         better to fix localtime and localtime_r instead, but that would be
15897         more work and is not needed to fix the Emacs problem.
15898         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
15900 2018-03-24  Jim Meyering  <meyering@fb.com>
15902         test-version-etc.sh: don't use diff directly: use init.sh's compare
15903         We'd rather not sacrifice readable "diff -u" output even for
15904         "diff -c" output (not supported by busybox) or for even less
15905         readable ed-style "diff" output.  So use init.sh's compare function
15906         * tests/test-version-etc.sh: Source init.sh and add "." to path.
15907         Remove "./" from invocation of test-version-etc, so we use path.
15908         And s/diff/compare/.
15909         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
15910         to get init.sh.
15911         Prompted by Eric Blake's comments in
15912         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
15914 2018-03-24  Bruno Haible  <bruno@clisp.org>
15916         javacomp-script, javacomp: Add support for Java 10.
15917         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
15918         target-version 10.
15919         * lib/javaversion.h: Update comments.
15920         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
15921         source_version_index, get_goodcode_snippet, get_failcode_snippet,
15922         TARGET_VERSION_BOUND, target_version_index,
15923         corresponding_classfile_version): Accept source_version 10 and
15924         target_version 10.
15925         * lib/javacomp.h: Update comments accordingly.
15927 2018-03-24  Bruno Haible  <bruno@clisp.org>
15929         javacomp-script, javacomp: Update comments.
15930         * m4/javacomp.m4: Update comments regarding gcj.
15931         * lib/javacomp.h: Likewise.
15933 2018-03-24  Bruno Haible  <bruno@clisp.org>
15935         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
15936         * lib/javaversion.h: Update comments.
15937         * lib/javacomp.h: Likewise.
15938         * lib/javacomp.c (default_target_version, source_version_index,
15939         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
15940         "1.9".
15941         (TARGET_VERSION_BOUND): Bump to 9.
15942         (target_version_index, corresponding_classfile_version): Recognize "9"
15943         instead of "1.9".
15944         (get_source_version_for_javac): New function.
15945         (is_envjavac_nongcj_usable, is_javac_usable): Add
15946         source_version_for_javac argument.
15947         (compile_java_class): Determine and pass source_version_for_javac.
15948         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
15949         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
15950         appropriate.
15952 2018-03-23  Jim Meyering  <meyering@fb.com>
15954         test-version-etc.sh: port to diff without -c
15955         * tests/test-version-etc.sh: Don't use diff's -c option.
15956         This caused spurious test failure on Alpine Linux, which
15957         uses busybox's diff. Reported by Assaf Gordon in
15958         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
15960 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
15962         c-stack: port to recent GCC build
15963         Problem reported by The Fireplace (Bug#30913).
15964         * lib/c-stack.c (die): Define only if used.
15966 2018-03-20  Bruno Haible  <bruno@clisp.org>
15968         euidaccess: Port to native Windows.
15969         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
15970         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
15972 2018-03-19  Bruno Haible  <bruno@clisp.org>
15974         javacomp: Add support for Java 7, 8, 9.
15975         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
15976         source_version_index, get_goodcode_snippet, get_failcode_snippet,
15977         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
15978         and target_version 1,7, 1.8, 1.9.
15979         * lib/javacomp.h: Update comments accordingly.
15981 2018-03-19  Bruno Haible  <bruno@clisp.org>
15983         javacomp-script: Add support for Java 9.
15984         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
15985         target-version 1.9.
15987 2018-03-16  Bruno Haible  <bruno@clisp.org>
15989         glob: Don't compile replacements on recent glibc systems.
15990         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
15991         REPLACE_GLOB is 0, include the system's <glob.h> and use
15992         _GL_CXXALIAS_SYS.
15993         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
15994         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
15995         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
15996         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
15997         Remove snippet/warn-on-use.
15998         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
15999         (Makefile.am): Create glob.h always. Update list of substitutions in
16000         glob.h. Don't depend on $(WARN_ON_USE_H).
16002 2018-03-16  Bruno Haible  <bruno@clisp.org>
16004         glob: Fix link error on native Windows.
16005         * modules/glob (Depends-on): Add 'lstat'.
16007 2018-03-15  Bruno Haible  <bruno@clisp.org>
16009         glob: Fix compilation error in C++ mode.
16010         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
16012 2018-03-15  Bruno Haible  <bruno@clisp.org>
16014         host-cpu-c-abi: Support for RISC-V CPU.
16015         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
16016         riscv32 and riscv64 ABIs.
16017         References:
16018         https://github.com/riscv/riscv-toolchain-conventions
16019         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
16020         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
16022 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
16024         fflush: be more paranoid about libio.h change
16025         Suggested by Eli Zaretskii in:
16026         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
16027         * lib/fbufmode.c (fbufmode):
16028         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16029         (disable_seek_optimization, rpl_fflush):
16030         * lib/fpending.c (__fpending):
16031         * lib/fpurge.c (fpurge):
16032         * lib/freadable.c (freadable):
16033         * lib/freadahead.c (freadahead):
16034         * lib/freading.c (freading):
16035         * lib/freadptr.c (freadptr):
16036         * lib/freadseek.c (freadptrinc):
16037         * lib/fseeko.c (fseeko):
16038         * lib/fseterr.c (fseterr):
16039         * lib/fwritable.c (fwritable):
16040         * lib/fwriting.c (fwriting):
16041         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
16043 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
16045         maint: write-file-hooks -> before-save-hook
16046         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
16047         it's time to use the recommended replacement.
16048         Problem reported by Glenn Morris in:
16049         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
16050         * build-aux/announce-gen, build-aux/bootstrap:
16051         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
16052         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
16053         * build-aux/gnu-web-doc-update, build-aux/gnupload:
16054         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
16055         * build-aux/update-copyright, build-aux/useless-if-before-free:
16056         * build-aux/vc-list-files:
16057         Update hook usage for files where Gnulib is the canonical source.
16059 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
16061         binary-io: pacify gcc -Wunused-parameter
16062         Problem reported by Reuben Thomas in:
16063         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
16064         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
16065         Use _GL_UNUSED where appropriate.
16067         fflush: adjust to glibc 2.28 libio.h removal
16068         Problem reported by Daniel P. Berrangé in:
16069         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
16070         * lib/fbufmode.c (fbufmode):
16071         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16072         (disable_seek_optimization, rpl_fflush):
16073         * lib/fpending.c (__fpending):
16074         * lib/fpurge.c (fpurge):
16075         * lib/freadable.c (freadable):
16076         * lib/freadahead.c (freadahead):
16077         * lib/freading.c (freading):
16078         * lib/freadptr.c (freadptr):
16079         * lib/freadseek.c (freadptrinc):
16080         * lib/fseeko.c (fseeko):
16081         * lib/fseterr.c (fseterr):
16082         * lib/fwritable.c (fwritable):
16083         * lib/fwriting.c (fwriting):
16084         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
16085         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
16086         Define if not already defined.
16088 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
16090         environ: fix link error on 32-bit Cygwin
16091         Problem reported for GNU Emacs by Ken Brown in:
16092         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
16093         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
16095 2018-02-24  Bruno Haible  <bruno@clisp.org>
16097         mbrtowc tests: Fix regression on glibc.
16098         Reported by Bernhard Voelker.
16099         * tests/test-mbrtowc.c (main): Fix expected value of wc.
16101 2018-02-24  Bruno Haible  <bruno@clisp.org>
16103         striconveha, uniconv/*: Avoid test failures on musl libc.
16104         * tests/iconvsupport.c: New file.
16105         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
16106         does not support the ISO-2022-JP-2 encoding.
16107         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16108         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16109         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16110         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16111         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16112         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16113         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
16114         (Makefile.am): Link test-striconveha with iconvsupport.o.
16115         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
16116         tests/iconvsupport.c.
16117         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
16118         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
16119         tests/iconvsupport.c.
16120         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
16121         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
16122         tests/iconvsupport.c.
16123         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
16124         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
16125         tests/iconvsupport.c.
16126         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
16127         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
16128         tests/iconvsupport.c.
16129         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
16130         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
16131         tests/iconvsupport.c.
16132         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
16134 2018-02-24  Bruno Haible  <bruno@clisp.org>
16136         localename: Add support for musl libc.
16137         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
16138         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
16139         on Linux platforms which define NL_LOCALE_NAME.
16141 2018-02-24  Bruno Haible  <bruno@clisp.org>
16143         mbrtowc tests: Don't make assumptions about the charset the C locale.
16144         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
16145         particular mapping in the C locale.
16147 2018-02-24  Bruno Haible  <bruno@clisp.org>
16149         ptsname_r: Don't expect that this function sets errno.
16150         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
16151         from ptsname_r().
16152         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
16154 2018-02-23  Bruno Haible  <bruno@clisp.org>
16156         xmalloca: pacify gcc -Wbad-function-cast
16157         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
16159 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
16161         nl_langinfo: pacify gcc -Wunused-function
16162         * lib/nl_langinfo.c (ctype_codeset): Do not define if
16163         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
16164         this case.  Without this change, I got a diagnostic when building
16165         coreutils on Fedora 27 with gcc 7.3.1 20180130.
16167         same: pacify gcc -Wunused-variable
16168         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
16169         Omit unused variable.
16171         malloca: pacify gcc -Wbad-function-cast
16172         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
16173         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
16174         To pacify GCC, I had to cast alloca’s result to some type other
16175         than void * before casting that to uintptr_t.
16177 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16179         utimecmp: new function utimecmpat
16180         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
16181         Do not include utimens.h.
16182         (utimecmpat): New function, generalizing utimecmp.
16183         (utimecmp): Now a thin layer around utimecmpat.
16184         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
16185         utimensat instead of on lstat and utimens.
16187         same: new function same_nameat
16188         * lib/same.c: Include fcntl.h.
16189         * lib/same.c (same_nameat): New function, generalizing same_name.
16190         (same_name): Now a thin layer around same_nameat.
16191         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
16192         * modules/same (Depends-on): Depend on fstatat, openat.
16194 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
16196         warnings: Add support for Objective C.
16197         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
16198         macro.
16200 2018-02-17  Bruno Haible  <bruno@clisp.org>
16202         lock: Fix test-once1 crash on FreeBSD11.
16203         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
16204         'pthread_create', not 'pthread_cancel'.
16206 2018-02-17  Bruno Haible  <bruno@clisp.org>
16208         lock: Add test of gl_once.
16209         * tests/test-once.c: New file.
16210         * modules/lock-tests (Files): Add it.
16211         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
16213 2018-02-17  Bruno Haible  <bruno@clisp.org>
16215         thread: Fix compilation error on IRIX.
16216         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
16217         needed; include it outside the C++ extern "C" {} block.
16218         * doc/posix-headers/pthread.texi: Mention the problem with
16219         pthread_atfork on IRIX.
16221 2018-02-04  Bruno Haible  <bruno@clisp.org>
16223         nl_langinfo: Override the system's nl_langinfo() when needed.
16224         Reported by Jim Meyering.
16225         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
16226         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
16228 2018-02-04  Bruno Haible  <bruno@clisp.org>
16230         signal-h, monetary, strings: Fix build failure in some cases.
16231         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16232         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
16233         as delimiter in sed command, not '|'.
16234         * modules/monetary (Makefile.am): Likewise.
16235         * modules/strings (Makefile.am): Likewise.
16237 2018-02-03  Jim Meyering  <meyering@fb.com>
16239         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
16240         * top/maint.mk (sc_file_system): Don't complain about
16241         "/proc/filesystems".
16243 2018-02-03  Bruno Haible  <bruno@clisp.org>
16245         stdlib: Fix compilation error on OpenIndiana.
16246         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
16247         <sys/time.h>.
16248         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16249         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
16251 2018-02-03  Bruno Haible  <bruno@clisp.org>
16253         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
16254         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
16255         and use $EGREP instead of 'grep -E'.
16256         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
16257         'grep -E'.
16259 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16261         malloca: Add a compile-time verification.
16262         * lib/malloca.c (small_t): Verify that it is wide enough.
16263         * modules/malloca (Depends-on): Add verify.
16265 2018-02-02  Bruno Haible  <bruno@clisp.org>
16267         malloca: Add an argument check.
16268         Suggested by Paul Eggert.
16269         * lib/malloca.c (freea): Check against an invalid argument.
16271 2018-02-02  Bruno Haible  <bruno@clisp.org>
16273         localename: Add support for OpenIndiana.
16274         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
16275         Solaris 11 variants with uselocale() but without getlocalename_l().
16277 2018-02-02  Bruno Haible  <bruno@clisp.org>
16279         malloca, xmalloca: Make multithread-safe.
16280         Reported by Florian Weimer <fweimer@redhat.com>.
16281         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
16282         * lib/malloca.h (malloca): In the stack allocation case, return a
16283         pointer that is a multiple of 2 * sa_alignment_max.
16284         (sa_increment): Remove enum item.
16285         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
16286         a pointer that is a multiple of 2 * sa_alignment_max.
16287         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
16288         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
16289         HASH_TABLE_SIZE, mmalloca_results): Remove.
16290         (small_t): New type.
16291         (mmalloca, free): Rewritten.
16292         * lib/malloca.valgrind: Remove file.
16293         * modules/malloca (Files): Remove it.
16294         (Depends-on): Remove verify.
16296 2018-01-31  Bruno Haible  <bruno@clisp.org>
16298         environ: Fix link error on 64-bit Cygwin.
16299         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
16300         __declspec(dllimport) attribute.
16301         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
16303 2018-01-30  Bruno Haible  <bruno@clisp.org>
16305         get-rusage-data: Add support for Minix 3.
16306         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
16308 2018-01-30  Bruno Haible  <bruno@clisp.org>
16310         vma-iter: Add support for Minix 3.
16311         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
16312         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
16314 2018-01-27  Bruno Haible  <bruno@clisp.org>
16316         Fix malfunction of socket functions on HP-UX in 64-bit mode.
16317         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
16318         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
16319         _HPUX_ALT_XOPEN_SOCKET_API.
16320         * modules/accept (Depends-on): Add 'extensions'.
16321         * modules/getpeername (Depends-on): Likewise.
16322         * modules/getsockname (Depends-on): Likewise.
16323         * modules/getsockopt (Depends-on): Likewise.
16324         * modules/recvfrom (Depends-on): Likewise.
16325         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
16326         * doc/posix-functions/getpeername.texi: Likewise.
16327         * doc/posix-functions/getsockname.texi: Likewise.
16328         * doc/posix-functions/getsockopt.texi: Likewise.
16329         * doc/posix-functions/recvfrom.texi: Likewise.
16331 2018-01-27  Bruno Haible  <bruno@clisp.org>
16333         getsockname tests: More tests.
16334         * tests/test-getsockname.c (open_server_socket): New function, mostly
16335         copied from test-poll.c.
16336         (main): Check that getsockname fills in addr.
16337         * modules/getsockname-tests (Depends-on): Add the necessary
16338         dependencies.
16339         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
16341 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
16343         manywarnings: fix maintainer comment
16344         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
16345         it does not mistakenly think that ‘-1)’ is an option.
16347 2018-01-26  Bruno Haible  <bruno@clisp.org>
16349         langinfo: Fix last commit.
16350         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16351         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
16353 2018-01-24  Bruno Haible  <bruno@clisp.org>
16355         langinfo, nl_langinfo: Add support for alternative month names.
16356         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
16357         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
16358         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
16359         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
16360         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
16361         * doc/posix-functions/nl_langinfo.texi: Likewise.
16363 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16365         Merge strftime.c changes from glibc
16366         This incorporates:
16367         2017-11-14 [BZ #10871] Implement alternative month names
16368         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
16369         2017-06-20 Use locale_t, not __locale_t, throughout glibc
16370         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
16371         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
16372         Use locale_t, not __locale_t.
16373         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
16374         (__strftime_internal): Add support for alternate months.
16376 2018-01-23  Bruno Haible  <bruno@clisp.org>
16378         doc: Mention another prerequisite for using Gnulib.
16379         Reported at <https://stackoverflow.com/questions/48378214/>.
16380         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
16381         AC_CONFIG_HEADERS.
16383 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
16385         build: GuixSD doesn't have /bin/bash
16386         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
16388 2018-01-21  Bruno Haible  <bruno@clisp.org>
16390         Avoid test failures on Microsoft Windows Subsystem for Linux.
16391         * tests/test-fcntl.c (main): Allow a different errno.
16392         * tests/test-rename.h (test_rename): Likewise.
16393         * tests/test-renameat.c (main): Likewise.
16394         * tests/test-renameat2.c (main): Likewise.
16396 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
16398         filenamecat: make base a suffix of result
16399         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
16400         (mfile_name_concat): Always make BASE a suffix of the result, as
16401         cp expects this.  To implement this, separate with '.' instead of
16402         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
16403         * tests/test-filenamecat.c (main): Adjust tests to match
16404         current behavior.  Check that BASE_IN_RESULT points to
16405         a copy of BASE and is a suffix of the resultk, and that DIR
16406         is a prefix of the result that is no longer than the prefix
16407         indicated by BASE_IN_RESULT.
16409 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
16411         update-copyright: Handle use of ©
16412         * build-aux/update-copyright ($circle_c_re): Update regex to
16413         handle use of © in headers.
16415 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
16417         Fix -Wundef warning in user-included header lib/cdefs.h.
16418         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
16420 2018-01-04  Bruno Haible  <bruno@clisp.org>
16422         pthread_sigmask: Avoid compilation error on mingw.
16423         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16424         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
16425         macro.
16427 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16429         test-framework-sh: ‘ps -ef’, not ‘ps ef’
16430         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
16431         Suggested by Bob Proulx (Bug#29968).
16432         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
16434 2018-01-02  Eric Blake  <eblake@redhat.com>
16436         stat-time: silence -Wunused-parameter regression
16437         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
16438         Prefer attribute over cast-to-void.
16439         (stat_time_normalize): Mark st as potentially unused.
16441 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
16443         test-framework-sh: avoid netstat
16444         Problem reported by Kristýna Streitová (Bug#29947).
16445         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
16446         deprecated on SuSE and it's not that important anyway.
16448 2018-01-01  Jim Meyering  <meyering@fb.com>
16450         update-copyright: add code to handle more special cases
16451         After running "make update-copyright" this year, five files
16452         required additional manual changes.  Automate those adjustments
16453         for next year.
16454         * Makefile (_year_and_prev): Define.
16455         (update-copyright): Add perl commands to induce this year's post-
16456         update-copyright adjustments.
16458 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
16460         version-etc: new year
16461         * build-aux/gendocs.sh (version):
16462         * doc/gendocs_template:
16463         * doc/gendocs_template_min:
16464         * doc/gnulib.texi:
16465         * lib/version-etc.c (COPYRIGHT_YEAR):
16466         Update copyright dates by hand in templates and the like.
16468         maint: fix 'make update-copyright'
16469         * Makefile (update-copyright): Adjust to 2016-11-23 change
16470         to config/srclist-update, which changed the format of srclist.txt.
16472 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16474         chdir-safer: remove this module
16475         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
16476         * NEWS: Document removal.
16477         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
16478         * modules/chdir-safer: Remove these files.
16480 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
16482         Add cross-compilation results for GNU/Hurd.
16483         * m4/calloc.m4: Add GNU/Hurd guess.
16484         * m4/cbrtl.m4: Likewise.
16485         * m4/ceil.m4: Likewise.
16486         * m4/ceilf.m4: Likewise.
16487         * m4/ceill.m4: Likewise.
16488         * m4/chown.m4: Likewise.
16489         * m4/duplocale.m4: Likewise.
16490         * m4/exp2l.m4: Likewise.
16491         * m4/expm1.m4: Likewise.
16492         * m4/fchdir.m4: Likewise.
16493         * m4/floor.m4: Likewise.
16494         * m4/floorf.m4: Likewise.
16495         * m4/fmod.m4: Likewise.
16496         * m4/fmodf.m4: Likewise.
16497         * m4/fmodl.m4: Likewise.
16498         * m4/getcwd.m4: Likewise.
16499         * m4/getgroups.m4: Likewise.
16500         * m4/gettimeofday.m4: Likewise.
16501         * m4/hypot.m4: Likewise.
16502         * m4/hypotf.m4: Likewise.
16503         * m4/hypotl.m4: Likewise.
16504         * m4/link-follow.m4: Likewise.
16505         * m4/link.m4: Likewise.
16506         * m4/linkat.m4: Likewise.
16507         * m4/log.m4: Likewise.
16508         * m4/log10.m4: Likewise.
16509         * m4/log10f.m4: Likewise.
16510         * m4/log1p.m4: Likewise.
16511         * m4/log1pf.m4: Likewise.
16512         * m4/log1pl.m4: Likewise.
16513         * m4/log2.m4: Likewise.
16514         * m4/log2f.m4: Likewise.
16515         * m4/logf.m4: Likewise.
16516         * m4/lstat.m4: Likewise.
16517         * m4/malloc.m4: Likewise.
16518         * m4/mbrlen.m4: Likewise.
16519         * m4/mbrtowc.m4: Likewise.
16520         * m4/mkdir.m4: Likewise.
16521         * m4/mkfifo.m4: Likewise.
16522         * m4/mknod.m4: Likewise.
16523         * m4/mkstemp.m4: Likewise.
16524         * m4/modf.m4: Likewise.
16525         * m4/modff.m4: Likewise.
16526         * m4/modfl.m4: Likewise.
16527         * m4/printf.m4: Likewise.
16528         * m4/pselect.m4: Likewise.
16529         * m4/ptsname.m4: Likewise.
16530         * m4/putenv.m4: Likewise.
16531         * m4/readlink.m4: Likewise.
16532         * m4/realloc.m4: Likewise.
16533         * m4/remainder.m4: Likewise.
16534         * m4/remainderf.m4: Likewise.
16535         * m4/remainderl.m4: Likewise.
16536         * m4/rmdir.m4: Likewise.
16537         * m4/round.m4: Likewise.
16538         * m4/roundf.m4: Likewise.
16539         * m4/roundl.m4: Likewise.
16540         * m4/select.m4: Likewise.
16541         * m4/setenv.m4: Likewise.
16542         * m4/signbit.m4: Likewise.
16543         * m4/sleep.m4: Likewise.
16544         * m4/stat.m4: Likewise.
16545         * m4/strerror.m4: Likewise.
16546         * m4/strtok_r.m4: Likewise.
16547         * m4/symlink.m4: Likewise.
16548         * m4/symlinkat.m4: Likewise.
16549         * m4/trunc.m4: Likewise.
16550         * m4/truncf.m4: Likewise.
16551         * m4/truncl.m4: Likewise.
16552         * m4/tzset.m4: Likewise.
16553         * m4/ungetc.m4: Likewise.
16554         * m4/usleep.m4: Likewise.
16555         * m4/wcwidth.m4: Likewise.
16557 2017-12-28  Bruno Haible  <bruno@clisp.org>
16559         gnulib-tool: Make --conditional-dependencies work better.
16560         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
16561         * gnulib-tool (Options): Don't reject the combination of
16562         --conditional-dependencies with --with-tests.
16563         (func_emit_autoconf_snippets): Add argument referenceable_modules.
16564         Don't reference $modules.
16565         (func_import, func_create_testdir): Pass it.
16567 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16569         regex: use re_malloc etc. consistently
16570         Problem and original patch reported by Arnold Robbins in:
16571         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
16572         * lib/regcomp.c (re_comp):
16573         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
16574         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
16576 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
16577             Paul Eggert  <eggert@cs.ucla.edu>
16579         glob: Silence warning about void pointer arithmetic.
16580         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
16581         arithmetic.
16583 2017-12-15  Bruno Haible  <bruno@clisp.org>
16585         spawn-pipe: Silence a clang warning.
16586         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16587         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
16588         in this file.
16590 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
16592         explicit_bzero: port to macOS + Clang 9.0.0
16593         Problem reported by Marcus Johnson (Bug#29658).
16594         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
16595         Don’t use asm.
16597 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
16599         doc: Improve explanation of supporting relocatable libraries.
16600         * doc/relocatable-maint.texi (Supporting Relocation): Explain
16601         properly how to build the relocatable module for
16602         libraries. (Method and example code from Bruno Haible.)
16604 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
16606         doc: Use better texinfo tags in a few cases.
16607         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
16608         instead of @samp in a few places.
16610 2017-12-11  Bruno Haible  <bruno@clisp.org>
16612         unistr/base: Update comment.
16613         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
16615 2017-12-10  Pádraig Brady  <P@draigBrady.com>
16617         test-faccessat.c: unlink temp file to avoid subsequent test failure
16618         * tests/test-faccessat.c: Remove the file to avoid failure
16619         to open the file on subsequent runs due to being created
16620         with no permissions.
16622 2017-12-10  Bruno Haible  <bruno@clisp.org>
16624         doc: New sect. "Modifying the build rules of a Gnulib import directory".
16625         * doc/gnulib-tool.texi (Modified build rules): New node.
16627 2017-12-10  Bruno Haible  <bruno@clisp.org>
16629         doc: Tweak wording.
16630         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
16631         "binaries".
16633 2017-12-05  Sam Steingold  <sds@gnu.org>
16634             Bruno Haible  <bruno@clisp.org>
16636         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
16637         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
16638         AC_EGREP_CPP pattern.
16640 2017-12-03  Bruno Haible  <bruno@clisp.org>
16642         all: Replace more http URLs by https URLs.
16643         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
16644         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
16645         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
16646         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
16648 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16650         Port better to CentOS 5
16651         Problems reported by Tom G. Christensen in:
16652         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
16653         * doc/glibc-functions/strverscmp.texi (strverscmp):
16654         Document strverscmp bug with glibc 2.9 and earlier.
16655         * doc/posix-functions/tzset.texi (tzset):
16656         Document that TZ with angle brackets is POSIX-2001 and later.
16657         * tests/test-nstrftime.c: Include unistd.h.
16658         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
16659         (TZ): Use it to skip tests with angle brackets in TZ,
16660         for older systems.
16662         stat: add missing module dependencies
16663         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
16664         Add stat-time.
16666 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
16668         stat: fix compilation failure on macOS Sierra
16669         Reported by Marius Schamschula <mschamschula@gmail.com> in:
16670         https://savannah.gnu.org/bugs/?52546
16671         * lib/stat.c: Add missing include of stat-time.h.
16673 2017-11-28  Jim Meyering  <meyering@fb.com>
16675         test-faccessat.c: correct BASE definition to avoid parallel test failure
16676         * tests/test-faccessat.c (BASE): Define using this file's name, not
16677         that of test-lstat.c.  Using the latter caused this test to fail
16678         sometimes when run concurrently with test-lstat.
16680 2017-11-27  Daiki Ueno  <ueno@gnu.org>
16682         unicase: fix VPATH build
16683         * modules/unicase/special-casing (Makefile.am): Ensure that the
16684         base directory is created when generating
16685         unicase/special-casing.h.
16687 2017-11-27  Daiki Ueno  <ueno@gnu.org>
16689         libunistring: update to Unicode 9.0.0
16690         * lib/gen-uni-tables.c (fill_properties): Recognize
16691         Sentence_Terminal and Prepended_Concatenation_Mark.
16692         (is_property_default_ignorable_code_point): Exclude U+08E2.
16693         (fill_arabicshaping): Allow missing whitespace when parsing;
16694         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
16695         (output_blocks): Increase the element size of the level1 table to
16696         accommodate more blocks.
16697         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
16698         Update each class according to the standard.
16699         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
16700         E_Base_GAZ characters.
16701         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
16702         Glue_After_Zwj, and E_Base_GAZ characters.
16703         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
16704         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
16705         enum value.
16706         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
16707         value.
16708         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
16709         LBP_ZWJ, LBP_EB, and LBP_EM.
16710         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
16711         enum value.
16712         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
16713         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
16714         declaration.
16715         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
16716         (uniwbrk_table): Implement WB14.
16717         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
16718         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
16719         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
16720         uc-is-grapheme-break.
16721         * modules/unigbrk/uc-grapheme-breaks: New module.
16722         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
16723         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
16724         enum value.
16725         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
16726         * lib/unigbrk/u-grapheme-breaks.h: New file.
16727         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
16728         u-grapheme-breaks.h instead of uc_is_grapheme_break.
16729         * lib/unigbrk/uc-grapheme-breaks.c: New file.
16730         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
16731         29.
16732         * tests/unigbrk/test-uc-gbrk-prop.c
16733         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
16734         GBP_GAZ, and GBP_EBG.
16735         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
16736         * tests/unigbrk/test-uc-is-grapheme-break.c
16737         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
16738         GBP_GAZ, and GBP_EBG.
16739         (main): Skip unsupported rules involving 3 or more characters,
16740         namely GB10, GB12, and GB13.
16741         * lib/uniwidth/width.c (nonspacing_table_data): Update.
16742         * all generated files under lib/uni* and tests/uni*: Regenerate.
16743         * all the affected modules: Bump version.
16745 2017-11-26  Bruno Haible  <bruno@clisp.org>
16747         strfmon_l: Fix compilation error with glibc 2.5.
16748         Reported by Tom G. Christensen <tgc@jupiterrise.com>
16749         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
16750         * lib/monetary.in.h: Include also <locale.h>.
16752 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
16754         posixtm: remove PDS_LEADING_YEAR
16755         This changes the API slightly, in a hopefully-innocuous way.
16756         Without this change the code had undefined behavior when a
16757         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
16758         Problem reported by Pádraig Brady in:
16759         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
16760         * NEWS: Mention this.
16761         * lib/posixtm.c (posix_time_parse): Treat the absence of
16762         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
16763         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
16764         present, but define it as zero, for compatibility with existing
16765         source code).  All other PDS_* values moved up.
16766         * tests/test-posixtm.c (LY): New macro.
16767         (T): Use it.  Do not expect a particular numeric encoding
16768         for PDS_CENTURY etc.
16770 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
16772         stat: work around Solaris bug with tv_nsec < 0
16773         * doc/posix-functions/fstat.texi (fstat):
16774         * doc/posix-functions/fstatat.texi (fstatat):
16775         * doc/posix-functions/lstat.texi (lstat):
16776         * doc/posix-functions/stat.texi (stat):
16777         Mention Solaris 11 bug.
16778         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
16779         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
16780         * lib/lstat.c (rpl_lstat):
16781         * lib/stat.c (rpl_stat):
16782         Normalize resulting timestamps.
16783         * lib/fstatat.c (normal_fstatat): New function.
16784         (rpl_fstatat): Use it.
16785         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
16786         (stat_time_normalize): New function.
16787         * m4/fstat.m4 (gl_FUNC_FSTAT):
16788         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
16789         * m4/lstat.m4 (gl_FUNC_LSTAT):
16790         * m4/stat.m4 (gl_FUNC_STAT):
16791         Replace on Solaris.
16792         * modules/fstat (Depends-on):
16793         * modules/fstatat (Depends-on):
16794         Add stat-time.
16795         * modules/stat-time (Depends-on): Add errno, intprops.
16797 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
16799         regex: merge from glibc
16800         * lib/regcomp.c (init_word_char): Add comments.
16802 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16804         regex: merge from glibc
16805         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
16806         * lib/regex_internal.h (internal_function): Remove.
16807         All uses removed.
16809 2017-11-20  Bruno Haible  <bruno@clisp.org>
16811         crypto/gc-sm3: Fix buffer overrun.
16812         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
16813         Reported by Coverity.
16815 2017-11-12  Jim Meyering  <meyering@fb.com>
16817         maint: shorten https://lists.gnu.org/archive/html/... links
16818         Each /archive/html/ part can be replace with /r/.
16819         Run this to induce the change:
16820         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
16821         * ChangeLog: Perform that substitution.
16822         * Makefile: Likewise.
16823         * STATUS-libposix: Likewise.
16824         * build-aux/bootstrap: Likewise.
16825         * doc/maintain.texi: Likewise.
16826         * gnulib-tool: Likewise.
16827         * lib/allocator.h: Likewise.
16828         * lib/argp-ba.c: Likewise.
16829         * lib/argp-pv.c: Likewise.
16830         * lib/canon-host.c: Likewise.
16831         * lib/canonicalize-lgpl.c: Likewise.
16832         * lib/float.in.h: Likewise.
16833         * lib/fstat.c: Likewise.
16834         * lib/getdelim.c: Likewise.
16835         * lib/getprogname.c: Likewise.
16836         * lib/glthread/thread.h: Likewise.
16837         * lib/intprops.h: Likewise.
16838         * lib/mbsrtowcs-state.c: Likewise.
16839         * lib/safe-read.c: Likewise.
16840         * lib/signal.in.h: Likewise.
16841         * lib/stat.c: Likewise.
16842         * lib/stdbool.in.h: Likewise.
16843         * lib/stdio-impl.h: Likewise.
16844         * lib/stdio.in.h: Likewise.
16845         * lib/sysexits.in.h: Likewise.
16846         * lib/timespec.h: Likewise.
16847         * lib/wcsrtombs-state.c: Likewise.
16848         * m4/alloca.m4: Likewise.
16849         * m4/extern-inline.m4: Likewise.
16850         * m4/fstatat.m4: Likewise.
16851         * m4/gnulib-common.m4: Likewise.
16852         * m4/lib-ignore.m4: Likewise.
16853         * m4/printf.m4: Likewise.
16854         * m4/regex.m4: Likewise.
16855         * m4/stat-size.m4: Likewise.
16856         * m4/std-gnu11.m4: Likewise.
16857         * m4/stdbool.m4: Likewise.
16858         * m4/sys_types_h.m4: Likewise.
16859         * m4/threadlib.m4: Likewise.
16860         * m4/vararrays.m4: Likewise.
16861         * pygnulib/GLImport.py: Likewise.
16862         * tests/test-exp.h: Likewise.
16863         * tests/test-exp2.h: Likewise.
16864         * tests/test-expm1.h: Likewise.
16865         * tests/test-fflush2.c: Likewise.
16866         * tests/test-getopt_long.h: Likewise.
16867         * tests/test-intprops.c: Likewise.
16868         * tests/test-log.h: Likewise.
16869         * tests/test-log10.h: Likewise.
16870         * tests/test-log1p.h: Likewise.
16871         * tests/test-log2.h: Likewise.
16872         * tests/test-printf-posix.h: Likewise.
16873         * tests/test-regex.c: Likewise.
16874         * tests/test-snprintf-posix.h: Likewise.
16875         * tests/test-sprintf-posix.h: Likewise.
16876         * tests/test-stdalign.c: Likewise.
16877         * tests/test-stdbool.c: Likewise.
16878         * tests/test-vasnprintf-posix.c: Likewise.
16879         * tests/test-vasprintf-posix.c: Likewise.
16880         * top/maint.mk: Likewise.
16882 2017-11-12  Bruno Haible  <bruno@clisp.org>
16884         faccessat: Make the last change more robust.
16885         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
16886         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
16888 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
16890         faccessat: port to macOS (Bug#29231)
16891         macOS faccessat has the same bug that lstat does: if the file
16892         name ends in '/' it ignores the trailing slash.
16893         Problem reported for Emacs by Vincent Zhang.
16894         * doc/posix-functions/faccessat.texi (faccessat): Document this.
16895         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
16896         around the initial includes.  Include errno.h, string.h, sys/stat.h.
16897         (orig_faccessat) [HAVE_FACCESSAT]: New function.
16898         Include "unistd.h" after defining it.
16899         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
16900         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
16901         Handle in the usual way.
16902         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
16903         lstat dereferences symlinks, since faccessat is likely to
16904         have the same problem.
16905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
16906         * modules/faccessat (Depends-on): Add fstatat.
16907         Depend if REPLACE_FACCESSAT is 1, too.
16908         (configure.ac): Link if REPLACE_FACCESSAT is 1.
16909         * modules/faccessat-tests (Depends-on): Add symlink.
16910         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
16911         * tests/test-faccessat.c (main): Test for the bug.
16913 2017-11-11  Bruno Haible  <bruno@clisp.org>
16915         getprogname: Fix compilation error on IRIX.
16916         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
16917         'namesize'.
16919 2017-11-11  Bruno Haible  <bruno@clisp.org>
16921         year2038: Tweak last patch.
16922         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
16924 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
16926         year2038: be more insistent about 64-bit time_t
16927         Applications requiring access to arbitrary files should not be
16928         built with 32-bit time_t on hosts that have 64-bit timestamps,
16929         as this can lead to real trouble at runtime.
16930         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
16931         Check on all systems, not just MinGW.  Use a heuristic involving
16932         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
16933         output a failure or just a warning, to make it more likely that
16934         builders will select 64-bit time_t.
16936 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
16938         havelib: fix typo in previous change
16939         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
16941         Don’t use AC_EGREP_CPP if affected by CFLAGS
16942         * m4/float_h.m4 (gl_FLOAT_H):
16943         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
16944         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
16945         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
16946         * m4/year2038.m4 (gl_YEAR2038):
16947         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
16948         likely to be affected by the choice of CFLAGS, since CFLAGS are
16949         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
16950         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
16952         fstatat: pacify GCC on unusual platform
16953         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
16954         Omit, as it’s unused in this case.
16956 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
16958         timespec: prefer ‘assume’ to ‘assure’
16959         This avoids some runtime tests.  The rest of the module makes
16960         similar assumptions and there is little point to testing here.
16961         * lib/timespec.h: Include verify.h instead of assure.h.
16962         (timespec_cmp): Use ‘assume’, not ‘assure’.
16963         Also, remove an unnecessary cast to ‘int’, as lots of other
16964         code in this module now causes -Wconversion to complain, and
16965         this is a problem with -Wconversion not with the code.
16967         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
16969         Port recent gnulib-tool change to Dash
16970         * gnulib-tool (func_create_testdir): Don't assume that the shell
16971         retokenizes after expanding "$@" inside the call to
16972         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
16974 2017-10-27  Jim Meyering  <meyering@fb.com>
16976         timespec.h: use "assure" to avoid a spurious warning
16977         * lib/timespec.h: Include "assure.h" and use it to help
16978         gcc7's -Wstrict-overflow avoid a false positive warning
16979         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
16980         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
16981         * modules/timespec (Depends-on): Add assure.
16983 2017-10-29  Bruno Haible  <bruno@clisp.org>
16985         Avoid several test failures with traditional locales on Haiku.
16986         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
16987         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
16988         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
16989         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
16990         LOCALE_ZH_CN=none.
16992 2017-10-29  Bruno Haible  <bruno@clisp.org>
16994         strerror_r-posix: Fix behaviour and test failure on Haiku.
16995         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
16996         are positive. Work around return value 0 instead of ERANGE on Haiku.
16997         For unknown error numbers, use a format string consistent with perror().
16998         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
16999         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
17000         are positive.
17002 2017-10-29  Bruno Haible  <bruno@clisp.org>
17004         get-rusage-data: Avoid crash on Haiku.
17005         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
17007 2017-10-29  Bruno Haible  <bruno@clisp.org>
17009         get-rusage-as: Avoid crash on Haiku.
17010         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
17012 2017-10-29  Bruno Haible  <bruno@clisp.org>
17014         ilogbl: Ensure replacement on Haiku.
17015         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
17016         REPLACE_ILOGBL if ilogbl does not work.
17017         (gl_FUNC_ILOGBL_WORKS): New macro.
17018         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
17019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
17020         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
17021         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
17022         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
17024 2017-10-29  Bruno Haible  <bruno@clisp.org>
17026         expl: Ensure replacement on Haiku.
17027         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
17028         zero.
17029         * doc/posix-functions/expl.texi: Mention the Haiku problem.
17031 2017-10-29  Bruno Haible  <bruno@clisp.org>
17033         math: Fix test failure on Haiku.
17034         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
17035         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
17036         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
17037         * doc/posix-headers/math.texi: Mention the Haiku problem.
17039 2017-10-29  Bruno Haible  <bruno@clisp.org>
17041         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
17042         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
17043         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
17045 2017-10-29  Bruno Haible  <bruno@clisp.org>
17047         crypto/*: Verify that the header file is self-contained.
17048         * tests/test-gc-*.c: Include the module's header file immediately after
17049         <config.h>.
17050         * tests/test-hmac-*.c: Likewise.
17051         * tests/test-arcfour.c: Likewise.
17052         * tests/test-arctwo.c: Likewise.
17053         * tests/test-des.c: Likewise.
17054         * tests/test-md2.c: Likewise.
17055         * tests/test-md4.c: Likewise.
17056         * tests/test-md5.c: Likewise.
17057         * tests/test-rijndael.c: Likewise.
17058         * tests/test-sha1.c: Likewise.
17059         * tests/test-sm3.c: Likewise.
17061 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17062             Bruno Haible  <bruno@clisp.org>
17064         crypto/gc: fix build failure with -Werror=suggest-attribute=const
17065         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
17067 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17069         New module: crypto/gc-sm3
17070         * lib/gc.h: Declare SM3-related stuffs.
17071         * lib/gc-gnulib.c: Support sm3 in internal functions.
17072         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
17073         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
17074         * modules/crypto/gc-sm3: Define gc-sm3 module.
17075         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
17076         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
17077         * MODULES.html.sh: List gc-sm3 module.
17079 2017-10-29  Bruno Haible  <bruno@clisp.org>
17081         random, random_r: Mention different prototypes on Haiku.
17082         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
17083         * doc/glibc-functions/random_r.texi: Likewise.
17084         * doc/glibc-functions/initstate_r.texi: Likewise.
17085         * doc/glibc-functions/setstate_r.texi: Likewise.
17087 2017-10-28  Bruno Haible  <bruno@clisp.org>
17089         posix_spawn: Avoid spurious message in configure output.
17090         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
17091         'cmp' command.
17093 2017-10-28  Bruno Haible  <bruno@clisp.org>
17095         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
17096         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
17097         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
17099 2017-10-28  Bruno Haible  <bruno@clisp.org>
17101         ioctl: Override non-POSIX declaration on Haiku.
17102         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
17103         * lib/sys_ioctl.in.h: Add comment about Haiku.
17104         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
17105         * doc/glibc-headers/sys_ioctl.texi: Likewise.
17107 2017-10-28  Bruno Haible  <bruno@clisp.org>
17109         crypto/sm3: Add overview documentation to the .h file.
17110         * lib/sm3.h: Add comments.
17112 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17114         New module: crypto/sm3
17115         This new module can be used to compute SM3 message digest of files or
17116         memory blocks according to the specification GM/T 004-2012
17117         Cryptographic Hash Algorithm SM3, published by State Cryptography
17118         Administration, China.
17119         The official SM3 cryptographic hash algorithm specification is
17120         available at
17121         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
17122         * lib/sm3.h: Declare the APIs of sm3 module.
17123         * lib/sm3.c: Implement SM3 hash algorithm.
17124         * m4/sm3.m4: m4 file for sm3 module.
17125         * modules/crypto/sm3: Define sm3 module.
17126         * tests/test-sm3.c: Implement SM3 test case.
17127         * modules/crypto/sm3-tests: Define sm3 test module.
17128         * MODULES.html.sh: List sm3 module.
17130 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17132         gc-libgcrypt: fix undefined enum type in switch statement
17133         Resolve the following build failure:
17134         lib/gc-libgcrypt.c: In function 'gc_hash_open':
17135         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
17136         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
17137              case 0:
17138              ^~~~
17139         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
17140         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
17142 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17144         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
17145         Resolve the following build failure:
17146         lib/gc-libgcrypt.c: In function 'gc_hash_read':
17147         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
17148         in signedness [-Werror=pointer-sign]
17149             digest = gcry_md_read (ctx->gch, 0);
17150                    ^
17151         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
17153 2017-10-26  Bruno Haible  <bruno@clisp.org>
17155         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
17156         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
17157         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
17159 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17161         glob: fix another heap buffer overflow
17162         Problem reported by Tim Rühsen in:
17163         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
17164         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
17166 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
17168         quotearg: pacify compiler re unsigned
17169         * lib/quotearg.c (quotearg_n_options):
17170         Rewrite to avoid diagnostic from overly-picky compiler.
17171         Problem reported by Sami Kerola in:
17172         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
17174         glob: fix heap buffer overflow
17175         * lib/glob.c (glob): Fix off-by-one error introduced into
17176         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
17177         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
17178         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
17179         Fix suggested by Bruno Haible.
17181 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
17183         glob: pacify fuzzer for mempcpy
17184         Problem reported by Tim Rühsen in:
17185         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
17186         * lib/glob.c (glob): Do not pass NULL to mempcpy.
17188 2017-10-12  Bruno Haible  <bruno@clisp.org>
17190         doc: Fix syntax error (regression from 2017-10-03).
17191         * doc/posix-functions/strncpy.texi: Fix syntax error.
17193 2017-10-12  Bruno Haible  <bruno@clisp.org>
17195         doc: Update for Solaris 11.3.
17196         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
17197         mention Solaris 11.3.
17198         * m4/log2.m4: Fix comments.
17199         * m4/log2f.m4: Likewise.
17200         * m4/printf.m4: Update comments.
17201         * m4/rename.m4: Likewise.
17202         * m4/strncat.m4: Likewise.
17204         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
17206 2017-10-10  Bruno Haible  <bruno@clisp.org>
17208         doc: Improve doc about ioctl.
17209         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
17210         prototype.
17212 2017-10-09  Bruno Haible  <bruno@clisp.org>
17214         wcwidth: Don't use obsolete syntax of 'test'.
17215         Reported by Eric Blake.
17216         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
17217         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
17219 2017-10-09  Bruno Haible  <bruno@clisp.org>
17221         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
17222         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
17223         and Daniel P. Berrange <berrange@redhat.com>.
17224         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
17225         on glibc systems. The getopt-pfx-core.h file declares exactly what
17226         unistd.h needs, nothing more.
17228 2017-10-08  Bruno Haible  <bruno@clisp.org>
17230         vma-iter: Improve support for FreeBSD.
17231         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
17232         vma_iterate.
17233         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
17235 2017-10-08  Bruno Haible  <bruno@clisp.org>
17237         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
17238         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
17240 2017-10-07  KO Myung-Hun  <komh@chollian.net>
17242         test-framework-sh: Fix 'invalid path dir' error.
17243         On OS/2, a path separator is ';' not ':'. And ':' is used as a
17244         separator between a drive letter and directory parts.
17245         As a result, an absolute path such as x:/path/to/dir on OS/2 is
17246         treated as an invalid path dir.
17247         * tests/init.sh (PATH_SEPARATOR): Set at startup.
17248         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
17249         instead of hard coded ':'.
17251 2017-10-07  Bruno Haible  <bruno@clisp.org>
17253         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
17254         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
17255         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
17256         (rof_open): On Linux, do multiple read() calls and make sure
17257         MIN_LEFTOVER bytes are left when read() returns.
17259 2017-10-07  Bruno Haible  <bruno@clisp.org>
17261         vma-iter: Improve support for GNU/Hurd.
17262         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
17263         API, not the /proc file system.
17265 2017-10-07  Bruno Haible  <bruno@clisp.org>
17267         test-framework-sh: Don't require bash on Windows and OS/2.
17268         Reported by KO Myung-Hun.
17269         * tests/test-init.sh: Use 'shopt' only when running in bash.
17271 2017-10-06  KO Myung-Hun  <komh@chollian.net>
17273         wcwidth: check a macro version of wcwidth () as well
17274         * lib/wchar.in.h: Revert commit from 2016-01-14.
17275         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
17277 2017-10-06  Bruno Haible  <bruno@clisp.org>
17279         getopt-posix: Clarify copyright header.
17280         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
17281         * lib/getopt-pfx-core.h: Likewise.
17282         * lib/getopt-pfx-ext.h: Likewise.
17283         * lib/getopt-cdefs.in.h: Likewise.
17285 2017-10-03  Bruno Haible  <bruno@clisp.org>
17287         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
17288         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
17289         gl_HOST_CPU_C_ABI.
17291 2017-10-03  Bruno Haible  <bruno@clisp.org>
17293         doc: warn about misuse of strncpy and wcsncpy.
17294         * doc/posix-functions/strcpy.texi: Describe requirements on prior
17295         memory allocation.
17296         * doc/posix-functions/wcscpy.texi: Likewise.
17297         * doc/posix-functions/strncpy.texi: Describe what this function is not
17298         useful for.
17299         * doc/posix-functions/wcsncpy.texi: Likewise.
17301 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
17303         fsuage: fix typo in previous change
17304         * lib/fsusage.c: Remove stray include of full-read.h.
17305         Problem reported by Sam Steingold for macOS (Bug#28669).
17307 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
17309         fsusage: remove SVR2 support
17310         SVR2 was obsolete by 1986 and is no longer supported by anybody,
17311         and its code was getting in the way of use of this module by
17312         Emacs, which has its own ‘read’ function anyway.
17313         * lib/fsusage.c: Do not include sys/filsys.h.
17314         (get_fs_usage): Remove SVR2-specific code.
17315         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
17316         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
17317         * modules/fsusage (Depends-on): Do not depend on full-read.
17319         Simplify autoupdate of licenses
17320         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
17321         place.
17323 2017-10-01  Bruno Haible  <bruno@clisp.org>
17325         vma-iter: Add support for GNU/Hurd.
17326         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
17327         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17329 2017-09-30  Bruno Haible  <bruno@clisp.org>
17331         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
17332         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
17333         fail when module 'largefile' is in use.
17334         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
17335         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
17336         Don't test HAVE_SYS_PROCFS_H.
17338 2017-09-30  Bruno Haible  <bruno@clisp.org>
17340         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
17341         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
17342         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
17343         * modules/havelib (Depends-on): Add host-cpu-c-abi.
17345 2017-09-30  Bruno Haible  <bruno@clisp.org>
17347         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
17348         * lib/uniname/uniname.c (unicode_name_character): Add braces around
17349         scope of local variables.
17351 2017-09-28  Bruno Haible  <bruno@clisp.org>
17353         string: code style
17354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
17355         substitutable variables.
17356         * modules/string (Makefile.am): Likewise.
17358 2017-09-26  Bruno Haible  <bruno@clisp.org>
17360         uniname/uniname-tests: Tighten code.
17361         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
17362         local variables into one.
17364 2017-09-26  Bruno Haible  <bruno@clisp.org>
17366         vma-iter: Improvements for Linux and BSD platforms.
17367         - Add support for DragonFly BSD.
17368         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
17369         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
17370         Read the entire file into memory in a single system call.
17371         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
17372         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
17374 2017-09-26  Bruno Haible  <bruno@clisp.org>
17376         vma-iter: Provide the protection flags on FreeBSD.
17377         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
17378         skip three fields between the addresses and the protection flags.
17380 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17382         glob: remove bogus extern decl
17383         * lib/glob.c (__glob_pattern_type): Remove now-spurious
17384         extern declaration.  Problem reported by Adhemerval Zanella in:
17385         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
17387 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
17389         uniname/uniname-tests: integer overflow fix
17390         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
17391         Check for integer overflow.
17393         duplocale-tests: fix unlikely crash
17394         * tests/test-duplocale.c (get_locale_dependent_values):
17395         Don’t crash with absurdly long month names.
17397         maint: fix overflow checking in nap.h
17398         * modules/chown-tests:
17399         * modules/fchownat-tests, modules/fdutimensat-tests:
17400         * modules/futimens-tests, modules/lchown-tests:
17401         * modules/stat-time-tests, modules/utime-tests:
17402         * modules/utimens-tests, modules/utimensat-tests:
17403         Depend on intprops.
17404         * tests/nap.h: Include intprops.h.
17405         (diff_timespec): Handle overflow properly.
17407         sys_types: update URL
17408         * m4/sys_types_h.m4: Use https: URL.
17410         parse-datetime: fix dependency
17411         * modules/parse-datetime (Depends-on): Depend
17412         on nstrftime, not strftime.
17414         parse-datetime, posixtm: avoid uninit access
17415         * lib/parse-datetime.y (parse_datetime2):
17416         * lib/posixtm.c (posixtime):
17417         Do not access uninitialized storage, even though the resulting
17418         value is never used.
17420 2017-09-25  Bruno Haible  <bruno@clisp.org>
17422         vma-iter: Improvements for BSD platforms.
17423         - Add support for GNU/kFreeBSD.
17424         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
17425         - Speed up on OpenBSD.
17426         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
17427         (vma_iterate_bsd): New function.
17428         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
17429         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
17430         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17431         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
17433 2017-09-23  Bruno Haible  <bruno@clisp.org>
17435         strfmon_l: New module.
17436         * modules/strfmon_l: New file.
17437         * lib/strfmon_l.c: New file.
17438         * m4/strfmon_l.m4: New file.
17439         * doc/posix-functions/strfmon_l.texi: Mention the new module.
17440         * modules/strfmon_l-tests: New file.
17441         * tests/test-strfmon_l.c: New file.
17443         monetary: New module.
17444         * modules/monetary: New file.
17445         * lib/monetary.in.h: New file.
17446         * m4/monetary_h.m4: New file.
17447         * doc/posix-headers/monetary.texi: Mention the new module.
17448         * modules/monetary-tests: New file.
17449         * tests/test-monetary.c: New file.
17450         * modules/monetary-c++-tests: New file.
17451         * tests/test-monetary-c++.cc: New file.
17452         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
17454 2017-09-23  Bruno Haible  <bruno@clisp.org>
17456         duplocale tests: Fix test crash on Linux/x86.
17457         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
17458         locale from the current thread before freeing it.
17460 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
17462         mktime: port to OpenVMS
17463         Problem reported by John E. Malmberg in:
17464         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
17465         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
17467 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17469         manywarnings: port to GCC on 64-bit MS-Windows
17470         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
17471         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
17472         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
17474 2017-09-13  Bruno Haible  <bruno@clisp.org>
17476         all: Replace many more http URLs by https URLs. Update stale URLs.
17477         * users.txt: Remove mention of 'newts'.
17478         * lib/localename.c: Update comment about LANG_SOTHO.
17480 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17482         all: Replace many http URLs by https URLs.
17484 2017-09-12  Bruno Haible  <bruno@clisp.org>
17486         doc: Prefer https URLs where possible.
17487         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
17488         * doc/ld-output-def.texi: Remove unavailable URL.
17490 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17492         maintainer-makefile: FTP -> HTTPS
17493         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
17494         of FTP, which is planned to be decommissioned on 2017-11-01.
17496 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
17498         libc-config: Fix __GNUC_PREREQ macro.
17499         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
17500         __GNUC_MINOR.
17502 2017-09-09  Bruno Haible  <bruno@clisp.org>
17504         gnulib-tool: Simplify commit from 2015-08-20.
17505         * gnulib-tool (func_add_or_update): Remove local variable
17506         is_binary_file.
17508 2017-09-08  Bruno Haible  <bruno@clisp.org>
17510         stddef: Avoid conflict with system-defined max_align_t.
17511         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
17512         Reported by Werner Lemberg <wl@gnu.org> in
17513         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
17514         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
17515         (max_align_t): Define as a macro.
17516         (GNULIB_defined_max_align_t): New macro. Guards against multiple
17517         definitions of rpl_max_align_t in different copies of gnulib-generated
17518         <stddef.h>.
17520 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
17522         libc-config: port to MSVC
17523         Problems reported by Gisle Vanem in:
17524         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
17525         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
17526         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
17527         * m4/__inline.m4: New file.
17528         * modules/libc-config (Files): Add it.
17529         (Depends-on): Use it.
17531         glob: Use enum for __glob_pattern_type result
17532         From a patch proposed by Adhemerval Zanella in:
17533         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
17534         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
17535         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
17536         * lib/glob_internal.h (__glob_pattern_type):
17537         * lib/glob.c (glob):
17538         * lib/glob_pattern_p.c (__glob_pattern_p):
17539         Use them.
17541         glob: fix for use in glibc
17542         Problem reported by Adhemerval Zanella in:
17543         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
17544         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
17545         Do not redefine if _LIBC.
17547 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17549         glob: fix bugs with long login names
17550         Problem reported by Adhemerval Zanella in:
17551         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
17552         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
17553         (glob): Use the same scratch buffer for both getlogin_r and
17554         getpwnam_r.  Don’t require preallocation of the login name.  This
17555         simplifies storage allocation, and corrects the handling of
17556         long login names.
17558 2017-09-02  Bruno Haible  <bruno@clisp.org>
17560         dirent: Update doc.
17561         * doc/posix-headers/dirent.texi: More concrete list of platforms.
17563 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17565         glob: fix getpwnam_r errno typo
17566         * lib/glob.c (glob): Fix longstanding misuse of errno after
17567         getpwnam_r, which returns an error number rather than setting
17568         errno.
17570         glob: fix typo in recent change
17571         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
17572         Fix recently-introduced typo.
17574 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17576         glob: don't save and restore errno unnecessarily
17577         * lib/glob.c (glob): Don't save and restore errno
17578         merely because we have getpwnam_r.
17580         glob: don't assume getpwnam_r
17581         * lib/glob.c (glob): Port recent patches to platforms
17582         lacking getpwnam_r.
17584         scratch_buffer: don’t use private glibc API
17585         Suggested by Florian Weimer in:
17586         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
17587         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
17588         * lib/scratch_buffer_grow.c: Rename to
17589         lib/malloc/scratch_buffer_grow.c.
17590         * lib/scratch_buffer_grow_preserve.c: Rename to
17591         lib/malloc/scratch_buffer_grow_preserve.c.
17592         * lib/scratch_buffer_set_array_size.c: Rename to
17593         lib/malloc/scratch_buffer_set_array_size.c.
17594         * lib/scratch_buffer.h: New file.
17595         * modules/scratch_buffer (Files, Makefile.am):
17596         Adjust to source-file renaming.
17598 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17600         glob: use scratch_buffer instead of extend_alloca
17601         Much of the lib/glob.c part of this patch comes from a glibc patch
17602         proposed by Adhemerval Zanella in:
17603         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
17604         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
17605         included via glob.h, does this for us now.
17606         (__set_errno): Remove, as libc-config does this for us now.
17607         Include <scratch_buffer.h>.
17608         (GETPW_R_SIZE_MAX): Remove.
17609         (glob): Use struct scratch_buffer instead of extend_alloca.
17610         * lib/glob.in.h: Include libc-config.h rather than
17611         including <sys/cdefs.h> conditionally.
17612         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
17613         (__glibc_unlikely, __restrict, weak_alias):
17614         Remove, as libc-config does this for us now.
17615         * m4/glob.m4 (gl_PREREQ_GLOB):
17616         Remove sys/cdefs.h tests; no longer needed.
17617         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
17618         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
17620         scratch_buffer: new module
17621         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
17622         * lib/scratch_buffer_grow_preserve.c:
17623         * lib/scratch_buffer_set_array_size.c:
17624         New files, copied from glibc with very minor changes that can be
17625         copied back.
17626         * modules/scratch_buffer: New file.
17628         libc-config: new module
17629         * MODULES.html.sh: Add libc-config.
17630         * lib/cdefs.h: New file, copied from the GNU C Library with very
17631         minor changes that can be copied back.
17632         * lib/libc-config.h, modules/libc-config: New files.
17634 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17636         glob: match dangling symlinks
17637         This fixes a bug I inadvertently introduced to Gnulib when I
17638         merged glibc glob back into gnulib on 2007-10-16.  This fix is
17639         inspired by a patch proposed for glibc by Adhemerval Zanella in:
17640         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
17641         * doc/posix-functions/glob.texi: Update list of affected platforms.
17642         * lib/glob.c (__lstat64): New macro.
17643         (is_dir): New function.
17644         (glob, glob_in_dir): Match symlinks even if they are dangling.
17645         (link_stat, link_exists_p): Remove.  All uses removed.
17646         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
17647         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
17648         * modules/glob-tests (Depends-on): Add symlink.
17649         * tests/test-glob.c: Include errno.h, unistd.h.
17650         (BASE): New macro.
17651         (main): Test dangling symlinks, if symlinks are supported.
17653         glob, backupfile: inode 0 is a valid inode number
17654         * doc/posix-functions/readdir.texi (readdir):
17655         * doc/posix-headers/dirent.texi (dirent.h):
17656         Document more readdir portability issues.
17657         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
17658         (numbered_backup): Don’t treat inode 0 any differently from
17659         other inode values.
17660         * lib/glob.c (struct readdir_result): Remove skip_entry member.
17661         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
17662         All uses removed.
17663         * modules/glob (Depends-on): Remove d-ino.
17665         glob: simplify symlink detection
17666         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
17667         uint8_t, as C99 does not require uint8_t.
17668         (struct readdir_result): Use it.  Do not define skip_entry unless
17669         it is needed; this saves a byte on platforms lacking d_ino.
17670         (readdir_result_type, readdir_result_skip_entry):
17671         New functions, replacing ...
17672         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
17673         ... these functions, which were removed.  This makes the callers
17674         easier to read.  All callers changed.
17675         (D_INO_TO_RESULT): Now empty if there is no d_ino.
17677 2017-08-30  Pádraig Brady  <P@draigBrady.com>
17679         fts-tests: tag as a longrunning-test so not included by default
17680         * modules/fts-tests: This test takes about 20s on current systems,
17681         and uses about 285M of space on ext4.
17683 2017-08-30  Pádraig Brady  <P@draigBrady.com>
17685         renameat2: fix compilation on alpine linux
17686         * m4/renameat.m4: Check for <linux/fs.h> presence.
17687         * lib/renameat2.h: Only include <linux/fs.h> if present.
17688         Reported by Assaf Gordon on Alpine Linux.
17690 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17692         glob: try to port recent changes to MS-Windows
17693         Problem reported by Bruno Haible in:
17694         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
17695         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
17696         * lib/glob.in.h (__glob_pattern_p): ... to here.
17698 2017-08-24  Eric Blake  <eblake@redhat.com>
17700         warnings: fix compilation with old autoconf
17701         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
17702         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
17703         AC_DEFUN.
17704         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
17705         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
17707 2017-08-24  Bruno Haible  <bruno@clisp.org>
17709         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
17710         * modules/glob (Depends-on): Add c99.
17712 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17714         glob: fix typo that broke platforms lacking d_ino
17715         This typo also hurt performance on GNU/Linux and similar hosts.
17716         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
17717         in previous change.
17719 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17721         glob: merge from glibc with Zanella glob changes
17722         Merge glob from glibc, with changes for glob proposed
17723         by Adhemerval Zanella in the thread starting here:
17724         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
17725         plus some fixes for this merge.
17726         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
17727         New files, ported from glibc.
17728         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
17729         with __restrict.
17730         (__size_t): Remove.  All uses replaced by size_t.
17731         (size_t): Define by defining __need_size_t and including <stddef.h>.
17732         This should work even in non-glibc platforms, where any name
17733         pollution is OK.
17734         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
17735         (struct stat64): Don’t worry about __GLOB_GNULIB.
17736         (glob, globfree, glob_pattern_p): Remove macros for
17737         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
17738         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
17739         but set errno.
17740         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
17741         removed since the glibc behavior works on null pointers.
17742         Do not include stdio.h; old SunOS is irrelevant now.
17743         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
17744         Include glob_internal.h.
17745         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
17746         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
17747         worked only coincidentally.
17748         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
17749         Remove macros; now done in glob.in.h.
17750         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
17751         (glob): Properly initialize glob structure with
17752         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
17753         Remove old code using SHELL since Bash no longer
17754         uses this.
17755         (glob, prefix_array): Separate MS code better.
17756         (glob, glob_in_dir): Use C99 decls before statements when glibc
17757         does.
17758         (glob_in_dir): Remove old Amiga and VMS code.
17759         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
17760         separate files.
17761         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
17762         (__glibc_unlikely):
17763         Move here from glob.c.
17764         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
17765         (weak_alias): New macro.
17766         (__size_t): Remove.  All uses replaced by size_t.
17767         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
17768         * modules/glob (Files): Add +lib/glob_internal.h,
17769         lib/glob_pattern_p.c, lib/globfree.c.
17770         (Depends-on): Remove snippet/arg-nonnull.
17772 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17774         glob: port to clang's Undefined Sanitizer
17775         Problem reported by Tim Rühsen in:
17776         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
17777         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
17778         (glob_in_dir): Do not rely on undefined behavior in accessing
17779         struct members beyond their bounds.  Use a flexible array member
17780         instead.
17782 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
17784         vc-list-files: port to Solaris 10
17785         * build-aux/vc-list-files: Don't assume test -e works.
17787 2017-08-21  Karl Berry  <karl@freefriends.org>
17789         * doc/posix-functions/srandom.texi (srandom): typo }.
17791 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17793         git-version-gen: port to Solaris 10
17794         Problem reported by Dagobert Michelsen in:
17795         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
17796         * build-aux/git-version-gen (v_from_git):
17797         Use expr instead of shell substitution.
17799 2017-08-19  Bruno Haible  <bruno@clisp.org>
17801         host-cpu-c-abi: Improve detection of MIPS ABI.
17802         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
17803         _MIPS_SIM.
17805 2017-08-17  Bruno Haible  <bruno@clisp.org>
17807         hypot tests: Fix test failure on FreeBSD 11.0/x86.
17808         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
17810 2017-08-17  Bruno Haible  <bruno@clisp.org>
17812         float: Fix LDBL_MIN value on FreeBSD/x86.
17813         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
17815 2017-08-17  Bruno Haible  <bruno@clisp.org>
17817         random: Fix test compilation failure on Cygwin 1.5.25.
17818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
17819         HAVE_DECL_SETSTATE.
17820         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
17821         declared.
17822         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
17823         HAVE_DECL_SETSTATE.
17824         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
17825         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
17826         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
17827         * doc/posix-functions/random.texi: Likewise.
17828         * doc/posix-functions/setstate.texi: Likewise.
17829         * doc/posix-functions/srandom.texi: Likewise.
17831 2017-08-16  Bruno Haible  <bruno@clisp.org>
17833         stdnoreturn: Fix test compilation failure on Cygwin.
17834         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
17835         <stdnoreturn.h> replacement.
17836         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
17837         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
17839 2017-08-16  Bruno Haible  <bruno@clisp.org>
17841         thread: Fix conflict with pthread_sigmask module.
17842         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
17843         it's defined as a macro.
17844         * modules/thread (Depends-on): Add pthread_sigmask.
17846 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
17848         rename: port better to NetBSD
17849         * doc/posix-functions/rename.texi (rename): NetBSD 7
17850         does not have the link-count bug.
17851         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
17852         broken merely because rename ("a", "b") removes "a" when the two
17853         names are hard links to the same file.
17855 2017-08-16  Bruno Haible  <bruno@clisp.org>
17857         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
17858         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
17859         the target file names with '$(srcdir)/'.
17860         * modules/unicase/locale-language (Makefile.am): Likewise.
17861         * modules/unicase/special-casing (Makefile.am): Likewise.
17862         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
17863         * modules/unictype/category-byname (Makefile.am): Likewise.
17864         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
17865         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
17866         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
17867         * modules/unictype/property-byname (Makefile.am): Likewise.
17868         * modules/unictype/scripts (Makefile.am): Likewise.
17869         * modules/uninorm/composition (Makefile.am): Likewise.
17871 2017-08-16  Bruno Haible  <bruno@clisp.org>
17873         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
17874         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
17875         value for OpenBSD.
17877 2017-08-16  Bruno Haible  <bruno@clisp.org>
17879         rename, renameat: Update doc regarding NetBSD.
17880         * doc/posix-functions/rename.texi: Clarify that when using
17881         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
17882         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
17883         version.
17885 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17887         renameat2: port better to macOS
17888         * lib/renameat2.c (renameat2): Use renameatx_np if available.
17890         futimens: don’t assume struct timespec layout
17891         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
17892         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
17893         * tests/test-fdutimensat.c (main):
17894         * tests/test-futimens.h (test_futimens):
17895         * tests/test-lutimens.h (test_lutimens):
17896         * tests/test-utimens.h (test_utimens):
17897         * tests/test-utimensat.c (main):
17898         Don’t assume that struct timespec is a two-member structure in
17899         tv_sec, tv_nsec order.  Although this is true on all platforms we
17900         know about, POSIX does not guarantee it.
17902         rename: document+test NetBSD rename
17903         Test failure reported by Bruno Haible in:
17904         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
17905         This is an area where NetBSD is better-behaved than POSIX,
17906         so allow the NetBSD behavior in tests.
17907         * doc/posix-functions/rename.texi:
17908         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
17909         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
17911 2017-08-15  Bruno Haible  <bruno@clisp.org>
17913         renameat: Ensure declaration in <stdio.h> on NetBSD.
17914         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
17915         * doc/posix-functions/renameat.texi: Mention this problem.
17917 2017-08-15  Bruno Haible  <bruno@clisp.org>
17919         duplocale: Work around NetBSD 7.0 bug.
17920         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
17921         * lib/duplocale.c: Add comment about NetBSD problem.
17922         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
17924 2017-08-15  Bruno Haible  <bruno@clisp.org>
17926         duplocale tests: Verify use with *_l functions.
17927         * modules/duplocale-tests (configure.ac): Test for uselocale and
17928         some *_l functions.
17929         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
17930         from main.
17931         (get_locale_dependent_values_from, test_with_locale_parameter): New
17932         functions.
17933         (main): Test both test_with_uselocale and test_with_locale_parameter.
17935 2017-08-15  Bruno Haible  <bruno@clisp.org>
17937         extensions: Enable NetBSD specific extensions.
17938         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
17940 2017-08-14  Bruno Haible  <bruno@clisp.org>
17942         open, openat: Update doc about O_CLOEXEC.
17943         * doc/posix-functions/open.texi: More concrete list of platforms.
17944         * doc/posix-functions/openat.texi: Likewise.
17946 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17948         open: support O_CLOEXEC
17949         * NEWS, doc/posix-functions/open.texi:
17950         * doc/posix-functions/openat.texi: Document this.
17951         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
17952         (GNULIB_defined_O_CLOEXEC): New symbol.
17953         * lib/open.c: Include cloexec.h.
17954         (open): Support O_CLOEXEC.
17955         * lib/openat.c: Include cloexec.h.
17956         (rpl_openat): Support O_CLOEXEC.
17957         * lib/popen-safer.c: Do not include cloexec.h.
17958         (open_noinherit): Remove.
17959         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
17960         * lib/save-cwd.c: Do not include cloexec.h.
17961         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
17962         * m4/open-cloexec.m4: New file.
17963         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
17964         Replace 'open' if O_CLOEXEC is not present.
17965         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
17966         Replace 'openat' if O_CLOEXEC is not present.
17967         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
17968         * modules/open (Files): Add m4/open-cloexec.m4.
17969         (Depends-on): Depend on cloexec if replacing 'open'.
17970         * modules/openat (Files): Add m4/open-cloexec.m4.
17971         (Depends-on): Depend on cloexec if replacing openat.
17972         * modules/popen-safer (Depends-on): Remove cloexec.
17973         * modules/save-cwd (Depends-on): Remove cloexec, and add
17974         fd-safer-flag and 'open'.
17976 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
17978         reallocarray: minor fixes
17979         * doc/glibc-functions/reallocarray.texi: Update version numbers.
17980         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
17981         * modules/reallocarray (License): Change from GPL to LGPL.
17982         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
17983         Indent properly and don't use tabs.
17985 2017-08-13  Darshit Shah  <darnir@gnu.org>
17987         reallocarray: New module
17988         reallocarray is a new function in glibc 2.26 to safely allocate an array
17989         of memory locations with integer overflow protection.
17990         * MODULES.html.sh: Add reallocarray.
17991         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
17992         * lib/reallocarray.c: New file to implement module reallocarray.
17993         * lib/stdlib.in.h: Add function declarations for reallocarray.
17994         * m4/reallocarray.m4: New file.
17995         * m4/stdlib_h.m4: Declare reallocarray.
17996         * modules/reallocarray: New file.
17997         * modules/reallocarray-test: New file.
17998         * modules/stdlib: Coerce stdlib.h to export reallocarray.
17999         * tests/test-reallocarray.c: New test.
18001 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
18003         dirent-safer: fix cloexec race
18004         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
18005         (opendir_safer): Use F_DUPFD_CLOEXEC.
18006         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
18007         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
18008         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
18009         instead of dup_safer.
18011         fts: fix cloexec races
18012         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
18013         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
18014         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
18015         (fd_ring_check): Set cloexec flag on new file descriptors.
18016         (fts_build, fd_ring_check): While we’re at it, make sure the
18017         resulting file descriptor is not 0, 1, or 2, since that is easy.
18019 2017-08-11  Bruno Haible  <bruno@clisp.org>
18021         fts tests: Fix link error.
18022         Reported by Tom G. Christensen in
18023         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
18024         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
18026 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18028         fts: port recent changes to CentOS 6
18029         Problem reported by Tom G. Christensen in:
18030         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
18031         * lib/fts.c (fsword): New type.
18032         (struct dev_type, filesystem_type): Use it.
18033         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
18034         Also, check for f_type only if fstatfs and sys/vfs.h work.
18036 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18038         tempname: do not depend on secure_getenv
18039         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
18040         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
18041         * modules/tempname (Depends-on): Remove secure_getenv.
18043 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
18045         extensions: add _OPENBSD_SOURCE
18046         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
18048 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
18049             Bruno Haible  <bruno@clisp.org>
18051         manywarnings: Add support for C++.
18052         * build-aux/g++-warning.spec: New file.
18053         * m4/manywarnings-c++.m4: New file.
18054         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
18055         redirects to manywarnings-c++.m4.
18056         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
18058 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
18060         git-version-gen: another fix for tags with "-"
18061         * build-aux/git-version-gen: Improve fix for tags containing "-".
18062         Suggested by Markus Armbruster in:
18063         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
18065 2017-08-06  Bruno Haible  <bruno@clisp.org>
18067         warnings, manywarnings: Add support for multiple languages, not just C.
18068         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
18069         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
18070         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
18071         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
18072         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
18073         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
18074         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
18075         of the current language. If C++ is the current language, modify
18076         WARN_CXXFLAGS instead of WARN_CFLAGS.
18077         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
18078         gl_MANYWARN_ALL_GCC.
18079         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
18081 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
18083         git-version-gen: Fix for tags containing '-'
18085         Really old versions of git-describe (before v1.5.0, Feb 2007)
18086         don't have the number of commits in their long format output,
18087         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
18088         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
18089         recognizes both patterns, and normalizes the old format to the new one.
18091         Unfortunately, this normalization code gets confused when the tag
18092         contains '-'.  Reproducer:
18094             $ git-tag -m test v0.2-rc1
18095             $ build-aux/git-version-gen .tarball-version; echo
18096             build-aux/git-version-gen: WARNING: git rev-list failed
18097             UNKNOWN
18099         We take exact tag "v0.2-rc1" for the old format, extract the presumed
18100         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
18101         commits since tha tag.  Fails, because tag "v0.2" does not exist.
18103         * git-version-gen: We could perhaps drop support for versions from
18104         more than a decade ago.  But tightening the pattern match is easy
18105         enough, so do that.  Still breaks when you use version tags ending in
18106         something matching -g????, but you arguably get what you deserve then.
18108 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
18110         valgrind-tests: use ls, and cache
18111         * m4/valgrind-tests.m4: Test ls, not bash.
18112         Problem reported by Reuben Thomas.
18113         Also, cache the result so that it can be overridden.
18115 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
18117         manywarnings: port to 64-bit GCC builds of Emacs
18118         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
18119         object size rather than hardwiring 2147483647.  This is needed to
18120         build GNU Emacs, which has one conditional (and used
18121         only-in-theory) call to malloc with a literal greater than
18122         2147483647.
18124 2017-08-04  Bruno Haible  <bruno@clisp.org>
18126         Relax the license of some modules with no runtime code.
18127         * modules/std-gnu11 (License): Set to 'unlimited'.
18128         * modules/c99 (License): Likewise.
18129         Reported by Reuben Thomas <rrt@sc3d.org>.
18130         * modules/d-ino (License): Set to 'LGPL'.
18131         * modules/host-os (License): Likewise.
18132         * modules/longlong (License): Likewise.
18134 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
18136         renameat2: port to RHEL 7 + NFS
18137         * lib/renameat2.c (renameat2) [SYS_renameat2]:
18138         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
18139         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
18141 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
18143         renameat2: port to non-renameat platforms
18144         Problem reported for MSVC-2015 by Gisle Vanem in:
18145         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
18146         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
18147         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
18149 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18151         manywarnings: port to 32-bit GCC bug
18152         Problem reported by Pino Toscano in:
18153         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
18154         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
18155         not 2**63 - 1, to work around the following GCC bug:
18156         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
18158 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
18160         backupfile: new function to validate backup suffix
18161         * lib/backupfile.c (set_simple_backup_suffix): New function.
18162         (backupfile_internal): Use it.
18164         canonicalize: fix EOVERFLOW commentary
18165         Problem reported by Bruno Haible in:
18166         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
18167         * lib/canonicalize.c (canonicalize_filename_mode):
18168         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
18170         Don't interpret EOVERFLOW to mean nonexistence
18171         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
18172         may be EOVERFLOW; this is likely more useful than reporting the
18173         stat errno.
18174         * lib/glob.c (link_stat): Rename from link_exists2_p and
18175         return -1/0 instead of 0/1.  Caller changed.
18176         * lib/glob.c (link_exists_p):
18177         * lib/renameat2.c (rename_noreplace, renameat2):
18178         * lib/tempname.c (try_nocreate):
18179         If errno == EOVERFLOW then the directory entry exists, so do not
18180         act as if it does not exist.
18182         backup-rename: new module
18183         It is like backupfile, except it avoids some race conditions,
18184         and it does not output to stderr or exit.
18185         * MODULES.html.sh: Add backup-rename.
18186         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
18187         * modules/backup-rename: New files.
18188         * lib/backupfile.c: Turn this into an internals file, which
18189         contains code common to backupfile and backup_rename.  Include
18190         backupfile-internal.h instead of backupfile.h.  Do not include
18191         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
18192         renameat2.h and fcntl.h.
18193         (BACKUP_NOMEM): New constant.
18194         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
18195         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
18196         (backupfile_internal): Rename from find_backup_file_name.
18197         Support new arg RENAME.
18198         (backup_args, backup_types, get_version, xget_version):
18199         Move to lib/backup-find.c.
18200         * lib/backupfile.h (backup_file_rename): New decl.
18201         * modules/backupfile (Files): Add lib/backup-internal.h,
18202         lib/backup-find.c.
18203         (Depends-on): Add dirfd, fcntl, renameat2.
18204         (lib_SOURCES): Add backup-find.c.
18206         renameat2: port better to older Solaris
18207         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
18208         Add goto to use a label, to silence picky compilers.
18210         fts-tests: port to gcc -Wwrite-strings
18211         * tests/test-fts.c (base, base_d): New static vars.
18212         (argv, remove_tree, main): Use them.
18214 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
18216         relocatable-lib{,-lgpl}: improve documentation
18217         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
18218         Various other updates.
18220 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
18221             Bruno Haible  <bruno@clisp.org>
18223         relocatable-lib{,-lgpl}: add Valgrind suppressions
18224         * lib/relocatable.valgrind: New file.
18225         * modules/relocatable-lib (Files): Add relocatable.valgrind.
18226         * modules/relocatable-lib-lgpl: Likewise.
18228 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
18230         relocatable: Make the license on the sources the GPL.
18231         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
18232         LGPL, which was a special case so that the relocatable source files
18233         could be used without gnulib-tool, to GPL. They can still be used under
18234         the LGPL, using the --lgpl option to gnulib-tool.
18236 2017-07-30  Bruno Haible  <bruno@clisp.org>
18238         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
18239         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
18240         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
18241         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
18242         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
18244 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
18246         faccessat: document AT_SYMLINK_NOFOLLOW issue
18247         * doc/posix-functions/faccessat.texi: Modernize platform list.
18248         Document AT_SYMLINK_NOFOLLOW limitation.
18250         renameat2: port to Solaris 10
18251         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
18252         with AT_SYMLINK_NOFOLLOW (which is not portable).
18253         (renameat): Undef before using, to avoid endless recursion when
18254         the replacement renameat calls renameat2 which calls the
18255         replacement renameat.
18256         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
18257         * modules/renameat2 (Depends-on): Remove faccessat.
18258         * modules/renameat-tests (test_renameat_LDADD):
18259         * modules/renameat2-tests (test_renameat2_LDADD):
18260         Remove $(LIB_EACCESS).
18262         renameat2: new module
18263         Although the Linux syscall renameat2 is not in glibc (yet?), it is
18264         useful to have access to its RENAME_NOREPLACE flag.
18265         * MODULES.html.sh (func_all_modules): Add renameat2.
18266         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
18267         * modules/renameat2-tests, tests/test-renameat2.c: New files.
18268         * lib/renameat.c (renameat): Move most of the implementation
18269         to renameat2, and just call renameat2.
18270         * modules/renameat (Files): Remove lib/at-func2.c.
18271         (Depends-on): Depend only on renameat2.
18272         (Include): Remove <fcntl.h>.
18273         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
18274         since renameat (via renameat2) might use faccessat.
18276 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
18278         vc-list-files: Adjust the script to support git worktrees
18279         * build-aux/vc-list-files: Require existence, not directory.
18281 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18283         doc: bring MODULES.html.sh up to date
18284         Somehow a few months ago we stopped updating MODULES.html.sh.
18285         I don’t recall explicitly deciding this, so I updated it now.
18286         Alternatively I suppose we could remove it.
18287         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
18288         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
18289         truncate, utime, utime-h, windows-stat-inodes,
18290         windows-stat-override, windows-stat-timespec, year2038.  Sort.
18292 2017-07-26  Jim Meyering  <meyering@fb.com>
18294         fprintftime: fix build-break caused by recent renaming
18295         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
18296         "strftime.c".
18297         * modules/fprintftime: Depend directly on nstrftime.
18299 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18301         regex: work with GCC7's -Werror=implicit-fallthrough=
18302         * lib/regex_internal.h (FALLTHROUGH): New macro.
18303         * lib/regcomp.c (peek_token_bracket, parse_expression):
18304         * lib/regexec.c (check_node_accept): Use it.
18306 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
18308         fts: simplify fts_build
18309         * lib/fts.c (fts_build): Simplify, and be lazier about
18310         calling leaf_optimization.
18312         fts: three levels of leaf optimization
18313         * lib/fts.c (enum leaf_optimization): New type with three values.
18314         (S_MAGIC_AFS): New macro.  Sort them.
18315         (leaf_optimization): Rename from leaf_optimization_applies, and
18316         return enum leaf_optimization instead of bool.  All uses changed.
18317         Add cases for unknown type and for AFS.
18318         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
18320         fts: cache dirent_inode_sort_may_be_useful too
18321         * lib/fts.c (struct dev_type): New struct.
18322         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
18323         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
18324         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
18325         Now takes FTSENT const *, not int.  All uses changed.  Use
18326         filesystem_type to cache.
18327         (link_count_optimize_ok): Remove.  Caller changed to use
18328         leaf_optimization_applies, which now uses shared cache.
18330         fts: introduce MIN_DIR_NLINK
18331         * lib/fts.c (MIN_DIR_NLINK): New constant.
18332         Use it instead of 2, whenever we are talking about link counts.
18334         fts: nlink_t signedness fixups
18335         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
18336         so that root need not be a special case later.
18337         (fts_read): Remove now-redundant test for fts_level.
18338         Do not assume that nlink_t is signed.
18339         (fts_build): Remove useless decrement of nlinks.
18340         (fts_stat): Avoid unlikely signed integer overflow later, if
18341         nlink_t is signed.
18343         fts-tests: new module
18344         * modules/fts-tests, tests/test-fts.c: New files.
18346 2017-07-23  Bruno Haible  <bruno@clisp.org>
18348         Rename module 'strftime' to 'nstrftime'.
18349         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
18350         * lib/nstrftime.c: Renamed from lib/strftime.c.
18351         * modules/nstrftime: Renamed from modules/strftime.
18352         (Files, Makefile.am): Update.
18353         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
18354         Fix comment.
18355         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
18356         (Files, Makefile.am): Update.
18357         * modules/strftime: New file, an obsolete indirection.
18358         * doc/posix-functions/strftime.texi: Update reference.
18359         * config/srclist.txt: Update info.
18360         * NEWS: Mention the change.
18362 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
18364         malloca: Silence a warning from clang's memory sanitizer.
18365         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
18366         (freea): Use it.
18368 2017-07-18  Bruno Haible  <bruno@clisp.org>
18370         host-cpu-c-abi: Fix detection of MIPS ABI.
18371         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
18372         ABI, not the CPU instruction set.
18374 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18376         explicit_bzero: new module
18377         The explicit_bzero function has been added to glibc.
18378         This module is intended to supports its use in GNU programs.
18379         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
18380         * m4/explicit_bzero.m4, modules/explicit_bzero:
18381         New files.
18382         * doc/gnulib.texi (Glibc string.h): Link to new doc.
18383         * lib/string.in.h (explicit_bzero): Declare.
18384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
18385         * modules/string (string.h): Substitute its vars.
18387 2017-07-16  Bruno Haible  <bruno@clisp.org>
18389         threadlib: Support static linking.
18390         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
18391         set gl_cv_have_weak to 'no'.
18393 2017-07-16  Bruno Haible  <bruno@clisp.org>
18395         unicase/locale-language: Fix link dependencies.
18396         * modules/unicase/locale-language (Link): New section.
18397         * modules/unicase/locale-language-tests (Makefile.am): Link
18398         test-locale-language program with $(LIBTHREAD).
18400 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18402         sys_socket: Add support for OpenVMS.
18403         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
18404         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
18406 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18408         sys_resource: Add support for OpenVMS.
18409         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
18410         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
18412 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18413             Bruno Haible  <bruno@clisp.org>
18415         math: Add support for OpenVMS.
18416         * lib/math.in.h [__VMS]: Include <fp.h>.
18417         * doc/posix-headers/math.texi: Mention OpenVMS issues.
18419 2017-07-15  Bruno Haible  <bruno@clisp.org>
18421         getdtablesize: Add minimal support for OpenVMS.
18422         Reported by John E. Malmberg <wb8tyw@qsl.net>.
18423         * modules/getdtablesize (Description): Fix.
18424         * lib/getdtablesize.c: Fix comment.
18425         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
18426         getdtablesize() function, even though the test fails.
18427         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
18428         limitation on OpenVMS.
18430 2017-07-13  Bruno Haible  <bruno@clisp.org>
18432         Revisit cross-compilation guesses.
18433         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
18435 2017-07-13  Bruno Haible  <bruno@clisp.org>
18437         Improve cross-compilation guesses for native Windows.
18438         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
18439         Windows.
18440         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
18441         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
18442         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18443         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
18444         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
18445         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
18446         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
18447         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
18448         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18449         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
18450         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18451         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
18452         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
18453         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
18454         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
18455         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
18456         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
18457         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18458         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18459         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
18460         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
18461         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
18462         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
18463         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
18464         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
18465         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
18466         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
18467         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
18468         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18469         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
18470         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18471         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
18472         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
18473         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
18474         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
18475         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
18476         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
18477         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18478         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
18479         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18480         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18481         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18482         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
18483         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
18484         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
18485         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
18486         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
18487         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
18488         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
18489         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
18490         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
18491         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
18492         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
18493         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
18494         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
18495         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
18496         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
18497         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18498         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
18499         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
18500         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18501         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
18502         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
18503         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
18504         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
18505         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18506         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
18507         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18508         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
18509         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
18510         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
18511         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
18512         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18513         * m4/regex.m4 (gl_REGEX): Likewise.
18514         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
18515         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
18516         gl_FUNC_REMAINDERF_WORKS): Likewise.
18517         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
18518         gl_FUNC_REMAINDERL_WORKS): Likewise.
18519         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18520         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18521         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18522         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18523         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18524         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
18525         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
18526         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18527         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
18528         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18529         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
18530         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
18531         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18532         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18533         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18534         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
18535         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18536         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18537         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18538         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18539         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
18540         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18541         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18542         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
18543         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18544         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18545         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18546         Likewise.
18547         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18548         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
18549         Windows. Enable also on Autoconf 2.70.
18550         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18551         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18552         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
18553         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
18554         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
18555         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
18556         for native Windows.
18557         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
18558         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
18560 2017-07-13  Bruno Haible  <bruno@clisp.org>
18562         Improve cross-compilation guesses for native Windows.
18563         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
18564         Windows.
18565         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
18566         memchr.m4.
18567         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18569 2017-07-13  Bruno Haible  <bruno@clisp.org>
18571         Improve cross-compilation guesses for native Windows.
18572         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
18573         native Windows.
18574         (gl_FUNC_FFLUSH): Update accordingly.
18575         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
18576         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
18578 2017-07-11  Bruno Haible  <bruno@clisp.org>
18580         More systematic m4 quoting and indentation.
18581         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
18582         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18583         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
18584         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18585         * m4/host-os.m4 (gl_HOST_OS): Likewise.
18586         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
18587         gl_WINSIZE_IN_PTEM): Likewise.
18588         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
18589         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
18590         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18591         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
18592         Correct indentation.
18593         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
18594         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18595         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
18596         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18597         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18598         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18600 2017-07-10  Bruno Haible  <bruno@clisp.org>
18602         round, roundf: Avoid compiler warning in configure test.
18603         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
18604         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18606 2017-07-10  Bruno Haible  <bruno@clisp.org>
18608         getlogin tests: Avoid #ifdefs when sharing code between modules.
18609         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
18610         * modules/getlogin-tests (Files): Likewise. Remove
18611         tests/test-getlogin_r.c.
18612         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
18613         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
18614         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
18615         getlogin().
18617 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
18619         getlogin: don’t assume one name per uid
18620         Problem reported by Wolfgang F. Muthmann (Bug#27640).
18621         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
18622         (ttyname): Remove test.
18623         * modules/getlogin_r-tests (ttyname): Remove test.
18624         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
18625         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
18626         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
18627         getlogin rather than getlogin_r.  This avoids code duplication.
18628         (main): Use isatty and fstat rather than ttyname and stat.
18629         Use getpwnam instead of getpwuid, to be portable to test platforms
18630         that have multiple login names for the same uid.
18632 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
18633             Bruno Haible  <bruno@clisp.org>
18635         glob: Fix more memory leaks.
18636         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
18637         returning.
18638         Reported by Tim Rühsen.
18640 2017-07-10  Bruno Haible  <bruno@clisp.org>
18642         Make sure $host and $host_os are defined when used.
18643         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
18644         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
18645         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
18646         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18647         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18648         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
18649         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18650         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
18651         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18652         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18653         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
18654         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
18655         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18656         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
18657         m4_ifdef block.
18659 2017-07-09  Bruno Haible  <bruno@clisp.org>
18661         *printf: Fix cross-compilation guess for Solaris.
18662         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
18663         2010-12-21.
18665 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18666             Bruno Haible  <bruno@clisp.org>
18668         vasnprintf: port to macOS 10.13
18669         Problem reported by comex in:
18670         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
18671         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
18673 2017-07-06  Bruno Haible  <bruno@clisp.org>
18675         imaxdiv tests: Fix logic.
18676         * tests/test-imaxdiv.c (main): Use == instead of =.
18677         Reported by Coverity.
18679 2017-07-06  Bruno Haible  <bruno@clisp.org>
18681         uninorm/filter: Fix use-after-free bug.
18682         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
18683         sortbuf == filter->sortbuf invariant.
18684         Reported by Coverity.
18686 2017-07-06  Bruno Haible  <bruno@clisp.org>
18688         glob: Fix more memory leaks.
18689         * lib/glob.c (glob): Free dirname before returning.
18690         Reported by Coverity and Tim Rühsen.
18692 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18694         parse-datetime: fix uninit var bug
18695         Reported by Bruno Haible in:
18696         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
18697         * lib/parse-datetime.y (parse_datetime2): Do not use
18698         uninitialized.
18700 2017-07-05  Bruno Haible  <bruno@clisp.org>
18702         doc: Update for MSVC 14.
18703         * doc/posix-headers/*.texi: Add info about MSVC 14.
18704         * doc/posix-functions/*.texi: Likewise.
18705         * doc/pastposix-functions/*.texi: Likewise.
18706         * doc/glibc-headers/*.texi: Likewise.
18707         * doc/glibc-functions/*.texi: Likewise.
18709 2017-07-05  Bruno Haible  <bruno@clisp.org>
18711         sched: Fix build failure on native Windows (regression from 2017-06-19).
18712         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
18714 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
18716         stdioext: Port to OpenVMS.
18717         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
18718         * lib/fpending.c (fpending): Remove non-working VMS specific code.
18719         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
18720         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
18721         * lib/fpurge.c (fpurge): Likewise.
18722         * lib/freadable.c (freadable): Likewise.
18723         * lib/freadahead.c (freadahead): Likewise.
18724         * lib/freading.c (freading): Likewise.
18725         * lib/freadptr.c (freadptr): Likewise.
18726         * lib/freadseek.c (freadseek): Likewise.
18727         * lib/fseeko.c (fseeko): Likewise.
18728         * lib/fseterr.c (fseterr): Likewise.
18729         * lib/fwritable.c (fwriteable): Likewise.
18730         * lib/fwriting.c (fwriting): Likewise.
18732 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
18734         glob: Declare variables at the very start of their scope.
18735         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
18736         its separate scope, so the functions will compile on Haiku.
18738 2017-07-01  Bruno Haible  <bruno@clisp.org>
18740         logbl: Work around a glibc bug on PowerPC64LE.
18741         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
18742         numbers.
18743         * doc/posix-functions/logbl.texi: Update.
18745 2017-06-29  Bruno Haible  <bruno@clisp.org>
18747         stat, fstat: Compile stat-w32.c only on platforms that need it.
18748         Suggested by Paul Eggert.
18749         * modules/stat (configure.ac): Request stat-w32.o only on native
18750         Windows.
18751         * modules/fstat (configure.ac): Likewise.
18753 2017-06-25  Bruno Haible  <bruno@clisp.org>
18755         stat: Improve last change.
18756         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
18758 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
18760         stat: port to xlc 12.01
18761         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
18762         12.01 complains "Compilation unit is empty."
18764 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18766         xalloc-oversized: port to icc
18767         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
18768         __builtin_mul_overflow if ICC is defined, as this results in
18769         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
18770         20170213.
18772 2017-06-19  Bruno Haible  <bruno@clisp.org>
18774         classpath: Avoid including config.h twice, as it produces warnings.
18775         Reported by John E. Malmberg <wb8tyw@gmail.com>.
18776         * lib/classpath.h: Conditionalize the include of config.h.
18778 2017-06-19  Bruno Haible  <bruno@clisp.org>
18779             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
18781         sched: Fix compilation failure on OpenVMS.
18782         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
18783         test whether <pthread.h> exists and defines struct sched_param.
18784         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
18786 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18788         diffseq: port to GCC 7 with --enable-gcc-warnings
18789         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
18790         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
18791         not complain about big_snake being defined but not used.
18793 2017-06-15  Bruno Haible  <bruno@clisp.org>
18795         gettext-h: Update theoretical condition for use of variable size arrays.
18796         Reported by Paul Eggert.
18797         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
18798         to include the theoretical condition for availability of variable size
18799         arrays, if we could trust the value of __STDC_VERSION__.
18801 2017-06-12  Bruno Haible  <bruno@clisp.org>
18803         Relicense some modules under LGPLv2+.
18804         Daiki Ueno's approval is in
18805         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
18806         * modules/uniwidth/base (License): Change to LGPLv2+.
18807         * modules/uniwidth/width (License): Likewise.
18809 2017-06-11  Bruno Haible  <bruno@clisp.org>
18811         localename: Fix test failure on DragonFly BSD.
18812         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
18813         like FreeBSD.
18815 2017-06-11  Bruno Haible  <bruno@clisp.org>
18817         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
18818         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
18819         * lib/float.in.h: Likewise.
18820         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
18822 2017-06-11  Bruno Haible  <bruno@clisp.org>
18824         gnulib-tool: Clean up after autotools.
18825         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
18826         useless directory left over by the Autotools.
18828 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
18830         getopt-posix: port to glibc 2.25.90
18831         Problem reported by Daniel P. Berrange in:
18832         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
18833         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
18834         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
18835         #undef if __GETOPT_PREFIX is defined.
18837 2017-06-11  Bruno Haible  <bruno@clisp.org>
18839         strtod-obsolete: Fix license.
18840         * modules/strtod-obsolete (License): Change to LGPL.
18842 2017-06-10  Jim Meyering  <meyering@fb.com>
18844         maint: update to work with GCC7's -Werror=implicit-fallthrough=
18845         * lib/savewd.c (FALLTHROUGH): Define.
18846         (savewd_save, savewd_restore): Use this, rather than a comment,
18847         whenever one switch case falls through into the next.
18849 2017-06-08  Bruno Haible  <bruno@clisp.org>
18851         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
18852         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
18853         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
18854         case.
18856 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
18858         doc: remove robots, add prereqs
18859         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
18860         builds.  Simon's robot site does not seem to be up, so remove
18861         mentions of it for now.
18863 2017-06-08  Bruno Haible  <bruno@clisp.org>
18865         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
18866         * gnulib-tool (func_symlink_target): New function, extracted from
18867         func_symlink.
18868         (func_symlink, func_symlink_if_changed): Use it.
18870 2017-06-08  Bruno Haible  <bruno@clisp.org>
18872         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
18873         * gnulib-tool (func_ln_s): Determine cp_src correctly.
18875 2017-06-07  Bruno Haible  <bruno@clisp.org>
18877         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
18878         Reported by John E. Malmberg <wb8tyw@gmail.com> in
18879         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
18880         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
18881         override, pass 2 arguments to getcwd, not 3.
18883 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
18885         same-inode: port better to VMS 8.2 and later
18886         Problem reported by John E. Malmberg in:
18887         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
18888         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
18889         Use the usual POSIX definition.
18890         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
18892 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
18894         error: fix POSIX violation for va_end
18895         Problem reported by Bruno Haible in:
18896         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
18897         * lib/error.c (error_tail): Do not call va_end here.
18898         (error, error_at_line): Call it here instead.
18900 2017-05-28  Bruno Haible  <bruno@clisp.org>
18902         c-strtod: Make it usable in C++ mode.
18903         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
18905 2017-05-25  Jim Meyering  <meyering@fb.com>
18907         quotearg: fix compilation failure due to FALLTHROUGH misuse
18908         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
18909         macro back to /* fall through */ comment.  The macro can apply only
18910         to a following case statement.  Reported by Assaf Gordon.
18912 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
18914         intprops: port to recent icc
18915         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
18916         but does not support __builtin_add_overflow etc.
18917         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
18918         Define to 0.
18920 2017-05-23  Karl Berry  <karl@freefriends.org>
18922         * config/srclist.txt (iconv.m4): sync broken, comment out
18923         until (hopefully) the next gettext release.
18925 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
18927         Remove repeated words in comments.
18929 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
18931         fallthrough: reinstate a FALLTHROUGH instance in quotearg
18932         quotearg.c: Reinstate this instance which is significant
18933         when the if branch is not taken.
18935 2017-05-21  Bruno Haible  <bruno@clisp.org>
18937         gnulib-tool: Add options to create hard links.
18938         * gnulib-tool (func_usage): Document options --hardlink,
18939         --local-hardlink, --more-hardlinks.
18940         (func_symlink): Renamed from func_ln.
18941         (func_symlink_if_changed): Renamed from func_ln_if_changed.
18942         (func_hardlink): New function.
18943         (copymode, lcopymode): New variables.
18944         (symbolic, lsymbolic): Remove variables.
18945         (Options): Implement options --hardlink, --local-hardlink,
18946         --more-hardlinks.
18947         (func_should_link): Renamed from func_should_symlink. Set copyaction.
18948         (func_add_file, func_update_file): Update invocation of
18949         func_should_link. Invoke func_hardlink when appropriate.
18950         (func_import): Update comments.
18951         (func_create_testdir): Update invocation of func_should_link. Invoke
18952         func_hardlink when appropriate.
18953         Finally, invoke 'git update-index --refresh' to mitigate the effects of
18954         the hard links on git.
18956 2017-05-20  Bruno Haible  <bruno@clisp.org>
18958         argp: Simplify bit manipulation.
18959         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
18960         on a signed integer type.
18962 2017-05-20  Bruno Haible  <bruno@clisp.org>
18964         Avoid wrong configure results with gcc -fsanitize=address.
18965         This completes the work done on 2016-02-06 on this topic.
18966         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
18967         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18968         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18969         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18970         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
18971         returning.
18972         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
18973         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
18974         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18975         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18976         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
18977         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
18978         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
18979         free allocated memory before returning.
18980         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18981         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
18982         objects before returning.
18983         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
18984         returning.
18986 2017-05-20  Bruno Haible  <bruno@clisp.org>
18988         gnulib-tool: Don't create hard links between gnulib and its testdirs.
18989         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
18991 2017-05-20  Bruno Haible  <bruno@clisp.org>
18993         argp, tsearch tests: Fix file list.
18994         * modules/argp-tests (Files): Add tests/macros.h.
18995         * modules/tsearch-tests (Files): Likewise.
18997 2017-05-20  Bruno Haible  <bruno@clisp.org>
18999         getopt-posix tests: Remove redundant include.
19000         * tests/test-getopt.h: Don't include "macros.h". It's already included
19001         by tests/test-getopt-main.h.
19003 2017-05-19  Jim Meyering  <meyering@fb.com>
19005         dfa: two small simplifications
19006         * lib/dfa.c (build_state): Avoid repeating longer expressions.
19008 2017-05-18  Jim Meyering  <meyering@fb.com>
19010         fallthrough: update for GCC 7/8
19011         * lib/quotearg.c (FALLTHROUGH): New macro.
19012         Use it whenever one switch case falls through into the next,
19013         replacing "/* Fall through */" comments.  This exposed one
19014         instance of an unwarranted "fall through" comment: unwarranted
19015         because it preceded a "goto" label not a case statement.
19016         * lib/freopen-safer.c (freopen_safer): Likewise.
19017         * lib/fts.c (leaf_optimization_applies): Likewise.
19018         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
19019         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
19020         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
19021         tests/macros.h for the definition.
19022         * tests/test-argp.c (group1_parser): Likewise.
19023         * tests/test-getopt.h (getopt_loop): Likewise.
19025 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19027         argp: fix shift bug
19028         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
19029         behavior on shift overflow, caught by gcc -fsanitize=undefined.
19031         argp: fix pointer-subtraction bug
19032         * lib/argp-help.c (hol_append): Don’t subtract pointers to
19033         different arrays, as this can run afoul of -fcheck-pointer-bounds.
19034         See the thread containing Bruno Haible’s report in:
19035         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
19037 2017-05-19  Bruno Haible  <bruno@clisp.org>
19039         printf-posix tests: Avoid test failure with "gcc --coverage".
19040         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19041         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
19042         than 5000000.
19043         * tests/test-fprintf-posix2.c (main): Likewise.
19045 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19047         closeout: don’t close stderr when sanitizing
19048         * NEWS: Document this.
19049         * lib/closeout.c (__has_feature): New macro, if not already defined.
19050         (SANITIZE_ADDRESS): New constant.
19051         (close_stdout): Don’t close stderr if sanitizing addresses.
19053 2017-05-19  Bruno Haible  <bruno@clisp.org>
19055         get-rusage-data tests: Avoid failure on Linux/glibc.
19056         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
19057         on glibc systems.
19059 2017-05-18  Bruno Haible  <bruno@clisp.org>
19061         localename: Include necessary header files on Cygwin.
19062         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
19063         where NL_LOCALE_NAME is defined.
19065 2017-05-18  Bruno Haible  <bruno@clisp.org>
19067         gettext: Update macros from gettext git.
19068         * m4/intldir.m4: Require Autoconf >= 2.60.
19069         * m4/progtest.m4: Fix typos in copyright notice.
19071 2017-05-18  Bruno Haible  <bruno@clisp.org>
19073         copy-file tests: Fix link error (regression from 2017-05-01).
19074         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19075         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
19076         $(LIB_CLOCK_GETTIME).
19078 2017-05-18  Bruno Haible  <bruno@clisp.org>
19080         unicase/special-casing: Fix incompatibility with gperf-3.0.4
19081         (regression from 2017-02-13).
19082         * lib/unicase/special-casing.in.h: Renamed from
19083         lib/unicase/special-casing.h.
19084         * modules/unicase/special-casing (Files): Add
19085         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
19086         (Makefile.am): Add rule for generating unicase/special-casing.h.
19087         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
19088         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
19089         not "special-casing.h".
19090         * lib/unicase/u*.c: Likewise.
19092 2017-05-17  Bruno Haible  <bruno@clisp.org>
19094         README: Don't ask people to read a TeXinfo file.
19095         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19096         * README: Tell people how to read the HTML formatted manual.
19098 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
19100         parse-datetime: Fix memleak
19101         * lib/parse-datetime.y (parse_datetime2): Cleanup on
19102         localtime_rz() failure.
19104 2017-05-16  Bruno Haible  <bruno@clisp.org>
19106         javacomp: Fix handle leak.
19107         Found by Coverity.
19108         * lib/javacomp.c (get_classfile_version): Close fd before returning.
19110 2017-05-16  Bruno Haible  <bruno@clisp.org>
19112         relocate: Make it easier to reclaim allocated memory.
19113         * lib/relocatable.h (relocate2): New declaration/macro.
19114         * lib/relocatable.c (relocate2): New function.
19115         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
19116         relocate2 function.
19117         * lib/localcharset.c (relocate2): Define fallback.
19118         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
19119         allocated memory.
19120         * lib/javaversion.c (relocate2): Define fallback.
19121         (javaexec_version): Invoke relocate2 instead of relocate. Free the
19122         allocated memory.
19124 2017-05-16  Bruno Haible  <bruno@clisp.org>
19126         relocate: Simplify EMX specific code.
19127         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
19128         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
19130 2017-05-16  Bruno Haible  <bruno@clisp.org>
19132         sigpipe tests: Fix file list.
19133         * modules/sigpipe-tests (Files): Add tests/macros.h.
19135 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19137         manywarnings: update for GCC 7
19138         * build-aux/gcc-warning.spec:
19139         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19140         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
19141         requires a non-comment fallthrough attribute.  This is a bit
19142         cleaner than the comment versions.
19143         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
19144         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
19145         Use it whenever one switch case falls through into the next.
19146         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
19147         Use FALLTHROUGH macro.
19149 2017-05-15  Bruno Haible  <bruno@clisp.org>
19151         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
19152         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
19153         @ALLOCA@, not @LTALLOCA@.
19155 2017-05-15  Bruno Haible  <bruno@clisp.org>
19157         sys_select: Avoid "was expanded before it was required" warning.
19158         * modules/sys_select (configure.ac): Require, not invoke,
19159         gl_HEADER_SYS_SELECT.
19161 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19163         gnulib-tool: improve GNU Make debugging
19164         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
19165         Report autoconf diagnostics when it fails, in the output makefile.
19167 2017-05-14  Bruno Haible  <bruno@clisp.org>
19169         stat-time tests: Improve comment.
19170         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
19172 2017-05-14  Bruno Haible  <bruno@clisp.org>
19174         same-inode: Adapt for windows-stat-inodes.
19175         * lib/same-inode.h: Include <sys/types.h>.
19176         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
19177         * modules/same-inode (Depends-on): Add sys_types.
19179 2017-05-14  Bruno Haible  <bruno@clisp.org>
19181         windows-stat-inodes: New module.
19182         * m4/windows-stat-inodes.m4: New file.
19183         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
19184         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
19185         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
19186         (_GL_WINDOWS_STAT_INODES): New macro.
19187         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
19188         (GetFileInformationByHandleExFunc): New variable.
19189         (initialize): Initialize it.
19190         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
19191         st_ino appropriately.
19192         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
19193         a fallback, because it does not provide st_dev and st_ino values.
19194         * modules/fstat (Depends-on): Add 'verify'.
19195         * modules/windows-stat-inodes: New file.
19196         * doc/windows-stat-inodes.texi: New file.
19197         * doc/gnulib.texi: Include it.
19198         * doc/posix-headers/sys_stat.texi: Mention the new module.
19200 2017-05-14  Bruno Haible  <bruno@clisp.org>
19202         stat-time tests: Workaround for native Windows.
19203         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
19204         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
19205         New variables.
19206         (initialize_filenames): New function.
19207         (main): Invoke it.
19208         (cleanup, prepare_test): Update.
19210 2017-05-14  Bruno Haible  <bruno@clisp.org>
19212         stat-time: Adapt for windows-stat-timespec.
19213         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
19214         entire st_ctim field.
19216 2017-05-13  Jim Meyering  <meyering@fb.com>
19218         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
19219         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
19220         file that uses the assume macro, claiming that verify.h is unused.
19222 2017-05-13  Bruno Haible  <bruno@clisp.org>
19224         Use symbolic values for _WIN32_WINNT.
19225         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
19226         * lib/sethostname.c (_WIN32_WINNT): Likewise.
19228 2017-05-13  Bruno Haible  <bruno@clisp.org>
19230         year2038: New module.
19231         * m4/year2038.m4: New file.
19232         * modules/year2038: New file.
19233         * doc/year2038.texi: New file.
19234         * doc/gnulib.texi: Include it.
19236 2017-05-13  Bruno Haible  <bruno@clisp.org>
19238         largefile: Simplify.
19239         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
19240         of _GL_WINDOWS_64_BIT_ST_SIZE.
19242 2017-05-13  Bruno Haible  <bruno@clisp.org>
19244         largefile: Improve and document.
19245         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
19246         the mingw headers already define 'stat' appropriately.
19247         * modules/largefile (Description): Clarify.
19248         * doc/largefile.texi: New file.
19249         * doc/gnulib.texi: Include it.
19250         * doc/posix-headers/sys_types.texi: Update.
19252 2017-05-13  Bruno Haible  <bruno@clisp.org>
19254         truncate: New module.
19255         * lib/unistd.in.h (truncate): New declaration.
19256         * lib/truncate.c: New file.
19257         * m4/truncate.m4: New file.
19258         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
19259         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
19260         REPLACE_TRUNCATE.
19261         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
19262         HAVE_TRUNCATE, REPLACE_TRUNCATE.
19263         * modules/truncate: New file.
19264         * tests/test-unistd-c++.cc (truncate): Test signature.
19265         * doc/posix-functions/truncate.texi: Mention the new module.
19267         * tests/test-truncate.c: New file.
19268         * modules/truncate-tests: New file.
19270 2017-05-13  Bruno Haible  <bruno@clisp.org>
19272         windows-stat-timespec: New module.
19273         * modules/windows-stat-timespec: New file.
19274         * m4/windows-stat-timespec.m4: New file.
19275         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
19276         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
19277         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
19278         fields st_atim, st_mtim, st_ctim.
19279         (st_atime, st_mtime, st_ctime): Define as macros.
19280         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
19281         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
19282         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
19283         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
19284         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
19285         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
19286         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
19287         FILETIME to 'struct timespec', not 'time_t'.
19288         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
19289         FILETIME to 'struct timespec', not 'time_t'.
19290         * lib/stat-time.h (STAT_TIMESPEC): Define also if
19291         _GL_WINDOWS_STAT_TIMESPEC.
19292         * doc/windows-stat-timespec.texi: New file.
19293         * doc/gnulib.texi: Include it.
19295 2017-05-13  Bruno Haible  <bruno@clisp.org>
19297         windows-stat-override: New module.
19298         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
19299         definition. Define GNULIB_defined_struct_stat.
19300         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
19301         link error if this symbol is used and the corresponding module is not
19302         in use.
19303         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
19304         GNULIB_OVERRIDES_STRUCT_STAT.
19305         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
19306         GNULIB_OVERRIDES_STRUCT_STAT.
19307         * modules/sys_stat (Makefile.am): Substitute
19308         GNULIB_OVERRIDES_STRUCT_STAT.
19309         * modules/windows-stat-override: New file.
19311 2017-05-13  Bruno Haible  <bruno@clisp.org>
19313         fstat: Fix module dependency conditions.
19314         * modules/fstat (Depends-on): Fix typo.
19316 2017-05-13  Bruno Haible  <bruno@clisp.org>
19318         stat, fstat: Complete removal of old native Windows code.
19319         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
19320         * lib/fstat.c: Likewise.
19321         * lib/stat-w32.c: Likewise.
19323 2017-05-13  Bruno Haible  <bruno@clisp.org>
19325         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
19326         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
19328 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19330         getopt-posix: port to mingw
19331         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
19332         Problem reported by Daniel P. Berrage in:
19333         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
19335 2017-05-11  Bruno Haible  <bruno@clisp.org>
19337         gettimeofday: Increase precision on mingw.
19338         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
19339         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
19340         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
19341         GetSystemTimePreciseAsFileTime based implementation always.
19342         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
19343         mingw.
19345 2017-05-11  Bruno Haible  <bruno@clisp.org>
19347         poll: Fix confusion between SOCKETs and FDs on native Windows.
19348         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
19349         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
19351 2017-05-11  Bruno Haible  <bruno@clisp.org>
19353         doc: Clarify doc about socket functions on native Windows.
19354         This reworks doc that was added on 2008-09-29.
19355         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
19356         clearer wording.
19357         * doc/posix-functions/accept.texi: Use clearer wording.
19358         * doc/posix-functions/bind.texi: Likewise.
19359         * doc/posix-functions/connect.texi: Likewise.
19360         * doc/posix-functions/getpeername.texi: Likewise.
19361         * doc/posix-functions/getsockname.texi: Likewise.
19362         * doc/posix-functions/getsockopt.texi: Likewise.
19363         * doc/posix-functions/ioctl.texi: Likewise.
19364         * doc/posix-functions/listen.texi: Likewise.
19365         * doc/posix-functions/recv.texi: Likewise.
19366         * doc/posix-functions/recvfrom.texi: Likewise.
19367         * doc/posix-functions/send.texi: Likewise.
19368         * doc/posix-functions/sendto.texi: Likewise.
19369         * doc/posix-functions/setsockopt.texi: Likewise.
19370         * doc/posix-functions/shutdown.texi: Likewise.
19371         * doc/posix-functions/socket.texi: Likewise.
19373 2017-05-10  Bruno Haible  <bruno@clisp.org>
19375         poll: Fix link error on native Windows.
19376         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
19378 2017-05-10  Bruno Haible  <bruno@clisp.org>
19380         time: Fix missing initialization of HAVE_TIMEZONE_T.
19381         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
19382         here...
19383         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
19384         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
19385         gl_HEADER_SYS_TIME_H_DEFAULTS.
19386         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
19387         (configure.ac): Remove useless quoting.
19389 2017-05-10  Bruno Haible  <bruno@clisp.org>
19391         Implement a way to opt out from MSVC support, part 2.
19392         * modules/msvc-inval (Include): Document recommended idiom.
19393         * modules/msvc-nothrow (Include): Likewise.
19395         Implement a way to opt out from MSVC support.
19396         This is useful for Emacs.
19397         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
19398         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
19399         * lib/error.c: Likewise.
19400         * lib/fcntl.c: Likewise.
19401         * lib/flock.c: Likewise.
19402         * lib/fstat.c: Likewise.
19403         * lib/fsync.c: Likewise.
19404         * lib/ioctl.c: Likewise.
19405         * lib/isapipe.c: Likewise.
19406         * lib/lseek.c: Likewise.
19407         * lib/nonblocking.c: Likewise.
19408         * lib/poll.c: Likewise.
19409         * lib/select.c: Likewise.
19410         * lib/sockets.h: Likewise.
19411         * lib/sockets.c: Likewise.
19412         * lib/stdio-read.c: Likewise.
19413         * lib/stdio-write.c: Likewise.
19414         * lib/utimens.c: Likewise.
19415         * lib/w32sock.h: Likewise.
19416         * lib/w32spawn.h: Likewise.
19417         * tests/test-cloexec.c: Likewise.
19418         * tests/test-dup-safer.c: Likewise.
19419         * tests/test-dup2.c: Likewise.
19420         * tests/test-dup3.c: Likewise.
19421         * tests/test-fcntl.c: Likewise.
19422         * tests/test-pipe.c: Likewise.
19423         * tests/test-pipe2.c: Likewise.
19424         * lib/ftruncate.c: Likewise.
19425         (chsize_nothrow): Renamed from chsize.
19426         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
19427         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
19428         * lib/close.c: Likewise.
19429         * lib/dup.c: Likewise.
19430         * lib/fclose.c: Likewise.
19431         * lib/raise.c: Likewise.
19432         * tests/test-fgetc.c: Likewise.
19433         * tests/test-fputc.c: Likewise.
19434         * tests/test-fread.c: Likewise.
19435         * tests/test-fwrite.c: Likewise.
19436         * lib/getdtablesize.c: Likewise.
19437         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
19438         * lib/isatty.c: Don't include msvc-inval.h if
19439         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
19440         Include <io.h> as an alternative to msvc-nothrow.h.
19441         * lib/read.c: Likewise.
19442         * lib/write.c: Likewise.
19443         * lib/dup2.c: Likewise.
19444         (dup2_nothrow): New function.
19445         (ms_windows_dup2): Use it.
19446         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
19447         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
19448         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
19449         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
19450         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
19451         * m4/read.m4 (gl_FUNC_READ): Likewise.
19452         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
19453         * doc/windows-without-msvc.texi: New file.
19454         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
19455         section.
19457 2017-05-10  Bruno Haible  <bruno@clisp.org>
19459         wait-process: Adjust native Windows support.
19460         * lib/wait-process.c: Use the usual condition for recognizing a native
19461         Windows platform.
19463 2017-05-10  Bruno Haible  <bruno@clisp.org>
19465         doc: New chapter "Native Windows Support".
19466         * doc/gnulib.texi (Native Windows Support): New chapter.
19467         * doc/windows-libtool.texi: Small wording changes.
19468         * doc/windows-sockets.texi: Small wording and formatting changes.
19470 2017-05-10  Bruno Haible  <bruno@clisp.org>
19472         doc: Move section "Library version handling".
19473         * doc/gnulib.texi: Move section "Library version handling"
19474         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
19476 2017-05-10  Bruno Haible  <bruno@clisp.org>
19478         doc: Move section "Running self-tests under valgrind".
19479         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
19480         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
19482 2017-05-10  Bruno Haible  <bruno@clisp.org>
19484         doc: New chapter "Build Infrastructure Modules".
19485         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
19487 2017-05-10  Bruno Haible  <bruno@clisp.org>
19489         Prepare for reordering sections in the manual.
19490         * doc/gnulib.texi: Move several sections to separate files. Include
19491         these files.
19492         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
19493         * doc/obsolete.texi: Likewise.
19494         * doc/extra-tests.texi: Likewise.
19495         * doc/transversal.texi: Likewise.
19496         * doc/namespace.texi: Likewise.
19497         * doc/check-version.texi: Likewise.
19498         * doc/windows-sockets.texi: Likewise.
19499         * doc/windows-libtool.texi: Likewise.
19500         * doc/licenses-texi.texi: Likewise.
19501         * doc/build-automation.texi: Likewise.
19502         * doc/c-locale.texi: Likewise.
19504 2017-05-10  Bruno Haible  <bruno@clisp.org>
19506         Fix instructions how to update manual on www.gnu.org.
19507         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
19509 2017-05-09  Bruno Haible  <bruno@clisp.org>
19511         tzset: Expand comment about TZ problem on native Windows.
19512         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
19513         Paul Eggert.
19514         * lib/ctime.c (rpl_ctime): Likewise.
19515         * lib/localtime.c (rpl_localtime): Likewise.
19516         * lib/mktime.c (mktime): Likewise.
19517         * lib/strftime-fixes.c (rpl_strftime): Likewise.
19518         * lib/wcsftime.c (rpl_wcsftime): Likewise.
19520 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19522         intprops: don’t depend on ‘verify’
19523         Problem reported by Ævar Arnfjörð Bjarmason in:
19524         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
19525         * lib/intprops.h: Do not include verify.h, and move compile-time
19526         checks from here ...
19527         * tests/test-intprops.c (main): ... to here, if they’re not here
19528         already.  Check widths of other standard integer types.
19529         * modules/intprops (Depends-on): Remove ‘verify’.
19531 2017-05-07  Bruno Haible  <bruno@clisp.org>
19533         utimens: On native Windows, support 100ns resolution also if fd < 0.
19534         * lib/utime.in.h: Include <time.h>.
19535         (_gl_utimens_windows): New declaration.
19536         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
19537         (utime): Invoke it.
19538         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
19539         instead of utime.
19540         * modules/utime (Depends-on): Add 'time'.
19542 2017-05-07  Bruno Haible  <bruno@clisp.org>
19544         utimens: Improve error code on native Windows.
19545         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
19546         error code EACCES, not EINVAL.
19548 2017-05-07  Bruno Haible  <bruno@clisp.org>
19550         utime: Handle more Windows error codes.
19551         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
19552         Based on explanations by Billy O'Neal.
19554 2017-05-05  Bruno Haible  <bruno@clisp.org>
19556         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
19557         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
19558         union.
19559         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
19560         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
19561         value of cipher->IV.
19563 2017-05-05  Bruno Haible  <bruno@clisp.org>
19565         wctype-h-c++-tests: Update.
19566         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
19568 2017-05-05  Bruno Haible  <bruno@clisp.org>
19570         wchar-c++-tests: Update.
19571         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
19573 2017-05-05  Bruno Haible  <bruno@clisp.org>
19575         utime-h-c++-tests: New module.
19576         * tests/test-utime-h-c++.cc: New file.
19577         (utime): Declare, missing since 2017-04-30.
19578         * modules/utime-h-c++-tests: New file.
19580 2017-05-05  Bruno Haible  <bruno@clisp.org>
19582         unistd-c++-tests: Update.
19583         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
19584         (read): Declare, missing since 2011-04-15.
19585         (sethostname): Declare, missing since 2011-12-03.
19587 2017-05-05  Bruno Haible  <bruno@clisp.org>
19589         time-c++-tests: Update.
19590         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
19591         (localtime, gmtime): Declare, missing since 2017-04-30.
19592         (ctime): Declare, missing since 2017-04-30.
19593         (strftime): Declare, missing since 2017-04-30.
19594         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
19595         2015-07-24.
19597 2017-05-05  Bruno Haible  <bruno@clisp.org>
19599         sys_resource-c++-tests: New module.
19600         * tests/test-sys_resource-c++.cc: New file.
19601         (getrusage): Declare, missing since 2012-04-13.
19602         * modules/sys_resource-c++-tests: New file.
19604 2017-05-05  Bruno Haible  <bruno@clisp.org>
19606         strings-c++-tests: New module.
19607         * tests/test-strings-c++.cc: New file.
19608         (ffs): Declare, missing since 2011-07-12.
19609         * modules/strings-c++-tests: New file.
19611 2017-05-05  Bruno Haible  <bruno@clisp.org>
19613         string-c++-tests: Update.
19614         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
19615         (ffsll): Declare, missing since 2011-07-15.
19617 2017-05-05  Bruno Haible  <bruno@clisp.org>
19619         stdlib-c++-tests: Update.
19620         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
19621         2011-10-18.
19622         (ptsname_r): Declare, missing since 2011-11-07.
19623         (qsort_r): Declare, missing since 2014-08-29.
19624         (random, srandom, initstate, setstate): Declare, missing since
19625         2012-01-14.
19626         (secure_getenv): Declare, missing since 2013-02-05.
19628 2017-05-05  Bruno Haible  <bruno@clisp.org>
19630         stdio-c++-tests: Update.
19631         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
19633 2017-05-05  Bruno Haible  <bruno@clisp.org>
19635         signal-h-c++-tests: Update.
19636         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
19638 2017-05-05  Bruno Haible  <bruno@clisp.org>
19640         math-c++-tests: Update.
19641         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
19642         (fma): Declare, missing since 2011-10-17.
19643         (fmal): Declare, missing since 2011-10-17.
19645 2017-05-05  Bruno Haible  <bruno@clisp.org>
19647         locale-c++-tests: Update.
19648         * tests/test-locale-c++.cc (localeconv): Declare, missing since
19649         2012-03-25.
19651 2017-05-05  Bruno Haible  <bruno@clisp.org>
19653         inttypes-c++-tests: New module.
19654         * tests/test-inttypes-c++.cc: New file.
19655         (strtoimax): Declare, missing since 2012-01-05.
19656         (strtoumax): Declare, missing since 2012-01-05.
19657         * modules/inttypes-c++-tests: New file.
19659 2017-05-05  Bruno Haible  <bruno@clisp.org>
19661         dirent-c++-tests: Update.
19662         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
19663         (rewinddir): Declare, missing since 2011-09-13.
19664         (dirfd): Declare, missing since 2010-03-08.
19666 2017-05-04  Bruno Haible  <bruno@clisp.org>
19668         argp: Fix mistake in 2017-04-23 commit.
19669         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
19670         assume that strerror_r returns 'int', not 'char *'.
19672 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
19674         argp: Fix typo.
19675         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
19677 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
19679         utimens: port to Emacs + MS-Windows
19680         Skip the new MS-Windows-specific code if Emacs.
19681         * lib/utimens.c [EMACS_CONFIGUATION]:
19682         Avoid new MS-Windows-specific code.
19683         (USE_SETFILETIME): New macro.
19684         (fdutimens): Use it.
19686 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19688         tzset: update doc for TZ problems on MS-Windows
19689         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
19690         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
19691         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
19692         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
19693         * doc/posix-functions/wcsftime.texi:
19694         Mention some issues with TZ under MS-Windows.
19696 2017-05-01  Bruno Haible  <bruno@clisp.org>
19698         copy-file: Fix build error on mingw.
19699         * modules/copy-file (Depends-on): Add 'close'.
19701 2017-05-01  Bruno Haible  <bruno@clisp.org>
19703         tzset: Work around TZ problem on native Windows.
19704         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
19705         Windows, set REPLACE_TZSET to 1.
19706         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
19707         invoke '_tzset' instead of 'tzset'.
19708         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
19710         * modules/time_rz (Depends-on): Add tzset.
19711         * lib/time_rz.c (tzset): Remove fallback definition.
19712         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
19714 2017-05-01  Bruno Haible  <bruno@clisp.org>
19716         mktime: Fix dependencies.
19717         * modules/mktime (Depends-on): Add 'time'.
19719 2017-05-01  Bruno Haible  <bruno@clisp.org>
19721         New module 'localtime-buffer', split off from module 'gettimeofday'.
19722         * lib/localtime-buffer.h: New file.
19723         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
19724         * lib/time.in.h (tzset): New declaration.
19725         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
19726         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
19727         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
19728         moved to lib/localtime-buffer.c or lib/tzset.c.
19729         * m4/localtime-buffer.m4: New file.
19730         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
19731         HAVE_TZSET, REPLACE_TZSET.
19732         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
19733         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
19734         gl_LOCALTIME_BUFFER_NEEDED.
19735         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
19736         since 2007-01-18.
19737         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
19738         tzset.
19739         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
19740         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
19741         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
19742         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
19743         * modules/localtime-buffer: New file.
19744         * modules/time (Depends-on): Remove 'gettimeofday'.
19745         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
19746         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
19747         * modules/tzset (Description): Enable hyperlink to POSIX spec.
19748         (Files): Add lib/tzset.c.
19749         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
19750         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
19751         gl_TIME_MODULE_INDICATOR.
19752         * modules/gettimeofday (Depends-on): Add localtime-buffer.
19754 2017-05-01  Bruno Haible  <bruno@clisp.org>
19756         copy-file: Preserve sub-second time stamps.
19757         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
19758         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
19759         transport the time stamps from the original file to the destination
19760         file.
19761         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
19762         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
19763         utime-h.
19765 2017-05-01  Bruno Haible  <bruno@clisp.org>
19767         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
19768         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
19769         also on MSVC.
19770         Reported by Eli Zaretskii <eliz@gnu.org>.
19772 2017-05-01  Bruno Haible  <bruno@clisp.org>
19774         wchar: Fix compilation error with the original mingw.org mingw.
19775         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
19776         <stddef.h> instead.
19777         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
19778         gl_WCTYPE_H.
19779         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
19780         gl_TYPE_WINT_T_PREREQ instead.
19781         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
19782         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
19783         Reported by Eli Zaretskii <eliz@gnu.org>.
19785 2017-04-30  Bruno Haible  <bruno@clisp.org>
19787         utimecmp: Add support for native Windows.
19788         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
19790 2017-04-30  Bruno Haible  <bruno@clisp.org>
19792         utimens: Add support for native Windows.
19793         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
19794         (fdutimens): Provide a native Windows implementation, like utime.c with
19795         added tv_nsec support.
19796         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
19797         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
19799 2017-04-30  Bruno Haible  <bruno@clisp.org>
19801         wcsftime: New module.
19802         * lib/wchar.in.h (wcsftime): New declaration.
19803         * lib/wcsftime.c: New file.
19804         * m4/wcsftime.m4: New file.
19805         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
19806         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
19807         HAVE_WCSFTIME, REPLACE_WCSFTIME.
19808         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
19809         HAVE_WCSFTIME, REPLACE_WCSFTIME.
19810         * modules/wcsftime: New file.
19811         * doc/posix-functions/wcsftime.texi: Mention the new module.
19813 2017-04-30  Bruno Haible  <bruno@clisp.org>
19815         strftime-fixes: New module.
19816         * lib/time.in.h (strftime): New declaration.
19817         * lib/strftime-fixes.c: New file.
19818         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
19819         (gl_FUNC_STRFTIME): Remove macro.
19820         * m4/strftime-fixes.m4: New file.
19821         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
19822         REPLACE_STRFTIME.
19823         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
19824         REPLACE_STRFTIME.
19825         * modules/strftime-fixes: New file.
19826         * doc/posix-functions/strftime.texi: Mention the new module.
19828 2017-04-30  Bruno Haible  <bruno@clisp.org>
19830         mktime: Work around TZ problem on native Windows.
19831         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
19832         from the native Windows workaround.
19833         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
19834         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
19835         'guessing no'.
19836         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
19837         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
19838         NEED_MKTIME_WINDOWS.
19839         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
19840         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
19841         NEED_MKTIME_INTERNAL.
19842         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
19843         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
19844         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
19845         not REPLACE_MKTIME.
19846         * doc/posix-functions/mktime.texi: Mention the native Windows
19847         workaround.
19849 2017-04-30  Bruno Haible  <bruno@clisp.org>
19851         localtime: New module.
19852         * lib/time.in.h (localtime): Declare also if requested by module
19853         'localtime'.
19854         * lib/localtime.c: New file.
19855         * m4/localtime.m4: New file.
19856         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
19857         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
19858         * modules/localtime: New file.
19859         * doc/posix-functions/localtime.texi: Mention the new module.
19861 2017-04-30  Bruno Haible  <bruno@clisp.org>
19863         ctime: New module.
19864         * lib/time.in.h (ctime): New declaration.
19865         * lib/ctime.c: New file.
19866         * m4/ctime.m4: New file.
19867         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
19868         REPLACE_CTIME.
19869         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
19870         * modules/ctime: New file.
19871         * doc/posix-functions/ctime.texi: Mention the new module.
19873 2017-04-30  Bruno Haible  <bruno@clisp.org>
19875         gettimeofday: Provide higher resolution on native Windows.
19876         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
19877         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
19878         (initialize): Initialize it.
19879         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
19880         'struct timeval'. Don't use _ftime().
19881         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
19882         <sys/timeb.h> and _ftime.
19884 2017-04-30  Bruno Haible  <bruno@clisp.org>
19886         Document the problem with the Cygwin environment variable TZ.
19887         * doc/posix-functions/tzset.texi: Add note about TZ.
19888         * doc/posix-functions/ctime.texi: Likewise.
19889         * doc/posix-functions/localtime.texi: Likewise.
19890         * doc/posix-functions/mktime.texi: Likewise.
19891         * doc/posix-functions/strftime.texi: Likewise.
19892         * doc/posix-functions/wcsftime.texi: Likewise.
19893         * doc/pastposix-functions/ftime.texi: Likewise.
19895 2017-04-30  Bruno Haible  <bruno@clisp.org>
19897         utime-tests: New module.
19898         * tests/test-utime.c: New file, based on tests/test-utimens.h.
19899         * tests/test-utimens-common.h: Include <sys/stat.h>.
19900         * modules/utime-tests: New file.
19902 2017-04-29  Bruno Haible  <bruno@clisp.org>
19904         utime: New module.
19905         * lib/utime.in.h: Add comment for snippets.
19906         (utime): New declaration.
19907         * lib/utime.c: New file.
19908         * m4/utime.m4: New file.
19909         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
19910         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
19911         REPLACE_UTIME.
19912         * modules/utime-h (Depends-on): Add snippets.
19913         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
19914         Insert snippets.
19915         * modules/utime: New file.
19916         * doc/posix-functions/utime.texi: Mention the new module.
19918 2017-04-29  Bruno Haible  <bruno@clisp.org>
19920         utime-h: Modernize handling of 'struct utimbuf'.
19921         * lib/utime.in.h: Include next <utime.h> if it exists.
19922         (utimbuf): Define to _utimbuf on native Windows.
19923         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
19924         Set UTIME_H on native Windows.
19925         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
19926         * modules/utime-h (Depends-on): Add include_next.
19927         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
19928         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
19930         * lib/utimens.c (utimbuf): Remove fallback definition.
19931         * m4/utimens.m4 (gl_UTIMENS): Don't require
19932         gl_CHECK_TYPE_STRUCT_UTIMBUF.
19933         * m4/utimbuf.m4: Remove file.
19934         * modules/utimens (Files): Remove m4/utimbuf.m4.
19936 2017-04-29  Bruno Haible  <bruno@clisp.org>
19938         Make use of module 'utime-h'.
19939         * modules/copy-file (Depends-on): Add utime-h.
19940         * lib/copy-file.c: Assume that <utime.h> exists.
19941         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
19943         * modules/utimens (Depends-on): Add utime-h.
19944         * lib/utimens.c: Assume that <utime.h> exists.
19946 2017-04-29  Bruno Haible  <bruno@clisp.org>
19948         utime-h: New module.
19949         * m4/utime_h.m4: New file.
19950         * lib/utime.in.h: New file.
19951         * modules/utime-h: New file.
19952         * doc/posix-headers/utime.texi: Mention the new module.
19954         * tests/test-utime-h.c: New file.
19955         * modules/utime-h-tests: New file.
19957 2017-04-30  Bruno Haible  <bruno@clisp.org>
19959         Fix a few typos.
19960         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
19961         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
19962         * doc/posix-functions/fstat.texi: Fix a plural typo.
19963         * doc/posix-functions/stat.texi: Likewise.
19964         * m4/include_next.m4: Update comments.
19966 2017-04-29  Bruno Haible  <bruno@clisp.org>
19968         error: Fix mistake in 2017-04-23 commit.
19969         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
19970         assume that strerror_r returns 'int', not 'char *'.
19972 2017-04-29  Bruno Haible  <bruno@clisp.org>
19974         stat: Fix time_t values and other problems on native Windows platforms.
19975         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
19976         implementations of stat().
19977         * lib/stat.c: Include filename.h instead of dosname.h. Include
19978         malloca.h, stat-w32.h.
19979         (is_unc_root): New function.
19980         (rpl_stat): New implementation for native Windows. Remove
19981         REPLACE_FUNC_STAT_DIR code.
19982         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
19983         Don't define REPLACE_FUNC_STAT_DIR.
19984         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
19985         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
19986         (Depends-on): Remove dosname. Add filename, malloca.
19987         (configure.ac): Also compile lib/stat-w32.c.
19989 2017-04-29  Bruno Haible  <bruno@clisp.org>
19991         fstat: Fix time_t values on native Windows platforms.
19992         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
19993         * lib/stat-w32.h: New file.
19994         * lib/stat-w32.c: New file.
19995         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
19996         stat-w32.h instead.
19997         (fstat_nothrow): Remove function.
19998         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
19999         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
20000         always.
20001         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
20002         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
20003         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
20004         (configure.ac): Also compile lib/stat-w32.c.
20006 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
20008         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
20009         Problem reported by Assaf Gordon and Gavin Smith in:
20010         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
20011         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
20012         #define this, too.
20014 2017-04-29  Bruno Haible  <bruno@clisp.org>
20016         strerror_r-posix: Fixes for MSVC 14.
20017         * lib/strerror_r.c: Include <stdarg.h>.
20018         (strerror_r): Provide error messages for errno values 100...140.
20019         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
20021 2017-04-28  Bruno Haible  <bruno@clisp.org>
20023         noreturn: New module.
20024         * lib/noreturn.h: New file.
20025         * modules/noreturn: New file.
20026         * tests/test-noreturn.c: New file.
20027         * modules/noreturn-tests: New file.
20028         * tests/test-noreturn-c++.cc: New file.
20029         * modules/noreturn-c++-tests: New file.
20031 2017-04-27  Bruno Haible  <bruno@clisp.org>
20033         wctype-h: Fix compilation error with the original mingw.org mingw.
20034         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
20035         HAVE_CRTDEFS_H.
20036         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
20037         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
20038         <stddef.h> instead.
20039         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
20041 2017-04-26  Pádraig Brady  <P@draigBrady.com>
20043         nap.h: Fix compilation on non windows platforms
20044         * tests/nap.h: Move misplaced endif.
20046 2017-04-26  Pádraig Brady  <P@draigBrady.com>
20047         and Paul Eggert  <eggert@cs.ucla.edu>
20049         time_rz: fix heap buffer overflow vulnerability
20050         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
20051         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
20052         whether there is enough buffer space available, thus avoiding
20053         the problematic promotion of signed to unsigned causing an invalid
20054         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
20055         the start of the buffer.
20056         * tests/test-parse-datetime.c (main): Add a test case written by
20057         Paul Eggert, which overwrites enough of the heap so that
20058         standard glibc will fail with "free(): invalid pointer"
20059         without the patch applied.
20061 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20063         xalloc: add missing integer overflow check
20064         * lib/xalloc.h (x2nrealloc): Also check for multiplication
20065         overflow when P is null.
20067 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20069         parse-datetime: make it standalone
20070         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
20071         (_GL_ATTRIBUTE_FORMAT): New macro.
20072         These are needed to get './gnulib-tool --test parse-datetime' to work.
20074 2017-04-23  Bruno Haible  <bruno@clisp.org>
20076         nap.h: Port to native Windows.
20077         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
20078         use nap_fd instead. On native Windows, close and reopen nap_fd.
20079         (nap_works): Don't compare the ctimes, because on native Windows, these
20080         are the creation times.
20081         (nap): Update.
20083 2017-04-23  Bruno Haible  <bruno@clisp.org>
20085         nap.h: Fix logic.
20086         * tests/nap.h (nap): Avoid signed integer overflow in loop.
20088 2017-04-23  Bruno Haible  <bruno@clisp.org>
20090         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
20091         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
20092         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
20093         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
20094         * lib/argp-help.c (__argp_failure): Likewise.
20096 2017-04-23  Bruno Haible  <bruno@clisp.org>
20098         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
20099         * m4/strerror_r.m4: Revert changes since 2016-10-16.
20100         * lib/strerror_r.c: Likewise.
20102 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
20104         Target a C99 subset, not a C89 subset
20105         For many years Gnulib has targeted C89 and has resisted using C99
20106         features, as some Gnulib-using programs still wanted to target
20107         C89.  As this no longer seems to be the case, relax the porting
20108         requirements to allow some C99 features.  This is merely a change
20109         to the documentation, to give other Gnulib developers a chance to
20110         weigh in on the topic.
20111         * doc/extern-inline.texi (extern inline):
20112         * doc/gnulib-readme.texi (Portability guidelines):
20113         * doc/gnulib-tool.texi (Initial import):
20114         * doc/gnulib.texi (Header files):
20115         Modernize to talk about C99 and C11 instead of C89 and C99.
20116         * doc/gnulib-readme.texi (Portability guidelines):
20117         Now a section, not merely a subsection, so that it
20118         can be split up.  Modernize a bit.
20119         (C language versions, C99 features assumed)
20120         (C99 features avoided):
20121         New sections.
20123 2017-04-23  Bruno Haible  <bruno@clisp.org>
20125         doc: New section "Modules that modify the way other modules work".
20126         * doc/gnulib.texi (Modules that modify the way other modules work): New
20127         section.
20129 2017-04-23  Bruno Haible  <bruno@clisp.org>
20131         stat-time: Update comments.
20132         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
20133         * tests/test-utimens-common.h: Add reference regarding st_ctime on
20134         Windows.
20136 2017-04-01  Bruno Haible  <bruno@clisp.org>
20138         glob: Fix more memory leaks.
20139         * lib/glob.c (glob): Free allocated memory before returning.
20140         Reported by Coverity via Tim Rühsen.
20142 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20144         poll: improve fast check for out-of-range NFD
20145         * lib/poll.c: Do not include intprops.h.
20146         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
20147         * modules/poll (Depends-on): Remove intprops.
20149         ftoastr: cite a newer paper
20150         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
20151         instead of Loitsch 2010.
20153 2017-04-22  Bruno Haible  <bruno@clisp.org>
20155         poll: Enable argument check also in the Windows implementation.
20156         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
20157         Reported by Paul Eggert.
20159 2017-04-22  Bruno Haible  <bruno@clisp.org>
20161         getlogin_r: Work around bug in Mac OS X 10.12.
20162         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
20163         bug.
20164         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
20165         given size minus 1, call getlogin_r a second time, on a larger buffer.
20166         * modules/getlogin_r (Depends-on): Add malloca.
20167         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
20169 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20171         parse-datetime: fix %z and prefer signed int
20172         %z problem reported by Pádraig Brady in:
20173         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
20174         While fixing it, I decided to prefer signed ints to size_t, as
20175         they are less error-prone (e.g., ubsan catches overflow).
20176         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
20177         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
20178         counts, since signed integers make for better debugging.
20179         (date): Don’t assume %z works in printf formats.
20180         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
20181         sizes of buffers known to be small, e.g., because we’re using snprintf.
20182         (parse_datetime2): Simplify call to debug_mktime_not_ok.
20184 2017-04-22  Bruno Haible  <bruno@clisp.org>
20186         *printf: Work around rounding bug on Mac OS X.
20187         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
20188         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
20189         Mac OS X and FreeBSD.
20190         * doc/glibc-functions/*printf.texi: Likewise.
20192 2017-04-22  Bruno Haible  <bruno@clisp.org>
20194         vasnprintf tests: Avoid warnings.
20195         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
20196         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
20197         test.
20199 2017-04-22  Bruno Haible  <bruno@clisp.org>
20201         sys_file tests: Avoid warning.
20202         * tests/test-sys_file.c (main): Add a default clause to the switch
20203         statement.
20205 2017-04-22  Bruno Haible  <bruno@clisp.org>
20207         sethostname: Update doc.
20208         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
20209         Mac OS X.
20211 2017-04-22  Bruno Haible  <bruno@clisp.org>
20213         quotearg tests: Avoid warnings.
20214         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
20215         false.
20217 2017-04-22  Bruno Haible  <bruno@clisp.org>
20219         poll: Enable argument check.
20220         * lib/poll.c: Include intprops.h.
20221         (poll): Check value of nfd correctly.
20222         * modules/poll (Depends-on): Add intprops.
20224 2017-04-22  Bruno Haible  <bruno@clisp.org>
20226         get-rusage-data: Avoid warnings on Mac OS X.
20227         * lib/get-rusage-data.c: On Mac OS X, don't define
20228         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
20229         (get_rusage_data) [Mac OS X]: Just return 0.
20231 2017-04-22  Bruno Haible  <bruno@clisp.org>
20233         xbinary-io: Fix build error.
20234         * modules/xbinary-io (Depends-on): Add gettext-h.
20235         * lib/xbinary-io.c: Include gettext.h and define _().
20236         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
20237         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
20239 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20241         parse-datetime: overflow and debug cleanups
20242         This long patch was triggered by this bug report from Ruediger Meier:
20243         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
20244         I fixed the bug he noted, then found some others nearby, and then
20245         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
20246         up some of the code to follow GNU standards while I was at it.
20247         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
20248         use c_isdigit.
20249         (EPOCH_YEAR): Remove; unused.
20250         (TM_YEAR_BASE): Now an enum rather than a macro.
20251         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
20252         time zone offset, since timezones now are in terms of seconds and
20253         not minutes.
20254         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
20255         appropriate.  Verify that intmax_t is wide enough.
20256         (time_overflow, time_zone_str): New functions, used to deal
20257         more reliably with overflow.
20258         (dbg_printf): Add printf attribute, to help catch integer width errors.
20259         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
20260         (%union, to_hour, yylex, parse_datetime2):
20261         Use intmax_t instead of long int and/or long_time_t.
20262         All uses changed.
20263         (DBGBUFSIZE): Move earlier.
20264         (relative_time, set_hhmmss, parser_control):
20265         Just use int for nanoseconds and for time zones; that’s wide enough.
20266         (parser_control): Use bool for members like year_seen that can
20267         be booleans instead of counters.  All uses changed.
20268         Remove debug_default_input_timezone; no longer needed.
20269         All uses removed.
20270         (apply_relative_time): Return a bool overflow flag.
20271         All uses changed to check for overflow.
20272         (apply_relative_time, zone, date, relunit, relunit_snumber)
20273         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
20274         Check for integer overflow portably.
20275         (str_days): Use just int for N, as it’s wide enough.
20276         Prefer 2D char arrays to arrays of char * when it looks like
20277         2D is a win on typical platforms.
20278         Prefer snprintf to strncpy/strncat, for simplicity;
20279         all buffers are smaller than INT_MAX so this is safe.
20280         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
20281         (debug_print_current_time): Don’t assume tv_nsec is of type long,
20282         as this is not true on x32.  Output "." before any nanoseconds.
20283         (debug_print_current_time, parse_datetime2):
20284         Output local zones using a more-consistent format.
20285         (debug_print_current_time, date, parse_datetime2):
20286         (main) [TEST]:
20287         Don’t assume time_t is the same width as long.
20288         (print_rel_part): New function, replacing ...
20289         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
20290         (debug_print_relative_time): Use bool for boolean.
20291         (local_zone): dsts_seen now counts only tDST instances.
20292         (date): Fix printf of size_t to use %z.  Do not assume numeric
20293         tokens have negative values merely because the context suggests
20294         a syntax with "-" separating tokens.
20295         (time_zone_hhmm): Return bool success indicator, which checks for
20296         overflow.  Store result into PC->time_zone instead.  All callers
20297         changed.
20298         (tm_year_str): New function.  Return a bool success indicator and
20299         store the result into a buffer.  All callers changed.  Output the
20300         numerically correct string even if adding 1900 to the year would
20301         overflow.
20302         (to_tm_year): New function, replacing the old to_year.  All
20303         callers changed.
20304         (tm_diff): Sync with glibc.
20305         (lookup_word): Use to_uchar instead of doing it by hand.
20306         (TZBUFSIZE): Now local to the only function that needs it.
20307         (debug_strfdatetime): Simplify now that time zones are int seconds.
20308         (debug_strfdate): Work even if tm_year + 1900 would overflow.
20309         (get_effective_timezone): Remove.  All uses removed.
20310         (parse_datetime2): Use fprintf in pieces instead of snprintfing
20311         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
20312         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
20313         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
20314         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
20315         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
20316         * modules/parse-datetime (Depends-on): Add inttypes.
20318 2017-04-21  Bruno Haible  <bruno@clisp.org>
20320         gettext-h: Avoid -Wundef warning.
20321         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
20322         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
20323         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
20325 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
20327         error: Avoid "function declaration isn't a prototype" warning.
20328         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
20330 2017-04-21  Bruno Haible  <bruno@clisp.org>
20332         vasnprintf: Fix for MSVC 14.
20333         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
20334         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
20335         of !HAVE_SNPRINTF_RETVAL_C99.
20337 2017-04-21  Bruno Haible  <bruno@clisp.org>
20339         mbrtowc tests: Fix test failures on MSVC 14.
20340         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
20341         behaviour for invalid input.
20343 2017-04-21  Bruno Haible  <bruno@clisp.org>
20345         mbsinit: Fix for MSVC 14.
20346         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
20347         implementation that is in sync with mbrtowc.c. On other platforms, use
20348         an adequate ad-hoc implementation.
20350 2017-04-21  Bruno Haible  <bruno@clisp.org>
20352         Fix test-mbrtowc5.sh failure on native Windows.
20353         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
20354         "C".
20356 2017-04-21  Bruno Haible  <bruno@clisp.org>
20358         Avoid accidental use of native Windows APIs on Cygwin.
20359         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
20360         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
20361         * lib/localename.c (WINDOWS_NATIVE): Likewise.
20363 2017-04-20  Bruno Haible  <bruno@clisp.org>
20365         Remove red warnings from the generated MODULES.html.
20366         * modules/fcntl (Description): Disambiguate function references.
20367         * modules/getcwd-lgpl (Description): Likewise.
20368         * modules/hostent (Description): Likewise.
20369         * modules/servent (Description): Likewise.
20370         * modules/tempname (Description): Likewise.
20372 2017-04-20  Bruno Haible  <bruno@clisp.org>
20374         verify tests: Fix spurious failure with parallel make.
20375         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
20376         EXTRA_PROGRAMS.
20377         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
20378         * tests/test-verify-try.c: New file.
20379         * modules/verify-tests (Files): Add it.
20380         (EXTRA_PROGRAMS): Add test-verify-try.
20381         (MOSTLYCLEANFILES): Update accordingly.
20382         Reported by Adam James Stewart <ajstewart@anl.gov>.
20384 2017-04-18  Bruno Haible  <bruno@clisp.org>
20386         vma-iter: Fix compilation error on Solaris 7.
20387         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
20388         like on IRIX, OSF/1.
20389         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20391 2017-04-18  Bruno Haible  <bruno@clisp.org>
20393         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
20394         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
20395         included.
20396         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
20397         <sys/procfs.h>.
20398         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
20399         <sys/procfs.h> cannot be included.
20400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20402 2017-04-18  Bruno Haible  <bruno@clisp.org>
20404         getopt-gnu: Add comments.
20405         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
20406         * modules/getopt-gnu (configure.ac): Likewise.
20408 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
20410         regex: port better to Solaris 10
20411         Solaris 10 <locale.h> includes <libintl.h>, which #defines
20412         gettext, and this causes a double #define.
20413         Problem reported by Gavin Smith in:
20414         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
20415         * lib/regex_internal.h (gettext): #undef before #defining.
20417 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
20419         intprops: improve comments
20420         * lib/intprops.h: Improve and shorten commentary.
20421         For the record, if we ever run into a pedantic compiler that
20422         behaves differently from GCC when converting an out-of-range value
20423         to a signed integer, we can work around the problem with something
20424         like the following code, where UCT is the signed counterpart of T
20425         (UCT is sometimes narrower than UT) and all callers are changed
20426         accordingly:
20427         #if __SUNPRO_C <= 0x5120
20428         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20429            ((t) ((ut) (a) op (ut) (b)))
20430         #else
20431         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20432            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
20433             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
20434                + TYPE_MINIMUM (t)) \
20435             : (t) (uct) ((ut) (a) op (ut) (b)))
20436         #endif
20438 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
20440         intprops: try to avoid tickling similar bugs
20441         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
20442         needs to be the same width as T; it can be wider.
20443         Change callers so that UT is at least as wide as unsigned int,
20444         as I suspect that this is less likely to run into compiler bugs.
20446         intprops: port to Oracle Studio 12.3 x86
20447         Problem reported by Gavin Smith in:
20448         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
20449         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
20450         Convert unsigned to signed via the usual rather than the standard way,
20451         to avoid a compiler bug in Oracle Studio 12.3 x86.
20453 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20455         getopt: prefer - to _ in new file names
20456         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
20457         * lib/getopt-core.h: Rename from lib/getopt_core.h.
20458         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
20459         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
20460         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
20461         All uses changed.
20463         getopt: port recent getopt changes to macOS
20464         Problem reported by Harald Maier (Bug#26398).
20465         The macOS C compiler uses __nonnull for its own purposes and that
20466         clashes with glibc's __nonnull.
20467         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
20468         * lib/getopt_cdefs.in.h (__nonnull): Remove.
20469         * lib/getopt_core.h (getopt):
20470         * lib/getopt_ext.h (getopt_long, getopt_long_only):
20471         Use _GL_ARG_NONNULL, not __nonnull.
20472         * lib/unistd.in.h: Move snippet hooks to before where the getopt
20473         .h files are included, so that _GL_ARG_NONNULL is defined in time.
20474         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
20475         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
20477 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20479         getopt-gnu: omit some duplicate code
20480         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
20481         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
20482         gnulib-tool already does this.
20483         * modules/getopt-gnu (configure.ac): Omit code duplicated from
20484         getopt-posix, which we depend on.
20486         getopt-posix: use angle-bracket include
20487         * lib/getopt1.c: Include <config.h>, not "config.h".
20489 2017-04-06  Zack Weinberg  <zackw@panix.com>
20491         getopt: annotate files with relationship to glibc
20493         As the final act in this patchset, adjust the message at the top of
20494         each file to indicate which files are synced with glibc.  (This has
20495         already been done for most of the headers.)
20497         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
20498         Mention in top-of-file boilerplate that these files are shared
20499         between glibc and gnulib.
20502         getopt: split up getopt.in.h and eliminate __need_getopt
20504         Over in glibc, all of the __need macros are being phased out in favor
20505         of small headers that declare only the necessary components, as this
20506         is much simpler and less prone to bugs.  As getopt is shared with
20507         glibc, gnulib needs to do the same for __need_getopt.
20509         __need_getopt is misnamed; what it really means is "we want only the
20510         getopt features specified in POSIX, not the GNU extensions".  glibc
20511         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
20512         these files can be shared verbatim with gnulib.  The portability
20513         wrapper, on the other hand, they have renounced altogether; glibc's
20514         getopt.h will no longer be shared with gnulib at all.  In exchange,
20515         certain glibc-specific quirks (having to do with __posix_getopt) no
20516         longer need appear in gnulib's headers at all.
20518         This patch merges getopt_core.h and getopt_ext.h from glibc, and
20519         splits up the current gnulib-side portability wrapper into three
20520         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
20521         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
20522         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
20523         unistd.in.h just use them.  All new files are clearly marked with
20524         whether they are shared with glibc.
20526         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
20527         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
20528         with glibc, and ...
20529         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
20530         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
20531         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
20532         instead of defining __need_getopt and including the full getopt.h.
20534         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
20535         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
20536         * modules/getopt-posix (Files): Add new headers and sort list.
20537         (Depends-on): No longer need snippet/arg-nonnull.
20538         (Makefile.am): Generate getopt_cdefs.h.
20541         getopt: better handling of ambiguous options
20543         glibc's getopt uses alloca to construct a linked list of possibilities
20544         for an "ambiguous" long option.  In gnulib, malloc should be used
20545         instead.  Providing for both cases complicates things a fair bit.
20547         This patch rewrites ambiguous-option handling to use a boolean vector
20548         instead of a linked list.  There is then only one allocation that
20549         might need freeing; in glibc it can honor __libc_use_alloca as usual,
20550         and in gnulib we define __libc_use_alloca to always be false, so we
20551         don't need ifdefs in the middle of the function.  This should also be
20552         slightly more efficient in the normal case of long options being fully
20553         spelled out -- I think most people aren't even aware they _can_
20554         sometimes abbreviate long options.
20556         One interesting consequence is that the list of possibilities is now
20557         printed in exactly the order they appear in the list of long options,
20558         instead of the first possibility being shuffled to the end.
20560         (The patch looks bigger than it really is because there's a fair bit
20561         of reindentation and code rearrangement.)
20563         * lib/getopt.c: When used standalone, define __libc_use_alloca
20564         as always false and alloca to abort if called.
20565         (process_long_option): Rewrite handling of ambiguous long options
20566         to use a single boolean vector, not a linked list; use
20567         __libc_use_alloca to decide whether to allocate this using alloca.
20570         getopt: refactor long-option handling
20572         There were two copies of the bulk of the code to handle long options.
20573         Now there is only one.
20575         This change temporarily removes the logic to avoid using alloca when
20576         standalone; the next patch in the series will restore it.
20578         * lib/getopt.c (process_long_option): New function split out
20579         from _getopt_internal_r.
20580         (_getopt_internal_r): Replace both copies of the long-option
20581         processing code with calls to process_long_option.
20584         getopt: tidy up _getopt_initialize a bit
20586         _getopt_data.__posixly_correct is completely redundant to
20587         _getopt_data.__ordering, and some work that logically belongs in
20588         _getopt_initialize was being done by _getopt_internal_r, making the
20589         code harder to understand.
20591         As a side effect, getenv will no longer be called if the first
20592         character of the options string is '+' or '-', which is probably a
20593         Good Thing.  (Perhaps we should have a flag character that
20594         specifically asks for the permutation behavior?)
20596         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
20597         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
20598         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
20601         getopt: merge from glibc: repetition reduction
20603         The definitions of the entry point functions 'getopt' and
20604         '__posix_getopt' can be made substantially less repetitive with a
20605         helper macro.
20607         While I was merging the const-correctness changes from gnulib into
20608         glibc I noticed there are still some unnecessary casts in
20609         _getopt_internal_r.
20611         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
20612         a macro.  Consistently cast 'argv' to 'char **' when calling
20613         _getopt_internal.
20614         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
20617         getopt: clean up error reporting
20619         getopt can print a whole bunch of error messages, and when used
20620         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
20621         cancellation point and getopt isn't, and also applying fprintf to a
20622         stream in wide-character mode is not allowed.  So every single error
20623         reporting case has an #ifdef _LIBC block in which it calls internal
20624         libc functions instead.  The counterpart patch series in glibc makes
20625         it possible to simplify all of that down to a set of #defines at the
20626         top of the file; core code is written as if it is safe to just call
20627         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
20628         call any *other* stdio functions.)
20630         * lib/getopt.c: When _LIBC is defined, define fprintf to
20631         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
20632         to _IO_funlockfile.  When neither _LIBC nor
20633         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
20634         funlockfile as no-ops.
20635         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
20636         standalone error-printing code can now be used for libc as well.
20637         Add an flockfile/funlockfile pair around one case where the error
20638         message is printed in several chunks.  Don't use fputc.
20641         getopt: fix fencepost error in ambiguous-W-option handling
20643         getopt_long contains an undocumented (AFAICT) feature in which, if you
20644         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
20645         treated as equivalent to '--foo'.  This is implemented with a partial
20646         second copy of the code for handling long options, and that code
20647         increments optind one too many times when recovering from an ambiguous
20648         abbreviated option, which can cause the main loop to walk past the end
20649         of argv and crash.
20651         I discovered this while writing a test case that tries to exercise all
20652         of getopt's error reporting paths; I wouldn't be surprised to learn
20653         that this feature is never used by real applications.
20655         * lib/getopt.c (_getopt_internal_r): Don't increment
20656         d->optind a second time when reporting ambiguous -W options.
20659         getopt: clean up getopt.c and getopt1.c file headers
20661         In getopt.c, there is no need to include wchar.h at all, and it is
20662         safe nowadays to assume that stdlib.h does declare getenv (several
20663         other gnulib modules make this assumption).
20665         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
20666         by using "" inclusions consistently, and there is no actual need to
20667         include stdlib.h (except in the #ifdef TEST block, where it should be
20668         unconditional), nor to provide a backup definition of NULL at all.
20670         * lib/getopt1.c: Simplify #ifdeffage at top of file.
20671         Move inclusion of stdlib.h to #ifdef TEST block and make
20672         unconditional.  Do not define NULL.
20673         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
20674         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
20675         * modules/getopt-gnu, modules/getopt-posix: Don't call
20676         gl_PREREQ_GETENV.
20679         getopt: harmonize comments with glibc
20681         The comments explaining how the behavior of 'getopt' varies depending
20682         on whether it's the standalone version and whether there are special
20683         characters at the beginning of the options string were inconsistent
20684         between gnulib and glibc, and also out of sync with the code.
20686         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
20689         getopt: remove USE_NONOPTION_FLAGS
20691         getopt includes code to parse an environment variable named
20692         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
20693         in decimal); but all of it has been #ifdefed out since 2001, with no
20694         official way to turn it back on.
20696         According to commentary in glibc's config.h.in, bash version 2.0
20697         set this environment variable to indicate argv elements that were
20698         the result of glob expansion and therefore should not be treated
20699         as options, but the feature was "disabled later" because "it
20700         caused problems".  According to bash's CHANGES file, "later" was
20701         release 2.01; it gives no more detail about what the problems
20702         were.
20704         Version 2.0 of bash was released on the last day of 1996, and version
20705         2.01 in June of 1997.  Twenty years later, I think it is safe to
20706         assume that this environment variable isn't coming back.
20708         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
20709         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
20710         __libc_argc and __libc_argv externs, which were only used by
20711         #ifdef USE_NONOPTION_FLAGS blocks.
20714         getopt: tabify, in preparation for merge with glibc
20716         glibc sticks to the GNU default of indenting with a mix of
20717         8-column tabs and spaces; make the gnulib copy match.
20719         getopt.h is not included because it is *not* going to be merged in its
20720         present form.
20722         * getopt.c, getopt1.c, getopt_int.h: Tabify.
20724 2017-04-02  Bruno Haible  <bruno@clisp.org>
20726         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
20727         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
20728         like it was done in modules/relocatable-lib on 2011-05-21 and in
20729         modules/relocatable-prog on 2011-08-15.
20730         Reported by Reuben Thomas <rrt@sc3d.org>.
20732 2017-03-31  Bruno Haible  <bruno@clisp.org>
20734         glob: Fix invalid free() call.
20735         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
20736         static storage to home_dir.
20737         Reported by Coverity via Tim Rühsen.
20739 2017-03-31  Bruno Haible  <bruno@clisp.org>
20741         glob: Fix memory leaks.
20742         * lib/glob.c (glob): Free allocated memory before returning.
20743         Reported by Coverity via Tim Rühsen.
20745 2017-03-31  Bruno Haible  <bruno@clisp.org>
20747         md5, sha1, sha256, sha512: Add comments regarding correctness.
20748         * lib/md5.h (buflen): Add comments regarding range.
20749         * lib/sha1.h (buflen): Likewise.
20750         * lib/sha256.h (buflen): Likewise.
20751         * lib/sha512.h (buflen): Likewise.
20752         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
20753         * lib/sha1.c (sha1_process_bytes): Likewise.
20754         * lib/sha256.c (sha256_process_bytes): Likewise.
20755         * lib/sha512.c (sha512_process_bytes): Likewise.
20756         Reported by Coverity via Tim Rühsen.
20758 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
20760         getopt: merge from glibc
20761         This does not change anything substantial; it merely simplifies
20762         hypothetical merges back to glibc.
20763         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
20764         Change copyright notice to match what is in glibc.
20765         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
20766         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
20767         __open_memstream rather than open_memstream and __glibc_likely
20768         instead of __builtin_expect.
20769         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
20771 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
20773         dfa: make [0-9] faster in non-C locales
20774         Problem reported by John P. Linderman (Bug#26193).
20775         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
20776         If both ends of the range are ASCII digits, do not worry about
20777         multi-character collating sequences and the like.  Be consistent
20778         about using isalpha as a precondition for setbit_case_fold_c.
20780 2017-03-19  Bruno Haible  <bruno@clisp.org>
20782         lock: Fix compilation error with HP-UX IA64 cc.
20783         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
20784         weak on non-glibc platforms.
20786 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20788         stdalign: tweak version# and test for HP-UX IA64
20789         Problems reported by Bruno Haible in:
20790         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
20791         * lib/stdalign.in.h (_Alignas):
20792         * m4/stdalign.m4 (gl_STDALIGN_H):
20793         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
20794         used octal (as that is how they document it), but it is decimal in
20795         practice now and the ancient implementations no longer matter.
20796         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
20798 2017-03-19  Bruno Haible  <bruno@clisp.org>
20800         vma-iter: Add support for Solaris.
20801         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
20802         approach.
20803         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
20804         * lib/get-rusage-as.c: Update comment about Solaris.
20805         * lib/get-rusage-data.c: Likewise.
20807 2017-03-19  Bruno Haible  <bruno@clisp.org>
20809         vma-iter: Prefer HP-UX specific API on HP-UX.
20810         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
20811         * lib/vma-iter.h: Update.
20812         Just in case HP-UX ever implements mquery().
20814 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
20816         stdalign: restore previous behavior for HP-UX IA64
20817         See Bruno Haible's email in:
20818         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
20819         which cites p 150 of a manual saying that 'aligned' works on Itanium.
20820         * lib/stdalign.in.h (_Alignas):
20821         Assume the '061200' applies to Itanium, not to PA-RISC.
20822         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
20824 2017-03-17  Bruno Haible  <bruno@clisp.org>
20826         stat-time, timespec: Support use of the header files in C++ mode.
20827         * lib/stat-time.h: Add "C" linkage declaration.
20828         * lib/timespec.h: Likewise.
20830 2017-03-17  Bruno Haible  <bruno@clisp.org>
20832         stdalign: Make it work with HP-UX cc.
20833         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
20834         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
20835         for HP-UX cc.
20837 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
20839         flexmember: try to detect HP-UX 11.31 cc bug
20840         Problem reported by Bruno Haible in:
20841         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
20842         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20843         Attempt to detect bug in HP-UX 11.31 cc.
20845 2017-03-16  Bruno Haible  <bruno@clisp.org>
20847         stdint: Fix test compilation failure with HP-UX 11 cc.
20848         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
20849         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
20850         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
20851         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
20853 2017-03-14  Bruno Haible  <bruno@clisp.org>
20855         gnulib-tool: Don't produce a tests directory with only snippet .h files.
20856         * gnulib-tool (func_modules_transitive_closure_separately): If
20857         testsrelated_modules ends up with no "real" modules, aside from
20858         modules with applicability 'all', set it to empty.
20860 2017-03-14  Bruno Haible  <bruno@clisp.org>
20862         vma-iter: Add support for HP-UX.
20863         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
20864         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
20865         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
20866         * lib/get-rusage-as.c: Update comment about HP-UX.
20867         * lib/get-rusage-data.c: Likewise.
20868         (get_rusage_data): Use get_rusage_data_via_setrlimit.
20870 2017-03-14  Bruno Haible  <bruno@clisp.org>
20872         limits-h: Make it work with HP-UX cc.
20873         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
20874         defined.
20876 2017-03-14  Bruno Haible  <bruno@clisp.org>
20878         Fix test failures on DragonFlyBSD.
20879         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
20880         * tests/test-select.h (test_bad_fd): Likewise.
20881         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
20883 2017-03-14  Bruno Haible  <bruno@clisp.org>
20885         freadahead: Silence warning on DragonFlyBSD.
20886         * lib/freadahead.c (__sreadahead): Declare ourselves.
20888 2017-03-14  Bruno Haible  <bruno@clisp.org>
20890         vma-iter: Add comment about AIX.
20891         * lib/vma-iter.c: Add comment about why this module is not implemented
20892         on AIX.
20894 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
20896         snippets: move unadjusted snippet sources to lib
20897         Problem reported by Michal Privoznik in:
20898         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
20899         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
20900         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
20901         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
20902         * lib/unused-parameter.h: Rename from
20903         build-aux/snippet/unused-parameter.h.
20904         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
20905         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
20906         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
20907         * modules/snippet/c++defs (Files:, CXXDEFS_H):
20908         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
20909         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
20910         Adjust to file renamings.
20912 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
20914         gnulib-tool: don't automatically distribute files from top/
20915         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
20916         not distribute top/README-release by default, don't distribute files
20917         from top/ unconditionally.
20918         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
20919         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
20921 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
20923         gnulib-tool: fix typo in comment output
20924         * gnulib-tool (func_import): Fix typo with previous change.
20926         snippets: work around GNU Make 3.82 VPATH
20927         When using 'gnulib-tool --gnu-make' on Emacs, and building
20928         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
20929         an out-of-source (VPATH) build failed because the sans-copyright
20930         snippet file was not built before the file that used it.
20931         Presumably this is some sort of VPATH thing.  Work around the
20932         problem by using the original snippet, i.e., don’t bother to
20933         remove its copyright notice.
20934         * modules/snippet/_Noreturn, modules/snippet/link-warning:
20935         Don’t assume Automake in comments.  Omit long-incorrect comment.
20936         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
20937         (MOSTLYCLEANFILES):
20938         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
20939         (MOSTLYCLEANFILES):
20940         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
20941         (MOSTLYCLEANFILES):
20942         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
20943         (MOSTLYCLEANFILES):
20944         Remove.
20945         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
20946         * modules/snippet/c++defs (CXXDEFS_H):
20947         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
20948         * modules/snippet/warn-on-use (WARN_ON_USE_H):
20949         Don’t bother to remove the copyright notice; just use the
20950         original snippet as-is.
20952 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
20954         gnulib-tool: minor --gnu-make fixups
20955         * gnulib-tool (func_emit_lib_Makefile_am):
20956         Remove useless code that was a blind alley during implementation.
20957         Problem reported by Thien-Thi Nguyen in:
20958         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
20959         (func_import): Note the "--gnu-make" option in the output comment.
20961 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
20963         gnulib-tool: new option --gnu-make
20964         This is for applications like GNU Emacs that use GNU Make
20965         features instead of Automake.
20966         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
20967         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
20968         Do not assume Automake.
20969         * gnulib-tool (func_determine_path_separator)
20970         (func_modules_transitive_closure, func_update_file)
20971         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
20972         (func_import): Add support for --gnu-make.
20974 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
20976         gnulib-common.m4: avoid aclocal.m4 bloat
20977         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
20978         Hide AM_PROG_AR from aclocal, so that aclocal does not
20979         install irrelevant macro definitions into aclocal.m4.
20981 2017-03-10  Bruno Haible  <bruno@clisp.org>
20983         vma-iter: Let callers know about error.
20984         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
20985         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
20987 2017-03-05  Bruno Haible  <bruno@clisp.org>
20989         Fix value of LD for 64-bit compilers on AIX.
20990         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
20991         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
20993 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
20995         dtotimespec: simplify
20996         * lib/dtotimespec.c (dtotimespec): Simplify.
20998 2017-03-04  Bruno Haible  <bruno@clisp.org>
21000         test-calloc-gnu: Reenable test also for GCC 7.
21001         * tests/test-calloc-gnu.c (eight): New function.
21002         (main): Don't skip test; use eight() instead.
21004 2017-03-04  Jim Meyering  <meyering@fb.com>
21006         test-calloc-gnu: port to GCC7
21007         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
21008         that attempts to calloc more than SIZE_MAX bytes, because GCC7
21009         and newer would detect that at compilation time.
21011 2017-03-04  Bruno Haible  <bruno@clisp.org>
21013         tests: Avoid compiler warning about uses of null_ptr.
21014         * tests/null-ptr.h: New file.
21015         * tests/test-canonicalize.c: Include null-ptr.h.
21016         (null_ptr): Remove function.
21017         * tests/test-canonicalize-lgpl.c: Likewise.
21018         * tests/test-memmem.c: Likewise.
21019         * tests/test-ptsname_r.c: Likewise.
21020         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
21021         * modules/canonicalize-lgpl-tests: Likewise.
21022         * modules/memmem-tests: Likewise.
21023         * modules/ptsname_r-tests: Likewise.
21024         Reported by Jim Meyering.
21026 2017-03-03  Bruno Haible  <bruno@clisp.org>
21028         doc: Mention Mac OS X deficiencies regarding semaphores.
21029         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
21030         * doc/posix-functions/sem_destroy.texi: Likewise.
21031         * doc/posix-functions/sem_getvalue.texi: Likewise.
21033 2017-03-03  Bruno Haible  <bruno@clisp.org>
21035         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
21036         Reported by Assaf Gordon <assafgordon@gmail.com> via
21037         Pádraig Brady <P@draigBrady.com>.
21038         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
21039         semaphores.
21040         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
21041         (atomic_int_semaphore): New macro.
21043 2017-02-28  Bruno Haible  <bruno@clisp.org>
21045         perror tests: Tweak for z/OS.
21046         Reported by Daniel Richard G. <skunk@iskunk.org>.
21047         * tests/test-perror.sh: Don't fail z/OS style perror output.
21049 2017-02-26  Bruno Haible  <bruno@clisp.org>
21051         nproc: Refactor large function.
21052         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
21053         from num_processors.
21054         (num_processors): In this function, only deal with OMP.
21056 2017-02-26  Pádraig Brady  <P@draigBrady.com>
21058         nproc: adjust handling of OpenMP environment variables
21059         to match the return value from omp_get_num_threads(), i.e.:
21060          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
21061          - Treat 0 as an invalid value and ignore
21062         Also remove the call to omp_get_num_threads() because
21063         it's ineffective without the omp pragmas in place.
21064         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
21065         so that it can be ignored.
21066         (num_processors): Honor OMP_THREAD_LIMIT even without
21067         OMP_NUM_THREADS being set.  Also fix a typo in the environment
21068         variable being checked, from the previous recent commit.
21070 2017-02-26  Pádraig Brady  <P@draigBrady.com>
21072         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
21073         * lib/nproc.c (parse_omp_threads): A new function refactored
21074         from num_processors() to support parsing both of the
21075         above environment variables.
21076         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
21077         to accurately reflect the current OpenMP nesting level.
21078         Also support the OMP_THREAD_LIMIT environment variable
21079         to limit the max value determined from OMP_NUM_THREADS.
21080         * modules/nproc: Depend on minmax header.
21081         Suggested by Oliver Heimlich.
21083 2017-02-25  Bruno Haible  <bruno@clisp.org>
21085         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
21086         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
21088 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21090         ftoastr: port to -Wdouble-promotion
21091         Work around -Wdouble-promotion false alarm in recent GCCs.
21092         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
21093         (ftoastr_snprintf, FTOASTR): Use it.
21095 2017-02-21  Bruno Haible  <bruno@clisp.org>
21097         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
21098         Reported by Rene Saavedra <rennes@openmailbox.org> in
21099         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
21100         * lib/glthread/lock.h: On glibc systems without
21101         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
21102         implementation of rwlocks.
21103         * lib/glthread/lock.c: Likewise.
21105 2017-02-20  Bruno Haible  <bruno@clisp.org>
21107         lock tests: Fix build failure on z/OS.
21108         Reported by Daniel Richard G. <skunk@iskunk.org>.
21109         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
21110         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
21111         exist.
21113 2017-02-19  Bruno Haible  <bruno@clisp.org>
21115         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
21116         This helps when CC=clang.
21117         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
21118         of /usr/bin/gcc.
21120         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
21121         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
21123 2017-02-19  Bruno Haible  <bruno@clisp.org>
21125         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
21126         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
21127         --with-tests --single-configure is specified.
21129 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
21131         users.txt: Update links, use HTTPS where possible
21132         * users.txt: Updated to HTTPS where possible,
21133         fixed some links to new locations.
21135 2017-02-16  Bruno Haible  <bruno@clisp.org>
21137         xbinary-io: Fix inlining.
21138         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
21140 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
21142         xbinary-io: rename from xsetmode
21143         This patch is taken from suggestions by Bruno Haible in:
21144         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
21145         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
21146         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
21147         not ENOTTY, when it is an inappropriate device.
21148         * lib/binary-io.h (SET_BINARY): Resurrect.
21149         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
21150         (xset_binary_mode_error): Rename from xsetmode_error.
21151         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
21152         (xset_binary_mode): Rename from xsetmode.
21153         All uses changed.
21154         * modules/xbinary-io: Rename from modules/xsetmode.
21155         Update file names.
21156         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
21157         * NEWS: Update to match revised behavior.
21159 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21161         tests: Adjust to recent SET_BINARY change
21162         * tests/test-binary-io.c (main):
21163         * tests/test-binary-io.sh: Remove test for SET_BINARY.
21164         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
21165         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
21166         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
21168         xsetmode: new module
21169         This is to fix a problem noted by Eric Blake.
21170         Code was using xfreopen to change files to binary mode, but this
21171         fails for stdout when in append mode.  Such code should use
21172         xsetmode instead.
21173         * NEWS: Document incompatible changes to binary-io module.
21174         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
21175         New function.
21176         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
21177         (set_binary_mode): New function, which also checks for tty.
21178         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
21180 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
21182         headers: fix begin-end typos
21183         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
21184         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
21186         selinux-h: port to PGI 16.10
21187         * lib/se-selinux.in.h: Don't assume that include_next skips over
21188         duplicate -I DIR options.
21190         argp: port to PGI 16.10
21191         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
21193 2017-02-13  Darshit Shah  <darnir@gnu.org>
21195         unicase: Update function protoype to match definition.
21196         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
21197         uses 'size_t' as the datatype for the 'len' parameter in the functions
21198         it generates. Update the prototype specified here to match the newly
21199         generated function.
21201 2017-02-12  Bruno Haible  <bruno@clisp.org>
21203         times test: Avoid gcc warnings on Linux/x32.
21204         * tests/test-times.c (main): Really cast printf arguments from clock_t
21205         to 'long int'.
21207 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21209         glob: port better to emscripten
21210         Problem reported by Bruno Haible in:
21211         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
21212         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
21214 2017-02-11  Bruno Haible  <bruno@clisp.org>
21216         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
21217         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
21218         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
21219         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
21220         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
21221         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
21222         Distinguish hppa64 from hppa.
21224 2017-02-10  Bruno Haible  <bruno@clisp.org>
21226         search: Don't assume that tsearch() exists if 'VISIT' is defined.
21227         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
21228         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
21229         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
21231 2017-02-09  Bruno Haible  <bruno@clisp.org>
21233         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
21234         * doc/gnulib.texi (Libtool and Windows): Recommend
21235         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
21236         Reported by Reuben Thomas <rrt@sc3d.org>.
21238 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21240         stddef-tests: port to SIZE_MAX <= INT_MAX
21241         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
21242         Do not assume that INT_MAX < SIZE_MAX.
21244 2017-02-01  Bruno Haible  <bruno@clisp.org>
21246         lock tests: Fix link error.
21247         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
21248         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21250 2017-01-31  Bruno Haible  <bruno@clisp.org>
21252         lock: Fix link error (regression from 2017-01-05).
21253         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
21254         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
21255         pthread_rwlockattr_destroy weak.
21256         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21258 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21260         Port to PGI 16.10 x86-64
21261         This patch fixes one real bug in gl_anylinked_list2.h, along with
21262         some minor glitches that are not bugs.  It does not silence PGI’s
21263         thousands of bogus warnings when compiling test-intprops.c.
21264         Fortunately, the warnings do not cause a failure.
21265         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
21266         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
21267         My goodness, PGI goes back a long ways - this predates C89!
21268         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
21269         For example, ASYNCSAFE (const void *) should expand to
21270         ‘const void *volatile’, not to ‘volatile const void *’.
21271         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
21272         * lib/verify.h (verify) [!__GNUC__]:
21273         Use shorter albeit meaningless string to bypass silly compiler limits.
21274         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
21275         * tests/nan.h (NaNf, NaNd, NaNl):
21276         Use static functions to avoid misguided compiler diagnostics.
21277         Is there some reason we don’t use static functions on all platforms?
21279 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
21281         parse-datetime: handle timezones reentrantly
21282         This API change was prompted by a report by Pádraig Brady in:
21283         https://bug.debian.org/851934#10
21284         To help fix the bug, make parse_datetime2 more reentrant.
21285         * NEWS: Document this incompatible change.
21286         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
21287         Add two arguments, the timezone and the timezone name.
21288         All callers changed.  If TZ="..." is specified, use it for
21289         calculating defaults.
21290         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
21291         this code should be usable in a library.
21292         (mktime_ok, get_effective_timezone):
21293         Accept timezone arg too.  All callers changed.
21294         (get_tz): Remove.
21295         (get_effective_timezone): Check for failures.
21297 2017-01-20  Eric Blake  <eblake@redhat.com>
21299         localename: port to cygwin 2.6
21300         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
21301         Cygwin.
21302         * modules/localename (Depends-on): Add extensions, since
21303         NL_LOCALE_NAME() is not visible without it.
21305 2017-01-17  Pádraig Brady  <P@draigBrady.com>
21307         parse-datetime: fix dependence on AC_PROG_SED
21308         * modules/parse-datetime: Use `sed` directly like all other modules.
21309         Reported by J William Piggott
21311 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
21313         intprops: update doc URLs
21314         * doc/intprops.texi (Integer Range Overflow): Update URLs.
21316 2017-01-16  Bruno Haible  <bruno@clisp.org>
21318         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
21319         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
21320         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
21321         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
21322         distinguish s390 and s390x.
21323         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
21324         * NEWS: Mention the change regarding 'armel'.
21326 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
21328         localeinfo: case_folded_counterparts and WEOF
21329         * NEWS: Document this.
21330         * lib/localeinfo.c (case_folded_counterparts):
21331         First arg is now wint_t, not wchar_t.  This generalizes the
21332         function to also work on WEOF, where it returns 0.
21334         dfa: port to gcc -fsanitize=undefined
21335         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
21336         as this runs afoul of gcc -fsanitize=undefined.
21338 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
21340         strftime: %z is -00 if unknown
21341         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
21342         the caller's responsibility to set 'negative_number'.  All uses changed.
21343         (__strftime_internal): Put '-' before a zero UTC offset if the time
21344         zone abbreviation starts with "-", which is the recently-introduced
21345         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
21346         * tests/test-strftime.c: Test for this.
21348 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21350         dfa: port to older GCC
21351         Problem reported by Assaf Gordon in:
21352         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
21353         * modules/c99: New module.  This merely attempts to use the latest
21354         C version, which should be enough to solve this particular problem.
21355         The idea is to document which Gnulib modules assume C99 or later.
21356         * modules/dfa (Depends-on): Add it.
21358 2017-01-10  Bruno Haible  <bruno@clisp.org>
21360         Update DEPENDENCIES.
21361         * DEPENDENCIES: List only https URLs. Update recommended version for
21362         autoconf, automake, gperf.
21364 2017-01-10  Jim Meyering  <meyering@fb.com>
21366         maint.mk: enforce spelling of "timestamp" (i.e., no space)
21367         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
21368         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
21370 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21372         dfa: minor simplification with emptyset
21373         * lib/dfa.c (build_state): Simplify by using emptyset.
21375 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21377         dfa: shrink constraints from 4 bits to 3
21378         * lib/dfa.c (newline_constraint, letter_constraint)
21379         (other_constraint, prev_newline_dependent)
21380         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
21381         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
21382         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
21383         Constraints need only 3 bits, not 4.  Using smaller integers
21384         shrinks the code a bit and makes grep a tad faster on x86-64.
21386         dfa: omit unnecessary ptrdiff_t check
21387         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
21388         overflow, since xnmalloc does that now.
21390         dfa: omit unnecessary allocation
21391         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
21392         an all-zero follow set works just fine.
21394         dfa: omit unused local
21395         * lib/dfa.c (build_state): Fix up recent change.
21397         maint: remove stray .texi files
21398         Although these were superseded by other files like
21399         doc/posix-functions/ctime.texi, the old files were not removed.
21400         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
21402 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
21404         getprogname: fix port to IRIX
21405         * lib/getprogname.c (getprogname) [__sgi]:
21406         Don't dump core if malloc returns NULL.
21408         dfa: fix reallocation bug when matching newlines
21409         Problem reported for sed by S. Gilles (Bug#25390).
21410         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
21411         (dfastate): Reallocate before moving any newline transition ...
21412         (build_state): ... instead of reallocating here, where it is too late.
21414 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21416         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
21417         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
21419 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21421         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
21422         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
21424 2017-01-07  Bruno Haible  <bruno@clisp.org>
21426         stdioext: Port to Minix 3.2 and newer.
21427         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
21428         * lib/fseeko.c (fseeko): Likewise.
21429         Reported by Nelson Beebe via Paul Eggert.
21431 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
21433         getprogname: port to IRIX
21434         * lib/getprogname.c (getprogname): Port to IRIX.
21435         Based on an idea by Bastien Roucariès at:
21436         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
21437         via code from Bruno Haible at:
21438         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
21440         localename-tests: port to NetBSD 7
21441         Problem reported by Nelson H. F. Beebe.
21442         * tests/test-localename.c:
21443         Test newlocale and uselocale only if both exist.
21445         glob, intprops, xalloc: work around Clang bug
21446         Work around LLVM bug 16404, which is still not fixed.
21447         https://llvm.org/bugs/show_bug.cgi?id=16404
21448         Problem reported by Nelson H. F. Beebe.
21449         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
21450         Remove.
21451         * lib/glob.c (size_add_wrapv):
21452         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
21453         * lib/xalloc-oversized.h (xalloc_oversized):
21454         Do not use overflow builtins if Clang.
21456         dfa: fix 'return' typo
21457         Problem reported by Nelson H. F. Beebe.
21458         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
21460 2017-01-05  Pádraig Brady  <P@draigBrady.com>
21462         parse-datetime: fix generated paths for coverage files
21463         * modules/parse-datetime: Adjust the paths for parse-datetime.y
21464         within parse-datetime.c, so that gcc generates appropriate .gcno
21465         files, allowing lcov to proceed without error.  Previously it
21466         would error trying to find "lib/lib/parse-datetime.y".
21468 2017-01-05  Pádraig Brady  <P@draigBrady.com>
21470         maint.mk: support parallel execution of coverage
21471         * top/maint.mk (coverage): Run dependencies serially,
21472         thus supporting parallel processing of each one,
21473         particularly build-coverage, which builds and runs tests.
21475 2017-01-05  Bruno Haible  <bruno@clisp.org>
21477         lock tests: Prefer semaphore over mutex.
21478         * tests/test-lock.c (USE_SEMAPHORE): New constant.
21479         (struct atomic_int, init_atomic_int, get_atomic_int_value,
21480         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
21481         Suggested by Torvald Riegel <triegel@redhat.com>.
21483 2017-01-05  Bruno Haible  <bruno@clisp.org>
21485         lock: Provide guarantee to avoid writer starvation for rwlocks.
21486         The rationale is: 1) Read-preferring read-write locks are prone to
21487         writer starvation if the number of reader threads multiplied by the
21488         percentage of time they have the lock held is too high. 2) Write-
21489         preferring read-write locks are the only reliable way to avoid this.
21490         3) There have been reports of 'test-lock' hanging on glibc systems
21491         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
21492         and glibc indeed implements read-preferring rwlocks by default, see
21493         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
21494         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
21495         * m4/pthread_rwlock_rdlock.m4: New file.
21496         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
21497         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
21498         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
21499         of rwlock initialization on glibc systems without
21500         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
21501         of rwlocks altogether on non-glibc systems without
21502         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
21503         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
21504         * lib/glthread/lock.c [USE_POSIX_THREADS]
21505         (glthread_rwlock_init_for_glibc): New function.
21506         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
21507         comment.
21508         [USE_PTH_THREADS]: New implementation of rwlocks.
21509         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
21510         readers.
21511         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
21512         (Depends-on): Add 'extensions'.
21513         * tests/test-rwlock1.c: New file.
21514         * lock-tests (Files): Add it.
21515         (Depends-on): Add usleep.
21516         (Makefile.am): Add test-rwlock1 to the tests.
21518 2017-01-05  Bruno Haible  <bruno@clisp.org>
21520         thread: Fix pth port.
21521         * lib/glthread/thread.h (pth_init): Declare weak.
21522         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
21523         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
21524         function.
21526 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
21528         parse-datetime: fix debug message on lone year number
21529         Input dates such as
21530           date -d "Apr 11 22:59:00 2011"
21531         are parsed as date (Apr 11, with default year 2016), then time, then a
21532         number (2011). Based on the combination of previously seen tokens,
21533         'digits_to_date_time' determines 2011 to be a year value.
21534         This fixes the debug messages to correctly show the updated year.
21535         Before:
21536             $ date --debug -d 'Apr 11 22:59:00 2011'
21537             date: parsed date part: (Y-M-D) 2016-04-11
21538             date: parsed time part: 22:59:00
21539             date: parsed number part: today/this/now
21540         After:
21541             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
21542             date: parsed date part: (Y-M-D) 2016-04-11
21543             date: parsed time part: 22:59:00
21544             date: parsed number part: year: 2011
21545         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
21546         'debug_year_seen' member fields.
21547         (digits_to_date_time): Update 'year_seen' as needed.
21548         (debug_print_current_time): Inform about year updates.
21549         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
21551         parse-datetime: fix local timezone debug messages
21552         "Local timezones" are strings that affect only DST relative to the
21553         default timezone. The debug messages in parse-datetime.y printed
21554         wrong information when encountering local timezones.
21555         Examples:
21556         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
21557              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
21558              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
21559         When the default timezone relates to the zone strings, EET/EEST are
21560         parsed as local timezones (tLOCAL_ZONE), and only change the DST
21561         value (0/1, respectively):
21562              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
21563              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
21564         * lib/parse-datetime.y (debug_print_current_time): If local timezone
21565         was seen, inform about DST change, don't print actual timezone.
21566         (debug_strfdatetime): If local timezone was seen, use default timezone
21567         (and adjust as needed) instead of using incorrect timezone.
21568         (parse_datetime2): Use correct time-zone source string, and adjust
21569         default timezone as needed.
21571         parse-datetime: add debug warning about DST changes
21572         Incorrect date arithmetic due to daylight saving time (DST) are a
21573         common (false) bug report in coreutils.
21574         Detect two such cases and print a warning:
21575         1. year/month/day adjustments (performed on 'struct tm'),
21576            where 'mktime' returns a different isdst value.
21577         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
21578            where the result of 'localtime(3)' on the value will return a
21579            different isdst value.
21580         Note: DST changes could be harmless or unnoticeable.
21581         Examples (with 'TZ=America/New_York'):
21582         Unnoticeable: result is 2016-Dec-14
21583            $ date -d '2016-06-15 EDT + 6 months' +%b
21584            Dec
21585         Unnoticeable: result is 2016-Dec-15 11:00:00
21586            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
21587            2016-12-15
21588         This is unexpected:
21589            $ date -d '2016-06-01 EDT + 6 months' +%F
21590            2016-11-30
21591         The new debug warnings will show:
21592            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
21593            ...
21594            date: warning: daylight saving time changed after date adjustment
21595            ...
21596         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
21597         print an appropriate warning message.
21599         parse-datetime: add debug warning about date arithmetic
21600         Date arithmetic are done directly on the fields of 'struct tm',
21601         which can result in invalid dates. Normalization with 'mktime(3)'
21602         will then produce a different date - which might cause unexpected
21603         results.
21604         Examples:
21605           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
21606           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
21607         Note that date normalization is not inherently wrong and not rejected,
21608         as it has legitimate uses:
21609           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
21610         If the user asked to adjust months but 'mday' changed,
21611         or user asked to adjust years but 'month' changed - warn about it.
21612             $ ./src/date --debug -d '2016-10-31 - 1 month'
21613             ...
21614             date: warning: when adding relative months/years, \
21615                            it is recommended to specify the 15th of the month
21616             ...
21617             date: warning: month/year adjustment resulted in shifted dates:
21618             date:      adjusted Y M D: 2016 09 31
21619             date:    normalized Y M D: 2010 10 01
21620             ...
21621         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
21622         a warning message. Improve recommendation of when to use 15 of the
21623         month or noon for date arithmetic.
21625         parse-datetime: fix debug message of relative part after timezone
21626         Relative part (e.g '+8 days') after a timezone string was not
21627         reported (was only reported after a timezone number). Due to the
21628         parser's structure, timezone strings with numbers were handled
21629         separately.
21630         before:
21631              # Timezone number + relative part: OK
21632              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
21633              ...
21634              date: parsed relative part: -8 day(s)
21635              # Timezone string + relative part: missing
21636              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
21637              [ missing message ]
21638         After: messages are printed in both cases.
21639         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
21641         parse-datetime: fix incorrect debug message on lone number
21642         A lone number is an absolute value, not a relative time part.
21643         before:
21644            $ date --debug -d '20130101'
21645            date: parsed number part: today/this/now
21646         After:
21647            $ ./src/date --debug -d '20130101'
21648            date: parsed number part: (Y-M-D) 2013-01-01
21649         * lib/parse-datetime.y ('item'/'number' tokens): Call
21650         'debug_print_current_time' instead of 'debug_print_relative_time'.
21652 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
21654         doc: modernize for C11 etc.
21655         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
21656         for C11, MinGW, etc.  This responds to Paul Smith's question in:
21657         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
21659         dfa: prefer functions to FETCH_WC macro
21660         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
21661         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
21662         wint_t result into DFA->lex.wctok instead of to a separate arg.
21663         All callers changed.  Move more local decls closer to where
21664         they're used.
21666         dfa: narrow more local var scopes
21667         * lib/dfa.c: Move more local decls to be more local.
21669         dfa: remove duplicate assignment
21670         Problem reported by Bruno Haible in:
21671         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
21672         * lib/dfa.c (parse_bracket_exp): Simplify.
21674 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21676         dfa: simplify constraint-dependency checking
21677         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
21678         (prev_other_constraint): Remove.
21679         (prev_newline_dependent, prev_letter_dependent):
21680         Simplify, to avoid an unnecessary bitwise AND operation.
21682         dfa: prefer functions and constants to macros
21683         * lib/dfa.c: Prefer constants to macros where either will do.
21684         (streq, isasciidigit, newline_constraint)
21685         (letter_constraint, other_constraint, succeeds_in_context)
21686         (prev_newline_constraint, prev_letter_constraint)
21687         (prev_other_constraint, prev_newline_dependent)
21688         (prev_letter_dependent, accepting, accepts_in_context):
21689         Now static functions instead of function-like macros.
21690         Use lower-case names accordingly.  All uses changed.
21692         dfa: narrow more local var scopes
21693         * lib/dfa.c: Move some more local decls down to nearer where
21694         they're needed.
21696 2016-12-31  Jim Meyering  <meyering@fb.com>
21698         dfa: narrow the scope of many local variables
21699         * lib/dfa.c: Now that we are no longer constrained to c89, move
21700         declarations of many variables (often indices) "down" into the
21701         scope(s) where used or to the point of definition.  This is a
21702         no-semantic-change diff.
21704 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21706         version-etc: new year
21707         * build-aux/gendocs.sh (version):
21708         * doc/gendocs_template:
21709         * doc/gendocs_template_min:
21710         * doc/gnulib.texi:
21711         * lib/version-etc.c (COPYRIGHT_YEAR):
21712         Update copyright dates by hand in templates and the like.
21713         * all files: Run 'make update-copyright'.
21715 2016-12-31  Eric Blake  <eblake@redhat.com>
21717         do-release-commit-and-tag: avoid shell syntax error
21718         * build-aux/do-release-commit-and-tag (curr_br): $branch can
21719         contain spaces when rebasing.
21721         maint.mk: hoist gnulib_dir definition earlier
21722         * top/maint.mk (gnulib_dir): Move near top of file.
21724 2016-12-31  Jim Meyering  <meyering@fb.com>
21726         maint.mk: do not always evaluate intprops-related shell
21727         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
21728         using gnulib_dir undefined (gnulib_dir is defined later in the
21729         file, which will be fixed separately), and besides, there is no
21730         need to incur the cost of this shell invocation for every single
21731         use of this .mk file.  Reported by Eric Blake in
21732         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
21734 2016-12-30  Jim Meyering  <meyering@fb.com>
21736         maint.mk: improve sc_prohibit_intprops_without_use
21737         * top/maint.mk (_intprops_names): Don't hard-code the list of
21738         symbol names.  Instead, derive it on the fly.
21740 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
21742         dfa: shorten sbit, success
21743         * lib/dfa.c (struct regex_syntax.sbit):
21744         (struct dfa.success): Use char, not int, for array elements, since
21745         they are all in the range 0..7.
21747         dfa: simplify multibyte_prop etc.
21748         This follows up on a change made when dfa.c was in grep, namely grep
21749         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
21750         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
21751         That earlier simplification allows for some more simplification
21752         and trimming down here.
21753         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
21754         (struct lexer_state): New mamber brack.
21755         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
21756         since they must be in the range 0..3 now.
21757         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
21758         the brack member now supersedes them.
21759         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
21760         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
21761         (dfaparse): Remove unnecessary initializations of already-0 storage.
21762         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
21763         (dfassbuild): No need to clear sup->mbcsets.
21765         dfa: minor performance tweak
21766         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
21768         dfa: wrap charclass inside a struct
21769         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
21770         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
21771         about 5% faster, where list.txt is generated by 'aspell dump
21772         master | head -n 100000 >list.txt'.  See Bug#22239.
21773         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
21774         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
21775         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
21776         Adjust to this, e.g., by using charclass * rather than charclass.
21777         All callers changed as needed.
21778         (copyset): Remove.  All uses changed to simple assignment.
21779         (parse_bracket_exp): Use zeroset instead of memset.
21781 2016-12-30  Jim Meyering  <meyering@fb.com>
21783         maint.mk: update list of intprops.h symbol names
21784         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
21785         This avoids a false failure of the sc_prohibit_intprops_without_use
21786         rule in grep.
21788 2016-12-29  Eric Blake  <eblake@redhat.com>
21790         getopt: fix parallel test failure
21791         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
21792         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
21793         * tests/test-getopt-main.h (main): Use different file names
21794         in case test-getopt-gnu and test-getopt-posix run in parallel.
21796 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21798         xalloc: x2nrealloc check for ptrdiff_t overflow
21799         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
21800         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
21802 2016-12-24  Bruno Haible  <bruno@clisp.org>
21804         lock test: Fix performance problem on multi-core machines.
21805         * tests/test-lock.c (USE_VOLATILE): New macro.
21806         (struct atomic_int): New type.
21807         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
21808         functions.
21809         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
21810         as 'struct atomic_int'.
21811         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
21812         reclock_checker_thread, test_recursive_lock): Use the new functions.
21813         Reported by Eric Blake in
21814         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
21815         and by Pádraig Brady in
21816         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
21818 2016-12-19  Bruno Haible  <bruno@clisp.org>
21820         vma-iter: Fix endless loop on 64-bit Windows.
21821         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
21822         'unsigned long'.
21824 2016-12-19  Bruno Haible  <bruno@clisp.org>
21826         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
21827         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
21828         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
21829         Invoke gt_TYPE_WINT_T instead.
21830         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
21831         * modules/stdint (Files): Add m4/wint_t.m4.
21832         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
21833         * modules/wctype-h (Makefile.am): Likewise.
21834         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
21835         not only on MSVC.
21836         * lib/wctype.in.h (wint_t): Likewise.
21838 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21840         getopt-posix-tests: fix Makefile typo
21841         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
21842         Fix typo: the last ‘_’ was missing in the name.
21843         I suspect that the typo explains this build failure:
21844         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
21845         although I can’t reproduce the problem on Solaris 10 sparc.
21847 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21849         dfa: improve worst-case 'replace' performance
21850         See my note in Bug#22357#71.
21851         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
21852         (merge_constrained): New function, which is like
21853         the old 'merge' function, except with a new argument C2.
21854         Simplify the body by avoiding the need for different sections
21855         of code depending on whether one input is exhausted.
21856         (merge): Use the new function.
21857         (delete): Return the constraint of the deleted position,
21858         not the entire position.  Caller changed.
21859         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
21861 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
21863         dfa: performance improvement for removal of epsilon closure
21864         See Bug#22357#32.
21865         * lib/dfa.c (delete): Use binary search to find deleted index.
21866         (replace): New function.  It replaces a position with the followed set.
21867         (epsclosure): Replace it with a new algorithm.  Update caller.
21869 2016-12-18  Bruno Haible  <bruno@clisp.org>
21871         Split tests for getopt-posix and getopt-gnu.
21872         * tests/test-getopt-posix.c: New file.
21873         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
21874         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
21875         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
21876         GNULIB_TEST_GETOPT_GNU.
21877         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
21878         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
21879         (Makefile.am): Test test-getopt-posix instead of test-getopt.
21880         * modules/getopt-gnu-tests: New file.
21881         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
21883 2016-12-18  Bruno Haible  <bruno@clisp.org>
21885         posix-modules: Add options for specific platforms.
21886         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
21887         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
21888         Invoke func_tmpdir. Filter out the excludes.
21890 2016-12-18  Bruno Haible  <bruno@clisp.org>
21892         getopt: Fix link error for users of getopt() in <unistd.h>.
21893         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
21894         __need_getopt is defined. Undefine all macros before defining them.
21895         * modules/getopt (Include): Clarify that including <unistd.h> is also
21896         OK.
21897         * tests/test-getopt.c: Add comment.
21899 2016-12-17  Bruno Haible  <bruno@clisp.org>
21901         getaddrinfo tests: Avoid compilation error on MSVC.
21902         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
21903         getaddrinfo on native Windows.
21905 2016-12-17  Bruno Haible  <bruno@clisp.org>
21907         getlogin, getlogin_r: Fix link errors on MSVC.
21908         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
21909         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
21910         (Link): New section.
21911         * modules/getlogin_r (Files): Add m4/getlogin.m4.
21912         (configure.ac): Require gl_LIB_GETLOGIN.
21913         (Link): New section.
21914         * NEWS: Mention the new link requirements.
21915         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
21916         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
21918 2016-12-17  Bruno Haible  <bruno@clisp.org>
21920         Un-deprecate the 'progname' module.
21921         * NEWS: Describe the appropriate use-cases of 'progname' versus
21922         'getprogname'. Based on discussion summary at
21923         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
21925 2016-12-17  Bruno Haible  <bruno@clisp.org>
21927         Reorganize NEWS a bit.
21928         * NEWS: Move some not so important changes away from section
21929         "Important Notes".
21931 2016-12-17  Bruno Haible  <bruno@clisp.org>
21933         tanhf: Avoid redefinition error on MSVC.
21934         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
21935         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
21936         may be defined as an inline function.
21937         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
21938         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
21940 2016-12-17  Bruno Haible  <bruno@clisp.org>
21942         tanf: Avoid redefinition error on MSVC.
21943         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
21944         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
21945         may be defined as an inline function.
21946         * modules/math (Makefile.am): Substitute REPLACE_TANF.
21947         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
21949 2016-12-17  Bruno Haible  <bruno@clisp.org>
21951         sqrtf: Avoid redefinition error on MSVC.
21952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
21953         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
21954         may be defined as an inline function.
21955         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
21956         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
21958 2016-12-17  Bruno Haible  <bruno@clisp.org>
21960         sinhf: Avoid redefinition error on MSVC.
21961         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
21962         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
21963         may be defined as an inline function.
21964         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
21965         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
21967 2016-12-17  Bruno Haible  <bruno@clisp.org>
21969         sinf: Avoid redefinition error on MSVC.
21970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
21971         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
21972         may be defined as an inline function.
21973         * modules/math (Makefile.am): Substitute REPLACE_SINF.
21974         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
21976 2016-12-17  Bruno Haible  <bruno@clisp.org>
21978         logf: Avoid redefinition error on MSVC.
21979         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
21980         may be defined as an inline function.
21982 2016-12-17  Bruno Haible  <bruno@clisp.org>
21984         log10l: Avoid redefinition error on MSVC.
21985         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
21986         may be defined as an inline function.
21988 2016-12-17  Bruno Haible  <bruno@clisp.org>
21990         log10f: Avoid redefinition error on MSVC.
21991         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
21992         may be defined as an inline function.
21994 2016-12-17  Bruno Haible  <bruno@clisp.org>
21996         hypotl: Avoid redefinition error on MSVC.
21997         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
21998         may be defined as an inline function.
22000 2016-12-17  Bruno Haible  <bruno@clisp.org>
22002         hypotf: Avoid redefinition error on MSVC.
22003         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
22004         may be defined as an inline function.
22006 2016-12-17  Bruno Haible  <bruno@clisp.org>
22008         fmodl: Avoid redefinition error on MSVC.
22009         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
22010         may be defined as an inline function.
22012 2016-12-17  Bruno Haible  <bruno@clisp.org>
22014         fmodf: Avoid redefinition error on MSVC.
22015         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
22016         may be defined as an inline function.
22018 2016-12-17  Bruno Haible  <bruno@clisp.org>
22020         expf: Avoid redefinition error on MSVC.
22021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
22022         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
22023         may be defined as an inline function.
22024         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
22025         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
22027 2016-12-17  Bruno Haible  <bruno@clisp.org>
22029         coshf: Avoid redefinition error on MSVC.
22030         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
22031         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
22032         may be defined as an inline function.
22033         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
22034         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
22036 2016-12-17  Bruno Haible  <bruno@clisp.org>
22038         cosf: Avoid redefinition error on MSVC.
22039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
22040         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
22041         may be defined as an inline function.
22042         * modules/math (Makefile.am): Substitute REPLACE_COSF.
22043         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
22045 2016-12-17  Bruno Haible  <bruno@clisp.org>
22047         atan2f: Avoid redefinition error on MSVC.
22048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
22049         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
22050         may be defined as an inline function.
22051         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
22052         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
22054 2016-12-17  Bruno Haible  <bruno@clisp.org>
22056         atanf: Avoid redefinition error on MSVC.
22057         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
22058         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
22059         may be defined as an inline function.
22060         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
22061         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
22063 2016-12-17  Bruno Haible  <bruno@clisp.org>
22065         asinf: Avoid redefinition error on MSVC.
22066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
22067         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
22068         may be defined as an inline function.
22069         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
22070         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
22072 2016-12-17  Bruno Haible  <bruno@clisp.org>
22074         acosf: Avoid redefinition error on MSVC.
22075         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
22076         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
22077         may be defined as an inline function.
22078         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
22079         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
22081 2016-12-17  Bruno Haible  <bruno@clisp.org>
22083         Avoid redefinition errors on MSVC.
22084         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
22085         the function may be defined as an inline function.
22086         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
22087         the function may be defined as an inline function.
22089 2016-12-17  Bruno Haible  <bruno@clisp.org>
22091         Avoid redefinition errors on MSVC.
22092         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
22093         * lib/unistd.in.h: Include <stdio.h> when necessary.
22095 2016-12-17  Bruno Haible  <bruno@clisp.org>
22097         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
22098         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
22099         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
22100         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
22101         WINT_MAX.
22103 2016-12-17  Bruno Haible  <bruno@clisp.org>
22105         Avoid autoconf warning.
22106         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
22107         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
22109 2016-12-17  Bruno Haible  <bruno@clisp.org>
22111         fpending: Revert workaround against Emacs bug.
22112         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
22113         The Emacs bug is fixed by Eli Zaretskii in
22114         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
22116 2016-12-17  Bruno Haible  <bruno@clisp.org>
22118         getlogin_r tests: Port to mingw.
22119         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
22120         regression introduced on 2014-05-19.
22122 2016-12-17  Bruno Haible  <bruno@clisp.org>
22124         getlogin: Port to newer mingw.
22125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
22126         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
22127         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
22128         HAVE_GETLOGIN.
22129         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
22130         HAVE_GETLOGIN.
22131         * doc/posix-functions/getlogin.texi: Mention the issue.
22132         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
22133         regression introduced on 2014-05-14.
22135 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
22137         builtin-expect: improve port to IBM XL C
22138         Problem reported for z/OS by Daniel Richard G. in:
22139         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
22140         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
22141         Test for <builtins.h> directly.
22143         builtin-expect: port to IBM XL C
22144         Problem reported for z/OS by Daniel Richard G. in:
22145         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
22146         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
22147         Also allow __builtin_expect defined via a standard include file.
22149         regex: fix dependency
22150         Problem reported by Bruno Haible in:
22151         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
22152         * modules/regex: Depend on builtin-expect.
22154         builtin-expect: new module
22155         Fix fnmatch to use it.
22156         Problem reported for z/OS by Daniel Richard G.
22157         * lib/fnmatch.c (__builtin_expect):
22158         * lib/glob.c (__builtin_expect):
22159         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
22160         * lib/memmem.c (__builtin_expect) [!_LIBC]:
22161         * lib/scandir.c (__builtin_expect):
22162         * lib/strstr.c (__builtin_expect) [!_LIBC]:
22163         Remove macro; config.h now does this.
22164         * lib/gl_anytreehash_list1.h (add_to_bucket):
22165         * lib/regex_internal.h (BE):
22166         Assume __builtin_expect.
22167         * m4/builtin-expect.m4, modules/builtin-expect: New files.
22168         * modules/avltreehash-list, modules/fnmatch, modules/glob:
22169         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
22170         * modules/scandir, modules/strstr-simple:
22171         Depend on builtin-expect.
22173 2016-12-15  Bruno Haible  <bruno@clisp.org>
22175         init.sh: Add possibility to not delete temporary files.
22176         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
22177         to yes, don't erase the temporary directory.
22179 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
22181         regex: fix integer-overflow bug in never-used code
22182         Problem reported by Clément Pit–Claudel in:
22183         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
22184         * lib/regex_internal.h: Include intprops.h.
22185         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
22186         behavior on integer overflow.
22187         * modules/regex (Depends-on): Add intprops.
22189         fpending: fix port to MinGW on Emacs
22190         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
22191         Problem reported by Eli Zaretskii in:
22192         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
22193         Is Plan 9 still a valid porting target, anyway?
22195 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
22197         safe-alloc: use xalloc-oversized
22198         * lib/safe-alloc.c: Include xalloc-oversized.h.
22199         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
22200         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
22202         xalloc: do not exceed PTRDIFF_MAX
22203         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
22204         xalloc_oversized check, since objects larger than PTRDIFF_MAX
22205         bytes have pointer-subtraction problems.
22207         malloca: do not exceed PTRDIFF_MAX
22208         * lib/malloca.h: Include xalloc-oversized.
22209         (nmalloca): Use xalloc_oversized instead of rolling our own.
22210         * modules/malloca (Depends-on):
22211         * modules/relocatable-prog-wrapper (Depends-on):
22212         Add xalloc-oversized.
22214         quotearg: pacify GCC better
22215         * modules/quotearg (Depends-on): Add minmax, stdint.
22216         * lib/quotearg.c: Include minmax.h, stdint.h.
22217         (nslots): Now int, as there seems little point to going to extra
22218         work merely to support the INT_MAX slot, which nobody ever uses.
22219         (quotearg_n_options): Redo size-overflow checks to pacify GCC
22220         and to catch (mostly-theoretical) ptrdiff_t problems too.
22221         This can be done via one comparison.
22223 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
22225         xalloc-oversized: check for PTRDIFF_MAX too
22226         This avoids undefined behavior when subtracting pointers to
22227         objects containing more than PTRDIFF_MAX bytes.
22228         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
22229         Also return 1 if the result would exceed PTRDIFF_MAX>
22230         * modules/xalloc-oversized (Depends-on):
22231         Add stdint.
22233         dfa: fix glitches in previous commit
22234         Sorry, I don't know how I managed to commit the wrong version.
22235         * lib/dfa.c (MIN): Move up.
22236         (xpalloc): Now static.
22238         dfa: fix some unlikely integer overflows
22239         I found these while reviewing the recent Coverity-related fix.
22240         This patch changes part of dfa.c to prefer ptrdiff_t instead of
22241         size_t for object counts.  Using ptrdiff_t is the style typically
22242         used in Emacs; although it wastes a sign bit as sizes can never be
22243         negative, it makes -fsanitize=undefined more likely to catch
22244         integer overflows in index calculation, and nowadays the upside is
22245         typically more important than the downside.  Although perhaps the
22246         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
22247         of dfa.c already does, since it uses state_num which is signed),
22248         that is a bigger change and is not needed to fix the bugs I found.
22249         * lib/dfa.c: Include stdint.h and intprops.h.
22250         (TOKEN_MAX): New macro.
22251         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
22252         (charclass_index, parse_bracket_exp, addtok, insert, merge)
22253         (realloc_trans_if_necessary, free_mbdata):
22254         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
22255         This is safe because xpalloc checks that the sizes do not exceed
22256         either SIZE_MAX or PTRDIFF_MAX.
22257         (xpalloc): New function, mostly taken from Emacs.
22258         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
22259         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
22260         (charclass_index): Check for integer overflow in computing
22261         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
22262         added to it later.
22263         (alloc_position_set): Check for integer overflow.  On typical
22264         platforms this check has zero overhead, since the constant
22265         expression is false.
22266         (realloc_trans_if_necessary):
22267         Remove assertion, which I hope Coverity no longer needs.
22269         * modules/dfa (Depends-on): Add intprops, stdint.
22271 2016-12-12  Jim Meyering  <meyering@fb.com>
22273         dfa: add an assertion to avoid coverity false positive
22274         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
22275         warned that "newalloc1 - 2" could overflow.
22277 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
22279         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
22280         * dfa.h (DFA_CASE_FOLD): Remove.
22281         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
22283 2016-12-13  John W. Eaton  <gnu@jweaton.org>
22285         link: fix test to declare use of rename()
22286         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
22287         -Werror=implicit-function-declaration
22289 2016-12-12  Bruno Haible  <bruno@clisp.org>
22291         fpending: Port to native Windows with MSVC.
22292         * lib/fpending.c: Include stdio-impl.h.
22293         (__fpending): Include all known implementations. Err out if it's not
22294         ported.
22295         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
22296         * modules/fpending (Files): Add lib/stdio-impl.h.
22297         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
22299 2016-12-12  Bruno Haible  <bruno@clisp.org>
22301         stdioext: Port to native Windows with MSVC.
22302         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
22303         (struct _gl_real_FILE): New type.
22304         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
22305         Windows.
22306         * lib/fbufmode.c (fbufmode): Add code for native Windows.
22307         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
22308         other SystemV derived implementations.
22309         * lib/fpurge.c (fpurge): Likewise.
22310         * lib/freadable.c (freadable): Likewise.
22311         * lib/freadahead.c (freadahead): Likewise.
22312         * lib/freading.c (freading): Likewise.
22313         * lib/freadptr.c (freadptr): Likewise.
22314         * lib/freadseek.c (freadptrinc): Likewise.
22315         * lib/fseeko.c (fseeko): Likewise.
22316         * lib/fseterr.c (fseterr): Likewise.
22317         * lib/fwritable.c (fwritable): Likewise.
22318         * lib/fwriting.c (fwriting): Likewise.
22319         Reported by Gisle Vanem <gvanem@yahoo.no>.
22321 2016-12-11  Jim Meyering  <meyering@fb.com>
22323         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
22324         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
22325         to work with most shells, but not with the one provided by many
22326         Solaris 10 systems, so running configure with such a /bin/sh evokes
22327         e.g., "./configure: syntax error at line 33602: `(' unexpected".
22328         Reported by Assaf Gordon in
22329         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
22331 2016-12-10  Bruno Haible  <bruno@clisp.org>
22333         threadlib: Optimize out runtime test on Solaris >= 10.
22334         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
22335         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
22336         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
22338 2016-12-10  Bruno Haible  <bruno@clisp.org>
22340         stdint: Update doc about Solaris 9.
22341         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
22343 2016-12-09  Bruno Haible  <bruno@clisp.org>
22345         c-ctype tests: Fix link error on Solaris 9.
22346         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
22347         Reported at <https://savannah.gnu.org/bugs/?46827>.
22349 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
22351         dfa: fix performance bug that recomputes trans
22352         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
22353         25 on-demand changes.  The bug caused build_state to reset all
22354         d->trans elements to -2 even when d->trans was already non-null.
22355         Use C99 style decls after statements in this function.
22357         same-inode: port to MinGW
22358         Here st_ino is always 0, so change the definition of SAME_INODE so
22359         that 1 means the two files are the same, 0 with st_ino != 0 means
22360         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
22361         reported by Bruno Haible (Bug#25146).
22362         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
22363         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
22365 2016-12-04  Bruno Haible  <bruno@clisp.org>
22367         javacomp-script: Support Java 7 and 8.
22368         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
22369         target-version 1.7, 1.8.
22371 2016-12-02  Daiki Ueno  <ueno@gnu.org>
22373         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
22374         GPLv2" rewriting.
22376 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
22378         * gnulib-tool (func_import): Adhere to the license guideline when
22379         rewriting the license text to "LGPLv3+ or GPLv2":
22380         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
22382 2016-12-02  Bruno Haible  <bruno@clisp.org>
22384         localcharset: Avoid theoretical buffer overrun.
22385         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
22386         return value from setlocale if it would lead to a buffer overrun.
22388 2016-12-01  Bruno Haible  <bruno@clisp.org>
22390         Relicense some modules under LGPLv2+.
22391         Kevin Cernekee's approval is in
22392         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
22393         * modules/fseterr (License): Change to LGPLv2+.
22394         * modules/mbchar (License): Likewise.
22395         * modules/mbiter (License): Likewise.
22396         * modules/mbsnlen (License): Likewise.
22397         * modules/wcwidth (License): Likewise.
22399 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22401         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
22402         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
22403         OS/2 kLIBC.
22405 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22407         alphasort, scandir: Port to OS/2 kLIBC
22408         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
22409         declaration.
22410         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
22412 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22414         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
22415         * lib/relocatable.c (relocate): Do not touch pathname if it is started
22416         with '/@unixroot'.
22418 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22420         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
22421         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
22422         OS/2 kLIBC unless TCPV40HDRS is defined.
22424 2016-11-29  Jim Meyering  <meyering@fb.com>
22426         dfa: avoid new infinite loop
22427         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
22428         * lib/dfa.c (dfastate): When constructing a new state table, we could
22429         initially declare that we had found a match, and later find that
22430         constraints eliminate that possibility, yet continue to use the
22431         now stale "matched" indicator.  That would lead to an infinite loop.
22432         The solution is to update "matched" when necessary.
22433         Introduced by commit v0.1-983-g403adf1.
22435 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22437         dfa: avoid match middle in multibyte character
22438         * lib/dfa.c (transit_state): If fails in matching single byte characters
22439         on a state including period expression in non-UTF8 multibyte locales,
22440         skip trailing bytes.
22441         (dfa_supported): Revert previous change.
22443 2016-11-27  Jim Meyering  <meyering@fb.com>
22445         dfa: avoid false match in non-UTF8 multibyte locales
22446         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
22447         as "not supported" so that callers will resort to using regex-based
22448         matcher.  This will surely hurt performance, but correctness trumps
22449         performance here, and the affected locales are less and less relevant,
22450         these days.  See grep's bug report https://bugs.gnu.org/24975.
22452 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
22454         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
22455         * lib/ptsname_r.c: Include the appropriate headers.
22456         [__sun]: Delete sys/sysmacros.h include.
22457         [_AIX || __osf__]: Likewise.
22458         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
22460 2016-11-27  Pádraig Brady  <P@draigBrady.com>
22462         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
22463         * lib/md4.c (md4_process_bytes): The existing define is made internal
22464         in recent versions of glibc, so also use this new public define.
22465         * lib/md5.c (md5_process_bytes): Likewise.
22466         * lib/sha1.c (sha1_process_bytes): Likewise.
22467         * lib/sha256.c (sha256_process_bytes): Likewise.
22468         * lib/sha512.c (sha512_process_bytes): Likewise.
22470 2016-11-27  Pádraig Brady  <P@draigBrady.com>
22472         maint: use a more standard return from mbrtowc test
22473         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
22474         from the test program as this often indicates an
22475         unhandled case in the test program.
22476         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
22477         (gl_MBRTOWC_SANITYCHECK): Likewise.
22478         (gl_MBRTOWC_NULL_ARG2): Likewise.
22479         (gl_MBRTOWC_NUL_RETVAL): Likewise.
22481 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
22483         freopen: work around glibc bug with closed fd
22484         Work around glibc bug#15589, where freopen mishandles the case
22485         where stdin etc. are already closed.
22486         * doc/posix-functions/freopen.texi (freopen): Document the bug.
22487         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
22488         instead of __need_FILE, as the latter does not work with glibc.
22489         Include <fcntl.h>, for open flags.
22490         (rpl_freopen): Work around glibc bug.
22491         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
22492         * modules/freopen (Depends-on): Add fcntl-h.
22493         * tests/test-freopen.c (main): Test for bug.
22495 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22497         fnmatch: fix typo introduced on 2016-08-17
22498         This fixes the port to non-GCC compilers that lack __builtin_expect.
22499         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
22501         dfa: simplify with new function fillset
22502         * lib/dfa.c (fillset): New function.
22503         Use it for clarity when applicable.
22505         dfa: fix glitches with on-demand states
22506         Also, adjust commentary to better match new code.
22507         Some of these glitches predate the recent change.
22508         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
22509         only non-initial states.
22510         (dfastate): Rename locals to better match new roles.
22511         Move them into nested scopes if this is easy.
22512         Omit unnecessary calls to zeroset.
22513         Simplify test for whether to throw in the positions of state 0.
22514         Omit C99-ism (decl after statement) since Gawk still wants C89.
22515         (build_state): Omit unnecessary test and assignment.
22516         Fix some confusion that counted transition tables inaccurately
22517         and could cause a memory leak.
22518         (dfaexec_main): Redo to make it clearer to the compiler that
22519         -1 and -2 are the only negative state numbers here.
22521 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22523         dfa: addition of new state on demand
22524         * src/dfa.c (dfastate): Add argument UC, the current input character.
22525         Fill only a group including the character in transition table.
22526         (realloc_trans_if_necessary): Add the dummy state which means that a
22527         transition table is assigned but the next state is not assigned.
22528         (build_state): Return the next state.  All callers updated.
22529         (transit_state_singlebyte): If we get the dummy state,
22530         fill the transition table.
22531         (dfaexec_main): Handle the dummy state.
22532         (free_mbdata, dfafree): Consider the dummy state.
22534 2016-11-24  Daiki Ueno  <ueno@gnu.org>
22536         srclist: sync with released gettext
22537         * config/srclist.txt: Set "release" option to the files under
22538         $GETTEXT.
22540 2016-11-24  Daiki Ueno  <ueno@gnu.org>
22542         srclist: add "release" option
22543         * config/srclist.txt: Change the format so that the first column
22544         of each line points to the top-level directory of the source
22545         archive.
22546         * config/srclist-update: Accept "release" option that checks files
22547         from the most recently tagged revision in the source archive.
22549 2016-11-21  Bruno Haible  <bruno@clisp.org>
22551         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
22552         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
22553         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
22554         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
22555         Inline and remove member function 'rpl ()' of the wrapper struct.
22557 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
22559         dfa: fix logic typo
22560         Problem reported by Stephane Chazelas (Bug#24973).
22561         * lib/dfa.c (using_simple_locale): Fix typo that caused some
22562         non-simple locales like fr_FR to be treated as simple.
22564 2016-11-20  Jim Meyering  <meyering@fb.com>
22566         fix test driver leaks: exclude, malloc, realloc
22567         * tests/test-exclude.c (main): Fix trivial leak.
22568         * tests/test-malloc-gnu.c (main): Likewise.
22569         * tests/test-realloc-gnu.c (main): Likewise.
22570         With these changes, grep's tests are now leak free.
22571         I.e., running them with ASAN elicits no failure:
22572           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
22573             AM_LDFLAGS='-fsanitize=address -static-libasan' check
22575 2016-11-11  Bruno Haible  <bruno@clisp.org>
22577         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
22578         * modules/libunistring: (License): Change from LGPL to
22579         "LGPLv3+ or GPLv2".
22580         * modules/libunistring-optional: Likewise.
22581         * modules/unicase/*: Likewise.
22582         * modules/uniconv/*: Likewise.
22583         * modules/unictype/*: Likewise.
22584         * modules/unigbrk/*: Likewise.
22585         * modules/unilbrk/*: Likewise.
22586         * modules/uniname/*: Likewise.
22587         * modules/uninorm/*: Likewise.
22588         * modules/unistdio/*: Likewise.
22589         * modules/unistr/*: Likewise.
22590         * modules/uniwbrk/*: Likewise.
22591         * modules/uniwidth/*: Likewise.
22593 2016-11-12  Bruno Haible  <bruno@clisp.org>
22595         Relicense some modules under LGPLv2+.
22596         Paul Eggert's approval is in
22597         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
22598         Eric Blake's approval is in
22599         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
22600         Ludovic Courtès's approval is in
22601         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
22602         * modules/isnand-nolibm (License): Change to LGPLv2+.
22603         * modules/isnanf-nolibm (License): Likewise.
22604         * modules/isnanl-nolibm (License): Likewise.
22606 2016-11-19  Bruno Haible  <bruno@clisp.org>
22608         Relicense some modules under LGPLv2+.
22609         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
22610         modules/vasnprintf.
22611         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
22612         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
22613         All other significant changes to the files in lib/ of these modules
22614         are from me.
22615         * modules/memcmp2 (License): Change to LGPLv2+.
22616         * modules/amemxfrm (License): Likewise.
22617         * modules/fpieee (License): Likewise.
22618         * modules/fpucw (License): Likewise.
22619         * modules/frexp-nolibm (License): Likewise.
22620         * modules/frexpl-nolibm (License): Likewise.
22621         * modules/printf-frexp (License): Likewise.
22622         * modules/printf-frexpl (License): Likewise.
22623         * modules/printf-safe (License): Likewise.
22624         * modules/signbit (License): Likewise.
22626 2016-11-17  Bruno Haible  <bruno@clisp.org>
22628         Enable Unicode decoder safety unconditionally.
22629         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
22630         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
22631         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
22632         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
22633         * lib/unistr/u8-prev.c (u8_prev): Likewise.
22634         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
22635         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
22636         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
22637         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
22638         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
22639         * lib/unistr/u16-prev.c (u16_prev): Likewise.
22640         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
22641         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
22642         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
22643         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
22644         * lib/unistr/u32-prev.c (u32_prev): Likewise.
22645         * lib/unistr/u32-next.c (u32_next): Likewise.
22646         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
22647         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
22648         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
22649         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
22650         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
22651         CONFIG_UNICODE_SAFETY tests unconditionally.
22652         * tests/unistr/test-u32-mblen.c (main): Likewise.
22653         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
22654         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
22655         * tests/unistr/test-u32-next.c (main): Likewise.
22656         * tests/unistr/test-u32-strmblen.c (main): Likewise.
22657         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
22658         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
22659         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
22660         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
22661         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
22662         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
22663         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
22664         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
22665         * lib/unistr/u16-check.c (u16_check): Update comment.
22666         * NEWS: Mention the changes that callers should be aware of.
22668 2016-11-19  Bruno Haible  <bruno@clisp.org>
22670         relocatable-prog-wrapper: Fix breakage on Cygwin.
22671         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
22672         (Depends-on): Remove intprops.
22673         * lib/relocwrapper.c: Update dependency tree.
22674         (strerror): Undefine.
22675         * build-aux/install-reloc (func_create_wrapper): Do not compile
22676         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
22678 2016-11-19  Bruno Haible  <bruno@clisp.org>
22680         strerror: Make it compile in C++ mode.
22681         * lib/strerror.c (strerror): Ignore the return value of memcpy().
22683 2016-11-15  Pedro Alves  <palves@redhat.com>
22685         sys_time: add gnulib::timeval for C++
22686         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
22687         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
22688         timeval macro.
22690 2016-11-14  Pedro Alves  <palves@redhat.com>
22692         snippet/c++defs: fix real-floating arg functions in C++ mode
22693         Also, define isfinite, isinf, isnan, signbit in the gnulib
22694         namespace instead of in the global namespace.
22695         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
22696         (_GL_END_NAMESPACE): New.
22697         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
22698         (isfinite, isinf, isnan, signbit) [__cplusplus &&
22699         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
22700         instead of in the global namespace.
22701         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
22702         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
22703         of in the global namespace.
22705 2016-11-13  Jim Meyering  <meyering@fb.com>
22707         strftime: don't use __THROW
22708         Each use of __THROW would provoke this from gcc-7-to-be:
22710           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
22711             on unit local functions [-Wattributes]
22712           static int iso_week_days (int, int) __THROW;
22713           ^~~~~~
22714         * lib/strftime.c (__THROW): Don't define.
22715         Remove each use of __THROW.
22716         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
22717         (tm_diff, iso_week_days, __strftime_internal): Likewise.
22719 2016-11-14  Paul Eggert  <eggert@union>
22721         obstack: port to gcc -fcheck-pointer-bounds
22722         Problem found by 'make check' failure on bleeding-edge coreutils
22723         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
22724         6.2.0-5ubuntu12), configured via "./configure
22725         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
22726         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
22727         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
22728         New macro, copied from fts_.h.
22729         (struct _obstack_chunk.contents): Use it.
22731 2016-11-14  Eric Blake  <eblake@redhat.com>
22733         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
22734         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
22735         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
22737 2016-11-14  Pádraig Brady  <P@draigBrady.com>
22739         strptime: fix compile error in recent change
22740         * lib/strptime.c (__strptime_internal): Fix ported code.
22742 2016-11-11  Bruno Haible  <bruno@clisp.org>
22744         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
22745         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
22746         (func_import): Extend determination of license_incompatibilities.
22747         (func_create_testdir): Extend table of license compatibility. Handle
22748         also the licenses GPLv3+, GPL, LGPLv3+.
22750 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
22752         strftime: tune %q
22753         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
22755         Merge strftime.c changes from glibc
22756         This incorporates:
22757         2007-10-16 [BZ #5184] Add tzset_called argument
22758         2008-06-13 [BZ #6612] pass reference to tzset_called around
22759         2009-10-30 Implement Burmese language locale for Myanmar
22760         2010-01-09 Add support for XPG7 testing
22761         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
22762         2015-10-20 Convert miscellaneous function definitions to prototype style
22763         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
22764         it anyway and this lessens the difference between gnulib and glibc.
22765         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
22766         (__THROW): Define if standard headers do not.
22767         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
22768         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
22769         Declare with __THROW.
22770         (__strftime_internal): Rename from strftime_case_. Add arg for
22771         whether tzset is called.  All uses changed.  Call tzset at most
22772         once.  Allow %OC, for Burmese.
22773         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
22774         Don't assume values are in range.
22776 2016-11-12  Eric Blake  <eblake@redhat.com>
22778         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
22779         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
22780         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
22781         different value.
22783 2006-11-12  Pedro Alves  <palves@redhat.com>
22785         Fix gnulib C++ namespace support and std::frexp
22786         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
22787         _GL_CXXALIASWARN.
22789 2006-11-12  Pedro Alves  <palves@redhat.com>
22791         GNULIB_NAMESPACE::func need not pull in rpl_func
22792         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
22793         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
22794         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
22795         struct instead of a function pointer.
22797 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
22799         manywarnings: fix -Wno-missing-field-initializers detection
22800         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
22801         to be independent of -Wunused-variable.  I.E. ensure the latter
22802         warning doesn't occur so that detection of the former is accurate.
22804 2016-11-05  Pádraig Brady  <pbrady@fb.com>
22806         strftime,strptime: support %q to represent the quarter
22807         * lib/strftime.c (strftime_case_): Add %q case.
22808         * lib/strptime.c (__strptime_internal): Likewise.
22809         * tests/test-strftime.c (quarter_test): A new test case.
22811 2016-11-03  Eric Blake  <eblake@redhat.com>
22813         bootstrap: Fix get_version() for AIX 5.3
22814         * build-aux/bootstrap (get_version): Factor out sed script, since
22815         indented comments choke AIX 5.3 sed.
22816         Reported-by: Michael Felt <aixtools@gmail.com>
22818 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
22820         intprops: port to older XL C
22821         Problem reported by Alexander Samoilov in:
22822         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
22823         http://savannah.nongnu.org/bugs/?49448
22824         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
22825         Define to 1 only for XL C 12.1 or later, since this bug
22826         occurs in XL C for AIX 6.0 but not in 12.1.
22828 2016-11-02  Pádraig Brady  <P@draigBrady.com>
22830         backupfile: initialize default suffix within the implementation
22831         * lib/backupfile.c (find_backup_file_name): Initialize the
22832         global variable here, to simplify usage, and to only call
22833         getenv() when needed.
22835 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
22837         futimens: remove FIXME for old Linux kernels
22838         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
22839         this in 2012" FIXME, like that for utimensat.
22841         utimensat: remove FIXME for old Linux kernels
22842         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
22843         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
22844         this in 2012" FIXME, by assuming the file system bug is absent
22845         unless demonstrated to be present.  We no longer need to worry
22846         about Linux kernel 2.6.32 when building with newer kernels.
22848 2016-10-16  Bruno Haible  <bruno@clisp.org>
22850         qsort_r: Fix macrology for platforms that lack the function.
22851         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
22852         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
22853         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
22854         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
22855         not exist.
22856         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
22857         the function exists.
22858         * modules/qsort_r: Add comments.
22860 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
22862         sys_types: fix Texinfo typos
22863         * doc/glibc-functions/gnu_dev_major.texi:
22864         * doc/glibc-functions/gnu_dev_makedev.texi:
22865         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
22867 2016-10-26  John David Anglin  <dave.anglin@bell.net>
22869         getprogname: port to HP-UX
22870         See Bug#24805.
22871         * lib/getprogname.c (getprogname) [__hpux]: Port.
22872         * tests/test-getprogname.c (STREQ) [__hpux]:
22873         Special-case for HP-UX limitations on program name length.
22875 2016-10-20  Bruno Haible  <bruno@clisp.org>
22877         Update doc about target platforms.
22878         * doc/gnulib-intro.texi (Target Platforms): Update list.
22880 2016-10-15  Bruno Haible  <bruno@clisp.org>
22882         opendir, readdir, closedir: Relicense under LGPLv2+.
22883         * modules/opendir (License): Change to LGPLv2+.
22884         * modules/readdir (License): Likewise.
22885         * modules/closedir (License): Likewise.
22887 2016-10-16  Bruno Haible  <bruno@clisp.org>
22889         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
22890         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
22891         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
22892         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
22893         HAVE_DECL_STRERROR_R.
22895 2016-10-16  Bruno Haible  <bruno@clisp.org>
22897         Make the 'argp' module work without the 'error' module.
22898         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
22900 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
22902         diffseq: restore TOO_EXPENSIVE heuristic
22903         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
22904         (Bug#24715).  The simplest solution is to restore the
22905         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
22906         using a higher threshold to avoid Bug#16848 on smaller files.
22907         * lib/diffseq.h (struct context): Restore member too_expensive.
22908         (struct partition): Restore members lo_minimal, hi_minimal.
22909         (diag, compareseq): Restore arg find_minimal.  All uses changed.
22910         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
22911         1993 to make 'diff' run faster (but not as well) on large inputs,
22912         but use a threshold of 4096 instead of the old 256.
22913         * lib/fstrcmp.c (strcmp_bounded):
22914         * lib/git-merge-changelog.c (compute_differences):
22915         Adjust to diffseq.h changes.
22917 2016-10-22  Bruno Haible  <bruno@clisp.org>
22919         iconv: Avoid compilation error when bootstrapping GNU libiconv.
22920         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
22921         declaration yet, define ICONV_CONST to empty.
22923 2016-10-15  Bruno Haible  <bruno@clisp.org>
22925         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
22926         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
22927         module.
22929 2016-10-16  Bruno Haible  <bruno@clisp.org>
22931         system-quote tests: Avoid compiler warning on AIX.
22932         * tests/test-system-quote-child.c (fopen): Redefine like the system's
22933         <stdio.h> does.
22935 2016-10-16  Bruno Haible  <bruno@clisp.org>
22937         Fix some "gcc -Wall" warnings.
22938         * tests/test-ffsl.c (main): Use variable x, not i.
22939         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
22940         freopen.
22941         * tests/test-sethostname1.c (main): Explicitly ignore the return value
22942         of sethostname.
22944 2016-10-16  Bruno Haible  <bruno@clisp.org>
22946         gnulib-tool: Make --create-testdir on all modules work again.
22947         * gnulib-tool (func_create_testdir): Don't include the
22948         non-recursive-gnulib-prefix-hack module.
22950 2016-10-21  Daiki Ueno  <ueno@gnu.org>
22952         libunistring: change the maintainer to 'all'
22953         * modules/gen-uni-tables, modules/libunistring:
22954         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
22955         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
22956         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
22957         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
22958         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
22959         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
22960         * modules/uniwidth/*: Change the maintainer to 'all'.
22962 2016-10-16  Bruno Haible  <bruno@clisp.org>
22964         Simplify "configure: checking ..." messages.
22965         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
22966         AC_MSG_NOTICE.
22967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
22969 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
22971         quotearg-tests: pacify gcc -Wall
22972         Problem reported by Bruno Haible in:
22973         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
22974         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
22975         * tests/test-quotearg.h: ... from here.
22977 2016-10-20  Pádraig Brady  <P@draigBrady.com>
22979         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
22980         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
22981         Needed on Centos <= 4.
22983 2016-10-20  Jim Meyering  <meyering@fb.com>
22985         printf.m4: fix a bug in detecting printf %j support
22986         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
22987         uintmax_t is defined in neither stdint.h nor inttypes.h.
22988         Before, this macro might have mistakenly set
22989         gl_cv_func_printf_sizes_c99=yes on such a system.
22990         Spotted by Zev Weiss.
22992 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
22994         sched: substitute HAVE_SYS_CDEFS_H too
22995         Problem reported by Tom G. Christensen in:
22996         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
22997         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
22998         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
23000 2016-10-19  Pádraig Brady  <P@draigBrady.com>
23002         quotearg: never write beyond the returned length
23003         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
23004         scan of the string when we initially encounter a single quote when
23005         shell quoting, so that if we then switch to a more concise quoting method
23006         we will not have written beyond that returned length.
23007         This is significant for sh-quote, which has separate routines
23008         to determine the length and do the actual quoting.
23009         * tests/test-quotearg.h: Reinstate the buffer bounds checking
23010         now that we never write more than the returned length.
23012 2016-10-18  Bruno Haible  <bruno@clisp.org>
23014         getprogname tests: Avoid failure in packages that use libtool.
23015         * tests/test-getprogname.c (main): Strip "lt-" prefix.
23016         Based on a patch by Jim Meyering.
23018 2016-10-16  Bruno Haible  <bruno@clisp.org>
23020         getprogname: Fix test failure on Cygwin. Comments.
23021         * lib/getprogname.h: Add comments.
23022         * lib/getprogname.c: Add comments. Fix #elif indentation.
23023         * tests/test-getprogname.c (main): On Cygwin, expect a result without
23024         ".exe" suffix.
23026 2016-10-16  Bruno Haible  <bruno@clisp.org>
23028         Make sure the libunistring detection rejects older versions with a
23029         known bug.
23030         * modules/unistr/u8-strtok (configure.ac): Bump required version.
23031         * modules/unistr/u16-strtok (configure.ac): Likewise.
23032         * modules/unistr/u32-strtok (configure.ac): Likewise.
23034 2016-10-18  Bruno Haible  <bruno@clisp.org>
23036         sh-quote, system-quote: revert regression of unit test.
23037         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
23038         * tests/test-system-quote-main.c (check_one): Likewise.
23040 2016-10-16  Pádraig Brady  <P@draigBrady.com>
23042         quotearg: fix stale tests
23043         * tests/test-quotearg.c [locale_results]: Add the missing str7
23044         entries to the expected results.
23045         * tests/test-system-quote-main.c (check_one): Don't enforce that we
23046         don't write beyond the returned length, since that's no longer the
23047         case if we switch to a more concise quoting style.
23048         * tests/test-sh-quote.c (check_one): Likewise.
23049         (main): Adjust for the new more concise quoting style.
23050         Reported by Bruno Haible.
23052 2016-10-16  Jim Meyering  <meyering@fb.com>
23054         non-recursive-gnulib-prefix-hack: fix inconsequential typo
23055         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
23056         to "$1".  This macro is always invoked with $1 == lib.
23057         Spotted by Bruno Haible
23059 2016-10-16  Bruno Haible  <bruno@clisp.org>
23061         Fix a test crash.
23062         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
23063         fails.
23065 2016-10-16  Pádraig Brady  <P@draigBrady.com>
23067         test-limits-h: suppress -Woverlength-strings
23068         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
23070 2016-10-15  Bruno Haible  <bruno@clisp.org>
23072         gettime, timespec, utimens: Relicense under LGPL.
23073         * modules/gettime (License): Change to LGPL.
23074         * modules/timespec (License): Likewise.
23075         * modules/utimens (License): Likewise.
23077 2016-10-14  Bruno Haible  <bruno@clisp.org>
23078             Pádraig Brady  <P@draigBrady.com>
23080         canonicalize-lgpl: Support the case path_max > INT_MAX.
23081         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
23082         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
23084 2016-10-13  Jim Meyering  <meyering@fb.com>
23086         getprogname: IBM z/OS: avoid NULL-dereference
23087         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
23088         upon strdup failure.
23090 2016-10-12  Jim Meyering  <meyering@fb.com>
23092         test-stdint: use _GL_VERIFY rather than "verify" for some tests
23093         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
23094         and an abbreviated diagnostic rather than verify with the full one,
23095         because the full-length strings would evoke warnings from gcc with
23096         -Woverlength-strings.
23098 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23100         stdint: port SIZE_MAX to glibc s390
23101         Problem reported by Eric Blake in:
23102         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
23103         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
23104         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
23105         correct type, if possible.
23107 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
23109         getprogname: port to IBM z/OS
23110         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
23112 2016-10-11  Jim Meyering  <meyering@fb.com>
23114         maint: remove stray space after "." in AC_DEFINE comment.
23115         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
23116         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23118 2016-10-05  Jim Meyering  <meyering@fb.com>
23120         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
23121         * lib/long-options.c (parse_long_options): Add a break statement
23122         to avoid this new warning/failure:
23123         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
23124           --create-testdir --dir=/t/x --with-tests --test long-options
23125         ../../gllib/long-options.c: In function 'parse_long_options':
23126         ../../gllib/long-options.c:66:12: error: this statement may \
23127           fall through [-Werror=implicit-fallthrough]
23128                    (*usage_func) (EXIT_SUCCESS);
23129                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
23131 2016-10-05  Jim Meyering  <meyering@fb.com>
23133         utimecmp: avoid new GCC 7 warning from -Wbool-operation
23134         Testing this module would fail when using GCC 7 like this:
23135         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
23136           --dir=/tmp/x --with-tests --test utimecmp
23137         ../../gllib/utimecmp.c: In function ‘utimecmp’:
23138         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
23139           [-Werror=bool-operation]
23140                          time_t s = src_s & ~ (res == 2 * BILLION);
23141                                             ^
23142         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
23143           [-Werror=bool-operation]
23144                src_s &= ~ (res == 2 * BILLION);
23145                         ^
23146         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
23147         Instead, make it explicit that we intend to apply it to 0 or 1.
23149 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23151         dfa: save memory for states
23152         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
23153         states if dfa has a lot of caches.
23155 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
23157         wchar, wctype-h: fix for MinGW 3.22.2
23158         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
23159         special invocation, to fix issues with MinGW 3.22.2 wchar.h
23160         when included from <string.h>.
23161         * lib/wctype.in.h [__MINGW32__]: Add special invocation
23162         convention for MinGW 3.22.2, to solve issues with their
23163         wctype.h when included from <ctype.h>.
23165 2016-10-05  Jim Meyering  <meyering@fb.com>
23167         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
23168         * lib/long-options.c (parse_long_options): Add a break statement
23169         to avoid this new warning/failure:
23170         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
23171           --create-testdir --dir=/t/x --with-tests --test long-options
23172         ../../gllib/long-options.c: In function ‘parse_long_options’:
23173         ../../gllib/long-options.c:66:12: error: this statement may \
23174           fall through [-Werror=implicit-fallthrough]
23175                    (*usage_func) (EXIT_SUCCESS);
23176                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
23178         utimecmp: avoid new GCC 7 warning from -Wbool-operation
23179         Testing this module would fail when using GCC 7 like this:
23180         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
23181           --dir=/tmp/x --with-tests --test utimecmp
23182         ../../gllib/utimecmp.c: In function ‘utimecmp’:
23183         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
23184           [-Werror=bool-operation]
23185                          time_t s = src_s & ~ (res == 2 * BILLION);
23186                                             ^
23187         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
23188           [-Werror=bool-operation]
23189                src_s &= ~ (res == 2 * BILLION);
23190                         ^
23191         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
23192         Instead, make it explicit that we intend to apply it to 0 or 1.
23194 2016-10-03  Pádraig Brady  <P@draigBrady.com>
23196         quotearg: minimize shell quoting using double quotes
23197         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
23198         quote in encountered then use double quotes (c style quoting)
23199         when possible, as it simplifies the quoting.
23200         * tests/test-quotearg-simple.c: Add test cases.
23201         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
23202         for the fact we now may write beyond the returned length.
23204 2016-10-02  Jim Meyering  <meyering@fb.com>
23206         vasnprintf.c: avoid spurious warning from GCC 7
23207         The presence of cpp directives renders this "FALLTHROUGH" comment
23208         ineffective, so does not suppress the -Wimplicit-fallthrough warning
23209         from GCC 7 built from git on 2016-10-02.
23210         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
23211         directives, so that it takes effect once again.  This is clearly
23212         not a proper change, and I will revert it once this bug is fixed:
23213         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
23215 2016-10-01  Jim Meyering  <meyering@fb.com>
23217         getprogname: correct the test for a __progname variable
23218         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
23219         and AC_LINK_IFELSE to check for a global __progname.  If found,
23220         define HAVE_VAR___PROGNAME.
23221         * lib/getprogname.c (getprogname): Reflect the new name of the
23222         feature- checked preprocessor symbol:
23223         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
23225 2016-09-28  Jim Meyering  <meyering@fb.com>
23227         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
23228         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
23229         fall-through case with a /* fallthrough */ comment.
23231         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
23232         * lib/dfa.c (dfassbuild): Mark the end of this case with a
23233         /* fallthrough */ comment.
23235         getprogname: avoid __progname vs program_invocation_short_name pitfall
23236         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
23237         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
23238         not with Fedora 24's glibc-2.23.1-10.
23239         * lib/getprogname.c (__progname): Move this declaration down...
23240         (getprogname): ... into the #elif block where used, and make it
23241         explicitly "extern".
23243         getprogname: port to OpenBSD 5.1
23244         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
23245         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
23246         * modules/getprogname (configure.ac): Move most of this code...
23247         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
23248         increment serial number, and add a test for __progname.
23249         https://bugs.gnu.org/24562
23250         Reported by Nelson H. F. Beebe.
23252 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
23254         sched: port to GCC 6.2.1 on macOS Sierra
23255         Problem reported by Denis Davydov in:
23256         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
23257         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
23258         Include <sys/cdefs.h> before <sched.h>.
23259         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
23260         so that we needn’t worry about the sched.h include bug here.
23261         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
23262         and include it before <sched.h> if it exists, when
23263         checking for <sched.h>.
23265         tests/init.sh: port Alpine fix to AIX 7.1
23266         * tests/init.sh (compare_): When attempting to use diff -U3,
23267         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
23268         diff -u not outputting a space after leading '+', as the users
23269         of 'compare' should not be that picky about its output format.
23270         In the AIX 7.1 case, return with diff exit status (or with 2 if
23271         trouble), instead of some random nonzero exit status.
23272         * tests/test-init.sh (test_compare): Remove space after leading
23273         '+', so that AIX 7.1 'diff' passes the test.
23275 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23277         nl_langinfo: pacify GCC
23278         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
23279         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
23281         stdint: also set GL_GENERATE_LIMITS_H
23282         Problem reported by Jim Meyering in:
23283         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
23284         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
23286         limits-h, stdint: Don't assume extensions, fix typo
23287         * m4/limits-h.m4 (gl_LIMITS_H):
23288         * m4/stdint.m4 (gl_STDINT_H):
23289         Don't assume AC_USE_SYSTEM_EXTENSIONS.
23290         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
23291         reported by Jim Meyering in:
23292         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
23294 2016-09-21  Jim Meyering  <meyering@fb.com>
23296         getprogname: port to AIX
23297         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
23298         and strdup to obtain a short program name string.  Using code from
23299         Bruno Haible and an idea from Bastien ROUCARIÈS, in
23300         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
23301         Assaf Gordon reported that this new file would fail to compile on
23302         AIX-7.1 32bit.
23304 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23306         extensions: fix typo in comment
23307         * m4/extensions.m4: Sync from Autoconf master.
23309         stdint: support new _WIDTH macros
23310         * doc/posix-headers/stdint.texi: Document this.
23311         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
23312         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
23313         support for INTMAX_WIDTH, etc. as well as for support for just C99.
23314         * modules/stdint (Depends-on): Add limits-h.
23315         (Makefile.am): Substitute HAVE_C99_STDINT_H.
23316         * modules/stdint-tests (Depends-on): Add extensions, so that
23317         INTMAX_MAX etc. are defined.
23318         * tests/test-stdint.c: Verify the new macros.
23320         limits-h: new module
23321         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
23322         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
23323         * doc/posix-headers/limits.texi: Document new module.
23324         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
23325         * modules/limit-h-tests, tests/test-limits-h.c: New files.
23327         stdio: don't redefine __USE_MINGW_ANSI_STDIO
23328         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
23329         if it is already defined.  Apparently GNU Emacs relies on this.  See:
23330         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
23332 2016-09-15  Eric Blake  <eblake@redhat.com>
23334         sys_types: avoid glibc 2.25 warnings about major()
23335         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
23336         older autoconf.
23337         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
23338         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
23339         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
23340         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
23342         mountlist: include sysmacros.h for glibc
23343         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
23344         AC_HEADER_MAJOR.
23345         * lib/mountlist.c (includes): Use correct headers.
23347 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23349         extensions: port to more ISO C TSes
23350         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
23351         master, to add support for more recent ISO C TRs and TSes.
23353 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23355         intprops: new macro TYPE_WIDTH
23356         * lib/intprops.h (TYPE_WIDTH): New macro.
23357         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
23358         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
23359         * lib/parse-datetime.y (parse_datetime2):
23360         Use it.
23362         extensions: port to recent ISO C TRs
23363         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
23364         Sync from Autoconf master, to add support for recent ISO C TRs.
23365         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
23366         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
23367         the MinGW option is not an extension.
23369 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
23371         dfa: port to Solaris 9
23372         Problems reported by Tom G. Christensen in:
23373         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
23374         * modules/dfa (Depends-on): Add isblank.
23375         * modules/dfa-tests (dfa_match_aux_LDADD):
23376         Rename from test_stat_LDADD, to fix typo.
23377         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
23379 2016-09-10  Jim Meyering  <meyering@fb.com>
23381         strverscmp: avoid link failure on OS X
23382         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
23383         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
23385 2016-08-16  Jim Meyering  <meyering@fb.com>
23387         dfa: new module, importing grep's DFA matcher
23388         Since grep's DFA matcher is now being used by two gnulib-enabled
23389         projects, grep and sed, it makes sense to version-control its
23390         sources and unit tests in one place: here.
23391         * modules/dfa: New module.
23392         * modules/dfa-tests: New file.
23393         * lib/dfa.c: New file, from grep.
23394         * lib/dfa.h: Likewise.
23395         * lib/localeinfo.c: Likewise.
23396         * lib/localeinfo.h: Likewise.
23397         * tests/dfa-match-aux.c: Likewise.
23398         * tests/dfa-invalid-char-class.sh: Likewise.
23399         * tests/dfa-match.sh: Likewise, with minor changes.
23400         * MODULES.html.sh (Misc): Add "dfa" to this list.
23402 2016-09-09  Jim Meyering  <meyering@fb.com>
23404         getprogname-tests: don't depend on assert-h
23405         * modules/getprogname-tests (Depends-on): Remove assert-h.
23406         It was not needed, and in fact would cause build failure for
23407         coreutils on some systems.  Reported by Assaf Gordon in https:
23408         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
23410 2016-09-07  Jim Meyering  <meyering@fb.com>
23412         getprogname-tests: work also when EXEEXT is nonempty
23413         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
23414         * tests/test-getprogname.c (main): Use it.
23415         Suggested by Gisle Vanem.
23417 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
23419         getprogname: fix errors in previous change
23420         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
23421         s/program_invocation_name/base/
23422         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
23424 2016-09-08  Pádraig Brady  <P@draigBrady.com>
23426         parse-datetime: restrict debug output to input string
23427         * lib/parse-datetime.y (parse_datetime2): If we parse
23428         all of the input but determine it's invalid, ensure
23429         we don't output the now invalid input pointer.
23430         This issue was seen with `date -d 'now +1'`.
23432 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
23434         flexmember: new macro FLEXALIGNOF
23435         * lib/flexmember.h: Include <stddef.h>, for offsetof.
23436         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
23437         this macro.  Update comments.
23439 2016-09-07  Jim Meyering  <meyering@fb.com>
23441         getprogname: port to systems with __argv (mingw, msvc)
23442         * lib/getprogname.c (getprogname): Include "dirname.h" and use
23443         last_component: more general than open coding it with hard-coded "/".
23444         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
23445         * modules/getprogname (Depends-on): Add dirname-lgpl.
23446         (configure.ac): Check for __argv in <stdlib.h>.
23447         * modules/getprogname-tests: New file.
23448         * tests/test-getprogname.c: New file.
23449         Suggested by Gisle Vanem in
23450         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
23452 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
23454         flexmember: port better to GCC + valgrind
23455         With a char[] flexible array member in a struct with nontrivial
23456         alignment, GCC-generated code can access past the end of the
23457         array, because GCC assumes there are padding bytes to get the
23458         struct aligned.  So the common idiom of malloc (offsetof (struct
23459         s, m), n) does not properly allocate an n-byte trailing member, as
23460         malloc’s argument should be the next multiple of alignof (struct s).
23461         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
23462         Although C11 apparently permits this GCC optimization (i.e., there
23463         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
23464         See the thread containing:
23465         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
23466         * lib/flexmember.h: New file.
23467         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
23468         * lib/localename.c, lib/time_rz.c:
23469         Include flexmember.h.
23470         * lib/fnmatch_loop.c (struct patternlist):
23471         * lib/localename.c (struct hash_node):
23472         Use FLEXIBLE_ARRAY_MEMBER.
23473         * lib/fnmatch_loop.c (EXT):
23474         * lib/fts.c (fts_alloc):
23475         * lib/glob.c (glob_in_dir):
23476         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
23477         * lib/localename.c (gl_lock_define_initialized):
23478         * lib/time_rz.c (tzalloc):
23479         Use FLEXSIZEOF instead of offsetof.
23480         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
23481         Check that the size of the struct can be taken.
23482         * modules/flexmember (Files): Add lib/flexmember.h.
23483         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
23484         Add flexmember.
23486 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23488         getprogname: port to Solaris 10
23489         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
23490         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
23491         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
23493         stdalign: correct mistake in alignof doc
23494         Problem reported by Joseph Myers in:
23495         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
23496         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
23497         alignof(S) where S is a structure containing a flexible array
23498         member.  The Gnulib substitute does not support this, but C11 does.
23500 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23502         main.mk: remove sc_program_name, since there is no more need to
23503         use set_program_name in tools (getprogname is enough for most
23504         of the cases).
23505         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
23506         * top/maint.mk (sc_program_name): Remove.
23508 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23510         Port tests away from progname, since modules that need the
23511         program name already depend on getprogname.
23512         * modules/acl-tests (Depends-on): Remove progname.
23513         * modules/argmatch (Depends-on): Likewise.
23514         * modules/argmatch-tests (Depends-on): Likewise.
23515         * modules/argp-tests (Depends-on): Likewise.
23516         * modules/argp-version-etc-tests (Depends-on): Likewise.
23517         * modules/array-list-tests (Depends-on): Likewise.
23518         * modules/array-oset-tests (Depends-on): Likewise.
23519         * modules/avltree-list-tests (Depends-on): Likewise.
23520         * modules/avltree-oset-tests (Depends-on): Likewise.
23521         * modules/avltreehash-list-tests (Depends-on): Likewise.
23522         * modules/carray-list-tests (Depends-on): Likewise.
23523         * modules/copy-file-tests (Depends-on): Likewise.
23524         * modules/exclude-tests (Depends-on): Likewise.
23525         * modules/fchownat-tests (Depends-on): Likewise.
23526         * modules/fdopendir-tests (Depends-on): Likewise.
23527         * modules/filenamecat-tests (Depends-on): Likewise.
23528         * modules/fstatat-tests (Depends-on): Likewise.
23529         * modules/fstrcmp-tests (Depends-on): Likewise.
23530         * modules/linked-list-tests (Depends-on): Likewise.
23531         * modules/linkedhash-list-tests (Depends-on): Likewise.
23532         * modules/mkdirat-tests (Depends-on): Likewise.
23533         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
23534         * modules/nonblocking-socket-tests (Depends-on): Likewise.
23535         * modules/obstack-printf-tests (Depends-on): Likewise.
23536         * modules/openat-tests (Depends-on): Likewise.
23537         * modules/parse-datetime-tests (Depends-on): Likewise.
23538         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
23539         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
23540         * modules/quotearg-simple-tests (Depends-on): Likewise.
23541         * modules/quotearg-tests (Depends-on): Likewise.
23542         * modules/rbtree-list-tests (Depends-on): Likewise.
23543         * modules/rbtree-oset-tests (Depends-on): Likewise.
23544         * modules/rbtreehash-list-tests (Depends-on): Likewise.
23545         * modules/spawn-pipe-tests (Depends-on): Likewise.
23546         * modules/system-quote-tests (Depends-on): Likewise.
23547         * modules/uniname/uniname-tests (Depends-on): Likewise.
23548         * modules/uninorm/nfc-tests (Depends-on): Likewise.
23549         * modules/uninorm/nfd-tests (Depends-on): Likewise.
23550         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
23551         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
23552         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
23553         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
23554         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
23555         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
23556         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
23557         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
23558         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
23559         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
23560         * modules/unlinkat-tests (Depends-on): Likewise.
23561         * modules/version-etc-tests (Depends-on): Likewise.
23562         * modules/xalloc-die-tests (Depends-on): Likewise.
23563         * modules/xmemdup0-tests (Depends-on): Likewise.
23564         * modules/xprintf-posix-tests (Depends-on): Likewise.
23565         * modules/xvasprintf-tests (Depends-on): Likewise.
23566         * tests/test-argmatch.c: Do not include progname.h.
23567         (main) Stop calling set_program_name.
23568         * tests/test-argp-version-etc.c: Likewise.
23569         * tests/test-argp.c: Likewise.
23570         * tests/test-argv-iter.c: Likewise.
23571         * tests/test-array_list.c: Likewise.
23572         * tests/test-array_oset.c: Likewise.
23573         * tests/test-avltree_list.c: Likewise.
23574         * tests/test-avltree_oset.c: Likewise.
23575         * tests/test-avltreehash_list.c: Likewise.
23576         * tests/test-carray_list.c: Likewise.
23577         * tests/test-copy-acl.c: Likewise.
23578         * tests/test-copy-file.c: Likewise.
23579         * tests/test-exclude.c: Likewise.
23580         * tests/test-fchownat.c: Likewise.
23581         * tests/test-fdopendir.c: Likewise.
23582         * tests/test-filenamecat.c: Likewise.
23583         * tests/test-fstatat.c: Likewise.
23584         * tests/test-fstrcmp.c: Likewise.
23585         * tests/test-linked_list.c: Likewise.
23586         * tests/test-linkedhash_list.c: Likewise.
23587         * tests/test-mkdirat.c: Likewise.
23588         * tests/test-nonblocking-pipe-main.c: Likewise.
23589         * tests/test-nonblocking-socket-main.c: Likewise.
23590         * tests/test-obstack-printf.c: Likewise.
23591         * tests/test-openat.c: Likewise.
23592         * tests/test-parse-datetime.c: Likewise.
23593         * tests/test-pipe-filter-gi1.c: Likewise.
23594         * tests/test-pipe-filter-gi2-main.c: Likewise.
23595         * tests/test-pipe-filter-ii1.c: Likewise.
23596         * tests/test-pipe-filter-ii2-main.c: Likewise.
23597         * tests/test-quotearg-simple.c: Likewise.
23598         * tests/test-quotearg.c: Likewise.
23599         * tests/test-rbtree_list.c: Likewise.
23600         * tests/test-rbtree_oset.c: Likewise.
23601         * tests/test-rbtreehash_list.c: Likewise.
23602         * tests/test-sameacls.c: Likewise.
23603         * tests/test-set-mode-acl.c: Likewise.
23604         * tests/test-spawn-pipe-main.c: Likewise.
23605         * tests/test-system-quote-main.c: Likewise.
23606         * tests/test-unlinkat.c: Likewise.
23607         * tests/test-version-etc.c: Likewise.
23608         * tests/test-xalloc-die.c: Likewise.
23609         * tests/test-xfprintf-posix.c: Likewise.
23610         * tests/test-xmemdup0.c: Likewise.
23611         * tests/test-xprintf-posix.c: Likewise.
23612         * tests/test-xvasprintf.c: Likewise.
23613         * tests/uniname/test-uninames.c: Likewise.
23614         * tests/uninorm/test-u32-nfc-big.c: Likewise.
23615         * tests/uninorm/test-u32-nfd-big.c: Likewise.
23616         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
23617         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
23618         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23619         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23620         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23621         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23622         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23623         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23624         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23625         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23626         * tests/test-c-stack.c: (program_name): Do not define.
23627         (main): Do not set program_name.
23628         * tests/test-closein.c: Likewise.
23629         * tests/test-xstrtol.c: Likewise.
23630         * tests/test-yesno.c: Likewise.
23632 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23634         Port modules to use getprogname explicitly, instead of requiring
23635         progname to be used (or program_name to be provided).
23636         * lib/argmatch.c: Do not include progname.h.
23637         [TEST] (program_name): Do not define.
23638         [TEST] (main): Call getprogname instead of using program_name.
23639         * lib/c-stack.c: Do not include progname.h.
23640         (program_name): Do not define.
23641         (die): Call getprogname instead of using program_name.
23642         * lib/chdir-long.c: Do not include progname.h.
23643         [TEST_CHDIR] (main): Do not set program_name.
23644         * lib/error.c [!_LIBC]: Include progname.h.
23645         [!_LIBC] (program_name): Define using getprogname.
23646         * lib/euidaccess.c: Do not include progname.h.
23647         [TEST] (main): Do not set program_name.
23648         * lib/git-merge-changelog.c: Include getprogname.h instead of
23649         progname.h.
23650         (usage): Call getprogname instead of using program_name.
23651         (main): Likewise.  Stop calling set_program_name.
23652         * lib/group-member.c: Do not include progname.h.
23653         [TEST] (main): Do not set program_name.
23654         * modules/argmatch (Depends-on): Add getprogname.
23655         * modules/c-stack (Depends-on): Likewise.
23656         * modules/error (Depends-on): Likewise.
23657         * modules/git-merge-changelog (Depends-on): Likewise.
23658         Also remove progname.
23660 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
23662         * NEWS: Document the deprecation of the 'progname' module.
23664 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23666         getprogname: new module
23667         This provides a LGPL module for getting the name of the current
23668         program, using the same API found on *BSD systems.
23669         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
23670         * modules/getprogname: New files.
23671         * MODULES.html.sh (Misc): Add getprogname.
23673 2016-09-02  Jim Meyering  <meyering@fb.com>
23675         manywarnings: add -fno-common
23676         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
23677         to the list.  Quoting the manual, "Compiling with -fno-common is
23678         useful on targets for which it provides better performance, or if
23679         you wish to verify that the program will work on other systems that
23680         always treat uninitialized variable declarations this way [putting
23681         it in the data section]."  If diffutils had been using this sooner,
23682         it would have prevented this duplicate declaration issue:
23683         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
23685 2016-08-31  Simon Josefsson  <simon@josefsson.org>
23687         parse-datetime: Fix typo.
23688         * lib/parse-datetime.y (parse_datetime2): Fix typo.
23690 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23692         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
23693         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
23694         GCC 5 and 6 that have __builtin_sub_overflow but not
23695         __builtin_sub_overflow_p.  With the recent changes, these
23696         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
23697         implementation than with INT_SUBTRACT_OVERFLOW implementation,
23698         since the former needs just one runtime comparison whereas the
23699         latter needs two.
23701         strverscmp: sync with glibc
23702         Although this doesn't exactly synchronize with glibc
23703         byte-for-byte, it makes the code behave the same as glibc.
23704         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
23705         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
23706         difference shouldn't matter in practical use.  All uses changed
23707         back to isdigit.
23708         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
23709         (next_state): Now unsigned char array; redo elements.
23710         (result_type): Now signed char array; redo elements.
23711         (__strverscmp): Fix glibc bug 9913 by using new states.
23712         * tests/test-strverscmp.c (main): Test glibc bug 9913.
23714 2016-08-29  Jim Meyering  <meyering@fb.com>
23716         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
23717         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
23718         similarly to how it was done to intprops.h.
23720 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23722         intprops.h: port recent changes to GCC 6.2.0
23723         * lib/intprops.h (__has_builtin): Move earlier.
23724         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
23725         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
23726         the last argument can be null.  All uses changed.
23727         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
23728         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23729         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
23730         and it's not clear which GCC versions it works for.
23731         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
23732         its definiens.
23734         intprops.h: use __typeof__ with GCC 7
23735         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
23736         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
23737         This avoids computing the expression's value (which might overflow!).
23739 2016-08-29  Jim Meyering  <meyering@fb.com>
23741         intprops.h, xalloc-oversized.h: work with gcc 7
23742         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
23743         __builtin_mul_overflow each accept a NULL pointer as the third
23744         argument.  However in gcc 7, that is no longer accepted.
23745         Instead, one must use the "_p"-suffixed names, with which, the
23746         third parameter is no longer a pointer.
23747         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
23748         the definition: not true for gcc 7 and subsequent.
23749         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
23750         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23751         Provide new definitions for gcc 7 and subsequent.
23752         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
23753         that works with gcc-7.
23755         intprops.h: fix missing-backslash problems
23756         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
23757         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
23759 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23761         intprops: fix paren typo on old platforms
23762         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
23763         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
23764         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
23765         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
23766         && !defined LLONG_MAX]:
23767         Remove stray paren.
23769         intprops: port to OpenVMS
23770         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
23771         * doc/posix-headers/limits.texi: Document the problem.
23772         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
23773         Define if not already defined.
23775 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
23777         parse-datetime: improve debug implementation
23778         Follow-up to commit 12ad79069 ("add optional debug printing").
23779         Improve parse-datetime's debug implementation: remove macros,
23780         replace global debug flag variable with a function parameter,
23781         use nstrftime for formatting.
23782         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
23783         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
23784         (parse_datetime2): New function, accepts 'flags' parameter, supporting
23785         debug flag. Existing interface 'parse_datetime' left unmodified.
23786         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
23787         (struct parser_control): add 'parse_datetime_debug' member variable.
23788         (parse_datetime): Call new function 'parse_datetime2' without debug.
23789         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
23790         pc.parse_datetime_debug variable as needed.
23791         (to_year): Accept new flags parameter, instead of using global variable.
23792         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
23793         use struct 'debug' variable instead of global variable.
23794         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
23795         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
23796         correspnding functions directly instead of using macros.
23797         * modules/parse-datetime: Add gnulib's strftime module.
23799 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
23801         c-strcase-tests: port to EBCDIC
23802         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
23803         which assume ASCII encoding semantics to run only in ASCII
23804         mode, as they fail in EBCDIC.
23806         sigpipe-tests: fix typo
23807         * tests/test-sigpipe.sh: C, not B.
23809 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
23811         canonicalize-lgpl: fix errno after malloca fails
23812         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
23813         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
23814         * lib/canonicalize-lgpl.c (__realpath):
23815         Don't assume malloca sets errno on failure.
23817 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23819         strtod: port errno handling to z/OS
23820         * lib/strtod.c (strtod): Save and restore errno more reliably.
23822 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
23824         strtod: port to z/OS
23825         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
23826         implementation.
23828 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23830         strtod: port to z/OS
23831         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
23832         implementation.
23834         regex, string: rename to avoid '__string'
23835         * lib/regex.h, lib/string.in.h: Do not use the identifier
23836         '__string', as it is effectively reserved by string.h on z/OS.
23838         c-strcase-tests, wcwidth-tests: depend on c-ctype
23839         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
23840         Add c-ctype.
23842 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
23844         thread: port to z/OS
23845         * lib/glthread/thread.c, lib/glthread/thread.h:
23846         Rudimentary gl_thread support for z/OS.
23848         maint: port tests to z/OS errno behavior
23849         * tests/test-nonblocking-reader.h:
23850         * tests/test-nonblocking-writer.h:
23851         Accommodate z/OS errno code preferences. (I believe this should
23852         still be within spec; IBM is good at following the letter if not
23853         the spirit of such things.)
23855         maint: preprocessor changes to support z/OS
23856         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
23857         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
23858         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
23859         * tests/test-nonblocking-pipe.h:
23861         fclose, strstr-simple, wchar: port to z/OS
23862         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
23863         Changes to the Autoconf M4 code to support z/OS.  Note that
23864         fclose() is broken in a different way on z/OS than it is on other
23865         systems, thus the special-case in fclose.m4.
23867         iconv_open-utf-tests, iconv-tests: port to EBCDIC
23868         * tests/test-iconv-utf.c, tests/test-iconv.c:
23869         Added appropriately conditional #pragmas so that the test strings
23870         in test-iconv-utf.c are correctly interpreted in ASCII instead of
23871         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
23872         addressed in a more portable way by simply rewriting all the ASCII
23873         literal characters as octal escapes, but then you would lose the
23874         partial readability that the strings have now. Also, iconv_open()
23875         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
23877         c-strcase-tests, wcwidth-tests: port to EBCDIC
23878         * tests/test-c-strcasecmp.c: Include c-ctype.h.
23879         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
23880         * tests/test-wcwidth.c: Likewise.
23882 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23884         stdbool: don't require _Bool for C++
23885         Problem reported by David Seifert in:
23886         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
23887         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
23888         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
23889         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
23890         stricter about checking that bool and _Bool are compatible in C.
23892 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
23894         getdelim: remove dependency on realloc-posix
23895         * lib/canonicalize-lgpl.c (alloc_failed)
23896         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
23897         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
23898         Use __set_errno where needed, for consistency.
23899         * lib/getdelim.c (alloc_failed): New function.
23900         (getdelim): Use it.
23902 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
23904         parse-datetime: add optional debug printing
23905         Print parsing information, warnings, and errors to stderr.
23906         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
23907         * lib/parse-datetime.y:
23908         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
23909         (PROGRESS*): Same as DEBUG, for progress reporting.
23910         (dbg_printf): Print message to stderr, with 'date' prefix.
23911         (struct parser_control): Add 'debug_*_seen' variables.
23912         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
23913         (debug_print_current_time, debug_print_relateive_time): Prints the
23914         current/relative date/time value of parser_control.
23915         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
23916         (to_year): Warn about 2-digit year parsing.
23917         (yylex):   Warn about unrecognized words.
23918         (get_effective_timezone): Returns current timezone in minutes.
23919         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
23920         clearly and unambigiously as possible.
23921         (debug_mktime_not_ok): Print detailed information about failed
23922         date/time values.
23923         (parse_datetime): Add DEBUG messages for failures, warnings. Add
23924         PROGRESS messages for status messages.
23925         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
23927 2016-08-06  Jim Meyering  <meyering@fb.com>
23929         tests/init.sh: exclude dash with bad "local" semantics
23930         * tests/init.sh (gl_shell_test_script_): Add a function to
23931         eliminate a shell like "dash" (unlike bash, zsh) that has
23932         surprising/risky "local var='...'" semantics.  Inspired by
23933         the problem and discussion in https://bugs.gnu.org/24116#11.
23935 2016-08-02  Ján Tomko  <jtomko@redhat.com>
23937         maint.mk: expand the prohibit_doubled_word regex
23938         This check has a static list of words that are checked for
23939         repetitions.  Expand it before running the perl script to
23940         avoid using expensive captures.  This decreases the cost
23941         for libvirt from 1.66s to 0.66s.
23942         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
23943         (sc_prohibit_doubled_word): Use it.
23945 2016-07-26  Ján Tomko  <jtomko@redhat.com>
23947         useless-if-before-free: skip non-matching lines early
23948         * build-aux/useless-if-before-free: First match each line with the
23949         simple/quick /\bif\b/ and reject if there is no match. This often
23950         saves the cost of the much more involved regular expression.
23951         For libvirt, this decreases the cost from 1.44s to 1.02s.
23953 2016-07-26  Ján Tomko  <jtomko@redhat.com>
23955         maint.mk: speed up sc_po_check
23956         sc_po_check would skip files based on their names, or on the
23957         existence of files with derived names. Rewrite it to use perl
23958         instead of shell to make the check faster.
23959         * top/maint.mk (perl_translatable_files_list_): Define.
23960         (sc_po_check): Use it.
23962 2016-07-30  Ján Tomko  <jtomko@redhat.com>
23964         maint.mk: speed up require_config_h_first
23965         Instead of spawning three processes per file,
23966         rewrite the check in perl and run it once for all the files.
23967         * top/maint.mk (perl_config_h_first_): Define.
23968         (sc_require_config_h_first): Use it in place of shell code.
23970 2016-07-26  Ján Tomko  <jtomko@redhat.com>
23972         maint.mk: speed up sc_po_check
23973         sc_po_check would skip files based on their names, or on the
23974         existence of files with derived names. Rewrite it to use perl
23975         instead of shell to make the check faster.
23976         * top/maint.mk (perl_translatable_files_list_): Define.
23977         (sc_po_check): Use it.
23979 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
23981         obstack: pacify GCC 6 with -Wnull-dereference
23982         Problem reported by Assaf Gordon in:
23983         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
23984         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
23985         Declare with __attribute_noreturn__.
23986         * lib/obstack.h (__attribute_noreturn__): New macro.
23988 2016-07-13  Eric Blake  <eblake@redhat.com>
23990         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
23991         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
23992         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
23994 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
23996         doc: mention glibc SSIZE_MAX buglet
23997         * doc/posix-headers/limits.texi (limits.h): Document the bug.
23999 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
24001         printf-posix: Fix mingw build
24002         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
24003         expression for detecting C symbol prefixes but forgot to qoute square
24004         brackets in the command line arguments for grep.  That way when
24005         building with mingw the condition was false although it ought to be
24006         true instead.  In particular scenarios this led to the following
24007         compile error:
24009             Cannot export rpl_printf: symbol not found
24010             Cannot export rpl_scanf: symbol not found
24011             collect2: error: ld returned 1 exit status
24013         Fix this by properly quoting square brackets.
24015 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24017         mktime: call tzset as per POSIX
24018         Problem reported by Ludovic Courtès in:
24019         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
24020         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
24021         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
24023 2016-06-26  Pádraig Brady  <P@draigBrady.com>
24025         fts: handle readdir() errors
24026         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
24027         but also upon error when it will also set errno.  Therefore
24028         flag the error case from readdir().  We treat the case where
24029         no items are read the same as if the dir can't be accessed,
24030         i.e. by setting fts_errno to FTS_DNR.
24032 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
24034         intprops: port better to GCC 7
24035         GCC 7 __builtin_add_overflow supports a new usage form, where the
24036         last argument is a null pointer, and which merely returns 1 if an
24037         overflow would occur.  This is a constant expression if all
24038         arguments are constants, and should generate faster code when code
24039         needs to be generated.
24040         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
24041         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24042         Use builtin operations if available.
24043         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
24044         operations are available, as it's almost surely faster.
24046 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24048         intprops-test: port to GCC 6
24049         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
24050         since the bug is not fixed in GCC 6.1.
24052 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
24054         xalloc-oversized: port to GCC 7; fewer warnings
24055         GCC 7 will have a better way to deal with integer overflow.
24056         Plus, fix a warnings problem reported by Tim Ruehsen in:
24057         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
24058         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
24059         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
24060         For GCC 5, use __xalloc_oversized if both args are constants,
24061         or if pedantic.
24063 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
24065         regex: port to Sun C
24066         Reported by Daiki Ueno.
24067         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
24068         __restrict, in prototype.  This fixes a problem I introduced in
24069         the 2016-02-19 merge from glibc.
24071 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
24073         stdbool: Restore __bool_true_false_are_defined check
24074         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
24075         __bool_true_false_are_defined is still defined, even with C++11.
24077 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
24079         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
24080         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
24082 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
24084         Use GCC_LINT, not lint
24085         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
24086         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
24087         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
24088         Document problem with lint and _Noreturn.
24089         * lib/diffseq.h (IF_LINT, IF_LINT2):
24090         * lib/fts.c (sccsid):
24091         * lib/getndelim2.c (IF_LINT):
24092         * lib/gl_anylinked_list2.h (gl_linked_iterator)
24093         (gl_linked_iterator_from_to):
24094         * lib/gl_anytree_list2.h (gl_tree_iterator)
24095         (gl_tree_iterator_from_to):
24096         * lib/gl_anytree_oset.h (gl_tree_iterator):
24097         * lib/gl_array_list.c (gl_array_iterator)
24098         (gl_array_iterator_from_to):
24099         * lib/gl_array_oset.c (gl_array_iterator):
24100         * lib/gl_carray_list.c (gl_carray_iterator)
24101         (gl_carray_iterator_from_to):
24102         * lib/idcache.c:
24103         * lib/inet_ntop.c (IF_LINT):
24104         * lib/regcomp.c (build_charclass_op, create_tree):
24105         * lib/regex_internal.c (re_acquire_state)
24106         (re_acquire_state_context):
24107         * lib/trigl.c (rcsid):
24108         * lib/trim.c (IF_LINT):
24109         * lib/vasnprintf.c (IF_LINT):
24110         * lib/verify.h (assume):
24111         Treat GCC_LINT like lint.
24113 2016-05-29  Bruno Haible  <bruno@clisp.org>
24115         secure_getenv: Port to many more platforms.
24116         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
24117         functions.
24118         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
24119         for non-BSD Unix platforms and for native Windows.
24120         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
24121         Prompted by a request from Nikos Mavrogiannopoulos.
24123 2016-05-27  Eric Blake  <eblake@redhat.com>
24125         canonicalize: Fix broken probe for realpath.
24126         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
24127         in logic introduced in 54615b95.
24129 2016-05-26  Eric Blake  <eblake@redhat.com>
24131         unsetenv: relax to LGPLv2+
24132         * modules/unsetenv (License): Match setenv license.
24134 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
24136         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
24137         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
24138         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
24139         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
24140         (commonarg, dirargs, dirs, infoarg, generate_ascii)
24141         (generate_html, generate_info, generate_tex, outdir)
24142         (source_extra, split, srcfile, texarg): Move above 'version'.
24143         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
24145 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
24147         manywarnings: update for GCC 6.1
24148         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
24149         Add GCC 6.1 options that apply to C.
24150         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
24151         do not apply to C, are obsolescent, etc.
24153 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
24155         glob: size_t overflow checks
24156         * lib/glob.c (__has_builtin): New macro.
24157         (size_add_wrapv, glob_use_alloca): New static functions.
24158         (glob, glob_in_dir): Check for size_t overflow in several places,
24159         and fix some size_t checks that were not quite right.
24161         glob: don't assume INT_MAX < SIZE_MAX
24162         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
24163         latter is not portable to (probably theoretical) hosts where
24164         SIZE_MAX <= INT_MAX.
24166 2016-05-09  Bruno Haible  <bruno@clisp.org>
24168         Fix undefined behaviour in gettext.h.
24169         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
24170         pointer's value after the storage it points to has been freed.
24171         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
24172         Spotted by Coverity.
24174 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
24176         git-version-gen: avoid undefined shift
24177         Problem reported by Mosè Giordano in:
24178         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
24179         * build-aux/git-version-gen: Avoid undefined behavior if invoked
24180         with --prefix or --fallback but without a later argument.  While
24181         we're at it, omit unnecessary quotes.
24183 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
24185         glob: merge glibc changes into lib/glob.c
24186         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
24187         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
24188         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
24189           struct dirent [BZ #19779]
24190         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
24191           callback gl_readdir
24192         2015-10-20 Convert miscellaneous function definitions to prototype style
24193         2015-10-20 Convert 113 more function definitions to prototype style
24194           (files with assertions)
24195         2015-06-12 Fix getlogin_r namespace (bug 18527).
24196         2014-02-10 Use glibc_likely instead __builtin_expect.
24197         2013-10-20 When glob pattern contains a trailing slash match only
24198           directories. Fixes bug 10278.
24199         2013-09-04 glob: silence -Wattribute warnings
24200         2013-06-07 Avoid use of "register" as optimization hint.
24201         2012-09-25 Use size_t instead of int for internal variables in glob
24202           (bug 14621)
24203         2011-07-20 Check for overflows in expressions
24204         2011-05-28 Remove unused variable
24205         2011-05-22 Add a few more alloca size checks
24206         2010-03-27 Whitespace fixes
24207         2010-03-27 Fix one more issue with the glob patch
24208         2010-03-24 Fix glob with empty pattern
24209         2008-05-27 Remove useless more "if" tests before "free"
24210         * modules/glob (Depends-on): Add stdint.
24212 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24214         mktime: port to stricter signed overflow checking
24215         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
24216         (long_int): Require width for INT_MAX * 3 * (seconds per year),
24217         instead of merely for INT_MAX * 2.  In practice platforms that
24218         do the latter also do the former.
24219         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
24220         (shr): New static function, replacing SHR.  All uses changed.
24221         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
24222         and TIME_T_MAX.  All uses changed.
24223         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
24224         Use long_int, not time_t.
24225         (long_int_avg): New static function, replacing time_t_avg.
24226         All uses changed.  Round toward positive infinity, as that
24227         generates slightly better code.
24228         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
24229         by INT_ADD_WRAPV.
24230         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
24231         (convert_time): New static function.
24232         (ranged_convert): Use it
24233         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
24234         Use simpler test for loop exit.
24235         (__mktime_internal): Store negative of guessed offset, to simplify
24236         overflow checking.  Remove no-longer-needed test for small time_t
24237         overflows.
24239         mktime: speed up DEBUG_MKTIME benchmarks
24240         Call tzset just once, at the start, rather than for every test
24241         case.  This lets us measure the CPU cost of mktime as opposed to
24242         that of tzset.  This is relevant when TZ is not set and glibc is
24243         being used.  This speeds up tests by a factor of 40 on my Fedora
24244         23 x86-64 platform.
24245         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
24246         to call tzset and as a sanity check.  Later on, use localtime_r
24247         instead of localtime.
24249         mktime: resurrect DEBUG_MKTIME testing
24250         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
24251         Include <string.h>, for strcmp.
24253         mktime: simplify DEBUG_MKTIME
24254         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
24255         Simplify later usage accordingly.
24257         Port mktime_internal offset to unsigned time_t
24258         This avoids some assumptions about wraparound arithmetic on
24259         signed integer overflow.
24260         * lib/mktime-internal.h (mktime_offset_t): New type.
24261         (mktime_internal): Use it in decl.
24262         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
24264         * lib/mktime.c (__mktime_internal, localtime_offset):
24265         * lib/timegm.c (timegm): Use it.
24266         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
24267         (gl_FUNC_MKTIME): Require it.
24269 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
24271         xstrtol: prohibit monstrosities like "1bB"
24272         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
24273         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
24274         "B" only if the first suffix needs a base.
24275         * tests/test-xstrtol.sh: Test this.
24277 2016-04-21  Pádraig Brady  <P@draigBrady.com>
24279         xstrtod: reinstate setting of *result upon ERANGE
24280         * lib/xstrtod.c (XSTRTOD): The user may decide to use
24281         the returned limits upon ERANGE, so allow and document that.
24283 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
24285         xstrtod: modify *result only if no errors
24286         * lib/xstrtod.c (XSTRTOD).
24288 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
24290         btowc: document problems in C locale
24291         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
24292         with mbrtowc.  See: http://bugs.gnu.org/23269#32
24294 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24296         mktime: improve integer overflow checking
24297         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
24298         (WRAPV): Remove; no longer needed.
24299         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
24300         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
24301         Remove.  Use intprops.h defns instead.
24302         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
24303         Use bool for Boolean, for clarity.
24304         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
24305         detect integer overflow.
24306         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
24308         intprops: check two's complement assumption
24309         Suggested by Eric Blake in:
24310         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
24311         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
24312         short, int, long, and (if available) long long are two's complement.
24313         * modules/intprops (Depends-on): Add 'verify'.
24315         intprops, mktime, strtol: assume two's complement
24316         These macros were not portable to every conforming C11 ones'
24317         complement platform.  It's not worth the hassle of porting to some
24318         platforms that use ones' complement or signed magnitude, as such
24319         platforms are almost purely theoretical nowadays and porting even
24320         to some of them makes the code harder to review for little
24321         practical benefit.  Problem reported by Florian Weimer in:
24322         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
24323         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24324         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
24325         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
24326         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24327         (TYPE_SIGNED_MAGNITUDE):
24328         Remove.  All uses rewritten to assume two's complement, which is
24329         all we can reasonably test nowadays anyway.
24330         * top/maint.mk (_intprops_names): Remove the removed macros.
24332 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
24334         stdint: port to strict C11 left shift
24335         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
24336         Pacify clang -Wshift-negative-value, which should be an issue only
24337         on clang setups where stdint.h does not conform to C11 or to C++11.
24338         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
24340 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
24342         mbrtowc: work around glibc bug#19932
24343         Fix mbrtowc so that it never returns -1 in the C locale,
24344         as this conflicts with a future version of POSIX
24345         http://austingroupbugs.net/view.php?id=663#c2738
24346         and causes problems with GNU grep: http://bugs.gnu.org/23234
24347         See glibc bug 19932:
24348         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
24349         * doc/posix-functions/mbrlen.texi (mbrlen):
24350         * doc/posix-functions/mbrtowc.texi (mbrtowc):
24351         Document the glibc bug.
24352         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
24353         Include hard-locale.h, locale.h.
24354         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
24355         if the bug is possible.
24356         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
24357         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
24358         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
24359         * modules/mbrtowc (Depends-on): Add hard-locale.
24360         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
24361         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
24362         * tests/test-mbrtowc5.sh: New file.
24364 2016-04-03  Pedro Alves  <palves@redhat.com>
24366         stdint: detect good enough pre-C++11 stdint.h in C++ mode
24367         When gnulib is configured in C++ mode for a system with a working C99
24368         implementation of stdint.h that predates C++11, gnulib ends up
24369         substituting stdint.h anyway.  This works on most targets, but on e.g.,
24370         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
24371         MinGW is LLP64.  Instead of trying to detect the right types, detect
24372         good-enough-pre-C++11 stdint.h and in such case define
24373         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
24374         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
24375         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
24376         conforms to C99.  If it does, check whether it hides symbols
24377         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
24378         does, define those macros in config.h.
24380 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24382         argp: merge changes from glibc
24383         Among other things, this should fix problems found by a Coverity
24384         scan and reported by Andrei Borzenkov:
24385         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
24386         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
24387         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
24388         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
24389         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
24390         * lib/argp.h:
24391         Merge changes from glibc.
24392         * tests/test-argp-2.sh: Adjust to match new behavior.
24394 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
24396         stddef: support configuring with g++
24397         Problem reported by Ángel González in:
24398         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
24399         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
24400         Do not define if _GCC_MAX_ALIGN_T is defined.
24402 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24404         test-framework-sh: minor cleanups
24405         * tests/init.sh (testdir_prefix_): Output a trailing newline,
24406         since strictly speaking POSIX requires this.
24407         (setup_): Do not use the variable 'fail', as that makes the
24408         trace output harder to read ('fail' is typically used by
24409         tests to mean the test failed).  Treat // portably.
24410         Check that new directory is not merely a sibling of the tmp dir.
24411         Avoid unnecessary invocation of tr.
24413         test-framework-sh: revert port to NetBSD 7.0
24414         It was a false alarm; I misinterpreted Assaf Gordon's report.
24415         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24416         Restore.
24417         (test_dir_): Adjust to mktempd_ change.
24418         (mktempd_): Restore 2nd arg.  Use -t again.
24419         (base_template_, template_, nx_): Resurrect old code.
24421         Port better to Alpine Linux
24422         Its diff implementation does not support -c, but does support -U3.
24423         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24424         * tests/init.sh (diff_opt_): New var.
24425         (compare_): Prefer diff -U3 to diff -c to plain diff.
24427 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24429         test-framework-sh: port to NetBSD 7.0
24430         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24431         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24432         Remove.  All uses removed.
24433         (test_dir_): Adjust to mktempd_ change.
24434         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
24435         (base_template_, template_, nx_): Simplify by hardcoding.
24437 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
24439         gitlog-to-changelog: suppress ignored chatter
24440         * build-aux/gitlog-to-changelog: Do not warn about skipping
24441         an SHA if it would have been ignored anyway.
24443 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
24445         setlocale: add "sv" to Windows language table
24446         * lib/setlocale.c (language_table) [W32]: Add "sv".
24447         Reported in <https://savannah.gnu.org/bugs/?44588>.
24449 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24451         sys_select: port to new Cygwin
24452         Problem reported by Ken Brown in:
24453         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
24454         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
24455         diagnostics.
24457 2016-03-17  Jim Meyering  <meyering@fb.com>
24459         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
24460         * tests/test-userspec.c (main): Remove unnecessary braces and fix
24461         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
24462           test-userspec.c:176:9: error: statement is indented as if it were \
24463             guarded by... [-Werror=misleading-indentation]
24464                    {
24465                    ^
24466           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
24467                  if (!diag && !T[i].result)
24468                  ^~
24470 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
24472         time_rz: port to clang -Wunused-const-variable
24473         * lib/time_rz.c (TZ): Remove.  All uses removed.
24475         std-gnu11: improve clang support
24476         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
24477         2016-03-15 Also try clang
24478         2016-03-15 Port C11 and C++11 testing to clang
24480         select: port more to Intel 2016.1.150 compiler
24481         Problem reported by Balázs Hajgató in:
24482         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
24483         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
24485 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24487         select: try to port to 2016.1.150 compiler
24488         Problem reported by Balázs Hajgató in:
24489         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
24490         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
24491         POSIX specifies 'restrict'.
24493 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
24495         localename-tests: memory allocation fixes
24496         * tests/test-localename.c (test_locale_name)
24497         (test_locale_name_thread): Don't call freelocale on a locale
24498         that was the base of a successful newlocale, as that
24499         results in a double free.  Problem reported by Assaf Gordon.
24500         (test_locale_name_thread): Free saved names after use, to pacify
24501         gcc -fsanitize=address.
24503 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24505         intprops: make .h file license match module
24506         * lib/intprops.h: Change the license wording to match glibc format.
24507         This is what is in modules/intprops anyway.  See:
24508         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
24510 2016-03-08  Eric Blake  <eblake@redhat.com>
24512         acl: fix missing return on Cygwin
24513         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
24514         fall off end of function. Fixes http://bugs.gnu.org/22949
24516 2016-03-05  Bruno Haible  <bruno@clisp.org>
24518         extern-inline: port to PGI CC
24519         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
24520         keyword 'inline'.
24521         Reported by Adam James Stewart in:
24522         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
24524 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24526         signbit: port back to pre-C++11 GCC
24527         * lib/math.in.h (signbit): Do previous change only if
24528         __cplusplus < 201103.  See Jonathan Wakely in:
24529         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
24531 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
24533         mountlist: recognize autofs-mounted remote file systems, too
24534         Originally reported at: https://bugzilla.redhat.com/1309247
24535         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
24536         "-hosts" because it is used by autofs to mount remote file systems.
24538 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24540         signbit: port to C++ with GCC 6
24541         * lib/math.in.h (signbit) [__cplusplus]:
24542         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
24543         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
24545         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
24547         regex: make it closer to libc
24548         Make Idx a signed type, rather than possibly unsigned.
24549         The unsignedness was not really buying us anything, since the code
24550         overflows for other reasons before getting to PTRDIFF_MAX.  Making
24551         it signed allows us to use -1 and -2 with abandon, like libc does,
24552         thus lessening the number of differences between gnulib and libc.
24553         Also, it should help avoid gratuitous warnings like the one
24554         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
24555         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
24558         regex: merge patches from libc
24560         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
24561         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
24562         Convert miscellaneous function definitions to prototype style.
24563         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
24564         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
24565         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
24566         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
24567         (re_search_internal):
24568         Convert to prototype-style function definition.
24569         Use internal_function for internal functions.
24571 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
24573         stdalign: port to older HP and IBM cc
24574         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
24575         C compilers, by checking their version numbers.  These version
24576         numbers appear in MariaDB and in Qt code that dates way back and
24577         that conditiionally uses the 'aligned' attribute.
24579 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24581         stdalign: port to clang 3.7.0
24582         Problem reported by Herbert J. Skuhra in:
24583         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
24584         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
24585         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
24586         https://llvm.org/bugs/show_bug.cgi?id=26547
24588 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24590         readdir_r: now obsolescent
24591         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
24592         * lib/mountlist.c (read_file_system_list): Add a FIXME.
24594 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24596         misc: port better to gcc -fsanitize=address
24597         Without these patches, ./configure CFLAGS='-fsanitize=address'
24598         would compute incorrect values.  This patch fixes some (but not all)
24599         test failures with recent glibc, with this configuration.
24600         * m4/acl.m4 (gl_ACL_GET_FILE):
24601         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
24602         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
24603         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
24604         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
24605         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
24606         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
24607         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
24608         * m4/getline.m4 (gl_FUNC_GETLINE):
24609         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
24610         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
24611         * m4/regex.m4 (gl_REGEX):
24612         * m4/strndup.m4 (gl_FUNC_STRNDUP):
24613         * tests/test-calloc-gnu.c (main):
24614         * tests/test-duplocale.c (main):
24615         * tests/test-getgroups.c (main):
24616         * tests/test-getline.c (main):
24617         * tests/test-inttostr.c (main):
24618         * tests/test-localename.c (test_locale_name)
24619         (test_locale_name_thread, test_locale_name_environ)
24620         (test_locale_name_default):
24621         * tests/test-regex.c (main):
24622         * tests/test-setlocale1.c (main):
24623         * tests/test-stat.h (test_stat_func):
24624         Free heap-allocated storage before exiting.
24625         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
24626         Don't match *_foo symbols inserted by AddressSanitizer.
24627         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
24629 2016-02-02  Jim Meyering  <meyering@fb.com>
24631         verify-tests: also remove stray test-verify.Tpo
24632         * modules/verify-tests (Makefile.am): Arrange for "make clean"
24633         to remove the test-verify.Tpo file that is left behind by
24634         the automake-generated rule upon compilation failure.
24635         Otherwise, that .Tpo file would cause a failed "make distcheck"
24636         at least for grep.
24638 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
24640         std-gnu11: new module
24641         This makes it easier for applications to prefer C11 and C++11
24642         to older variants, when compiling C and C++ code.
24643         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
24644         a nontrivial chunk of GPLed Autoconf source code.
24645         * COPYING: Mention the m4/*.m4 copyright situation.
24646         * MODULES.html.sh (std-gnu11): New module.
24647         * m4/std-gnu11.m4, modules/std-gnu11: New files.
24649 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24651         get-permissions, strftime: fix grammar in comments
24652         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
24653         some grammar fixes Alan Mackenzie made to GNU Emacs.
24655 2016-01-25  Daiki Ueno  <ueno@gnu.org>
24657         gettext: mark as obsolete
24658         Suggested by Paul Eggert in:
24659         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
24660         * modules/gettext (Status): Mark as obsolete.
24661         (Notice): Suggest to use 'gettext-h' instead.
24662         * modules/gettext-h (Description): Suggest GNU gettext, instead of
24663         the 'gettext' module.
24665 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24667         gnulib-tool: don't give up on ln -s so easily
24668         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
24669         because an earlier one failed.  The targets could be on different
24670         file systems.  Problem reported by KO Myung-Hun in:
24671         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
24673         closedir: fix OS/2-related typos
24674         Problem reported by KO Myung-Hun in:
24675         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
24676         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
24677         in the last couple of changes.
24679 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
24681         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
24682         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
24683         copying a directory.
24685 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24687         regex: treat [x] as x if x is a unibyte encoding error
24688         Problem reported by Aharon Robbins in:
24689         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
24690         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
24691         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
24693         closedir, dirfd, opendir: port to OpenSolaris 5.10
24694         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
24695         * m4/dirfd.m4 (gl_FUNC_DIRFD):
24696         * m4/opendir.m4 (gl_FUNC_OPENDIR):
24697         Don't use ${word##pat} substitution, as it doesn't work in
24698         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
24699         http://bugs.gnu.org/22443#11
24701 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24703         bootstrap: use American spelling
24704         * build-aux/bootstrap: Honor American spelling.
24706 2016-01-22  Karl Berry  <karl@freefriends.org>
24708         * doc/posix-functions/localtime.texi,
24709         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
24711 2016-01-21  Bruno Haible  <bruno@clisp.org>
24713         hash-pjw-bare: fix comment
24714         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
24716         wcwidth: Replace also on OpenBSD 5.8
24717         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
24718         * doc/posix-functions/wcwidth.texi: Update.
24720 2016-01-20  Pádraig Brady  <P@draigBrady.com>
24722         gnu-web-doc-update: fix addition of new files
24723         If there were already added (emnpty) dirs,
24724         then cvs aborts the add with the message:
24725           cvs [add aborted]: there is a version in <./dirname> already
24726         * build-aux/gnu-web-doc-update: Add directories separately
24727         to the addition of files, to avoid the above issue
24728         impacting the addition of files.
24730 2016-01-19  Daiki Ueno  <ueno@gnu.org>
24732         utimens-tests: avoid pulling gettext .m4 files
24733         Although this is not the right fix to the original problem:
24734         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
24735         it makes it possible again for consumer projects to use arbitrary
24736         version of gettext, through the steps described at:
24737         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
24738         See here for details:
24739         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
24740         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
24741         'gettext'.
24742         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
24743         'gettext'.
24745 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24747         regex: pacify static checkers
24748         Problem and draft fix reported by Aharon Robbins in:
24749         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24750         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
24751         Clear memory to pacify static checkers.
24753         regex: fix [ diagnostic
24754         Problem and fix reported by Aharon Robbins in:
24755         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24756         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
24758         regex: fix memory leaks
24759         Problem and draft fix reported by Aharon Robbins in:
24760         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24761         * lib/regcomp.c (build_range_exp, build_charclass_op)
24762         * lib/regex_internal.c (re_dfa_add_node):
24763         Fix memory leak on failure.
24765 2016-01-18  Pádraig Brady  <P@draigBrady.com>
24767         fts: don't unconditionally use leaf optimization for NFS
24768         NFS st_nlink are not accurate on all implementations,
24769         leading to aborts() if that assumption is made.
24770         See <https://bugzilla.redhat.com/1299169>
24771         * lib/fts.c (leaf_optimization_applies): Remove NFS from
24772         the white list, and document the issue.
24774 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24775             KO Myung-Hun  <komh@chollian.net>
24777         gnulib-tool: don't assume ln -s works
24778         * gnulib-tool (func_ln_s): New function.
24779         (func_ln): Use it.
24781 2016-01-15  KO Myung-Hun  <komh@chollian.net>
24783         utimes: detect utimes() correctly on OS/2 kLIBC
24784         utimes() of OS/2 kLIBC has some limitations.
24785         1. OS/2 itself supports a file date since 1980 year in local time.
24786         2. OS/2 itself supports only even seconds for a file time.
24787         3. utimes() of OS/2 kLIBC does not work on an opened file.
24788         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
24789         * doc/posix-functions/utimes.texi: Document the above limitations of
24790         utimes() on OS/2 kLIBC.
24792 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24793             KO Myung-Hun  <komh@chollian.net>
24795         openat_proc_name: port to OS/2 kLIBC
24796         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
24797         instead of /proc/self/fd.
24798         * lib/openat-proc.c (openat_proc_name):
24799         Don't assume file name length is less than INT_MAX.
24800         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
24802 2016-01-14  KO Myung-Hun  <komh@chollian.net>
24804         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
24805         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
24806         definitions of intptr_t and uintptr_t (which use int and unsigned)
24807         to avoid clashes with declarations of system functions like sbrk.
24808         * lib/stdint.in.h (intptr_t, uintptr_t): Check
24809         _INTPTR_T_DECLARED before defining them.
24811         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
24812         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
24813         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
24814         Declare on kLIBC.
24815         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
24816         fd associated with dirp.
24817         (_gl_register_dirp_fd): New. Register fd associated with dirp to
24818         dirp_fd_list.
24819         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
24820         (dirfd): Implemented for kLIBC.
24821         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
24822         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
24823         succeeds.
24824         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
24825         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24826         (REPLACE_DIRFD): Define to 1 if replaced.
24827         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
24828         * modules/closedir (Depends-on): Add dirfd.
24829         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
24830         condition.
24831         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
24832         * modules/opendir (Depends-on): Add dirfd.
24834         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
24835         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
24836         * lib/dup.c (dup_nothrow): New.
24837         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
24838         (klibc_dup2): New.
24839         * lib/fcntl.c (klibc_fcntl): New.
24840         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
24841         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
24842         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
24843         fd.
24845         pipe_filter_ii_execute: port to OS/2 kLIBC
24846         Pipes on kLIBC do not support O_NONBLOCK like Win32.
24847         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
24848         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
24849         Reuse Win32 code on OS/2 kLIBC.
24850         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
24851         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
24853         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
24854         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
24855         static inline function.  The implementation of wcwidth in wcwidth.c
24856         causes a "conflicting types" error.
24857         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
24859         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
24860         spawn() on OS/2 kLIBC is not silly like one on Windows
24861         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
24862         empty string on OS/2 kLIBC.
24864         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
24865         On OS/2 kLIBC, select() works only on sockets.
24866         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
24868         binary-io: don't put fd in binary mode if it is a console on EMX
24869         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
24870         a console on EMX.
24872 2016-01-15  Pádraig Brady  <P@draigBrady.com>
24874         doc: mention unfixed issues with unsupported localtime() values
24875         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
24876         returns nonsense for localtime(2^56).
24877         * doc/posix-functions/localtime_r.texi: Likewise.
24879 2016-01-14  Pádraig Brady  <P@draigBrady.com>
24881         doc: mention setlocale() issues on OpenBSD
24882         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
24883         never fails, and the need to check categories individually.
24885 2016-01-14  Pádraig Brady  <P@draigBrady.com>
24887         sig2str: list all signals on FreeBSD >= 7
24888         FreeBSD >= 7 is contravening POSIX by not defining NSIG
24889         to the maximal statically defined signal value.
24890         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
24891         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
24892         where available, even when NSIG is defined.
24894 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
24896         acl-permissions: port to USE_ACL==0 platforms
24897         I ran into this problem when building bleeding-edge GNU Emacs
24898         with gcc -fsanitize=address on Fedora 23.  On this platform
24899         the ACL library does not pass the 'configure' test and Emacs
24900         then does not build due in part to what appear to be typos in the
24901         ACL part of Gnulib.
24902         * lib/acl-internal.c (free_permission_context):
24903         * lib/acl-internal.h (struct permission_context):
24904         Test whether USE_ACL is nonzero, not whether it is defined.
24906 2016-01-12  Martin Sebor  <msebor@redhat.com>
24908         mktime: rename macro to avoid glibc clash
24909         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
24910         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
24912 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
24914         Port "$@" to OpenIndiana ksh93
24915         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
24916         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
24917         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
24918         bug long-dead shells, so remove the workaround.
24919         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
24920         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
24921         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
24922         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
24923         Use "$@" instead of ${1+"$@"}.
24925         Port Universal Time settings to strict POSIX
24926         * build-aux/announce-gen, build-aux/bootstrap:
24927         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
24928         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
24929         * build-aux/gnupload, build-aux/mkinstalldirs:
24930         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
24931         * build-aux/update-copyright, build-aux/useless-if-before-free:
24932         * build-aux/vc-list-files, tests/test-strftime.c:
24933         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
24934         but POSIX says the behavior of TZ="UTC" is undefined.
24936 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
24938         msvc-inval: fix problem with unset shell var
24939         Problem reported by Karl Berry in:
24940         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
24941         * modules/msvc-inval (Depends-on):
24942         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
24943         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
24945 2016-01-01  Pádraig Brady  <P@draigBrady.com>
24947         tests: for compare_(), use cmp -s where available
24948         * tests/init.sh (compare_): Only fall back to cmp without
24949         the POSIX defined -s option, where this is not available.
24951 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
24953         version-etc: new year
24954         * build-aux/gendocs.sh (version):
24955         * doc/gendocs_template:
24956         * doc/gendocs_template_min:
24957         * doc/gnulib.texi:
24958         * lib/version-etc.c (COPYRIGHT_YEAR):
24959         Update copyright dates by hand in templates and the like.
24960         * all files: Run 'make update-copyright'.
24962 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
24964         human: fix output buffer overrun by 1
24965         * lib/human.c (human_readable): Fix off-by-one typo in buffer
24966         calculation that could lead to a one-byte buffer overrun.
24968 2015-12-28  Daiki Ueno  <ueno@gnu.org>
24970         maint: fix operator precedence in mbrtowc test
24971         This is a fix for test breakage introduced by commit 45228d96; the
24972         equality expression must be parenthesized when negated with '!',
24973         otherwise we always get:
24975           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
24977         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
24978         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
24980 2015-12-23  James Youngman  <jay@gnu.org>
24982         regexprops-generic: update from regex.h
24983         * doc/regexprops-generic.texi: update by running the regexprops binary
24984         from findutils (the command line is 'regexprops "Regular Expressions"
24985         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
24986         gnulib with GNU grep had made this document out-of-date.
24988 2015-12-23  Pádraig Brady  <P@draigBrady.com>
24990         strftime-tests: avoid false failure on OS X
24991         * tests/test-strftime.c (struct localtime_rz_test): Add an
24992         ahistorical member which is used to warn rather than fail
24993         when tm_isdst isn't set for such entries.  This is the case for
24994         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
24996 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
24998         fts: ensure leaf optimization is used for NFS
24999         NFS provides usable dirent.d_type but not necessarily for all entries
25000         of large directories.  See <https://bugzilla.redhat.com/1252549>
25001         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
25003 2015-12-20  Pádraig Brady  <P@draigBrady.com>
25005         fts: enable leaf optimization for XFS
25006         XFS provides usable dirent.d_type only for DT_DIR,
25007         but the noleaf optimization still applies.
25008         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
25010 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
25012         intprops: comment fix
25013         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
25014         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
25016         intprops-test: work around GCC bug 68971
25017         Problem reported by Pádraig Brady in:
25018         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
25019         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
25020         (main): Add a case that better tests 64-bit long in this area.
25022 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
25024         gnulib-tool: allow multiple --local-dir usage
25025         * gnulib-tool: Use --local-dir to construct compound
25026         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
25027         PATH_SEPARATOR early.
25028         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
25029         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
25030         func_determine_path_separator because that needs to be detected
25031         earlier now.
25032         (func_determine_path_separator): New function.
25033         (func_path_foreach, func_path_foreach_inner): New functions.
25034         (func_path_prepend, func_path_append): Likewise.
25035         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
25036         (func_lookup_file, func_all_modules): Use new functions to work
25037         with local_gnulib_path.
25038         (func_modules_in_dir, func_exists_module): New callbacks for
25039         func_path_foreach.
25040         (func_exists_module, func_get_tests_module): Likewise.
25041         (func_is_local_file, func_should_symlink): New helper methods.
25042         (func_add_file, func_update_file): Use new func_should_symlink
25043         instead, DRY.
25044         (func_reconstruct_cached_local_gnulib_path): New helper.
25045         (func_reconstruct_cached_dir): New callback.
25046         (func_import): The cached_local_gnulib_dir renamed to
25047         cached_local_gnulib_path similarly to local_gnulib_dir.
25048         Use new func_reconstruct_cached_local_gnulib_path.
25049         (func_count_relative_local_gnulib_path): New sub-method.
25050         (func_create_testdir): Use func_should_symlink, DRY.
25051         (func_create_megatestdir): Use new functions to work with
25052         local_gnulib_path correctly.
25053         (func_append_local_dir): New helper.
25055 2015-12-08  Pádraig Brady  <P@draigBrady.com>
25057         fix freadptr to work with ungetc on all uClibc configs
25058         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
25059         where GNU coreutils cut(1) generates invalid output on uClibc
25060         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
25061         * lib/freadptr.c (freadptr): Return NULL if there are
25062         ungotten chars.  In this case freadseek() will iterate
25063         again to process the ungotten character.
25065 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
25067         xalloc-oversized: improve performance with GCC 5
25068         * lib/xalloc-oversized.h (xalloc_oversized):
25069         Improve performance with GCC 5 by using __builtin_mul_overflow.
25071 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
25073         intprops: new public macro EXPR_SIGNED
25074         Emacs can use this macro, so make it public.
25075         * doc/intprops.texi (Arithmetic Type Properties): Rename from
25076         'Integer Type Determination', since some of these macros apply
25077         to non-integer types.  Clarify what kinds of constant expressions
25078         these macros return.  Say when the arguments can be non-integers.
25079         Mention newly published macro EXPR_SIGNED.
25080         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
25081         make it public.  All uses changed.
25083         intprops: fix typo in clang port
25084         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
25085         '__builtin_add_overflow' that is not caught by compiler.
25087 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
25089         test-timespec: fix typo in previous change
25090         * tests/test-timespec.c (main): Fix typo that reduced test quality.
25092         timespec-sub: fix overflow bug; add tests
25093         * lib/timespec-add.c (timespec_add):
25094         * lib/timespec-sub.c (timespec_sub):
25095         Work even if time_t is narrower than int (a theoretical
25096         possibility).  Redo code for a bit more clarity.
25097         * lib/timespec-sub.c (timespec_sub):
25098         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
25099         * modules/timespec-tests, tests/test-timespec.c: New files.
25101         intprops-test: suppress -Woverlength-strings
25102         Problem reported by Pádraig Brady in:
25103         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
25104         It is not worth the hassle to port this test to compilers that
25105         cannot handle long strings in diagnostics.
25106         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
25108 2015-11-03  Pádraig Brady  <P@draigBrady.com>
25110         quotearg: add quotearg_n_style_colon()
25111         This quotes with default options of the specified style,
25112         but with quoting enabled for instances of ':'.
25113         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
25114         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
25116 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
25118         intprops: revise _WRAPV macros, revert _OVERFLOW
25119         The incompatible changes to the _OVERFLOW macros were too much of
25120         a hassle in practice, so revert them.  Instead, change the new
25121         _WRAPV macros to make them closer in behavior to GCC 5's new
25122         builtin_add_overflow etc. functions.  No other software was using
25123         these newly-added macros yet, so this should be OK.
25124         * NEWS: Revert previous change, since the incompatible change
25125         has been reverted, and nobody used the incompatible version.
25126         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
25127         Document revised behavior.
25128         (Integer Range Overflow): Adjust example to match above revisions.
25129         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
25130         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
25131         these can be used in integer constant expressions again.
25132         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
25133         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
25134         needed.
25135         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
25136         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
25137         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
25138         Remove, as they did not seem that useful.
25139         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
25140         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
25141         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
25142         Support new semantics.
25143         (__has_builtin): New macro, if not alreay defined.
25144         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
25145         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
25146         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
25147         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
25148         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
25149         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
25150         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
25151         New macros.
25152         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
25154 2015-11-03  Jim Meyering  <meyering@fb.com>
25156         intprops: add parentheses for when OP has precedence lower than "-"
25157         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
25158         "a OP b" must be parenthesized for when OP is like "<<", which has
25159         lower precedence than the following "-". Reported by Pádraig Brady.
25161 2015-11-03  Pádraig Brady  <P@draigBrady.com>
25163         quotearg: constify get_quoting_style parameters
25164         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
25165         * lib/quotearg.c (get_quoting_style): Likewise.
25167 2015-11-02  Pádraig Brady  <P@draigBrady.com>
25169         quotearg: add support for $'' shell escaping
25170         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
25171         items and descriptions.
25172         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
25173         above types by quoting like "shell", but using $'...' syntax
25174         for non printable characters, which should provide unambiguous
25175         printable output for any input.
25176         * tests/test-quotearg-simple.c: Update accordingly.
25178 2015-11-02  Pádraig Brady  <P@draigBrady.com>
25180         maint: use a more standard return from mbrtowc test
25181         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
25182         from the test program as this is non standard and often
25183         indicates an unhandled case in the test program.
25184         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
25186 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
25188         intprops: add WRAPV and const flavors for GCC 5
25189         If available, use GCC 5's builtin functions for efficient integer
25190         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
25191         and safely compute the low-order bits of the correct answer.
25192         A downside of these efficient functions is that they cannot be
25193         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
25194         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
25195         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
25196         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
25197         Document the changes.
25198         (Wraparound Arithmetic): New section.
25199         (Integer Range Overflow):
25200         Put this subsection last, since it's least useful.
25201         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
25202         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
25203         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
25204         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
25205         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
25206         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
25207         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
25208         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
25209         New macros.
25210         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
25211         Generate calls to GCC builtins if available, for speed.
25212         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
25213         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
25214         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
25215         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
25216         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
25217         (CHECK_QUOTIENT, CHECK_REMAINDER):
25218         Test WRAPV and CONST flavors (when available) too.
25220 2015-10-30  Pádraig Brady  <P@draigBrady.com>
25222         doc: use extended timezone format in iso-8601 example
25223         * doc/parse-datetime.texi: The standard states that extended format
25224         is to be used consistently throughout.
25225         Note that lib/parse-datetime.y can handle either tz format.
25227 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
25229         stdalign: port to Sun C 5.9
25230         * doc/posix-headers/stdalign.texi: Document this.
25231         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
25232         __attribute__ ((__aligned__ (...))).
25234 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
25236         time_rz: fix comment about tzalloc
25237         * lib/time_rz.c (tzalloc): Fix comment.
25239 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25241         stdalign: work around pre-4.9 GCC x86 bug
25242         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
25243         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
25244         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
25246 2015-10-18  Pádraig Brady  <P@draigBrady.com>
25248         maint.mk: sc_tight_scope: remove extraneous expressions
25249         * top/maint.mk (tight_scope): This is not really required since
25250         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
25251         that matches all nm entries.  But it does remove extraneous entries
25252         that may be confusing or cause issue in future maintenance.
25254 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25256         time_rz: return NULL if localtime_r fails
25257         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
25258         while still attempting to pacify bleeding-edge GCC.
25260         fts: port to C11 alignof
25261         * doc/posix-headers/stdalign.texi (stdalign.h):
25262         Document the C11 restriction.
25263         * lib/fts.c: Include stddef.h, for max_align_t.
25264         (fts_alloc): Align using max_align_t, not FTSENT.
25265         * modules/fts (Depends-on): Add stddef.
25267 2015-10-18  Jim Meyering  <meyering@fb.com>
25269         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
25270         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
25271         would see this:
25273         lib/time_rz.c: In function 'localtime_rz':
25274         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
25275           [-Werror=nonnull]
25276                    if (tm && !save_abbr (tz, tm))
25277                        ^
25279         That was complaining about "tm" because it is a parameter that was
25280         declared with the __nonnull__ attribute.
25281         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
25282         result of localtime_r.
25284 2015-10-17  Jim Meyering  <meyering@fb.com>
25286         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
25287         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
25288         name-extraction regexp mistakenly used \S+, and would mistakenly
25289         extract "*F" from "extern int *F()" rather than the desired "F".
25290         Use \w+ instead.
25292 2015-10-17  Jim Meyering  <meyering@fb.com>
25294         maint.mk: sc_tight_scope: factor and support OS X
25295         * top/maint.mk (_gl_tight_scope): Address three issues:
25296         - factor out four instances of code that wraps a string in "^...$"
25297         - allow nm-reported symbol names to have an optional leading "_"
25298         - add "main" to the list of ignored variable names, because on os x,
25299         "main" has nm-reported type "S" in the variable-checking section.
25301 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
25303         safe-alloc-tests: fix typo in license header
25304         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
25306 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
25308         copy-file: fix mem leak in error case
25309         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
25310         upon error opening or performing I/O to the src and dest files.
25312 2015-10-15  Mike Frysinger  <vapier@chromium.org>
25314         localename: control langinfo.h inclusion
25315         This header is only used to work around buggy behavior in old
25316         versions of glibc, so do not include it all the time.  Otherwise
25317         we get build failures on systems that do not provide langinfo.h.
25318         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
25319         in the source later on.
25320         The patch was originally submitted to gettext as:
25321         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
25323 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25325         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
25326         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
25327         * lib/u64.c, lib/unistd.c:
25328         Append 'typedef int dummy;', to pacify compilers that are picky
25329         about empty translation units.
25331 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
25333         accept4-tests: fix to avoid non portable flags
25334         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
25335         as they are the only documented ones, and passing others may trigger
25336         EINVAL (seen on FreeBSD 10.1-RELEASE).
25337         * doc/glibc-functions/accept4.texi: Mention that we don't provide
25338         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
25340 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
25342         gnulib-tool: fix tests of 'extensions' module
25343         This complements f8fe25fab60e3c687a124 commit.
25344         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
25345         emitting of initial gl_EARLY macros.
25346         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
25347         replaced with func_emit_pre_early_macros call.
25349 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25351         unicase/locale-language: fix typo in utf-8 cookie
25352         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
25353         Problem reported by Zbigniew Jędrzejewski-Szmek.
25355 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25357         xalloc: do not worry about GCC 5 warning on 32 bit
25358         * lib/xalloc.h: Revert previous change.
25359         I found a better way to fix this in coreutils.
25361 2015-10-02  Pádraig Brady  <P@draigBrady.com>
25363         xalloc: avoid GCC 5.1 warning on 32 bit
25364         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
25365         xalloc_oversized(), which was seen to give this warning
25366         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
25367         when simplifying conditional".
25369 2015-10-02  Daiki Ueno  <ueno@gnu.org>
25371         uniname/uniname-tests: avoid compiler warnings
25372         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
25373         unused local variables.
25374         (test_alias_lookup): Fix alias name display in failure cases.
25376 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25378         c-ctype: do not worry about EBCDIC + char signed
25379         Drop support for EBCDIC with char being signed, as this breaks too
25380         many programs.  Problem reported by Ben Pfaff in:
25381         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
25382         * lib/c-ctype.h: Verify that we are not using EBCDIC with
25383         char being signed.
25384         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
25385         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
25386         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
25387         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
25388         * tests/test-c-ctype.c (test_all):
25389         Simplify by assuming standard char values cannot be negative.
25390         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
25392 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25394         c-ctype: port better to z/OS EBCDIC
25395         Problems reported by Daniel Richard G. in:
25396         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
25397         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
25398         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
25399         (_C_CTYPE_OTHER_CNTRL): New macro.
25400         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
25401         from SCHAR_MIN, as the functions are defined only from values
25402         promoted from char or from unsigned char, not necessarily from
25403         signed char.
25405 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
25407         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
25409         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
25410         and ARFLAGS variables.  Doing this unconditionally could break
25411         later Automake's AM_PROG_AR invocation (at least it's
25412         AC_CHECK_TOOLS call to detect correct 'ar' binary).
25414         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
25415         Amsterdam Compiler Kit, so make the previous code to have effects
25416         only on ACK, and rather automatically call the Automake's
25417         AM_PROG_AR as soon as possible to decide other cases.
25419         References:
25420         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
25422         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
25423         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
25424         is possible, keep setting AR/ARFLAGS to reasonable defaults.
25425         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
25426         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
25427         'extensions' module is used.
25428         * modules/extensions (configure.ac-early): Remove as this snippet
25429         is added to gnulib-comp.m4 earlier anyway.
25431 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25433         sockets: MS Windows initalization fixes
25434         Problem reported by Test User in:
25435         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
25436         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
25437         Correct the endianness.
25438         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
25439         number mismatch, not just on <.  Cleanup before any such failure.
25441 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
25443         gc: fix detection of installed libgcrypt version
25444         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
25445         at least as recent as 1.4.4.  The previously used macro is not
25446         available now, since modules were removed in version 1.6.0.
25448 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25450         c-ctype: rewrite to use inline functions
25451         This simplifies maintenance, since it makes for just one
25452         implementation of each function, letting the compiler have the fun
25453         of optimization.  In practice this works well nowadays with GCC.
25454         E.g., c_isascii might need only three instructions even though the
25455         source code lists every ASCII character individually in a large
25456         switch statement.
25457         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
25458         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
25459         * NEWS: Document the API change.
25460         * lib/c-ctype.c: Drastically simplify, since this now just expands
25461         inline functions.
25462         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25463         (C_CTYPE_INLINE): New macro.
25464         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
25465         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
25466         Verify that either ASCII or EBCDIC is being used.
25467         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
25468         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
25469         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
25470         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
25471         New private macros.
25472         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
25473         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
25474         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
25475         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
25476         (c_tolower, c_toupper): When converting, return the unsigned char,
25477         as that is what z/OS does.
25478         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
25479         of some c-ctype.h macros.
25480         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
25481         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
25482         c_tolower promotion to be compatible with z/OS.
25484 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
25486         gitlog-to-changelog: trim only trailing whitespaces
25487         This is fix for --format regression introduced by commit
25488         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
25489         doubled %n string) had no effect anymore.  This format
25490         specification has been used e.g. by GNU paxuitils (commit
25491         edfd8bcc3).
25493         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
25494         newlines in commmit messages.
25496 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25498         Test that c_iscntrl agrees with iscntrl, etc.
25499         Suggested by Daniel Richard G. in:
25500         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
25501         * modules/c-ctype-tests (Depends-on): Add ctype.
25502         * tests/test-c-ctype.c: Include <ctype.h>.
25503         (NCHARS): New constant.
25504         (test_agree_with_C_locale): New function.
25505         (main): Use it.
25506         (test_all): Use named constants.
25508         c-ctype: improve c_isascii testing
25509         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
25510         Add a test to count the number of ASCII characters.
25512 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25514         savewd: remove SAVEWD_CHDIR_READABLE
25515         It was problematic in the light of file systems that ignore umask.
25516         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
25517         * NEWS: Document this.
25518         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
25519         successful, -1 (setting errno) on failure, rather than something
25520         more complicated than that.
25521         * lib/mkdir-p.c (make_dir_parents):
25522         Do not use SAVEWD_CHDIR_READABLE.
25523         * lib/savewd.c (savewd_chdir):
25524         Remove support for SAVEWD_CHDIR_READABLE.
25525         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
25527         c-ctype: port better to EBCDIC
25528         Problems reported by Daniel Richard G. in
25529         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
25530         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
25531         Include "verify.h".
25532         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
25533         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
25534         Define as enum constants with value false, if not defined, so that
25535         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
25536         code more portable, as both branches of the 'if' are compiled on
25537         all platforms.
25538         (C_CTYPE_EBCDIC): New constant.
25539         Verify that the character set is either ASCII or EBCDIC.
25540         (to_char): New static function.
25541         (c_isascii, c_iscntrl):
25542         Assume standard control-character assignments for EBCDIC.
25543         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
25544         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
25545         Rewrite to use 'if' instead of 'ifdef'.
25546         Use to_char if non-ASCII.  Prefer <= to >=.
25547         Prefer true and false to 1 and 0, for booleans.
25548         (c_iscntrl): Use 'if', not 'ifdef'.
25549         * modules/c-ctype (Depends-on): Add verify.
25550         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
25551         (to_char): New function.
25552         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
25554 2015-09-21  Pádraig Brady  <P@draigBrady.com>
25556         nanosleep: fix return code for interrupted replacement
25557         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
25558         that we return -1 in the case the call is interrupted by a signal,
25559         rather than the current value of 1.
25560         Diagnosed and tested by Daniel Richard G.
25562 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
25564         Diagnose ERE '()|\1'
25565         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
25566         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
25567         track of the set of previously-completed subexpressions available
25568         before the first alternative, and restore this set just before
25569         parsing each subsequent alternative.  This lets us diagnose the
25570         invalid back-reference in the ERE '()|\1'.
25572         regex: merge patches from libc
25574         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
25575         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
25576         * lib/regex_internal.h:
25577         Include <libc-lock.h> instead of <bits/libc-lock.h>.
25579         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
25580         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
25581         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
25582         wcscoll.
25583         * lib/regexec.c (check_node_accept_bytes): Likewise.
25585         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
25586         Fix regex wcrtomb namespace (bug 18496).
25587         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
25588         instead of wcrtomb.
25590         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
25591         Fix regex wctype namespace (bug 18495).
25592         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
25593         instead of towlower.
25594         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
25595         instead of iswlower.  Call __towupper instead of towupper.
25596         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
25597         instead of iswalnum.
25599         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
25600         * lib/regcomp.c (parse_bracket_exp): Initialize type to
25601         COLL_SYM in a couple of places to avoid uninitialized variable
25602         wanings on tilegx gcc 4.8.2.
25604         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
25605         * lib/regex_internal.h: Remove NOT_IN_libc.
25607         2014-11-17  Andreas Schwab  <schwab@suse.de>
25608         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
25610         2014-09-11  Roland McGrath  <roland@hack.frob.com>
25611         Move findidx nested functions to top-level.
25612         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
25613         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
25614         Pass new arguments to findidx.
25615         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
25616         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
25617         Don't #include it inside the function.  Pass new arguments to findidx.
25618         * lib/regex_internal.h:
25619         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
25620         (re_string_elem_size_at): Don't #include it inside the function.
25621         Pass new arguments to findidx.
25623         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
25624         Check if DEBUG is defined in regex_internal.c
25625         * lib/regex_internal.c: Check if DEBUG is defined and is set.
25627 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
25629         ceill: detect buggy OpenBSD implementation
25630         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
25631         which returns zero for small values.  Discussed here:
25632         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
25634 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
25636         mountlist: add me_mntroot field on Linux machines
25637         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
25638         mount_entry so Linux machines based on /proc/self/mountinfo can
25639         distinguish between bind mounts and original mounts.  In reality bind
25640         mounts aren't treated differently than mountroot=/ mounts by the
25641         kernel, but the user often wants these bind mounts distinguished.
25642         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
25643         More details at https://pad.lv/1432871
25645 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
25647         doc: Describe to use multiple instances of gnulib
25648         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
25649         instances of gnulib with different modules can be used, for example one
25650         for a lib and another one for associated tools.
25652 2015-09-01  Pádraig Brady  <P@draigBrady.com>
25654         base32: mark function as __attribute__ const
25655         * lib/base32.h (isbase32): Mark __attribute__ const as
25656         suggested by GCC, and consistent with the base64 module.
25658 2015-08-20  Daiki Ueno  <ueno@gnu.org>
25660         gnulib-tool: don't transform binary files with sed
25661         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
25662         .mo and .class files.
25663         Reported by Denis Denisov.
25665 2015-08-10  Daiki Ueno  <ueno@gnu.org>
25667         gperf: respect silent rules
25668         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
25669         V_GPERF_0 for silent rules.
25670         * modules/iconv_open (Makefile.am): Use V_GPERF.
25671         * modules/unicase/locale-language (Makefile.am): Likewise.
25672         * modules/unicase/special-casing (Makefile.am): Likewise.
25673         * modules/unictype/category-byname (Makefile.am): Likewise.
25674         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
25675         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
25676         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
25677         * modules/unictype/property-byname (Makefile.am): Likewise.
25678         * modules/unictype/scripts (Makefile.am): Likewise.
25679         * modules/uninorm/composition (Makefile.am): Likewise.
25681 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
25683         Improve port of stdalign to C++11
25684         Problem reported by Sundaram in:
25685         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
25686         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
25687         (__alignas_is_defined): Define if C++11 or newer.
25689 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
25691         pmccabe2html: fix gawk regex escaping
25692         * build-aux/pmccabe2html: Add one more backslash to properly
25693         escape the gsub replacement value.  Fixes this error:
25694         gawk: ./build-aux/pmccabe2html:425: \
25695         warning: escape sequence `\&' treated as plain `&'
25697 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
25699         time_rz: port to pedantic memcpy
25700         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
25701         that reject memcpy (..., NULL, 0).
25703 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
25705         time_rz: port better to MinGW
25706         Don't change tzname, as this makes MinGW dump core (Bug#21020).
25707         Instead, store the tzname copy in the struct tm_zone object.
25708         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
25709         * lib/strftime.c [!_LIBC]:
25710         * lib/time_rz.c: Include time-internal.h.
25711         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
25712         name from *TZ rather than from TZNAME, doable because *TZ now has
25713         a tzname_copy member.
25714         * lib/time-internal.h: New file, with contents taken from
25715         lib/time_rz.c.  It's separate because strftime.c now accesses
25716         struct tm_zone members.
25717         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
25718         New member tzname_copy.
25719         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
25720         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
25721         Initialize tzname_copy member.
25722         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
25723         in tzname_copy member.
25724         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
25725         (restore_tzname): Remove; no longer needed.  All calls removed.
25726         * modules/time_rz (Files): Add lib/time-internal.h.
25728         time: port __need_time_t to MinGW
25729         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
25730         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
25732 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
25734         strftime: fix newly-introduced bug on Solaris
25735         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
25736         consistently at the start, rather than doing some of the setup at
25737         the start and some in the %Z format spec.  This is cleaner, and
25738         works better with time_rz on platforms like Solaris where struct
25739         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
25740         mktime_z and localtime_rz can mess up the tzname cache.
25742         test-strftime: test for Solaris bug
25743         * modules/strftime-tests (Depends-on): Add strerror.
25744         * tests/test-strftime.c: Include <errno.h>.
25745         (posixtm_test): New function, containing the old 'main'.
25746         (struct tzalloc_test, struct localtime_rz_test): New types.
25747         (TZ, LT): New static vars.
25748         (tzalloc_test): New function.
25749         (main): Rewrite in terms of posixtm_test and tzalloc_test.
25751         time_rz: port to Solaris etc.
25752         Works around a tzname problem on platforms like Solaris that have
25753         tzname but not tm_zone, by setting tzname at the appropriate time
25754         and restoring it later.
25755         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
25756         New static vars.
25757         (save_abbr) [HAVE_TZNAME]: Set them.
25758         (revert_tz) [HAVE_TZNAME]: Clear or use them.
25759         (restore_tzname): New function.
25760         (localtime_rz, mktime_z): Use it.
25762         time_rz: now LGPL
25763         * modules/time_rz (License): Now LGPL, because strftime depends on it.
25765         time_rz: make a constant 'const'
25766         * lib/time_rz.c (local_tz): Now const.
25768         time_rz: fix off-by-one typo
25769         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
25771 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
25773         fprintftime, strftime: use timezone_t args
25774         * NEWS: Document the change.
25775         * lib/fprintftime.h (fprintftime):
25776         * lib/strftime.c (extra_args) [my_strftime]:
25777         * lib/strftime.h (nstrftime):
25778         Time zone arg is now of type timezone_t, not int.
25779         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
25780         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
25781         (my_strftime) [emacs && !my_strftime]:
25782         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
25783         Remove; Emacs doesn't need this any more.
25784         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
25785         fprintftime and nstrftime to call tzset.
25786         (ut) [!my_strftime]: Remove, replacing with ...
25787         (tz) [!my_stftime]: ... this new macro.  All uses changed.
25788         (strftime_case_): Use localtime_rz and mktime_z instead
25789         of localtime_r and mktime.
25790         * modules/fprintftime (Depends-on): Add time_rz.
25791         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
25792         * tests/test-strftime.c (main): Adjust to new nstrftime API.
25794         time_rz: new module
25795         * MODULES.html.sh: Add time_rz.
25796         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
25797         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
25798         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
25799         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
25800         New var HAVE_TIMEZONE_T (default 0).
25801         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
25802         New var GNULIB_TIME_RZ (default 0).
25803         * modules/time (time.h): Substitute the new vars.
25805         flexmember: license is now unlimited
25806         * modules/flexmember (License): Change to unlimited,
25807         since its only source file gives an unlimited license.
25809 2015-07-15  Eric Blake  <eblake@redhat.com>
25811         maint: update copyright paper procedures
25812         * config/srclist.txt: Drop outdated files.
25813         * doc/Copyright/conditions.txt: Update to latest.
25814         * doc/Copyright/assign.changes.manual: Delete.
25815         * doc/Copyright/assign.future.manual: Likewise.
25816         * doc/Copyright/assign.manual: Likewise.
25817         * doc/Copyright/assign.translation.manual: Likewise.
25818         * doc/Copyright/disclaim.changes.manual: Likewise.
25819         * doc/Copyright/disclaim.manual: Likewise.
25820         * doc/Copyright/disclaim.program: Likewise.
25822 2015-07-07  Daiki Ueno  <ueno@gnu.org>
25824         localename: fix link error on Illumos
25825         Illumos defines __sun, but does not have getlocalename_l nor the
25826         equivalent.  This partially reverts commit 387c214.
25827         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
25828         available, as well as uselocale.
25829         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
25830         use getlocalename_l if it is not available.
25832 2015-07-07  Daiki Ueno  <ueno@gnu.org>
25834         unistr/uN-strtok-tests: avoid a trivial leak
25835         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
25836         input and delim after the multibyte delimiter tests.
25838 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25840         file-has-acl, acl-permissions: fix HP-UX typos
25841         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
25842         * lib/file-has-acl.c (file_has_acl):
25843         * lib/set-permissions.c (context_acl_from_mode)
25844         (context_aclv_from_mode, set_acls):
25845         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
25846         They were introduced by the recent ACL changes.
25848         regex: match current GNU grep behavior
25849         These symbols have not matched GNU grep behavior for quite some time.
25850         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
25851         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
25852         Change to match current GNU behavior.
25853         Simplify by expressing it as differences from POSIX BREs and EREs.
25854         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
25856 2015-07-03  Jim Meyering  <meyering@fb.com>
25858         set-permissions.c: adjust acl_from_mode's cpp guard
25859         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
25860         directives identical to those guarding the sole use.
25861         Otherwise, on some systems, we'd get a warning about
25862         the function being defined but not used.
25863         Also, filter through cppi to correct misleading indentation
25864         of cpp directives.
25866 2015-07-03  Pádraig Brady  <P@draigBrady.com>
25868         tests: restrict shells to those that support 'local'
25869         The local keyword is very widely supported and used
25870         in tests in coreutils and grep at least.  Therefore
25871         restrict to testing with shells that support it.
25872         This mainly excludes /bin/sh on Solaris.
25873         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
25875 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
25876         and Daiki Ueno  <ueno@gnu.org>
25878         unistr/uN-strtok: handle multibyte delimiters
25879         Previously, uN_strtok moved PTR to the next unit to the token end.
25880         When DELIM contained a multibyte character, the new position could
25881         be a middle of a multibyte character.
25882         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
25883         after the token.
25884         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
25885         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
25886         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
25887         * modules/unistr/u8-strtok (Depends-on): Depend on
25888         unistr/u8-strmblen.
25889         * modules/unistr/u16-strtok (Depends-on): Depend on
25890         unistr/u16-strmblen.
25891         * modules/unistr/u32-strtok (Depends-on): Depend on
25892         unistr/u32-strmblen.
25893         * tests/unistr/test-u-strtok.h: New file.
25894         * tests/unistr/test-u8-strtok.c: New file.
25895         * tests/unistr/test-u16-strtok.c: New file.
25896         * tests/unistr/test-u32-strtok.c: New file.
25897         * modules/unistr/u8-strtok-tests: New file.
25898         * modules/unistr/u32-strtok-tests: New file.
25899         * modules/unistr/u16-strtok-tests: New file.
25901 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
25903         update-copyright: fix test failure with perl >= 5.22 (trivial)
25904         * build-aux/update-copyright: Escape a literal left curly bracket,
25905         required with perl >= 5.22
25907 2015-07-02  Daiki Ueno  <ueno@gnu.org>
25909         u{16,32}-strstr-tests: relax timeout condition
25910         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
25911         tests can take longer than 5 seconds to complete.
25912         Reported by Dagobert Michelsen in:
25913         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
25914         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
25915         seconds to 10 seconds.
25916         * tests/unistr/test-u32-strstr.c (main): Likewise.
25918 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
25920         gnulib-common.m4: change the ARFLAGS default to 'cr'
25921         In some GNU/Linux distributions people started to compile 'ar'
25922         binary with --enable-deterministic-archives (binutils project).
25923         That, however, in combination with previous autotools long time
25924         working default AR{_,}FLAGS=cru causes warnings on such
25925         installations:
25926         ar: `u' modifier ignored since `D' is the default (see `U')
25927         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
25928         set already.
25930 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
25932         selinux-h: avoid double free after *getfilecon()
25933         Originally reported by Ben Shelton on bug-tar:
25934         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
25935         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
25936         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
25937         param should be freed by freecon(3) (regardless the return value).
25939 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
25941         fix pty related tests issues on Windows (trivial)
25942         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
25943         however it's still present in tests/ subdirectory of the final project.
25944         Therefore avoid it to pass `make check`.
25945         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
25946         will just return -ENOSYS, so avoid this non applicable test allowing
25947         the build to proceed.
25949 2015-07-01  Pádraig Brady  <P@draigBrady.com>
25951         acl: fix definition of acl_from_mode on FreeBSD
25952         This was causing basic coreutils copy operations to fail
25953         with ENOTSUP or ENOENT error messages.
25954         * lib/acl-internal.h (acl_from_mode): Only define when
25955         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
25956         of acl_from_mode() defined in lib/set-permissions.c to
25957         be used on FreeBSD at least.
25958         * lib/set-permissions.c: Fix up comment spelling,
25959         and a redundant variable assignment; noticed in passing.
25961 2015-06-30  Pádraig Brady  <P@draigBrady.com>
25963         readutmp: port to FreeBSD >= 9
25964         * lib/readutmp.h: Map utmpxname() to setutxdb().
25965         With that coreutils who(1) and pinky(1) tests pass.
25967 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25969         mgetgroups: port to strict OS X
25970         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
25971         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
25972         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
25973         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
25975 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
25977         mgetgroups: port to strict OS X
25978         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
25979         Document the getgrouplist problem.
25980         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
25981         New macro.
25982         (mgetgroups): Use it.
25983         * m4/mgetgroups.m4 (gl_MGETGROUPS):
25984         Check for OS X signature for getgrouplist.
25986 2015-06-29  Jim Meyering  <meyering@fb.com>
25988         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
25989         It started like this when building coreutils' latest on OS X,
25990         invoking ./configure with a nonempty --cache=.cache:
25992           lib/linkat.c:46:42: error: operator '||' has no right operand
25993           lib/linkat.c: In function 'rpl_linkat':
25994           lib/linkat.c:330:27: error: #if with no expression
25996         Here's linkat.c's line 46:
25998           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
26000         Here's some context:
26002           $ grep linkat_nofoll .cache
26003           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
26004           $ grep LINKAT_SYM lib/config.h
26005           #define LINKAT_SYMLINK_NOTSUP
26007         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
26008         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
26009         but that violates a tenet of AC_CACHE_CHECK: it must
26010         have no side effect other than setting its cache variable.
26012         What happens is that when the cache is set, we'd skip the
26013         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
26014         defined to whatever value it happened to have in configure's
26015         environment.  In my case, it was not defined, so this later code:
26017           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
26018             [Define to 1 if linkat can create hardlinks to symlinks])
26020         would emit code with an empty RHS.
26022         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
26023         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
26025 2015-06-28  Jim Meyering  <meyering@fb.com>
26027         mountlist: avoid an unused-label warning on OS X
26028         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
26029         Building on OS X, I saw a warning about the "free_then_fail" label
26030         being unused.  Give it the _GL_UNUSED_LABEL attribute.
26032         error.c: correct printf-style format: %d -> %u
26033         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
26034         rather than %d, to match the type of "line_number", unsigned int.
26036 2015-06-25  Pádraig Brady  <P@draigBrady.com>
26038         fts: avoid reading beyond the heap allocation
26039         GCC 5.1.1 with -O2 and -fsanitize=address reports
26040         a read of size 4 from a heap object of size 3 is indeed invalid,
26041         though this may be due to incorrect padding assumptions by GCC, see:
26042         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
26043         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
26044         * modules/fts: Depend on stdalign.
26046 2015-06-24  Pádraig Brady  <P@draigBrady.com>
26048         savedir: avoid undefined behavior in qsort call
26049         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
26050         "runtime error: null pointer passed as argument 1,
26051          which is declared to never be null"
26052         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
26054 2015-06-24  Pádraig Brady  <P@draigBrady.com>
26056         userspec: avoid undefined behavior in gettext call
26057         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
26058         "runtime error: null pointer passed as argument 2,
26059          which is declared to never be null"
26060         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
26062 2015-06-20  Glenn Morris  <rgm@gnu.org>
26064         gitlog-to-changelog: improve gitmerge.el commits
26065         Let the Emacs ChangeLog generation process exclude "skipped"
26066         messages from merge commits (Bug#20717).
26067         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
26069 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26071         wchar: fix MinGW compilation warnings
26072         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
26073         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
26074         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
26076 2015-06-20  Daiki Ueno  <ueno@gnu.org>
26078         uniname/uniname-tests: use pristine data files
26079         For copyright and maintenance reasons, use the data files from UCD
26080         without modification.
26081         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
26082         (getfield): Remove.
26083         (aliases_count): New global variable.
26084         (fill_names): Skip comments and empty lines in the input.  Don't
26085         use getfield.
26086         (fill_aliases): Likewise.
26087         (main): Change the expected command line arguments to:
26088         NAMES... ["--" ALIASES...].
26089         * tests/uniname/test-uninames.sh: Adjust to the change in
26090         test-uninames.c.
26091         * tests/uniname/UnicodeDataNames.txt: Remove.
26092         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
26093         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
26094         file from Unicode 8.0.0.
26096 2015-06-19  Pádraig Brady  <P@draigBrady.com>
26098         linked-list, linkedhash-list: avoid compiler warnings
26099         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
26100         -Werror=suggest-attribute=pure (from GCC 5.1.1).
26102 2015-06-19  Daiki Ueno  <ueno@gnu.org>
26104         libunistring: bump minimum version to 0.9.6
26105         * all modules depending on updated Unicode data: Regenerate.
26106         The modules are listed by a script that does:
26107         - for each file listed by: git show --oneline --name-only 705f4efc
26108           - deduce the containing modules, based on "Files:"
26109         - deduce the modules which depend on the containing modules, based
26110           on "Depends-on:"
26112 2015-06-18  Daiki Ueno  <ueno@gnu.org>
26114         uniname/uniname: update to Unicode 8.0.0
26115         * lib/uniname/uninames.h: Regenerate.
26116         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
26117         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
26119 2015-06-18  Daiki Ueno  <ueno@gnu.org>
26121         libunistring: update to Unicode 8.0.0
26122         * lib/gen-uni-tables.c (SIZEOF): New macro.
26123         (output_numeric): Increase the maximum number of fractions from
26124         128 to 160.  Increase the level3 value width from 7 bits to 8
26125         bits.  Use SIZEOF instead of a hard-coded integer.
26126         (output_blocks): Decrease the cut-off threshold from 0x30000 to
26127         0x28000.
26128         (fill_blocks): Increase the maximum number of blocks from 256 to
26129         384.  Use SIZEOF instead of a hard-coded integer.
26130         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
26131         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
26132         value width.
26133         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
26134         a new case added to LBP22.
26135         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
26136         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
26137         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
26138         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
26139         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
26140         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26141         lib/uniwidth/width.c.
26142         * all generated files under lib/uni* and tests/uni*: Regenerate.
26144 2015-06-16  Pádraig Brady  <P@draigBrady.com>
26146         gnu-web-doc-update: add --mirror to remove stale files
26147         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
26148         out of date files from the CVS server.  Since this is usually
26149         appropriate, a prompt is given when the option is not specified,
26150         along with the `cvs remove` command that would be run.
26152 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
26154         acl-permissions: pacify -Wsuggest-attribute=const
26155         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
26156         * lib/acl-internal.h (free_permission_context):
26157         Declare with attribute const if ! (defined USE_ACL &&
26158         (HAVE_ACL_GET_FILE || defined GETACL)).
26160         fsync: document AIX misbehavior
26161         * doc/posix-functions/fsync.texi (fsync):
26162         Document failure on AIX with read-only file descriptor.
26164 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
26166         stdio: Don't redefine gets when using C++
26167         * lib/stdio.in.h (gets): Disable warning on C++.
26169 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
26171         acl-permissions: port to AIX, C89 HP-UX
26172         Problems reported by Michael Felt.
26173         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
26174         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
26175         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
26176         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
26177         Add cast for AIX, whose system calls are declared to accept
26178         char * even though the arguments are really char const *.
26179         * lib/get-permissions.c (get_permissions):
26180         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
26181         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
26182         that broke a build.
26183         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
26184         Rework types to pacify xlc.
26186 2015-06-03  Pádraig Brady  <P@draigBrady.com>
26188         vasprintf-posix: avoid compiling vasnprintf where possible
26189         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
26190         module where not required.  For example on a GNU/Linux system
26191         when gnulib-tool is run with the --conditional-dependencies option.
26193 2015-06-02  Pádraig Brady  <P@draigBrady.com>
26195         file-has-acl: fix build on Mac OS X 10
26196         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
26197         which has an incompatible 6 parameter getxattr() call.
26198         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
26199         call on Mac OS X >= 10.4.
26200         * doc/glibc-functions/fgetxattr.texi: Likewise.
26201         * lib/file-has-acl.c: Revert to more complete combined check.
26202         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
26203         Reported by Jack Howarth.
26205 2015-06-02  Pádraig Brady  <P@draigBrady.com>
26207         prefix-gnulib-mk: remove no longer needed special case
26208         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
26209         continued lib_SOURCES lines are no longer present,
26210         so special case handling of such entries is not required.
26212 2015-06-01  Pádraig Brady  <P@draigBrady.com>
26214         acl: don't depend on the deprecated qacl module
26215         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
26217 2015-06-01  Pádraig Brady  <P@draigBrady.com>
26219         gnulib-tool: concatenate lib_SOURCES to a single line
26220         * gnulib-tool: Refactor the line merging sed logic,
26221         and use that to output a single lib_SOURCES line for each module.
26222         gnulib using projects often postprocess this output to prepend
26223         subdir paths to each item, and having a single line simplifies this
26224         processing allowing better decoupling from the gnulib-tool output.
26226 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
26228         pthread_sigmask: discount system version if a simple macro (trivial)
26229         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
26230         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
26231         function to ensure it's available.
26233 2015-05-31  Pádraig Brady  <P@draigBrady.com>
26235         readlinkat: avoid OS X 10.10 trailing slash bug
26236         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
26237         has this bug.
26238         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
26239         that OS X 10.10 has this function.
26240         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
26241         as done for readlink().
26242         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
26243         trailing slash bug, and assume readlinkat() has the same issue.
26244         Also fix a typo where $gl_cv_decl_readlink_works was tested,
26245         rather than the correct $gl_cv_decl_readlinkat_works.
26247 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
26249         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
26250         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
26251         module rewrite.
26253         acl-permissions: Fix build on Solaris and Cygwin
26254         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
26255         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
26256         ace_entries variables have moved into struct permission_context but
26257         they were still accessed as local variables here.
26259 2015-05-29  Pádraig Brady  <P@draigBrady.com>
26261         linkat: avoid OS X 10.10 trailing slash with symlink bug
26262         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
26263         causes the symlink to be dereferenced, and if it points
26264         to a non existent file, that file will be created as
26265         a hard link to "path1".
26266         This fixes a test failure in test-linkat.c.
26267         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
26268         this case.  The existing workaround in linkat.c for
26269         trailing slash issues, suffices for this case.
26270         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
26271         the list of platforms with trailing slash issues.
26273 2015-05-28  Pádraig Brady  <P@draigBrady.com>
26275         unlinkat: handle ignoring of ".." on Darwin 14
26276         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
26277         on Mac OS X 10.10, where it ignores paths with a trailing "..",
26278         so handle in the same manner.
26279         * m4/unlinkat.m4: Comment on this Darwin issue.
26280         * doc/posix-functions/unlink.texi: Update the latest version
26281         where the issue was seen.
26282         * doc/posix-functions/unlinkat.texi: Mention this issue.
26283         Fixes a test failure in test-unlinkat.c.
26285 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26287         qacl: split into qcopy-acl and qset-acl
26288         Emacs needs the former, but not the latter.
26289         * modules/acl-permissions: New file, containing most of the old qacl.
26290         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
26291         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
26292         * modules/qcopy-acl, modules/qset-acl: New files.
26293         * MODULES.html.sh (File system functions):
26294         Mention the new modules, and mention qacl while we're at it.
26296 2015-05-27  Glenn Morris  <rgm@gnu.org>
26298         gitlog-to-changelog: new option --ignore-line
26299         (This patch is imported from the GNU Emacs master.)
26300         This option ignores individual commit lines matching a pattern.
26301         * build-aux/gitlog-to-changelog: Add --ignore-line option.
26303 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
26305         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
26306         Implement get_permissions and set_permissions primitives for getting all
26307         the permissions of a file, storing them, and later setting them. (In the
26308         minimal case, the permissions consist only of a file mode.) Reimplement
26309         qset_acl and qcopy_acl based on these new primitives: this avoids code
26310         duplication and makes error handling more consistent.
26311         The Solaris and Cygwin code still uses duplicate code paths for setting
26312         a file mode while making sure that no acls exist and setting an explicit
26313         acl; this is no worse than before, but could be cleaned up.  The AIX
26314         code still doesn't read ACLs, it only makes sure that acls don't get in
26315         the way when setting a file mode.
26316         * lib/acl-internal.h (struct permission_context): New data structure.
26317         (get_permissions, set_permissions, free_permission_context): Declare.
26318         * lib/acl-internal.c (free_permission_context): New helper function.
26319         * lib/get-permissions.c (get_permissions): New helper function split off
26320         from qcopy_acl.
26321         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
26322         AIX, set a file's permissions based only on a file mode.
26323         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
26324         other platforms construct a temporary acl from the file mode and set
26325         that acl in the same way as setting an acl read from the source file.
26326         This should help avoid code duplication and inconsistent / buggy
26327         behavior.
26328         (set_acls): New helper function Split off from qcopy_acl.
26329         (chmod_or_fchmod): Moved here from qset-acl.c.
26330         (set_permissions): New helper function.
26331         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
26332         set_permissions.
26333         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
26334         * modules/qacl: Add get-permissions.c and set-permissions.c.
26336         file-has-acl: Split feature tests again (Bug#20667)
26337         * lib/file-has-acl.c: Instead of testing for
26338         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
26339         define them when needed.
26340         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
26341         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
26343 2015-05-27  Pádraig Brady  <P@draigBrady.com>
26345         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
26346         This avoids a conflict with "FORTIFY_SOURCE" variants
26347         of the string functions when they're replaced on NetBSD-6.0.1
26348         and Darwin-14.3.0 at least.
26349         * lib/string.in.h: Avoid including our "lib/string.h" while
26350         including the system <string.h>.
26352 2015-05-26  Eric Blake  <eblake@redhat.com>
26354         stdio: limit __gnu_printf__ witness to gcc 4.4+
26355         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
26356         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
26358         error: use correct printf attributes on mingw
26359         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
26361         inttypes: force correct mingw PRIdMAX even without <stdio.h>
26362         * modules/inttypes (Depends-on): Require extensions, so that mingw
26363         always uses GNU style inttypes.
26364         * lib/inttypes.in.h: On mingw, include <stdio.h>.
26366         stdio: fix probe on mingw under gcc 5.1
26367         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
26368         around new gcc preprocessor rules.
26370 2015-05-07  Glenn Morris  <rgm@gnu.org>
26372         gitlog-to-changelog: parse "Tiny-change"
26373         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
26374         "Copyright-paperwork-exempt".  (Bug#20324)
26376 2015-05-06  Pádraig Brady  <P@draigBrady.com>
26378         doc: document glibc posix_fallocate() issues
26379         * doc/posix-functions/posix_fallocate.texi: Mention the
26380         glibc efficiency problems and issues with NFS.
26382 2015-05-05  Karl Berry  <karl@freefriends.org>
26384         * build-aux/gendocs.sh (usage): document new css default
26385         for HTML (--htmlarg).
26387 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
26389         extern-inline: no need for workaround in GCC 5.1
26390         * doc/extern-inline.texi (extern inline):
26391         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
26392         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
26393         around these bugs in GCC 5.1 and later.  Maybe in a decade or
26394         two we can remove these workarounds.
26396 2015-04-28  Pádraig Brady  <P@draigBrady.com>
26398         eealloc, pagealign_alloc, xalloc: avoid clang warnings
26399         Avoid [-Wunknown-attributes] warnings like:
26400         warning: unknown attribute '__alloc_size__' ignored
26401         * lib/xalloc.h: Don't use the __alloc_size__  attribute
26402         with clang, as support has been fully removed as of clang 3.5:
26403         https://github.com/llvm-mirror/clang/commit/c047507a
26404         * lib/eealloc.h: Likewise.
26405         * lib/pagealign_alloc.h: Likewise.
26407 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
26409         tests: pacify GCC 5.1's stricter printf checking
26410         * tests/test-dirname.c (main):
26411         * tests/test-getaddrinfo.c (simple):
26412         * tests/test-getlogin.c (main):
26413         * tests/test-getndelim2.c (main):
26414         * tests/test-inttostr.c (CK):
26415         * tests/test-md5.c (main):
26416         * tests/test-read-file.c (main):
26417         * tests/test-sha1.c (main):
26418         Fix mismatches between printf format and value signedness.
26419         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
26420         Remove, as CAST_VAL always returned a value of type uintmax_t.
26422         fts: port to GCC 5.1 with --enable-gcc-warnings
26423         Without this fix, GCC 5.1 (correctly) warns about a subscript
26424         error on the fts_name component of FTSENT.  It's actually a
26425         flexible member, so define it that way on C99 or later hosts.
26426         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
26427         structure that now has a flexible array member.
26428         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
26429         (FTSENT): fts_name is now flexible on C99-or-later platforms.
26430         * modules/fts (Depends-on): Add flexmember.
26432 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
26434         file-has-acl: port to CentOS 6
26435         Problem reported by Tom G. Christensen in:
26436         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
26437         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
26438         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
26439         HAVE_GETXATTR.
26440         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
26441         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
26442         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
26443         file-has-acl.c actually needs.
26445 2015-04-26  Pádraig Brady  <P@draigBrady.com>
26447         file-has-acl: always return false when ACLs aren't supported
26448         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
26449         change the GNU/Linux getxattr path, to transform "not supported"
26450         errors to a false return rather than an error.  This is handled
26451         within file_has_acl() due to the platform specific tests to
26452         determine if ACLs are not supported.
26454 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
26456         gettext: propagate po/Makefile.in.in too
26457         * build-aux/po/Makefile.in.in: Copy from latest gettext.
26458         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
26459         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
26460         between Makefile.in.in and the gettext-runtime m4 files.
26462 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26464         file-has-acl: new module, split from acl
26465         And add a new module file-has-acl-tests to match.
26466         I ran into a problem with the recent changes to the acl module,
26467         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
26468         When using the fixed version with Emacs, I discovered that
26469         file-has-acl wasn't separated out well enough for Emacs (e.g., it
26470         had multiple libraries, but needed only one), so I fixed that too.
26471         * NEWS: Document this incompatible change.
26472         * modules/file-has-acl, modules/file-has-acl-tests: New files.
26473         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
26474         Initialize gl_need_lib_has_acl.
26475         (gl_FUNC_ACL): Require it.
26476         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
26477         Move the file-has-acl.c-relevant stuff to ...
26478         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
26479         use_xattrs = 0' typo, and omit some needless work.  Set
26480         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
26481         when gl_FUNC_ACL is called.
26482         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
26483         (Link): Remove $(LIB_HAS_ACL).
26484         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
26485         (check_PROGRAMS): Move stuff relevant to file-has-acl to
26486         modules/file-has-acl-tests.
26487         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
26489         manywarnings: add GCC 5.1 warnings
26490         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
26491         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
26492         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
26493         -Wsuggest-override, -Wuse-without-only.  Change
26494         -Wnormalized=... operands to match 5.1.
26495         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
26496         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
26497         -Wdiscarded-qualifiers, -Wformat-signedness,
26498         -Wincompatible-pointer-types, -Wint-conversion,
26499         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
26500         -Wshift-count-negative, -Wshift-count-overflow,
26501         -Wsizeof-array-argument, -Wsuggest-final-methods,
26502         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
26503         and add -Warray-bounds=2 as a special case.
26505 2015-04-21  Simon Josefsson  <simon@josefsson.org>
26507         doc: update FDL template to match FDL examples.
26508         * doc/alloca-opt.texi:
26509         * doc/alloca.texi:
26510         * doc/c-ctype.texi:
26511         * doc/c-strcase.texi:
26512         * doc/c-strcaseeq.texi:
26513         * doc/c-strcasestr.texi:
26514         * doc/c-strstr.texi:
26515         * doc/c-strtod.texi:
26516         * doc/c-strtold.texi:
26517         * doc/ctime.texi:
26518         * doc/error.texi:
26519         * doc/gcd.texi:
26520         * doc/gnulib-tool.texi:
26521         * doc/inet_ntoa.texi:
26522         * doc/intprops.texi:
26523         * doc/lib-symbol-visibility.texi:
26524         * doc/maintain.texi:
26525         * doc/parse-datetime.texi:
26526         * doc/quote.texi:
26527         * doc/regexprops-generic.texi:
26528         * doc/standards.texi: Remove spurious 'with' in FDL license
26529         template.
26531 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
26533         lstat: fix cross-compilation 'ln -s' problem
26534         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
26535         Have the test program call 'symlink' rather than a separate
26536         script run 'ln -s'; this is more likely to work in
26537         cross-compilation environments.  Reported by Pavel Fedin in:
26538         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
26540 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
26542         gendocs.sh: default to a common CSS style sheet for HTML output
26543         * build-aux/gendocs.sh (htmlarg): Change default value.
26545 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
26547         gnulib-tool: output bold attribute more portably
26548         * gnulib-tool (func_show_module_list): Change hexadecimal
26549         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
26550         encoded numbers as arguments to `printf' is not portable,
26551         and is not claimed by POSIX.  This is the case with FreeBSD.
26553 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
26555         qacl: Simplify HP-UX acl_nontrivial check
26556         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
26557         acl_nontrivial. Check if the acl has at most three entries instead (it must
26558         have exactly three entries according to the HP-UX documentation). Ignore
26559         uids and gids as long as an entry is either for a user (i.e., the owner),
26560         a group (i.e., the owning group), or others.
26561         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
26562         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
26564 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
26566         acl: On Linux, check for acls without libacl
26567         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
26568         library function to check for the presence of acls, avoiding a library.
26569         * lib/file-has-acl.c: Include xattr headers if we have them.
26570         (file_has_acl): On Linux, use getxattr().
26571         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
26572         file_has_acl(). Check for xattr headers and getxattr().
26574 2015-04-14  Ángel González  <keisial@gmail.com>
26576         tempname: avoid unused parameter warnings (trivial)
26577         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
26578         (try_nocreate): Likewise.
26580 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
26582         fseeko: fix build failure on NetBSD >= 6 (trivial)
26583         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
26584         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
26586 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26588         gitlog-to-changelog: port to MS-Windows
26589         * build-aux/gitlog-to-changelog (git_dir_option):
26590         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
26591         MS-Windows Perl.  Reported by Eli Zaretskii in:
26592         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
26594 2015-04-07  Karl Berry  <karl@gnu.org>
26596         gendocs: new option --tex for passing args to texi2dvi.
26597         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
26598         (TEXI2DVI): cut to just command name.
26599         (usage): mention new option, and update copyright.
26600         <generate_tex>: use it.
26602 2015-04-07  Karl Berry  <karl@gnu.org>
26604         * config/srclistvars.sh (GETTEXT): new definition.
26605         * config/srclist.txt: use it for gettext .m4 files.
26606         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
26607         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
26608         and continuing into April.
26610 2015-04-07  Daiki Ueno  <ueno@gnu.org>
26612         uniname/uniname-tests: fix failure due to alias
26613         Reported by Jack Howarth in:
26614         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
26615         * tests/uniname/test-uninames.c (name_has_alias): New function.
26616         (test_inverse_lookup): Exclude character name with valid alias,
26617         from randomly generated character names.
26618         (main): Fill unicode_aliases before calling test functions.
26620 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
26622         hash: remove deprecated hash_insert0 function
26623         * lib/hash.h (hash_insert0): Remove deprecated function.
26624         * lib/hash.c (hash_insert0): Likewise.
26626 2015-04-02  Pádraig Brady  <P@draigBrady.com>
26628         mountlist: remove dependency on libmount
26629         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
26630         directly, rather than depending on libmount, which has many
26631         dependencies due to its dependence on libselinux, as detailed at:
26632         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
26633         Note we restrict this to __linux__ as that's probably where this
26634         interface will remain.  If ever porting, it would be best
26635         to first pull the makedev() wrapper from coreutils to a gnulib module.
26636         Note also we don't add a getline dependency to the mountlist module,
26637         as all Linux versions are sufficient.
26639 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
26641         stddef: port to pre-C11 GCC on x86
26642         On this platform, max_align_t should have an alignment of 8 even
26643         though the storage alignments of double, long, etc. max out at 4.
26644         Inspired by a comment of Andreas Schwab's here:
26645         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
26646         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
26647         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
26648         * tests/test-stddef.c: Test __alignof__ too, if available.
26650 2015-03-24  Pádraig Brady  <P@draigBrady.com>
26652         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
26653         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
26655 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
26657         yesno: make EOL optional in ENABLE_NLS case also (trival)
26658         * lib/yesno.c (yesno): Check for EOL before replacing.
26659         * tests/test-yesno.sh: Add a test case (test along with gettext).
26661 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
26663         fdopendir-tests: test it does not close its arg
26664         * tests/test-fdopendir.c (main): Test that fdopendir does not
26665         close its argument.  From a suggestion by David Grayson in:
26666         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
26668 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
26670         gitlog-to-changelog: trim trailing white space
26671         * build-aux/gitlog-to-changelog (main):
26672         Trim trailing white space from commit message lines.
26673         This is helpful for processing the GNU Emacs repository,
26674         which dates back to 1985 and contains a lot of such lines.
26676         gitlog-to-changelog: new option --ignore-matching
26677         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
26678         Support new option --ignore-matching=PAT, which ignores all
26679         commit messages whose first line matches PAT.
26681 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
26683         fdopendir: port better to MinGW
26684         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
26685         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
26686         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
26687         * modules/fdopendir (Depends-on): Add dirfd.
26689 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
26691         fdopendir: fix typo in comment
26692         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
26694 2015-03-09  Eric Blake  <eblake@redhat.com>
26696         error: document all entry points provided
26697         * doc/glibc-functions/error_print_progname.texi
26698         (error_print_progname): Mention the error module.
26699         * doc/glibc-functions/error_at_line.texi (error_at_line):
26700         Likewise.
26701         * doc/glibc-functions/error_message_count.texi
26702         (error_message_count): Likewise.
26703         * doc/glibc-functions/error_one_per_line.texi
26704         (error_one_per_line): Likewise.
26706 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
26708         vasnprintf: pacify clang 3.5.0
26709         Problem reported by Werner Lemberg in:
26710         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
26711         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
26712         The casts aren't needed, since the characters in question are ASCII.
26714 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26716         glob, etc.: port to MSVC v18 on MS-Windows 8.1
26717         * lib/dirent--.h (GNULIB_defined_opendir):
26718         * lib/dirent.in.h (GNULIB_defined_opendir)
26719         (GNULIB_defined_closedir):
26720         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
26721         #undef only if Gnulib defined it.
26723         poll: port to MSVC v18 on MS-Windows 8.1
26724         Problem reported by Gisle Vanem in:
26725         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
26726         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
26727         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
26728         Add sys_socket.
26730 2015-02-24  Pádraig Brady  <P@draigBrady.com>
26732         tests: support stderr verification with returns_()
26733         * tests/init.sh (returns_): Disable tracing for this wrapper
26734         function, so that stderr of the wrapped command is unchanged,
26735         allowing for verification of the contents.
26737 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
26739         passfd: avoid valgrind uninitalised data warning
26740         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
26741         to include just the fd we've initialized, rather than including
26742         the extra space used for alignment.
26744 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
26746         uniwbrk/u32-wordbreaks-tests: fix copyright
26747         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
26749         dup2: doc and test for Android bug
26750         Reported by Kevin Cernekee in:
26751         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
26752         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26753         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
26755 2015-02-23  Kevin Cernekee  <cernekee@google.com>
26757         Replace dup2() on Android
26758         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
26759         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
26760         fails.  Using rpl_dup2() fixes this because it has an explicit test
26761         for this condition.
26763 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
26765         Android doesn't define RLIM_SAVED_*
26766         Portability problem reported by Kevin Cernekee in:
26767         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
26768         * doc/posix-headers/sys_resource.texi (sys/resource.h):
26769         Mention the portability problem.
26770         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
26771         Define if not defined.
26772         * m4/dup2.m4 (gl_FUNC_DUP2):
26773         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26774         Likewise.
26776 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
26778         vasnprintf-posix-tests: use consistent test
26779         * tests/test-vasnprintf-posix.c (test_function):
26780         Use "<" in assert instead of "<=", for consistency with other tests.
26782 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26784         printf, isinf, etc.: noncanonical != NaN
26785         Do not require that isinf, printf, etc. treat noncanonical
26786         values as NaNs.  Instead, require only that they do not crash.
26787         Problem reported by Joseph Myers in:
26788         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
26789         * doc/posix-functions/dprintf.texi (dprintf):
26790         * doc/posix-functions/fprintf.texi (fprintf):
26791         * doc/posix-functions/isfinite.texi (isfinite):
26792         * doc/posix-functions/isinf.texi (isinf):
26793         * doc/posix-functions/isnan.texi (isnan):
26794         * doc/posix-functions/printf.texi (printf):
26795         * doc/posix-functions/snprintf.texi (snprintf):
26796         * doc/posix-functions/sprintf.texi (sprintf):
26797         * doc/posix-functions/vdprintf.texi (vdprintf):
26798         * doc/posix-functions/vfprintf.texi (vfprintf):
26799         * doc/posix-functions/vprintf.texi (vprintf):
26800         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26801         * doc/posix-functions/vsprintf.texi (vsprintf):
26802         Document this.
26803         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
26804         * m4/isinf.m4 (gl_ISINFL_WORKS):
26805         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
26806         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
26807         * tests/test-isfinite.c (test_isfinitel):
26808         * tests/test-isinf.c (test_isinfl):
26809         * tests/test-isnan.c (test_long_double):
26810         * tests/test-isnanl.h (main):
26811         * tests/test-snprintf-posix.h (test_function):
26812         * tests/test-sprintf-posix.h (test_function):
26813         * tests/test-vasnprintf-posix.c (test_function):
26814         * tests/test-vasprintf-posix.c (test_function):
26815         Test only that noncanonical values do not cause crashes, not that
26816         they are treated as NaNs.  In some cases this means a larger
26817         output buffer is needed.
26819 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
26821         fts: remove redundant close() (trivial)
26822         * lib/fts.c (fts_read): Remove redundant call to close().
26823         Spotted by coverity.
26825 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26827         getdtablesize: port better for Android
26828         Problem reported by Kevin Cernekee in:
26829         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
26830         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
26831         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
26832         Instead, just use getrlimit, taking care to avoid Cygwin bug.
26834         poll: fixes for large fds
26835         * lib/poll.c (poll): Don't check directly for NFD too large.
26836         Don't rely on undefined behavior in FD_SET when an arg exceeds
26837         FD_SETSIZE.  Always set revents afterwards, even if to zero.
26838         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
26839         as that makes the test a bit stricter.
26841 2015-02-19  Kevin Cernekee  <cernekee@google.com>
26843         fcntl: Fix cross compiling
26844         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
26845         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
26847 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
26849         dup2, fcntl: cross-compile better for Android
26850         Problem reported by Kevin Cernekee in:
26851         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
26852         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
26853         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
26854         there's little need to cross-compile for older kernels nowadays.
26855         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
26856         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
26858 2015-02-18  Pádraig Brady  <P@draigBrady.com>
26860         getopt: don't crash on memory exhaustion
26861         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
26862         memory exhaustion.  In the _LIBC case we use alloca() as is
26863         already done in glibc, so we don't need to consider the separate
26864         error path in that awkward case.  Also fix a memory leak when
26865         ambiguous options are present.
26866         Reported by Tobias Stoeckmann
26868 2015-02-17  Mike Miller  <mtmiller@ieee.org>
26870         tempname: allow compilation with C++ (trivial)
26871         * lib/tempname.h [C++]: Specify extern "C" linkage.
26872         * lib/tempname.h (try_tempname):
26873         * lib/tempname.c (__try_tempname, __gen_tempname):
26874         Rename 'try' to 'tryfunc'.
26876 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
26878         dup2, fcntl: port to AIX
26879         * m4/dup2.m4 (gl_FUNC_DUP2):
26880         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26881         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
26882         The former works on AIX 7.1 but the latter does not.
26883         Also, this may work better with Android; see:
26884         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
26886 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
26888         getdtablesize, dup2, fcntl: port to Android
26889         Problem reported by Kevin Cernekee in:
26890         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
26891         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
26892         Mention that getdtablesize doesn't work on Android.
26893         * lib/getdtablesize.c: Use getrlimit substitute only if
26894         getdtablesize is declared.  This should suffice for Cygwin
26895         while not breaking Android.
26896         * m4/dup2.m4 (gl_FUNC_DUP2):
26897         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26898         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
26899         standardized but the latter is not, and sysconf works on Android.
26900         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
26901         Also check that getdtablesize is declared.
26902         This removes the need for a special case for Android.
26904 2015-02-16  Kevin Cernekee  <cernekee@google.com>
26906         localename: Implement gl_locale_name_thread_unsafe for Android
26907         * lib/localename.c: Android API level >= 21 supports two hardcoded
26908         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
26909         the internal __locale_t struct.
26911 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
26913         fts: avoid crash when a cycle is added while traversing
26914         This could be triggered by auto-mounting a recursive bind mount.
26915         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
26916         * lib/fts.c (fts_read): Avoid removing the original hash table item
26917         when leaving a directory that caused a cycle, and preserve the FTS_DC
26918         flag.
26920 2015-02-16  Daiki Ueno  <ueno@gnu.org>
26922         uniname/uniname: support character alias
26923         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
26924         Generate one-way mapping from aliases to codepoints in the
26925         generated tables.  Special case variation selectors to reduce
26926         table size.
26927         * lib/uniname/uniname.c (unicode_character_name): Special case
26928         variation selectors.
26929         (unicode_name_character): Special case variation selectors and
26930         their aliases.
26931         * lib/uniname/uninames.h: Regenerate.
26932         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
26933         * modules/uniname/uniname-tests (Files): Add
26934         tests/uniname/NameAliases.txt.
26935         * tests/uniname/test-uninames.c: Mark as static.
26936         (ALIASLEN): Define.
26937         (struct unicode_alias): New struct.
26938         (unicode_aliases): New variable.
26939         (fill_aliases): New function.
26940         (test_alias_lookup): New test function.
26941         (main): Run the 'test_alias_lookup' test if the second argument is
26942         given.
26943         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
26944         second argument.
26946 2015-02-11  Kevin Cernekee  <cernekee@google.com>
26948         Fix FILE struct compatibility with Android API level >= 21
26949         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
26950         __sferror.  Recent versions of Bionic's stdio.h no longer define
26951         __sferror.
26952         * lib/fbufmode.c: Likewise.
26953         * lib/fflush.c: Likewise.
26954         * lib/fpurge.c: Likewise.
26955         * lib/freadable.c: Likewise.
26956         * lib/freadahead.c: Likewise.
26957         * lib/freading.c: Likewise.
26958         * lib/freadptr.c: Likewise.
26959         * lib/freadseek.c: Likewise.
26960         * lib/fseeko.c: Likewise.
26961         * lib/fseterr.c: Likewise.
26962         * lib/fwritable.c: Likewise.
26964         Assume unbroken ungetc() on Android
26965         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
26966         test case passed when running on an Android host, and the code
26967         hasn't really changed since 2009.
26969         getdtablesize: Fix Android build
26970         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
26971         versions have this symbol in the .so library (at least 32-bit
26972         platforms) but are missing the declaration in the header file,
26973         causing the m4 logic to guess incorrectly.
26975         localename: Fix Android build
26976         * modules/localename (Depends-on): Add langinfo.
26978         getugroups: Fix Android build
26979         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
26980         functions.
26982         euidaccess: Fix Android build
26983         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
26984         AT_EACCESS gets declared.
26986         linkat_nofollow: Add fallback case for cross compiling
26987         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
26989         net_if: Handle content-free <net/if.h> system headers
26990         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
26991         struct if_nameindex.  If not, enable the replacement header.
26993         signal_h: Fix Android build
26994         * lib/signal.in.h: Add Android to the list of platforms that declare
26995         pthread_sigmask() in <pthread.h> instead of <signal.h>.
26997         duplocale: Fix Android build of duplocale-tests
26998         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
26999         is included by test-duplocale.c (but not by duplocale.c).
27000         * modules/duplocale-tests (configure.ac): Check for monetary.h.
27001         * tests/test-duplocale.c: Skip test if monetary.h is absent.
27002         * doc/posix-headers/monetary.texi: Add Android to the list of
27003         platforms missing monetary.h.
27005 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27007         tests: avoid recent -Werror=unused-variable regression in test-locale
27008         * tests/test-locale.c (main): Reference the variable to avoid the
27009         "unused variable" warning.
27011 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27013         maint: various whitespace cleanups in tempname
27014         * lib/tempname.c: Normalize spacing and line length.
27015         * lib/tempname.h: Likewise.
27016         * modules/tempname: Likewise.
27018 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27020         tests: provide returns_() to simplify exit status checking
27021         * tests/init.sh (returns_): A new function for use in tests,
27022         to allow for easier checking of return values, where you expect
27023         a command to exit with failure status.  By checking for a particular
27024         exit code, you don't hide any crashes for example.
27026 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27028         mountlist: only use libmount when specified
27029         There are currently many shared libs dependencies introduced by
27030         libmount with associated runtime and virt mem overhead.
27031         Therefore don't enable by default.
27032         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
27034 2015-02-08  Daiki Ueno  <ueno@gnu.org>
27036         uniname/unimame-tests: don't link with -lunistring
27037         * modules/uniname/uniname-tests (Makefile.am): Don't link against
27038         $(LIBUNISTRING).  Document the rationale why we need to
27039         conditionalize the test.
27041 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27043         fstrcmp: don't assume strlen < INT_MAX
27044         * lib/fstrcmp.c: Include stddef.h and stdint.h.
27045         (uintptr_t): Remove, as we're now assuming stdint.
27046         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
27047         Prefer ptrdiff_t to int when the value could exceed INT_MAX
27048         if the input string is long.
27049         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
27050         uintptr_t to size_t when the underlying value is a pointer casted
27051         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
27052         * modules/fstrcmp (Depends-on): Add stdint.
27054         diffseq: prefer ptrdiff_t to ssize_t
27055         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
27056         ptrdiff_t is the natural type for signed indexes.
27057         On a few older platforms, ssize_t is narrower than size_t.
27059         xalloc: fix typo that suppressed warnings
27060         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
27061         This typo, introduced a couple of years ago, mistakenly suppressed
27062         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
27063         -Wmissing-declarations warnings.
27065         full-read: fix license notice typo
27066         * lib/full-read.h: Remove a stray line in the license notice.
27067         Reported by Sam Ellis in: http://bugs.gnu.org/19808
27069         crypto/gc: fix a -Wswitch warning
27070         Reported by Bruce Korb in:
27071         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
27072         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
27074 2015-02-03  Pádraig Brady  <P@draigBrady.com>
27076         gnulib-tool: fix handling of patch(1) diagnostics
27077         * gnulib-tool: Send diagnostics from patch(1) to stderr,
27078         as otherwise gnulib-tool will reparse that output and attempt
27079         to lookup modules.
27081 2015-02-03  Pádraig Brady  <P@draigBrady.com>
27083         bootstrap: exit immediately upon gnulib-tool failure
27084         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
27085         This was noticed when gnulib-tool exited early due to failure
27086         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
27087         but various confusing errors were then given as the build proceeded.
27089 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
27091         symlinkat: include all required header files
27092         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
27093         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
27094         Reported at https://savannah.gnu.org/bugs/index.php?44151
27095         and by Jack Howarth.
27097 2015-01-29  Pádraig Brady  <P@draigBrady.com>
27099         localename: support Solaris 12 and illumos
27100         * lib/localename.c (gl_locale_name_thread_unsafe): call
27101         getlocalename_l() on newer __sun platforms.
27102         Reported by Alexander Pyhalov.
27103         Fix suggested by Rich Burridge.
27105 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
27107         locale: fix tests on illumos (trivial)
27108         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
27109         so move from global scope to main().
27111 2015-01-24  Daiki Ueno  <ueno@gnu.org>
27113         unictype: avoid undefined left-shift behavior
27114         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
27115         gcc's -fsanitize=shift and running its tests triggered:
27116           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
27117             places cannot be represented in type 'int'
27118         Cast LHS to 'unsigned int' after integer promotion.
27119         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
27120         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
27122 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27124         libunistring: bump version of unitypes dependants
27125         Due to the header file search order, all the headers which depend
27126         on unitypes.h need to be generated, when the preinstalled
27127         libunistring is older.
27128         * modules/unicase/base (configure.ac): Bump minimum version to
27129         0.9.4.
27130         * modules/uniconv/base (configure.ac): Likewise.
27131         * modules/unilbrk/base (configure.ac): Likewise.
27132         * modules/uninorm/base (configure.ac): Likewise.
27133         * modules/unistdio/base (configure.ac): Likewise.
27134         * modules/unistr/base (configure.ac): Likewise.
27135         * modules/uniwbrk/base (configure.ac): Likewise.
27136         * modules/uniwidth/base (configure.ac): Likewise.
27138 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27140         unictype/category-none: fix link with libunistring
27141         Since _UC_CATEGORY_NONE is not a public symbol, it will be
27142         prefixed with "libstring_" when compiled as part of libunistring.
27143         To avoid undefined symbol at link time, increase the minimum
27144         version when the dependant modules are updated.
27145         * modules/unictype/category-none (configure.ac): Bump minimum
27146         version to 0.9.5.
27148 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27150         unitypes: fix build with installed libunistring
27151         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
27152         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
27153         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
27155 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27157         time: port to MinGW32 3.21
27158         Problem reported by Eli Zaretskii in:
27159         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
27160         * lib/time.in.h:
27161         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
27162         * modules/time (Depends-on):
27163         Fall back on unistd.h if the other include files don't define
27164         struct timespec.
27166         update-copyright: apply to self
27167         * build-aux/update-copyright: Fix copyright date.  How ironic!
27169 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27171         libunistring: update to Unicode 7.0.0
27172         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
27173         Manichaean names.
27174         * lib/unictype/joininggroup_name.h: Likewise.
27175         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
27176         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
27177         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
27178         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
27179         (fill_arabicshaping, joining_group_as_c_identifier): Support those
27180         enum values.
27181         (is_property_alphabetic): Accept newly added characters to
27182         cuneiform numeric signs.
27183         (is_property_default_ignorable_code_point): Reject U+0605.
27184         (FIELDLEN): Increase from 120 to 160.
27185         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
27186         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
27187         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
27188         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
27189         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
27190         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
27191         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
27192         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
27193         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
27194         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
27195         U+1E8D0..U+1E8D6.
27196         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
27197         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27198         lib/uniwidth/width.c.
27199         * all generated files under lib/uni* and tests/uni*: Regenerate.
27201 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27203         libunistring: update to Unicode 6.3.0
27204         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
27205         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
27206         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
27207         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
27208         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
27209         Update WB5, WB9, WB10, WB13a, and WB13b.
27210         * tests/uniwbrk/test-uc-wordbreaks.c
27211         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
27212         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
27213         (UC_BIDI_PDI): New enumeration values.
27214         (bidi_category_byname): Support those enum values.
27215         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
27216         dedicated property assigned.
27217         (is_property_case_ignorable): Check 0x0027.
27218         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
27219         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
27220         (output_wbp): Support those enum values.
27221         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
27222         (UC_BIDI_PDI): New enumeration values.
27223         * lib/unictype/bidi_byname.gperf: Add those property names.
27224         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
27225         U+180E, U+1A1B, and U+2066..U+2069.
27226         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27227         lib/uniwidth/width.c.
27228         * all generated files under lib/uni* and tests/uni*: Regenerate.
27230 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27232         libunistring: update to Unicode 6.2.0
27233         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
27234         (unilbrk_table): Adjust table size.
27235         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
27236         for LBP_RI.
27237         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
27238         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
27239         Normalize table index skipping ignored properties.
27240         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
27241         WBP_EXTEND and WBP_FORMAT, which are now computed without using
27242         the table.
27243         * lib/uniwbrk/wbrktable.h: Adjust table size.
27244         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
27245         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
27246         Support rule GB8a.
27247         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
27248         * tests/unigbrk/test-uc-is-grapheme-break.c
27249         (graphemebreakproperty_to_string): Support GBP_RI.
27250         * tests/uniwbrk/test-uc-wordbreaks.c
27251         (wordbreakproperty_to_string): Support WBP_RI.
27252         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
27253         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
27254         (output_lbp): Support LBP_RI.  Adjust some characters changed from
27255         LBP_AL to LBP_ID.
27256         (output_lbp): Support LBP_RI.
27257         (WBP_RI): New enumeration value.
27258         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
27259         (output_wbp): Support WBP_RI.
27260         (GBP_RI): New enumeration value.
27261         (output_gbp_test, fill_org_gbp): Support GBP_RI.
27262         * all generated files under lib/uni* and tests/uni*: Regenerate.
27264 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27266         libunistring: update to Unicode 6.1.0
27267         * lib/gen-uni-tables.c (output_joining_group): Switch to
27268         3-level table to accommodate joining groups defined with higher
27269         codepoint value.  Since there are only 88 groups defined in
27270         Unicode 7.0.0, use 7-bit packed format for level3 entries.
27271         (get_lbp): Update for Unicode 6.1.0.
27272         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
27273         3-level table.
27274         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
27275         joining group name.
27276         * lib/unictype/joininggroup_name.h: Likewise.
27277         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
27278         (unilbrk_table): Adjust table size.
27279         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
27280         for LBP_HL.
27281         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
27282         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
27283         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
27284         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
27285         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
27286         U+302E..U+302F.
27287         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27288         lib/uniwidth/width.c.
27289         * all generated files under lib/uni* and tests/uni*: Regenerate.
27290         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
27292 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27294         uniwbrk/u32-wordbreaks-tests: add conformance test
27295         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
27296         tests/uniwbrk/test-uc-wordbreaks.c,
27297         tests/uniwbrk/test-uc-wordbreaks.sh, and
27298         tests/uniwbrk/WordBreakTest.txt.
27299         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
27300         test-uc-wordbreaks to $(check_PROGRAMS), and define
27301         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
27302         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
27303         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
27305 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27307         uniwbrk: ignore Extended/Format characters at BOL not BOS
27308         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
27309         characters if the previous character property is one of
27310         WBP_NEWLINE, WBP_CR, and WBP_LF.
27312 2015-01-11  Jim Meyering  <meyering@fb.com>
27314         test-strstr.c: avoid a trivial leak
27315         * tests/test-strstr.c (main): Free haystack.
27317         update-copyright: recognize groff's \(co marker
27318         * build-aux/update-copyright (circle_c_re): Also accept
27319         uses of \(co, as found in gzip.1.
27321 2015-01-08  Pádraig Brady  <P@draigBrady.com>
27323         maint.mk: fix compatibility with OS X nm
27324         * top/maint.mk (_gl_tight_scope): Use the -g option to
27325         show exported items rather than the -e option which is
27326         ignored on all platforms except OS X where it gives an error.
27327         Reported by Assaf Gordon.
27329 2015-01-07  KO Myung-Hun  <komh@chollian.net>
27331         localcharset: improve charset detection on OS/2
27332         Use system codepage when appropriate.  Map OS/2 codepages to
27333         GNU canonical charset names if possible.
27334         * lib/config.charset: Don't output aliases if "$os" is os2*.
27335         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
27336         result for OS/2.
27337         (locale_charset) [OS2]: Use system codepage if codeset is omitted
27338         from the locale name which is neither "C" nor "POSIX".
27340 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27342         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
27343         This reverts the last patch but one, as it shouldn't be needed now
27344         that the typo is fixed.
27345         * lib/count-leading-zeros.h (count_leading_zeros_ll):
27346         * lib/count-trailing-zeros.h:
27347         * lib/count-one-bits.h:
27348         Go back to using 64-bit intrinsics.
27350         count-leading-zeros: fix pragma typos
27351         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
27352         Fix typos in declaration of intrinsics when _MSC_VER.
27354 2015-01-06  Pádraig Brady  <P@draigBrady.com>
27356         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
27357         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
27358         intrinsics in this case.
27359         * lib/count-trailing-zeros.h: Likewise.
27360         * lib/count-one-bits.h: Likewise.
27362 2015-01-06  Daiki Ueno  <ueno@gnu.org>
27364         uniname/uniname: update to Unicode 7.0.0
27365         To accommodate new characters added since Unicode 5.1.0, this
27366         changes the internal representation of codepoint ranges.
27367         Previously, we grouped codepoint ranges by manually assigned 4-bit
27368         tag, which only allowed 16 groups.  This removes the limitation by
27369         switching to binary search on a table.  For the detail rationale
27370         and the benchmark results, see:
27371         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
27372         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
27373         to INDEX, as it no longer represents a codepoint.
27374         (range): New struct.
27375         (main): Switch to intervals list from a bit-pattern based
27376         classification.
27377         * lib/uniname/uninames.h: Regenerate.
27378         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
27379         * modules/uniname/base (configure.ac): Bump minimum version to
27380         0.9.5.
27381         * modules/uniname/uniname (configure.ac): Bump minimum version to
27382         0.9.5.
27384 2015-01-05  Eric Blake  <eblake@redhat.com>
27386         doc: update INSTALL from autoconf
27387         * doc/install.texi: Resync from autoconf.
27388         * doc/INSTALL: Reflect recent autoconf update.
27389         * doc/INSTALL.ISO: Likewise.
27390         * doc/INSTALL.UTF-8: Likewise.
27392         stdio: fix use of PRIdMAX on modern mingw
27393         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
27394         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
27395         to work with modern mingw.
27397 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
27399         pthread: detect git mingw builds with only partial pollution
27400         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
27401         pollution, as seen temporarily in Fedora 21.
27403 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27405         lib-symbol-versions: cache script check
27406         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
27407         Cache the check for linker version scripts.
27408         From a suggestion by Christophe Curis in:
27409         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
27411 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
27413         maint: fix grammar nits in propername (trivial change)
27414         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
27415         and use an adequate verb and tense.
27417 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
27419         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
27420         * module/gendocs: Add 'doc/gendocs_template_min'.
27422         * build-aux/gendocs.sh: Change email addresses and upstream URLs
27423         from to Gnulib's.
27424         (scripturl, templateurl): Adjust accordingly.
27426 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27428         gendocs: copyright date and version fix
27429         Reported by Karl Berry in:
27430         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
27431         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
27432         Fix copyright date.
27433         * build-aux/gendocs.sh (scriptversion): Update.
27435 2015-01-01  Karl Berry  <karl@gnu.org>
27437         * doc/install.texi,
27438         * build-aux/mdate-sh,
27439         * build-aux/depcomp,
27440         * build-aux/config.guess,
27441         * build-aux/config.sub,
27442         * build-aux/ar-lib,
27443         * build-aux/compile: revert copyright updates (some from last
27444         year) in slaved files.
27446 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27448         version-etc: new year
27449         * doc/gnulib.texi:
27450         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
27451         * all files: Run 'make update-copyright'.
27453 2014-12-30  Pádraig Brady  <P@draigBrady.com>
27455         xstrtol: ensure errno is reset
27456         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
27457         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
27459         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
27461 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27463         utimens: fix dependency typo
27464         * modules/utimens (Depends-on): Remove 'assure'.
27465         This bug was introduced in the recent 'assure' patch.
27467 2014-12-22  Eric Blake  <eblake@redhat.com>
27469         docs: mention why libgen.h is bad
27470         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
27472 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27474         assure: new module
27475         This works better than 'assert' when compiling with -DNDEBUG,
27476         as it avoids some compiler diagnostics in that case.
27477         Reported by Norihiro Tanaka in:
27478         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
27479         * MODULES.html.sh (func_all_modules): Add 'assure'.
27480         * lib/assure.h, modules/assure: New files.
27481         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
27482         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
27483         Prefer 'assure' to 'assert'.
27484         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
27485         * modules/chdir-long, modules/cycle-check, modules/fchdir:
27486         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
27487         Depend on 'assure'.
27489 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
27491         stdalign: port better to HP compilers
27492         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
27493         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
27495         stdalign: work around Apple GCC 4.0 bug
27496         Reported by David Fang in:
27497         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
27498         * lib/stdalign.in.h (_Alignas):
27499         * m4/stdalign.m4 (gl_STDALIGN_H):
27500         Do not use aligned attribute with GCC 4.0 on Apple.
27502 2014-12-16  Pádraig Brady  <P@draigBrady.com>
27504         getcwd: fix test failure on OS X 10.9
27505         * m4/getcwd-path-max.m4: Avoid the replacement if it
27506         won't be effective due to the PATH_MAX limitation of lstat().
27507         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
27508         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
27509         for this case for use in tests, and also exclude this
27510         case when setting REPLACE_GETCWD.
27511         * tests/test-getcwd.c (test_long_name): Restrict the
27512         tested path length so that lstat() will not be passed
27513         a path greater than PATH_MAX.
27514         Also key a test condition on HAVE_OPENAT_SUPPORT rather
27515         than AT_FDCWD, since the latter is set unconditionally
27516         since Sep 2009 in commit 52c658e9.
27518 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
27520         parse-datetime: avoid a compiler warning with byacc (trivial)
27521         * lib/parse-datetime.y (yylex): Use the same prototype in the
27522         function definition as the declaration, to avoid a -Wstrict-prototypes
27523         warning seen when using byacc.
27525 2014-12-12  Daiki Ueno  <ueno@gnu.org>
27527         unicase/locale-language-tests: fix LOCALE_FR test
27528         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
27529         a French locale with traditional encoding.
27530         Reported by umerqayam in:
27531         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
27533 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
27535         stddef: support C11's max_align_t
27536         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
27537         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
27538         Do not undef, as that might cause max_align_t to be defined twice.
27539         Instead, change use to check for _GL_STDDEF_WINT_T too.
27540         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
27541         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
27542         Check for max_align_t.
27543         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
27544         * modules/stddef-tests (Depends-on): Add stdalign.
27545         * tests/test-stddef.c: Test max_align_t.
27547 2014-12-11  Daiki Ueno  <ueno@gnu.org>
27549         unistd: fix iOS check conditional
27550         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
27551         as 0 or 1 in <TargetConditionals.h>, and the previous check always
27552         yielded true on non-iOS environment.
27553         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
27554         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
27555         they are defined.
27557 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
27559         posixtm: avoid compiler warning in a better way
27560         * lib/posixtm.c (IF_LINT): Remove.
27561         (year, posix_time_parse):
27562         Return true (not 0) if successful.  All callers changed.
27563         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
27565 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
27567         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
27568         started with '/' on EMX.
27570 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
27572         freopen: workaround freopen() on OS/2 kLIBC
27573         * lib/freopen.c (rpl_freopen): Workaround.
27574         * m4/freopen.m4: Add os2* case.
27576         get_shared_library_fullname: port to EMX
27577         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
27578         on EMX, respectively.
27579         (_DLL_InitTerm): New on EMX.
27580         (get_shared_library_fullname): Implement on EMX.
27582         find_executable: port to EMX
27583         * lib/progreloc.c (find_executable): Implement on EMX.
27585         sched: check struct sched_param in spawn.h as well
27586         * lib/sched.in.h: Include spawn.h on kLIBC.
27587         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
27589 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
27591         bootstrap: Allow perl modules in $buildreq
27592         * build-aux/bootstrap: Add case for perl modules.
27594 2014-12-08  Pádraig Brady  <P@draigBrady.com>
27596         apply _GL_ATTRIBUTE_PURE to some inline functions
27597         clang 3.4.2 flagged these inline functions as pure
27598         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
27599         * lib/sig-handler.h (get_handler): Likewise.
27600         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
27601         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
27603 2014-12-06  Pádraig Brady  <P@draigBrady.com>
27605         vasnprintf: fix potential use after free
27606         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
27607         flagged by clang-analyzer 3.4.2.
27609 2014-12-05  Pádraig Brady  <P@draigBrady.com>
27611         filevercmp, posixtm: avoid compiler warnings with -O3
27612         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
27613         * lib/posixtm.c: (IF_LINT): Define.
27614         (posix_time_parse): Use it to void a "may be used uninitialized"
27615         warning, seen only with -O3.
27617 2014-12-05  Bruno Haible  <bruno@clisp.org>
27619         Fix LDBL80_WORDS macro on big endian platforms.
27620         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
27621         LDBL80_WORDS macro.
27622         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
27623         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27624         * tests/test-isfinite.c (test_isfinitel): Likewise.
27625         * tests/test-isinf.c (test_isinfl): Likewise.
27626         * tests/test-isnan.c (test_long_double): Likewise.
27627         * tests/test-isnanl.h (main): Likewise.
27628         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
27629         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
27630         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
27631         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
27632         Reported by Pádraig Brady.
27634 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
27636         git-version-gen: do not print new line characters
27637         * build-aux/git-version-gen: Use printf instead of echo and tr.
27639         gnulib-tool: recognize x:* as an absolute path
27640         * gnulib-tool (func_gnulib_dir): Add ?:* case.
27641         (func_relconcat): Likewise.
27643 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
27645         argp: avoid extraneous translation and mem leak with empty pre doc
27646         * lib/argp-help.c (argp_doc): Never translate the empty string,
27647         when "\v" is the first or last character of the string, as that
27648         has a reserved meaning to return the header info from a po file.
27649         This also fixes a small memory leak in the !post case.
27650         The issue can be seen with this command for example:
27651         LC_MESSAGES=en_US grub2-mknetdir --help
27653 2014-11-27  Daiki Ueno  <ueno@gnu.org>
27655         uniname/uniname-tests: skip if system's libunistring is used
27656         * modules/uniname/uniname-tests (Makefile.am): Skip test if
27657         uniname/uniname module is not compiled.
27659 2014-11-27  Pádraig Brady  <P@draigBrady.com>
27661         printf: fix configure check on big endian systems
27662         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
27664 2014-11-22  Daiki Ueno  <ueno@gnu.org>
27666         pipe-filter-gi, pipe-filter-ii: port to AIX
27667         On AIX 7.1, 'select' is defined as static and cannot be referred
27668         to from inline function.
27669         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
27670         the definition...
27671         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
27672         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
27674 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27676         gitlog-to-changelog: add --until
27677         * build-aux/gitlog-to-changelog: Support new --until option.
27678         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
27680 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
27682         extern-inline: update commentary about GCC bugs
27683         * m4/extern-inline.m4: Add another GCC bug number to comments.
27685 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27687         gen-uni-tables: untabify
27688         * lib/gen-uni-tables.c: Untabify.
27690 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27692         gen-uni-tables: check out-of-range values added to 3-level tables
27693         * lib/gen-uni-tables.c (output_category, output_bidi_category)
27694         (output_joining_type, output_ident_category): Check out-of-range
27695         values added to 3-level tables.
27697 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27699         gen-uni-tables: utilize 'assert'
27700         * lib/gen-uni-tables.c: Include <assert.h>.
27701         (output_category, output_combclass, output_decimal_digit_test)
27702         (output_decimal_digit, output_digit_test, output_digit)
27703         (output_numeric, get_mirror_value, fill_properties)
27704         (fill_property30, is_property_alphabetic)
27705         (is_property_default_ignorable_code_point)
27706         (is_property_uppercase, is_property_lowercase)
27707         (is_property_cased, is_property_case_ignorable)
27708         (is_property_changes_when_lowercased, is_property_iso_control)
27709         (is_property_math, fill_arabicshaping, output_joining_group)
27710         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
27711         (output_wbp, fill_org_gbp, get_decomposition)
27712         (output_decomposition, fill_composition_exclusions)
27713         (debug_output_composition_tables, output_composition_tables)
27714         (redistribute_casefolding_rules, output_casing_rules): Use
27715         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
27716         reporting.
27718 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27720         gen-uni-tables: cosmetic improvements
27721         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
27722         variables specification.
27723         (is_outdigit): Remove unused function.
27725 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
27727         fcntl-h-tests: port to PA-RISC GNU/Linux
27728         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
27730 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27732         fts: port to C89
27733         Problem reported for MSVC 16 by Gisle Vanem in:
27734         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
27735         * lib/fts.c (fts_build): Avoid declaration before statement.
27737 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27739         unistd: port to iOS
27740         Problem reported by André Klitzing in:
27741         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
27742         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
27744 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
27746         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
27747         Problem reported by Alan Modra in:
27748         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
27749         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
27750         Always cast the function arg, reverting this part of the previous
27751         change.
27753 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
27755         obstack: avoid potentially-nonportable function casts
27756         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
27757         Remove, replacing with ...
27758         (call_chunkfun, call_freefun): New static functions.
27759         All uses changed.  Avoid potentially-nonportable casts.
27760         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
27761         (_obstack_begin_worker): Omit last two args, since they
27762         rely on potentially-nonportable casts.  All callers changed.
27763         * lib/obstack.h (_OBSTACK_CAST): New macro.
27764         Use it everywhere the old API used a potentially-nonportable cast.
27765         The new API doesn't cast.
27766         (struct obstack): Use unions rather than requiring
27767         potentially-nonportable casts.
27768         (obstack_chunkfun, obstack_freefun): Return void.
27770 2014-11-03  Alan Modra  <amodra@gmail.com>
27772         obstack: fix macro return values
27773         * lib/obstack.h (obstack_next_free): Return void *.
27774         (obstack_1grow_fast, obstack_blank_fast): Return void.
27775         For __GNUC__ macros:
27776         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
27777         For !__GNUC__ macros:
27778         (obstack_make_room, obstack_grow, obstack_grow0)
27779         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
27781 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27783         obstack: do not assume system-supplied obstack is size_t safe
27784         * m4/obstack.m4: New file.
27785         * modules/obstack (Files): Add it.
27787         obstack: port to platforms that #define __alignof__
27788         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
27789         not if !_LIBC.  We don't know of any platforms that #define
27790         __alignof__, but it might be useful in tests.  Conversely,
27791         glibc assumes GCC.
27793 2014-11-03  Pádraig Brady  <P@draigBrady.com>
27795         linkat: don't unconditionally replace on GNU/Linux
27796         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
27797         was redundant for a few reasons.  It was present to support compiling
27798         on new systems but running on the old narrow window of Linux 2.6.1[67].
27799         It setup and cleaned up test files which weren't actually used.
27800         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
27801         implicit in the following check.
27803 2014-11-03  Pádraig Brady  <P@draigBrady.com>
27805         linkat: wrap to handle symlinks on OS X 10.10
27806         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
27807         but not usable because it doesn't support creating hardlinks
27808         to symlinks.  Therefore add a generic test for this capability
27809         and fallback to our emulation if linkat() fails with ENOTSUP.
27811 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27813         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
27814         * doc/posix-functions/open.texi (open):
27815         * doc/posix-functions/openat.texi (openat):
27816         Document that these functions do not set errno to ELOOP when
27817         a symlink is opened with O_NOFOLLOW.
27819 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27821         obstack: add NEWS entry for recent incompatible changes
27822         * NEWS: Describe recent changes.
27824 2014-10-30  Pádraig Brady  <P@draigBrady.com>
27826         mountlist: don't use libmount to decide on dummy/remote
27827         * lib/mountlist.c (read_file_system_list): Don't use the libmount
27828         routines to determine whether a file system is dummy or remote,
27829         as they're not currently compatible.  For example the remoteness
27830         is determined on file system type (for which the list seems incomplete),
27831         rather than simply checking for a ':' in the device name.
27832         Also libmount currently determines that 'tmpfs' is a dummy file system
27833         even though it has associated storage.
27835 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27837         obstack: prefer __alignof__ to alignof
27838         This is for portability to pre-4.7 GCC when compiling glibc.
27839         See Joseph S. Myers in:
27840         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
27841         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
27842         New macro, defined by including and using <alignof.h>.
27843         (MAX): New macro.
27844         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
27845         Do not use enums as they are not portable to some broken compilers.
27846         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
27848         obstack: prefer alignof to calculating alignments by hand
27849         * lib/obstack.c: Include <stdalign.h>.
27850         (struct fooalign): Remove.
27851         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
27852         * modules/obstack (Depends-on): Add stdalign.
27854 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
27856         obstack: use size_t alignments and check for overflow
27857         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
27858         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
27859         * lib/obstack.h (struct obstack.alignment_mask):
27860         Use _OBSTACK_SIZE_T, not int, for alignments.
27861         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
27862         overflows, e.g., when adding the alignment.
27864 2014-10-29  Alan Modra  <amodra@gmail.com>
27866         obstack: 64-bit obstack support, part 3
27867         This finally enables full 64-bit obstack support.  The glibc
27868         shared library specific code is removed from obstack.c too, and
27869         the error handling code conditionally compiled under control of
27870         another macro, _OBSTACK_NO_ERROR_HANDLER.
27871         * lib/obstack.h: Include string.h earlier.
27872         (_OBSTACK_INTERFACE_VERSION): Define.
27873         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
27874         * lib/obstack.c: Don't include shlib-compat.h.
27875         (OBSTACK_INTERFACE_VERSION): Delete.
27876         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
27877         glibc code is compatible with version 2.  Don't include stdio.h for
27878         __GNU_LIBRARY.
27879         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
27880         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
27881         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
27882         glibc shared library specific source.
27884         obstack: 64-bit obstack support, part 2
27885         This gets us 4G obstack support, without changing ABI
27886         compatibility, apart from possibly introducing some
27887         signed/unsigned comparison warnings in code that uses obstack.h.
27888         a) Replace "int" size parameters, return values, and macro local vars
27889            with _OBSTACK_SIZE_T, an "unsigned int" for now.
27890         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
27891         c) Make all obstack macros checking available room use obstack_room.
27892            "next_free + desired > chunk_limit" may wrap the lhs for chunks
27893            allocated near the top of memory.
27894         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
27895         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
27896         in place of "int" size parameters, return values and local vars.
27897         (_CHUNK_SIZE_T): Define.
27898         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
27899         union use an _OBSTACK_SIZE_T integer type.
27900         For __GNUC__ versions of the following macros...
27901         (obstack_room): Rename local var.
27902         (obstack_make_room): Use obstack_room.
27903         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
27904         obstack_int_grow, obstack_blank): Likewise.
27905         (obstack_finish): Use unsigned comparison when comparing aligned
27906         next_free against chunk_limit.
27907         (obstack_free): Cast OBJ to remove possible const qualifier.
27908         For !__GNUC__ versions of the following macros...
27909         (obstack_make_room): Use obstack_room.
27910         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
27911         obstack_int_grow, obstack_blank): Likewise.
27912         (obstack_finish): Use unsigned comparision when comparing aligned
27913         next_free against chunk_limit.
27914         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
27915         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
27916         _OBSTACK_SIZE_T.
27917         (_obstack_begin, _obstack_begin_1): Likewise.
27918         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
27919         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
27921         obstack: 64-bit obstack support, part 1
27922         a) Correct calls to alloc function, to use a size_t arg.  "long" is
27923            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
27924            and "size_t" 64 bits.
27925         b) Consolidate _obstack_begin and _obstack_begin1 code.
27926         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
27927         use "size_t" rather than "long".
27928         (_obstack_begin, _obstack_begin1): Likewise.
27929         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
27930         obstack_chunkfun): Update alloc function casts.
27931         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
27932         (chunkfun_type, freefun_type): New typdefs.
27933         (_obstack_begin_worker): Split out from ..
27934         (_obstack_begin, _obstack_begin_1): ..here.
27936         obstack: tidy part 2
27937         a) Don't be concerned about "not polluting the namespace with stddef.h
27938            symbols" in obstack.h, since gnulib string.h includes stddef.h
27939            anyway, and it seems unlikely that anyone would care.
27940         b) Don't roll our own slow memcpy in _obstack_newchunk.
27941         c) Rename obstack_free to _obstack_free.  This makes the naming
27942            consistent with other obstack functions and obviates the need for
27943            __obstack_free.  Ancient obstack.c defined both obstack_free and
27944            _obstack_free.  We continue to do that for _LIBC via an alias.
27945         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
27946            is clever, but nowadays gcc warns on undefined macros.  You'll get
27947            an undefined macro warning if simulating an old gcc with -U__GNUC__
27948            -U__GNUC_MINOR__ -D__GNUC__=1.
27949         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
27950         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
27951         (__obstack_free): Delete, update refs.
27952         (_obstack_free): Rename from obstack_free.
27953         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
27954         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
27955         * lib/obstack.c: Don't include stddef.h.
27956         (COPYING_UNIT): Delete.
27957         (_obstack_begin): Formatting fix.
27958         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
27959         (_obstack_free): Rename from __obstack_free, update alias.  Move
27960         undef of obstack_free to where it is needed.
27962         obstack: tidy part 1
27963         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
27964            to me, and result in overlong lines after later patches.
27965         b) Move error handling code, to avoid a forward declaration and to
27966            simplify later patches in this series.
27967         * lib/obstack.h (struct obstack <temp>): Rename fields of union
27968         and update all uses.
27969         * lib/obstack.c: Include stdlib.h earlier.
27970         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
27971         in file.
27972         (print_and_abort): Remove now redundant forward declaration.
27974 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27976         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
27977         Without this change, in bleeding-edge fileutils Autoconf complains
27978         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
27979         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
27980         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
27981         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
27983 2014-10-24  Daiki Ueno  <ueno@gnu.org>
27985         iconv: avoid false detection of non-working iconv
27986         The INBUF arguments of iconv can be either 'const char **'
27987         or 'char **'.  If CC is g++, the difference causes a compile error
27988         and thus leads to a false detection of non-working iconv.
27989         Reported by Eli Zaretskii and Werner LEMBERG in:
27990         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
27991         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
27992         iconv.  Bump serial number.
27994 2014-10-23  Pádraig Brady  <P@draigBrady.com>
27996         bootstrap: print more diagnostics for missing programs
27997         * build-aux/bootstrap: only suppress stderr when checking for
27998         alternative program names.  This supports programs issuing non
27999         standard error messages.
28001 2014-10-23  Pádraig Brady  <P@draigBrady.com>
28003         bootstrap: only update the gnulib submodule
28004         * build-aux/bootstrap: Restrict the "submodule update" command
28005         to the gnulib path.
28007 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28009         symlinkat: port to AIX 7.1
28010         * doc/posix-functions/symlinkat.texi (symlinkat):
28011         Mention AIX porting problem.
28012         * lib/symlinkat.c: Always include errno.h.
28013         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
28014         * lib/unistd.in.h (symlinkat): Add replacement machinery.
28015         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
28016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
28017         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
28018         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
28019         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
28021         readlinkat: port to AIX 7.1
28022         * doc/posix-functions/readlink.texi (readlink):
28023         * doc/posix-functions/readlinkat.texi (readlinkat):
28024         Mention AIX porting problem.
28025         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
28026         New function.
28027         * lib/unistd.in.h (readlinkat): Add replacement machinery.
28028         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
28029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
28030         * modules/readlinkat (configure.ac): Also compile replacement
28031         if REPLACE_READLINKAT.
28032         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
28034 2014-10-12  Karl Berry  <karl@gnu.org>
28036         * doc/posix-functions/dirname.texi: remove spurious {.
28038 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
28040         basename, dirname: Improve documentation.
28041         * doc/posix-functions/basename.texi: Mention dirname module and
28042         base_name() function.
28043         * doc/posix-functions/dirname.texi: Mention dir_name() and
28044         mdir_name() functions.
28045         Suggested by Werner LEMBERG <wl@gnu.org>.
28047 2014-09-24  Jim Meyering  <meyering@fb.com>
28049         exclude: declare exclude_patopts static
28050         * lib/exclude.c (exclude_patopts): Declare static,
28051         to avoid triggering a -Wmissing-prototypes warning.
28052         The alternative (declaring it in the .h file) would
28053         require publicizing the private "struct patopts".
28055 2014-09-21  Werner Lemberg  <wl@gnu.org>
28057         dirname: support compilation with C++
28058         * lib/dirname.h: Add necessary C linkage declarations.
28060 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28062         qsort_r: include <config.h>
28063         Problem reported by Tom G. Christensen in:
28064         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
28065         * lib/qsort.c [!_LIBC]: Include <config.h> first.
28067 2014-09-16  Dylan Cali  <calid1984@gmail.com>
28069         avltree-list: avoid compiler warnings (trivial)
28070         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
28071         -Werror=suggest-attribute=pure.
28072         * lib/gl_array_list.c: Likewise.
28073         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
28074         declaration to avoid -Werror=missing-prototypes.  This is not added
28075         to a header as only exported for tests.  Add (void) to the
28076         check_invariants() call to indicate we're discarding the result
28077         in this context which avoids -Werror=unused-value.  Note we don't
28078         use ignore_value here to avoid a dependency as we know we'll not
28079         be adding __attribute__((warn_unused_result)) to check_invariants().
28080         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
28082 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28084         qsort_r: new module, for GNU-style qsort_r
28085         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
28087 2014-09-15  Werner LEMBERG  <wl@gnu.org>
28089         strerror_r-posix: support compilation with C++
28090         * lib/strerror_r.c: Add necessary C linkage declarations.
28092 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
28094         fcntl-h: fix compilation with Intel C++ compiler (trivial)
28095         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
28097 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
28099         mountlist: use /proc/self/mountinfo when available
28100         Use libmount to propagate device IDs provided by Linux in
28101         /proc/self/mountinfo.  This will give more accurate output when
28102         using df in chroot'ed environments as the device IDs are not
28103         determined by stat() which may be inaccurate within the chroot.
28104         * lib/mountlist.c (read_file_system_list): Use the libmount routines
28105         from util-linux to parse "/proc/self/mountinfo" or fall back to
28106         standard getmntent() processing.
28107         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
28108         getmntent() is used, as is the case on GNU/Linux.
28110 2014-09-07  Eric Wong  <normalperson@yhbt.net>
28112         users.txt: add cmogstored
28113         cmogstored has used gnulib since the beginning in 2012 to support
28114         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
28116 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
28118         Trivial change.
28119         * gnulib-tool: Use same options as build-aux/bootstrap to download
28120         PO files.
28122 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
28124         Trivial change.
28125         * gnulib-tool: Fallback to wget when rsync of PO files fails.
28127 2014-09-04  Eric Blake  <eblake@redhat.com>
28129         maintainer-makefile: add syntax check for useless ';;'
28130         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
28132 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
28134         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
28135         Problem reported by Assaf Gordon in:
28136         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
28137         Apparently Ubuntu is doing some fancy link-time optimization
28138         that doesn't work with -lpthread but does work with -pthread.
28139         Work around the bug by preferring -pthread to -lpthread.
28140         * m4/pthread.m4 (gl_PTHREAD_CHECK):
28141         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
28142         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
28143         Treat -pthread like -lpthread.
28145 2014-09-04  Eric Blake  <eblake@redhat.com>
28147         error: drop spurious semicolon
28148         * lib/error.c (__error_at_line): Fix ';;'.
28150 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28152         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
28153         * m4/gnulib-common.m4 (AC_C_RESTRICT):
28154         Override AC_C_RESTRICT unconditionally.
28155         Update from autoconf, incorporating:
28156         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
28157         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
28159 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28161         manywarnings: add GCC 4.9 warnings
28162         Also, make it easier to maintain this in the future.
28163         * build-aux/gcc-warning.spec: Add -Wabi-tag,
28164         -Wconditionally-supported, -Wdelete-incomplete,
28165         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
28166         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
28167         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
28168         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
28169         only for older GCC versions that need them.  Handle
28170         -Wnormalized=nfc specially, so that the 'comm' command used
28171         for maintenance doesn't get confused.
28173 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28175         vasnprintf: fix bugs in width computation
28176         * lib/vasnprintf.c (VASNPRINTF):
28177         Rework previous change, which introduced a bug,
28178         to avoid the warning in a different way.
28179         Avoid undefined behavior if the width arg is less than -INT_MAX.
28180         Avoid unnecessary use of HAS_WIDTH local.
28182 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
28184         vasnprintf: Avoid signed/unsigned comparison warning.
28185         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
28186         compare end addr of generated string w/ maximum end addr.
28188 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
28190         parse-datetime: Avoid pointer difference.
28191         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
28192         instead of calculating difference of pointers.  This removes an
28193         annoying warning, devoid of any use.
28195 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
28197         qsort_r: new module, for GNU-style qsort_r
28198         This works even on FreeBSD, which has an incompatible qsort_r API.
28199         * MODULES.html.sh: Add it.
28200         * doc/glibc-functions/qsort_r.texi: It's now supported.
28201         * lib/qsort.c: New file, taken from glibc with minor changes
28202         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
28203         removed.
28204         * lib/qsort_r.c: New file, compiled only on FreeBSD.
28205         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
28206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
28207         * modules/qsort_r, modules/qsort_r-tests: New files.
28208         * modules/stdlib (Makefile): Set up its defaults.
28209         * tests/test-qsort_r.c: New file.
28211 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
28213         vla: new module
28214         GNU RCS can use this, mostly for documentation I expect.  See:
28215         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
28216         * MODULES.html.sh: Add vla.
28217         * lib/vla.h, modules/vla: New files.
28219 2014-08-07  Daiki Ueno  <ueno@gnu.org>
28221         localename: make gl_locale_name_thread really thread-safe on Windows
28222         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
28223         "glthread/lock.h".
28224         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
28225         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
28227 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
28229         getpass: don't assume struct termios
28230         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
28231         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
28232         * lib/getpass.c (getpass): Port to systems lacking struct termios.
28234         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
28235         Problem reported by Jonas 'Sortie' Termansen in:
28236         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
28237         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
28238         Implement via sysconf for platforms that lack getdtablesize.
28240         vararrays: modernize AC_C_VARARRAYS for C11
28241         This backports a change I recently made to Autoconf.
28242         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
28243         VLAs are not supported, as this is what C11 does.  The old macro
28244         HAVE_C_VARARRAYS is still defined if they are supported, but is
28245         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
28247 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
28249         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
28250         * build-aux/install-reloc (func_create_wrapper): Also wrap
28251         strerror-override, stat, stat.
28253 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
28255         sys_select: fix FD_ZERO problem on Solaris 10
28256         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
28257         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
28258         to expand to an expression that invoked memset without necessarily
28259         including <string.h>.  The problem was that the first include
28260         defined _SYS_TIME_H, causing the second include to short-circuit.
28261         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
28262         Also, fix what appears to be a cut-and-paste typo, by replacing
28263         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
28264         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
28266         accept: document Solaris 10 type glitch
28267         * doc/posix-functions/accept.texi (accept): Mention that
28268         Solaris 10 'accept' takes void * last arg, not socklen_t *.
28270 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
28272         extern-inline: port to FreeBSD, DragonFly
28273         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
28274         is present if either __DragonFly__ or __FreeBSD__ is defined.
28275         FreeBSD problem reported by Andrey Borzenkov in:
28276         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
28277         Also, worry about __APPLE__ only if __MACH__ is also defined,
28278         as this is more consistent with the rest of gnulib.
28279         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
28280         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
28282 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28284         regex: Make #if/#ifdef usage consistent for DEBUG
28285         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
28286         of the inconsistent usage of #if and #ifdef as that works with
28287         both Glibc and Gnulib's style.
28289 2014-07-31  Eric Blake  <eblake@redhat.com>
28291         openat-die: use _Noreturn markup
28292         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
28293         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
28294         _Noreturn.
28296 2014-07-30  Eric Blake  <eblake@redhat.com>
28298         test-open: port to cygwin, which lacks Fortify
28299         * tests/test-open.h (ALWAYS_INLINE): New macro.
28300         (__always_inline): Don't abuse internal symbol on non-glibc.
28302 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
28304         localename: Enforce declarations before statements.
28305         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
28306         first statement.
28308 2014-07-18  Jim Meyering  <meyering@fb.com>
28310         test-userspec: don't look up numeric user names
28311         * tests/test-userspec.c: I found a system for which getpwnam("0")
28312         returned a pointer to a non-root user's entry, and that made the
28313         test fail.
28314         (T): Prefix each numeric input with "+", to inhibit lookup.
28316 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
28318         localcharset, localename: MS-Windows support for non-default locales
28319         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
28320         falling back on the default system codepage, try extracting
28321         the codepage from what 'setlocale' returns.  This allows to
28322         take into account changes of the codeset due to non-default
28323         locale set by a previous call to 'setlocale'.
28324         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
28325         Define if not already defined.
28326         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
28327         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
28328         current locale by calling 'setlocale', then converting the
28329         locale name into LCID by calling 'get_lcid'.  This allows to
28330         take into account changes in the current locale from the
28331         default one, in contrast to GetThreadLocale.
28333 2014-07-14  Daiki Ueno  <ueno@gnu.org>
28335         announce-gen: avoid failure when Digest::SHA is installed
28336         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
28337         Digest::SHA1->new in print_checksums fails.
28338         * build-aux/announce-gen (digest_classes): New associative array
28339         for available message digest implementations.
28340         (print_locations): Use it.
28342 2014-07-13  Pádraig Brady  <P@draigBrady.com>
28344         gettext: revert "update macros to version 0.19"
28345         This reverts commit 9b9370ca, as it currently requires that
28346         developers of any project that explicitly uses the gettext module
28347         or implicitly uses it through the utimens-tests or
28348         futimens-tests modules, use gettext >= 0.19.
28349         However there are some stability and availablity issues with
28350         that version at present.  We can reinstate this soon, when stability
28351         is addressed and packages are more readily available.
28353 2014-07-12  Jim Meyering  <meyering@fb.com>
28355         regex: don't deref NULL upon heap allocation failure
28356         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
28357         failure in one more place.
28358         To trigger the segfault, configure grep -with-included-regex,
28359         build it, and run these commands:
28360         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28361         I discovered this while replying to a private report from
28362         Jens Schleusener about excessive memory consumption by grep
28363         when using a regular expression like the one above.
28365 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
28367         regex: fix memory leak in compiler
28368         Fix by Andreas Schwab in:
28369         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
28370         * lib/regcomp.c (parse_reg_exp): Deallocate partially
28371         constructed tree before returning error.
28373 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28375         announce-gen: avoid perl warnings
28376         * build-aux/announce-gen: add two minor checks to avoid
28377         "use of uninitialized value" warnings when command-line parameters are
28378         missing.
28380 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28382         localename: avoid -Wsuggest-attribute={const,pure} warnings
28383         * lib/localename.c (string_has): Tag internal function as pure.
28384         * lib/localename.h (gl_locale_name_default): Tag extern declaration
28385         as const when appropriate.
28387 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
28389         nl_langinfo: Fix last change.
28390         * lib/nl_langinfo.c (includes): Drop redundant include.
28392 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28394         error: Fix -Wundef warnings in glibc
28395         * lib/error.c [_LIBC]: Define default macros for
28396         glibc.
28397         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
28398         Check _LIBC before STRERROR_R_CHAR_P.
28400         error: Sync from glibc master
28401         * lib/error.c [_LIBC]: Remove INTUSE usage.
28402         (error_tail): Remove unused macro ALLOCA_LIMIT.
28403         Fix potential buffer overflow.  Fix potential NULL dereference
28404         in strcmp.
28406 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
28408         nl_langinfo: fix build under mingw
28409         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
28411 2014-07-09  Andrew D Warshall  <warshall@99main.com>
28413         mountlist: do not classify a bind-mounted dir entry as "dummy"
28414         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
28415         1-argument getmntent() (instead of assuming absence).
28417 2014-07-08  Eric Blake  <eblake@redhat.com>
28419         maint.mk: less syntax-check noise when SIGPIPE is ignored
28420         * top/maint.mk (_sc_header_without_use)
28421         (sc_require_config_h_first): Parse full list.
28423 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
28424             Paul Eggert  <eggert@cs.ucla.edu>
28426         nl_langinfo: CODESET on MS-Windows and more items from localeconv
28427         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
28428         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
28429         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
28430         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
28431         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
28432         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
28433         Include <stdio.h> if Microsoft Windows.
28434         Include <time.h> if !REPLACE_NL_LANGINFO.
28435         (ctype_codeset): New function, taken from rpl_nl_langinfo,
28436         and with improvements for Microsoft Windows.
28437         (rpl_nl_langinfo): Use it.
28438         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
28439         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
28440         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
28441         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
28442         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
28443         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
28444         corresponding values returned by 'localeconv'.  Compute the values
28445         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
28446         'strftime' with a suitable struct tm value.
28448 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
28450         Bruno Haible has stepped down as maintainer.
28451         See Karl Berry in:
28452         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
28453         Daiki Ueno has volunteered to maintain libunistring; see:
28454         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
28455         * modules/gen-uni-tables, modules/libunistring:
28456         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
28457         * modules/unicase/base, modules/unicase/cased:
28458         * modules/unicase/empty-prefix-context:
28459         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
28460         * modules/unicase/locale-language, modules/unicase/special-casing:
28461         * modules/unicase/tocasefold, modules/unicase/tolower:
28462         * modules/unicase/totitle, modules/unicase/toupper:
28463         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
28464         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
28465         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
28466         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
28467         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
28468         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
28469         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
28470         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
28471         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
28472         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
28473         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
28474         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
28475         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
28476         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
28477         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
28478         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
28479         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
28480         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
28481         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
28482         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
28483         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
28484         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
28485         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
28486         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
28487         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
28488         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
28489         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
28490         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
28491         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
28492         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
28493         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
28494         * modules/unicase/ulc-casexfrm, modules/unicodeio:
28495         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
28496         * modules/uniconv/u16-conv-to-enc:
28497         * modules/uniconv/u16-strconv-from-enc:
28498         * modules/uniconv/u16-strconv-from-locale:
28499         * modules/uniconv/u16-strconv-to-enc:
28500         * modules/uniconv/u16-strconv-to-locale:
28501         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
28502         * modules/uniconv/u32-strconv-from-enc:
28503         * modules/uniconv/u32-strconv-from-locale:
28504         * modules/uniconv/u32-strconv-to-enc:
28505         * modules/uniconv/u32-strconv-to-locale:
28506         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
28507         * modules/uniconv/u8-strconv-from-enc:
28508         * modules/uniconv/u8-strconv-from-locale:
28509         * modules/uniconv/u8-strconv-to-enc:
28510         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
28511         * modules/unictype/bidicategory-all:
28512         * modules/unictype/bidicategory-byname:
28513         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
28514         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
28515         * modules/unictype/bidiclass-byname:
28516         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
28517         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
28518         * modules/unictype/block-all, modules/unictype/block-list:
28519         * modules/unictype/block-of, modules/unictype/block-test:
28520         * modules/unictype/category-C, modules/unictype/category-Cc:
28521         * modules/unictype/category-Cf, modules/unictype/category-Cn:
28522         * modules/unictype/category-Co, modules/unictype/category-Cs:
28523         * modules/unictype/category-L, modules/unictype/category-LC:
28524         * modules/unictype/category-Ll, modules/unictype/category-Lm:
28525         * modules/unictype/category-Lo, modules/unictype/category-Lt:
28526         * modules/unictype/category-Lu, modules/unictype/category-M:
28527         * modules/unictype/category-Mc, modules/unictype/category-Me:
28528         * modules/unictype/category-Mn, modules/unictype/category-N:
28529         * modules/unictype/category-Nd, modules/unictype/category-Nl:
28530         * modules/unictype/category-No, modules/unictype/category-P:
28531         * modules/unictype/category-Pc, modules/unictype/category-Pd:
28532         * modules/unictype/category-Pe, modules/unictype/category-Pf:
28533         * modules/unictype/category-Pi, modules/unictype/category-Po:
28534         * modules/unictype/category-Ps, modules/unictype/category-S:
28535         * modules/unictype/category-Sc, modules/unictype/category-Sk:
28536         * modules/unictype/category-Sm, modules/unictype/category-So:
28537         * modules/unictype/category-Z, modules/unictype/category-Zl:
28538         * modules/unictype/category-Zp, modules/unictype/category-Zs:
28539         * modules/unictype/category-all, modules/unictype/category-and:
28540         * modules/unictype/category-and-not, modules/unictype/category-byname:
28541         * modules/unictype/category-longname, modules/unictype/category-name:
28542         * modules/unictype/category-none, modules/unictype/category-of:
28543         * modules/unictype/category-or, modules/unictype/category-test:
28544         * modules/unictype/category-test-withtable:
28545         * modules/unictype/combining-class:
28546         * modules/unictype/combining-class-all:
28547         * modules/unictype/combining-class-byname:
28548         * modules/unictype/combining-class-longname:
28549         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
28550         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
28551         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
28552         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
28553         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
28554         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
28555         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
28556         * modules/unictype/digit, modules/unictype/joininggroup-all:
28557         * modules/unictype/joininggroup-byname:
28558         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
28559         * modules/unictype/joiningtype-all:
28560         * modules/unictype/joiningtype-byname:
28561         * modules/unictype/joiningtype-longname:
28562         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
28563         * modules/unictype/mirror, modules/unictype/numeric:
28564         * modules/unictype/property-all, modules/unictype/property-alphabetic:
28565         * modules/unictype/property-ascii-hex-digit:
28566         * modules/unictype/property-bidi-arabic-digit:
28567         * modules/unictype/property-bidi-arabic-right-to-left:
28568         * modules/unictype/property-bidi-block-separator:
28569         * modules/unictype/property-bidi-boundary-neutral:
28570         * modules/unictype/property-bidi-common-separator:
28571         * modules/unictype/property-bidi-control:
28572         * modules/unictype/property-bidi-embedding-or-override:
28573         * modules/unictype/property-bidi-eur-num-separator:
28574         * modules/unictype/property-bidi-eur-num-terminator:
28575         * modules/unictype/property-bidi-european-digit:
28576         * modules/unictype/property-bidi-hebrew-right-to-left:
28577         * modules/unictype/property-bidi-left-to-right:
28578         * modules/unictype/property-bidi-non-spacing-mark:
28579         * modules/unictype/property-bidi-other-neutral:
28580         * modules/unictype/property-bidi-pdf:
28581         * modules/unictype/property-bidi-segment-separator:
28582         * modules/unictype/property-bidi-whitespace:
28583         * modules/unictype/property-byname:
28584         * modules/unictype/property-case-ignorable:
28585         * modules/unictype/property-cased:
28586         * modules/unictype/property-changes-when-casefolded:
28587         * modules/unictype/property-changes-when-casemapped:
28588         * modules/unictype/property-changes-when-lowercased:
28589         * modules/unictype/property-changes-when-titlecased:
28590         * modules/unictype/property-changes-when-uppercased:
28591         * modules/unictype/property-combining:
28592         * modules/unictype/property-composite:
28593         * modules/unictype/property-currency-symbol:
28594         * modules/unictype/property-dash:
28595         * modules/unictype/property-decimal-digit:
28596         * modules/unictype/property-default-ignorable-code-point:
28597         * modules/unictype/property-deprecated:
28598         * modules/unictype/property-diacritic:
28599         * modules/unictype/property-extender:
28600         * modules/unictype/property-format-control:
28601         * modules/unictype/property-grapheme-base:
28602         * modules/unictype/property-grapheme-extend:
28603         * modules/unictype/property-grapheme-link:
28604         * modules/unictype/property-hex-digit:
28605         * modules/unictype/property-hyphen:
28606         * modules/unictype/property-id-continue:
28607         * modules/unictype/property-id-start:
28608         * modules/unictype/property-ideographic:
28609         * modules/unictype/property-ids-binary-operator:
28610         * modules/unictype/property-ids-trinary-operator:
28611         * modules/unictype/property-ignorable-control:
28612         * modules/unictype/property-iso-control:
28613         * modules/unictype/property-join-control:
28614         * modules/unictype/property-left-of-pair:
28615         * modules/unictype/property-line-separator:
28616         * modules/unictype/property-logical-order-exception:
28617         * modules/unictype/property-lowercase, modules/unictype/property-math:
28618         * modules/unictype/property-non-break:
28619         * modules/unictype/property-not-a-character:
28620         * modules/unictype/property-numeric:
28621         * modules/unictype/property-other-alphabetic:
28622         * modules/unictype/property-other-default-ignorable-code-point:
28623         * modules/unictype/property-other-grapheme-extend:
28624         * modules/unictype/property-other-id-continue:
28625         * modules/unictype/property-other-id-start:
28626         * modules/unictype/property-other-lowercase:
28627         * modules/unictype/property-other-math:
28628         * modules/unictype/property-other-uppercase:
28629         * modules/unictype/property-paired-punctuation:
28630         * modules/unictype/property-paragraph-separator:
28631         * modules/unictype/property-pattern-syntax:
28632         * modules/unictype/property-pattern-white-space:
28633         * modules/unictype/property-private-use:
28634         * modules/unictype/property-punctuation:
28635         * modules/unictype/property-quotation-mark:
28636         * modules/unictype/property-radical:
28637         * modules/unictype/property-sentence-terminal:
28638         * modules/unictype/property-soft-dotted:
28639         * modules/unictype/property-space:
28640         * modules/unictype/property-terminal-punctuation:
28641         * modules/unictype/property-test, modules/unictype/property-titlecase:
28642         * modules/unictype/property-unassigned-code-value:
28643         * modules/unictype/property-unified-ideograph:
28644         * modules/unictype/property-uppercase:
28645         * modules/unictype/property-variation-selector:
28646         * modules/unictype/property-white-space:
28647         * modules/unictype/property-xid-continue:
28648         * modules/unictype/property-xid-start:
28649         * modules/unictype/property-zero-width, modules/unictype/scripts:
28650         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
28651         * modules/unictype/syntax-c-whitespace:
28652         * modules/unictype/syntax-java-ident:
28653         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
28654         * modules/unigbrk/u16-grapheme-breaks:
28655         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
28656         * modules/unigbrk/u32-grapheme-breaks:
28657         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
28658         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
28659         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
28660         * modules/unigbrk/uc-is-grapheme-break:
28661         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
28662         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
28663         * modules/unilbrk/u16-width-linebreaks:
28664         * modules/unilbrk/u32-possible-linebreaks:
28665         * modules/unilbrk/u32-width-linebreaks:
28666         * modules/unilbrk/u8-possible-linebreaks:
28667         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
28668         * modules/unilbrk/ulc-possible-linebreaks:
28669         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
28670         * modules/uniname/uniname, modules/uninorm/base:
28671         * modules/uninorm/canonical-decomposition:
28672         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
28673         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
28674         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
28675         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
28676         * modules/uninorm/nfkc, modules/uninorm/nfkd:
28677         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
28678         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
28679         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
28680         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
28681         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
28682         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
28683         * modules/unistdio/base, modules/unistdio/u-printf-args:
28684         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
28685         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
28686         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
28687         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
28688         * modules/unistdio/u16-u16-sprintf:
28689         * modules/unistdio/u16-u16-vasnprintf:
28690         * modules/unistdio/u16-u16-vasprintf:
28691         * modules/unistdio/u16-u16-vsnprintf:
28692         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
28693         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
28694         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
28695         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
28696         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
28697         * modules/unistdio/u32-u32-asnprintf:
28698         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
28699         * modules/unistdio/u32-u32-sprintf:
28700         * modules/unistdio/u32-u32-vasnprintf:
28701         * modules/unistdio/u32-u32-vasprintf:
28702         * modules/unistdio/u32-u32-vsnprintf:
28703         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
28704         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
28705         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
28706         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
28707         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
28708         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
28709         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
28710         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
28711         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
28712         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
28713         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
28714         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
28715         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
28716         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
28717         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
28718         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
28719         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
28720         * modules/unistr/u16-check, modules/unistr/u16-chr:
28721         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
28722         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
28723         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
28724         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
28725         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
28726         * modules/unistr/u16-move, modules/unistr/u16-next:
28727         * modules/unistr/u16-prev, modules/unistr/u16-set:
28728         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
28729         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
28730         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
28731         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
28732         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
28733         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
28734         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
28735         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
28736         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
28737         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
28738         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
28739         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
28740         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
28741         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
28742         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
28743         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
28744         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
28745         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
28746         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
28747         * modules/unistr/u32-next, modules/unistr/u32-prev:
28748         * modules/unistr/u32-set, modules/unistr/u32-startswith:
28749         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
28750         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
28751         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
28752         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
28753         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
28754         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
28755         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
28756         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
28757         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
28758         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
28759         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
28760         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
28761         * modules/unistr/u8-check, modules/unistr/u8-chr:
28762         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
28763         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
28764         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
28765         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
28766         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
28767         * modules/unistr/u8-next, modules/unistr/u8-prev:
28768         * modules/unistr/u8-set, modules/unistr/u8-startswith:
28769         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
28770         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
28771         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
28772         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
28773         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
28774         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
28775         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
28776         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
28777         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
28778         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
28779         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
28780         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
28781         * modules/uniwbrk/base, modules/uniwbrk/table:
28782         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
28783         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
28784         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
28785         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
28786         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
28787         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
28788         * modules/uniwidth/width, modules/utf16-ucs4:
28789         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
28790         * modules/utf8-ucs4-unsafe:
28791         Change maintainer from Bruno Haible to Daiki Ueno.
28792         This is my guess at the libunistring modules; please feel free
28793         to fix if I guessed incorrectly.
28794         * modules/accept4, modules/acl, modules/acos, modules/acosf:
28795         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
28796         * modules/areadlink, modules/array-list, modules/array-mergesort:
28797         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
28798         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
28799         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
28800         * modules/binary-io, modules/bison-i18n, modules/btowc:
28801         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
28802         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
28803         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
28804         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
28805         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
28806         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
28807         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
28808         * modules/closedir, modules/concat-filename, modules/copy-file:
28809         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
28810         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
28811         * modules/csharpcomp-script, modules/csharpexec:
28812         * modules/csharpexec-script, modules/ctype, modules/diffseq:
28813         * modules/dprintf, modules/dprintf-posix, modules/dup:
28814         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
28815         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
28816         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
28817         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
28818         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
28819         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
28820         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
28821         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
28822         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
28823         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
28824         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
28825         * modules/findprog, modules/findprog-lgpl, modules/floor:
28826         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
28827         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
28828         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
28829         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
28830         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
28831         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
28832         * modules/freadable, modules/freadahead, modules/freadptr:
28833         * modules/freadseek, modules/freopen, modules/frexp:
28834         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
28835         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
28836         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
28837         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
28838         * modules/ftello, modules/full-read, modules/full-write:
28839         * modules/fwritable, modules/fwriteerror, modules/gcd:
28840         * modules/get-rusage-as, modules/get-rusage-data:
28841         * modules/getdtablesize, modules/getrusage, modules/gettext:
28842         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
28843         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
28844         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
28845         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
28846         * modules/iconv, modules/iconv-h, modules/iconv_open:
28847         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
28848         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
28849         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
28850         * modules/integer_length_ll, modules/ioctl, modules/isatty:
28851         * modules/isblank, modules/isnand, modules/isnand-nolibm:
28852         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
28853         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
28854         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
28855         * modules/javaexec, modules/javaexec-script, modules/javaversion:
28856         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
28857         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
28858         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
28859         * modules/lib-symbol-visibility, modules/libsigsegv:
28860         * modules/linked-list, modules/linkedhash-list, modules/list:
28861         * modules/localcharset, modules/locale, modules/localeconv:
28862         * modules/localename, modules/lock, modules/log, modules/log-ieee:
28863         * modules/log10, modules/log10-ieee, modules/log10f:
28864         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
28865         * modules/log1p, modules/log1p-ieee, modules/log1pf:
28866         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
28867         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
28868         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
28869         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
28870         * modules/logf, modules/logf-ieee, modules/login_tty:
28871         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
28872         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
28873         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
28874         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
28875         * modules/mbscspn, modules/mbsinit, modules/mbslen:
28876         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
28877         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
28878         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
28879         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
28880         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
28881         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
28882         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
28883         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
28884         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
28885         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
28886         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
28887         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
28888         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
28889         * modules/posix_spawn, modules/posix_spawn-internal:
28890         * modules/posix_spawn_file_actions_addclose:
28891         * modules/posix_spawn_file_actions_adddup2:
28892         * modules/posix_spawn_file_actions_addopen:
28893         * modules/posix_spawn_file_actions_destroy:
28894         * modules/posix_spawn_file_actions_init:
28895         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
28896         * modules/posix_spawnattr_getpgroup:
28897         * modules/posix_spawnattr_getschedparam:
28898         * modules/posix_spawnattr_getschedpolicy:
28899         * modules/posix_spawnattr_getsigdefault:
28900         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
28901         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
28902         * modules/posix_spawnattr_setschedparam:
28903         * modules/posix_spawnattr_setschedpolicy:
28904         * modules/posix_spawnattr_setsigdefault:
28905         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
28906         * modules/pow, modules/powf, modules/printf-frexp:
28907         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
28908         * modules/progname, modules/propername, modules/pselect:
28909         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
28910         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
28911         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
28912         * modules/read, modules/readdir, modules/readlink:
28913         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
28914         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
28915         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
28916         * modules/relocatable-script, modules/remainder:
28917         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
28918         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
28919         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
28920         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
28921         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
28922         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
28923         * modules/setlocale, modules/sh-quote, modules/shutdown:
28924         * modules/signal, modules/signbit, modules/sigpipe:
28925         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
28926         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
28927         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
28928         * modules/snippet/link-warning, modules/snippet/unused-parameter:
28929         * modules/snprintf, modules/snprintf-posix, modules/spawn:
28930         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
28931         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
28932         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
28933         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
28934         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
28935         * modules/streq, modules/strerror_r-posix, modules/striconv:
28936         * modules/striconveh, modules/striconveha, modules/strncat:
28937         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
28938         * modules/sublist, modules/sys_resource, modules/sys_utsname:
28939         * modules/sys_wait, modules/system-posix, modules/system-quote:
28940         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
28941         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
28942         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
28943         * modules/truncf, modules/truncf-ieee, modules/truncl:
28944         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
28945         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
28946         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
28947         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
28948         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
28949         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
28950         * modules/wait-process, modules/waitpid, modules/wcpcpy:
28951         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
28952         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
28953         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
28954         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
28955         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
28956         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
28957         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
28958         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
28959         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
28960         * modules/write, modules/xconcat-filename, modules/xlist:
28961         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
28962         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
28963         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
28964         * modules/y0, modules/y1, modules/yn:
28965         Remove Bruno Haible as maintainer; if he's the sole maintainer,
28966         change the maintainer to 'all'.  Let's hope someone volunteers.
28968 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
28970         mktime: merge #if/#ifdef usage from glibc
28971         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
28972         as that works with both Glibc's and Gnulib's style.
28973         See thread starting at Siddhesh Poyarekar's bug report at:
28974         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
28976 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
28978         git-version-gen: improve option descriptions
28979         * build-aux/git-version-gen: Mention that --prefix and --fallback
28980         have a mandatory argument.
28982 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
28984         regex: fix memory leak in compiler
28985         Fix by Andreas Schwab in:
28986         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
28987         * lib/regcomp.c (parse_expression): Deallocate partially
28988         constructed tree before returning error.
28990         regex: merge patch from libc
28991         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
28992         Combine __USE_BSD and __USE_SVID into __USE_MISC.
28993         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
28995 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
28997         acl: port to gcc -Wredundant-decls
28998         From a request by Dmitry Antipov in:
28999         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
29000         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
29001         "#ifndef _GL_ACL_H".
29003 2014-06-11  Bruce Korb  <bkorb@gnu.org>
29004         Jim Meyering  <meyering@fb.com>
29006         parse-duration: eliminate 68-year duration limit
29007         * lib/parse-duration.c: Include "intprops.h".
29008         (TIME_MAX): Rename to MAX_DURATION and define to
29009         TYPE_MAXIMUM(time_t).
29010         * modules/parse-duration (Depends-on): Add intprops.
29011         Reported by Jonas 'Sortie' Termansen.
29013 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29015         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
29016         * modules/pthread (Depends-on): Add 'extensions', as it defines
29017         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
29018         (configure.ac-early): New section.
29019         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
29020         it is no longer needed.
29022 2014-06-14  Pádraig Brady  <P@draigBrady.com>
29024         pthread: define thread-safe macros on some platforms
29025         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
29026         for thread-safe operation on some platforms.
29028 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
29030         regex: don't be multithreaded if USE_UNLOCKED_IO.
29031         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
29032         * lib/regex_internal.h: Do not use multithreaded version if
29033         USE_UNLOCKED_IO is defined.  This is a hack, but it works
29034         around a porting bug with coreutils 8.22 on AIX 7.1.
29036 2014-06-11  Daiki Ueno  <ueno@gnu.org>
29038         gettext: update macros to version 0.19
29039         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
29040         depend on gl_EXTERN_INLINE and drop support for older Bison
29041         versions.
29043 2014-06-10  Pádraig Brady  <P@draigBrady.com>
29045         select,poll: fix console handle check on windows 8
29046         lib/poll.c (IsConsoleHandle): Change from testing the lower
29047         2 bits of the handle to the more expensive but accurate syscall.
29048         lib/select.c: Likewise.
29050 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
29052         select: fix waiting on anonymous pipes on MS-Windows
29053         * lib/select.c (rpl_select): Fall back to polling when select()
29054         indicates there is nothing to check, while due to the timeout not
29055         expiring, activity is indicated on one of the handles.
29056         Also clear the TIMEOUT argument if the timer does expire.
29058 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
29060         times: fix to return non constant value on MS-Windows
29061         * lib/times.c (times): Don't use the process creation time,
29062         rather clock() which on windows returns the number of
29063         clock ticks since the process started.
29065 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
29067         isatty: fix to work on windows 8
29068         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
29069         2 bits of the handle to the more expensive but accurate syscall.
29071 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
29073         maint: fix typo in fdl.texi
29074         * doc/fdl.texi: Fix typo (missing '@').
29075         Somehow this was in fdl.texi but not fdl-1.3.texi.
29077 2014-06-06  Ben Walton  <bdwalton@gmail.com>
29079         mountlist: avoid hasmntopt const type warning on solaris
29080         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
29081         with char * instead of const char *.  Passing the constant string
29082         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
29083         to avoid the warning.
29085 2014-06-04  Eric Blake  <eblake@redhat.com>
29087         maintainer-makefile: delete obsolete code
29088         * top/maint.mk (build_aux): Drop old code, as threatened.
29090         maintainer-makefile: avoid spurious error messages
29091         * top/maint.mk (syntax-check): Guard definition and use of
29092         $(shell) by whether Makefile is present.
29094 2014-06-03  Ben Walton  <bdwalton@gmail.com>
29096         rename: avoid unused-but-set-variable compiler warning
29097         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
29098         it is possible that dst_exists may be set but not used.  Mark it with
29099         the unused attribute to avoid compiler warnings.
29101 2014-06-02  Ben Walton  <bdwalton@gmail.com>
29103         rename: mark a label as potentially unused
29104         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
29105         by marking the out label as potentially unused.
29106         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
29108 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29110         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
29111         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
29113 2014-06-02  Ben Walton  <bdwalton@gmail.com>
29115         acl: apply pure attribute to two functions
29116         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
29117         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
29119 2014-06-01  Pádraig Brady  <P@draigBrady.com>
29121         gnulib-common.m4: add _GL_UNUSED_LABEL
29122         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
29123         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
29125 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
29127         dup2, fcntl, fcntl-h: port to AIX 7.1
29128         This fixes some porting problems discovered when testing the latest
29129         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
29130         in grep but it could be important for other applications.
29131         * doc/posix-functions/dup2.texi:
29132         * doc/posix-functions/fcntl.texi:
29133         * doc/posix-headers/fcntl.texi:
29134         Document AIX bugs.
29135         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
29136         Define to 0 if outside 'int' range.
29137         * m4/dup2.m4 (gl_FUNC_DUP2):
29138         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29139         Check for getdtablesize.  If it's available, test a value just
29140         outside its range instead of testing 1000000.  When cross-compiling,
29141         guess that AIX will fail this improved test.
29143 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29145         printf, config.rpath: Port to FreeBSD 10.
29146         Problem reported by Tijl Coosemans in:
29147         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
29148         * build-aux/config.rpath (hardcode_libdir_flag_spec)
29149         (hardcode_direct): Simplify FreeBSD configuration.
29150         (library_names_spec): Don't mishandle FreeBSD 10+.
29151         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
29152         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
29153         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
29154         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
29155         Don't mishandle FreeBSD 10+ when cross-compiling.
29157         ftoastr: work around compiler bug in IBM xlc 12.1
29158         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
29159         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
29160         around a compiler bug in IBM xlc 12.1.0.0: it complains
29161         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
29162         _GL_FLT_PREC_BOUND.'
29164 2014-05-30  Kieran Colford  <colfordk@gmail.com>
29166         valgrind-tests: fixed misleading help message
29167         * m4/valgrind-tests.m4: The help message generated by configure
29168         implied that valgrind was disabled by default, which it wasn't.
29169         Adjusted the help message using s/enable/disable/ to clarify.
29171 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
29173         isfinite, isinf, isnan tests: fix for little-endian PowerPC
29174         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
29175         first double of a PowerPC "double double" pair.
29176         * tests/test-isinf.c (test_isinfl): Likewise.
29177         * tests/test-isnan.c (test_long_double): Likewise.
29178         * tests/test-isnanl.h (main): Likewise.
29179         * tests/test-signbit.c (test_signbitl): Likewise.
29181 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
29183         exclude-tests: port to AIX 7.1
29184         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
29185         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
29186         the regex code uses locks.
29188 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
29190         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
29191         Without this fix, Emacs would sometimes call sigprocmask instead
29192         of pthread_sigmask, which is a no-no in multithreaded applications.
29193         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
29194         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29195         Suppress check for pthread_sigmask working without -lpthread if
29196         the application always links with -lpthread.  Do not link with
29197         $LIBMULTITHREAD if gl_THREADLIB is not defined.
29198         * m4/timer_time.m4 (gl_TIMER_TIME):
29199         Require gl_THREADLIB only if it is defined.  Do not append
29200         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
29202 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
29204         gnulib-tool: wget translations using --no-verbose rather than --quiet
29205         This allows the user to see error messages if any (--quiet hides them)
29206         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
29208 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
29210         gnulib-tool: adjust translation wget to avoid a https redirection
29211         Context: http://translationproject.org/latest/gnulib redirects to
29212            https://translationproject.org/latest/gnulib/
29213         Rationale: if the user falls back to wget, she doesn't have rsync and
29214         is probably in a minimal build environment, where packages such as
29215         'ca-certificates' are missing as well, resulting in a failed (and
29216         difficult to detect since ignored) translation initial fetch.
29217         Consequently let's avoid https if possible, and add the missing
29218         trailing slash.  This also avoids an unnecessary 302 redirection.
29219         * gnulib-tool: Add trailing slash to gnulib URL.
29221 2014-05-22  Pádraig Brady  <P@draigBrady.com>
29223         getlogin_r-tests: check return value rather than errno
29224         * tests/test-getlogin_r.c (main): As per POSIX we should be
29225         verifying the return value from getlogin_r() rather than errno.
29227 2014-05-22  Pádraig Brady  <P@draigBrady.com>
29229         getlogin_r-tests: fix various issues in recent change
29230         * tests/test-getlogin_r.c: Include required headers that were
29231         missed in recent commit eec20b4e.
29232         Also consistently check the errno rather than the return value from
29233         getlogin_r as POSIX only specifies that non zero is returned on error.
29234         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
29236 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
29238         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
29239         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
29240         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
29241         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
29242         * lib/spawn-pipe.c:
29243         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
29244         and then 'int open64(const char *, int, ...);', which means the
29245         declaration for 'open' gets lost if we later '#undef open'.
29246         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
29247         where the compilation reported the non-fatal error "In function
29248         'openat_proc_name' ... warning: implicit declaration of function
29249         'open'".  In this case the error is relatively harmless, but in
29250         other cases it might not be so minor.
29252 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29254         xalloc: don't potentially generate invalid code for xmemdup calls
29255         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
29256         this function can initialize the newly-allocated storage with new
29257         pointers, which means this function is not malloc-like.  See:
29258         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
29260 2014-05-19  Pádraig Brady  <P@draigBrady.com>
29262         getlogin_r-tests: avoid false failure under sudo/ssh etc.
29263         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
29264         changes from commit 97249cf29 to not depend on environment variables.
29266 2014-05-18  Pádraig Brady  <P@draigBrady.com>
29268         getlogin-tests: avoid false failure under cron
29269         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
29270         since that's not what's under test.  Centos 6 was seen to return
29271         EINVAL for ttyname() when run from cron.
29273 2014-05-16  Jim Meyering  <meyering@fb.com>
29275         mbrtowc.m4: fix a comment typo
29276         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
29277         emitted documentation string.
29279 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
29281         mbrlen, mbrtowc: fix bug with empty input
29282         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
29283         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
29284         so this is mainly for documentation.
29285         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
29286         (gl_FUNC_MBRTOWC): Use it.
29287         * tests/test-mbrtowc.c (main): Test for the bug.
29289 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
29291         doc: document mbrtowc and mbrlen problem with empty input
29292         * doc/posix-functions/mbrlen.texi (mbrlen):
29293         * doc/posix-functions/mbrtowc.texi (mbrtowc):
29294         Document portability problem when the input string is empty.  See:
29295         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
29297         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
29298         Problem reported by Eli Zaretskii in:
29299         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
29300         * doc/posix-functions/execl.texi (execl):
29301         * doc/posix-functions/execle.texi (execle):
29302         * doc/posix-functions/execlp.texi (execlp):
29303         * doc/posix-functions/execv.texi (execv):
29304         * doc/posix-functions/execve.texi (execve):
29305         * doc/posix-functions/execvp.texi (execvp):
29306         Mention spawn+exit problem on non-Cygwin Windows platforms.
29308 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
29310         getlogin-tests: avoid false failure under sudo/ssh etc.
29311         * modules/getlogin-tests (configure.ac): Check for ttyname().
29312         * tests/test-getlogin.c (main): Don't depend on environment variables
29313         to correlate with getlogin(), since sudo and ssh etc. can tamper
29314         with the LOGNAME and USER env vars.  Instead lookup the name from
29315         the uid associated with the stdin tty.
29317 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
29319         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
29320         These were found when building the latest grep snapshot on IRIX 6.5.
29321         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
29322         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
29323         never used later.
29324         * lib/quotearg.c (quoting_options_from_style):
29325         * lib/xstrtol.c (__xstrtol):
29326         Use enum instead of 0, to pacify IRIX 6.5 cc.
29328 2014-04-18  Pádraig Brady  <P@draigBrady.com>
29330         gitlog-to-changelog: revert inclusion of git-log-fix file
29331         * build-aux/git-log-fix: Delete dummy file.
29332         * modules/gitlog-to-changelog: Don't reference (overwrite)
29333         the project specific git-log-fix file.
29335 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
29337         maint.mk: Relax the copyright check to cater for non FSF projects
29338         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
29339         to not require the "Free" suffix after the copyright years.
29341 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
29343         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
29344         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
29345         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
29346         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
29347         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
29349 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
29351         exclude: port to strict C99
29352         Strict C does not allow converting a function pointer to void *
29353         and vice versa.  Pass a pointer to a function pointer instead.
29354         * lib/exclude.c (add_exclude_file):
29355         Pass the address of the function pointer.
29356         (call_addfn): And deference the address here, to match.
29358 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
29360         regex: do not depend on malloc-gnu
29361         * modules/regex (Depends-on): Remove malloc-gnu.
29362         It's no longer needed, because of the 2012-12-29 patch
29363         "regex: port to hosts where malloc (0) == NULL".
29364         Reported by Nathan Kennedy in:
29365         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
29367 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
29369         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
29370         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
29371         * doc/posix-functions/expl.texi: Mention the workaround.
29373 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
29375         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
29376         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
29377         size to be zero even when the pointer is nonnull.  This
29378         accommodates the use case where P is malloc (0) and *PN is 0 on a
29379         host where malloc (0) yields nonnull.
29381 2014-04-09  Eric Blake  <eblake@redhat.com>
29383         fts: avoid unnecessary strlen calls
29384         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
29386 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29388         fts: avoid unnecessary strlen calls
29389         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
29390         when that can be faster than strlen.
29392 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29394         fts: avoid unnecessary strlen calls
29395         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
29396         (fts_build): Store the length of the dp->d_name entry in a local variable
29397         instead of calling strlen() several times via the above, removed macro.
29398         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
29399         run by ~4%, yet this reduces the execution time by about a third if run
29400         via "ltrace -c rm -rf some-dir".
29402 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29404         obstack: Remove ancient NeXTSTEP gcc support conditional
29405         This change will ease merging with glibc.  The "#if ... __NEXT__"
29406         causes a warning with -Wundef which glibc now enables by default.
29407         Problem reported by Will Newton in
29408         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
29409         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
29410         so go with that.
29411         * lib/obstack.h (__extension__):
29413 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29415         obstack: merge with glibc changes
29416         * lib/obstack.c, lib/obstack.h: Merge from glibc.
29417         This is mostly indenting and commentary changes.
29418         Instances of 'register' have been removed.
29420 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29422         strftime: wrap macros in "do {...} while(0)"
29423         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
29424         this macro in "do {...} while(0)" to prevent false use as a
29425         single statement, e.g., in an un-braced "{}" else-block.
29426         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
29427         (strftime_case_): Remove 'else' after 'goto' - which was the
29428         only non-fatal, un-braced use of one of the above macros.
29429         Spotted by coverity (NESTING_INDENT_MISMATCH).
29431 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29433         modechange: avoid memory leaks for invalid octal modes
29434         * lib/modechange.c (mode_compile): During the parsing of
29435         notations like +40, free the 'mc' buffer for invalid mode
29436         strings like +17777 (greater than the maximum octal mode),
29437         =18 (bad octal mode characters) or u=1 ('affected' with
29438         octal modes).
29439         Reproducer, e.g.:
29440             $ valgrind --leak-check=full chmod +17777 file
29441         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
29442         add notations +40, 00440, etc.".
29443         Spotted by coverity (RESOURCE_LEAK).
29445 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
29447         gitlog-to-changelog: include a dummy git-log-fix file
29448         Problem reported by Nathan Stratton Treadway in:
29449         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
29450         * build-aux/git-log-fix: New file.
29452 2014-03-13  Jim Meyering  <meyering@fb.com>
29454         gitlog-to-changelog: also include the file, git-log-fix
29455         * modules/gitlog-to-changelog (Files): Add git-log-fix.
29456         Reported by Assaf Gordon.
29458 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
29460         regex: port to OS X 10.8.5 en_US.UTF-8 locale
29461         This fixes a bug when ignoring case and when comparing the
29462         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
29463         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
29464         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
29465         titlecase letter is neither lowercase nor uppercase, but
29466         uppercasing the titlecase letter (via towupper) yields the
29467         uppercase letter, so the two letters should match when ignoring case.
29468         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
29469         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
29470         Don't test whether a character is lowercase before uppercasing it.
29472 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
29474         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
29475         This is basically one of the options Bruno Haible proposed in:
29476         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
29477         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
29478         * lib/stdint.in.h: Use it.
29479         * modules/stdint (Depends-on): Add sys_types.
29481 2014-02-26  Pádraig Brady  <P@draigBrady.com>
29483         parse-datetime: fix crash or infloop in TZ="" parsing
29484         * lib/parse-datetime.y (parse_datetime): Break out of the
29485         TZ="" parsing loop once the second significant " is found.
29486         Also skip over any subsequent whitespace to be consistent
29487         with the non TZ= case.
29488         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
29490 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
29492         savedir: new symbol for fast-read version
29493         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
29494         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
29495         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
29496         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
29498 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29500         unistd: port readlink to Mac OS X 10.3.9
29501         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
29502         around self-include problem in Mac OS X 10.3.9 when combined with
29503         readlink module.  Problem reported by Klaus Zietler in
29504         <http://bugs.gnu.org/16825>.
29506 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
29508         diffseq: remove TOO_EXPENSIVE heuristic
29509         Problem with diffutils reported by Vincent Lefevre in
29510         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
29511         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
29512         Although appropriate for circa-1993 hardware, these days the heuristic
29513         seems to be more trouble than it's worth.
29514         * lib/diffseq.h: Modernize citations.
29515         (struct context): Remove member too_expensive.
29516         All uses changed.
29517         (struct partition): Remove members lo_minimal, hi_minimal.
29518         All uses changed.
29519         (diag, compareseq): Remove arg find_minimal.  All uses changed.
29520         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
29521         1993 to make 'diff' run faster (but not as well) on large inputs.
29522         These days, computers are fast enough that it's typically better
29523         to run slower but more accurately.
29524         * lib/fstrcmp.c: Remove duplicate comment.
29525         * lib/fstrcmp.c (strcmp_bounded):
29526         * lib/git-merge-changelog.c (compute_differences):
29527         Adjust to diffseq.h changes.
29528         * NEWS: Document the change.
29530         savedir: simplify by using stpcpy
29531         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
29532         (streamsavedir): Use stpcpy instead.
29533         * modules/savedir (Depends-on): Add stpcpy.
29535 2014-02-21  Pádraig Brady  <P@draigBrady.com>
29537         spawn: fix link error on uclibc
29538         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
29539         to incorporate -lrt if needed (on uclibc for example).
29540         * modules/posix_spawn: Reference the substituted LIB.
29542 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
29543         timer: fix uClibc detection of threading
29544         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
29545         enabled in uClibc.
29547 2014-02-21  Eric Blake  <eblake@redhat.com>
29549         maintainer-makefiles: provide AC_PROG_SED for older autoconf
29550         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
29552 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
29554         exclude: add support for posix regexps
29556         This commit adds support for POSIX extended regular expressions
29557         and fixes a long-standing memory leak (pattern buffer was never
29558         freed).  It also implements a new interface function to read
29559         exclude patterns from a FILE, which passes an additional parameter
29560         to its callback function, thereby allowing to preserve its state
29561         between invocations.
29563         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
29564         (pattern_buffer): New struct.
29565         (exclude): New member patbuf.
29566         (exclude_add_pattern_buffer): New function.
29567         (free_exclude_segment): Free regexps.
29568         (free_exclude): Free allocated pattern buffers.
29569         (exclude_patopts): New function.
29570         (file_pattern_matches): Use exclude_patopts.
29571         (add_exclude): support regexps.
29572         (add_exclude_fp): New function.
29573         (add_exclude_file): Rewrite using add_exclude_fp.
29574         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
29575         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
29576         (add_exclude_fp)
29577         (add_exclude_file): Rewrite using add_exclude_fp.
29578         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
29579         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
29580         (add_exclude_fp)
29581         (exclude_add_pattern_buffer): New prototypes.
29582         * modules/exclude: Depends on regex and filename.
29584 2014-02-20  Eric Blake  <eblake@redhat.com>
29586         maintainer-makefiles: use $(SED) for syntax check
29587         * modules/maintainer-makefile (configure.ac): Check for sane sed.
29588         * top/maint.mk: Change sed to $(SED).
29590 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
29591             Paul Eggert  <eggert@cs.ucla.edu>
29593         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
29594         Patch based on an idea by Dick Streefland in
29595         <https://savannah.gnu.org/patch/?7892>.
29596         * NEWS: Document this.
29597         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
29598         (direntry_t, comparison_function): New types.
29599         (direntry_cmp_name): New function.
29600         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
29601         (streamsavedir, savedir): New arg OPTION.
29602         (streamsavedir): Simplify memory allocation.
29603         (fdsavedir): Remove.
29604         * lib/savedir.h (enum savedir_option): New type.
29605         (streamsavedir, savedir): New arg OPTION.
29606         (fdsavedir): Remove.
29608 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
29610         file-type: add support for doors and other less-common file types
29611         Problem with S_ISDOOR reported by Rich Burridge.
29612         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
29613         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
29614         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
29616 2014-01-23  Eric Blake  <eblake@redhat.com>
29618         pthread: work around winpthread header pollution on mingw
29619         * lib/time.in.h: Move pthread workarounds...
29620         * lib/pthread.in.h: ...here.
29621         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
29622         detect macro pollution on mingw.
29623         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
29625 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
29627         qacl: check for fchmod
29628         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
29629         and qset-acl.c both use HAVE_FCHMOD.
29631 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29633         fdopen-tests: port to Tru64
29634         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
29635         descriptor that is not open, as POSIX doesn't specify the
29636         resulting behavior and the test does not work on Tru64.
29637         Problem reported by Steven M. Schweda in:
29638         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
29640         stdalign: port to HP-UX compilers
29641         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
29642         if __HP_cc or __HP_aCC are nonzero.
29644 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
29646         strtoimax: port to platforms lacking 'long long'
29647         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
29648         check whether strtoll is declared, which causes the C file to
29649         wrongly report an error.  Problem reported by Steven M. Schweda in:
29650         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
29651         * lib/strtoimax.c (strtoull):
29652         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
29653         (strtoll): Declare only if HAVE_LONG_LONG_INT.
29655 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
29657         relocatable-perl: fix texi syntax
29658         * doc/relocatable-maint.texi: Escape braces.
29660 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
29662         relocatable-perl: like relocatable-script, but for Perl scripts
29663         * build-aux/relocatable.pl.in: Add.
29664         * doc/relocatable-maint.texi: Add documentation.
29665         * modules/relocatable-perl: Add.
29667 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
29669         tests: fix export bug in previous patch
29670         Problem reported by Jim Meyering.
29671         * tests/init.sh (re_shell): New var, which is exported instead of
29672         re_shell_.
29674         tests: simplify porting to Solaris 10 /bin/sh
29675         Some test cases in 'grep' need a shell that groks '$(';
29676         export re_shell_ for their benefit.  Problem reported for 'grep'
29677         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
29678         * tests/init.sh (re_shell_): Export if it's used.
29680 2014-01-06  Eric Blake  <eblake@redhat.com>
29682         md5, sha1, sha256, sha512: support older autoconf
29683         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
29684         for autoconf < 2.63b.
29686         include_next: port to autoconf 2.63
29687         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
29689 2014-01-04  Jim Meyering  <meyering@fb.com>
29691         maint: add a gnulib-local rule to keep non-ascii out of .texi files
29692         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
29693         so that "make sc_maint" will ding anyone who puts non-ascii
29694         in any of gnulib's .texi files.
29696 2014-01-03  Jim Meyering  <meyering@fb.com>
29698         freadable, fwritable, fwriting: declare with the "pure" attribute
29699         * lib/freadable.h (freadable): Declare with the "pure" attribute.
29700         * lib/fwritable.h (fwritable): Likewise.
29701         * lib/fwriting.h (fwriting): Likewise.
29702         Suggested by Bruno Haible.
29704         maint.mk: adapt openat.h-include-without-use test
29705         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
29706         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
29707         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
29708         With this change, running "make sc_maint" in gnulib's top-level
29709         directory now passes for me.
29711 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
29713         doc: use ASCII in .texi files where UTF-8 isn't needed
29714         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
29715         * doc/posix-functions/setkey.texi, doc/regex.texi:
29716         Use ASCII input, not UTF-8.
29718 2014-01-02  Jim Meyering  <meyering@fb.com>
29720         freading: declare with the "pure" attribute
29721         * lib/freading.h (freading): Declare with the "pure" attribute.
29723         manywarnings: remove -Wmudflap
29724         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
29725         it is no longer supported in gcc-4.9-to-be.
29727 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29729         relocatable-script: remove unused code
29730         Problem reported by Reuben Thomas in:
29731         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
29732         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
29734 2014-01-01  Jim Meyering  <meyering@fb.com>
29736         maint: fix public-submodule-commit to work with newer git
29737         * top/maint.mk (public-submodule-commit): Remove excess quoting.
29738         We were over-quoting the test arguments, and somewhere prior to
29739         version 1.8.5.2.229, git stopped removing those excess quotes,
29740         which made the test fail, since the unexpanded strings would
29741         always differ; using GIT_TRACE=1 confirmed that the git merge-base
29742         command wasn't even being run.
29744 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29746         doc: update main copyright year
29747         * doc/gnulib.texi: Update copyright date.
29749 2014-01-01  Eric Blake  <eblake@redhat.com>
29751         version-etc: new year
29752         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
29753         * all files: run 'make update-copyright'
29755 2013-12-24  Eric Blake  <eblake@redhat.com>
29757         passfd: give nicer error for recvfd at eof
29758         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
29759         * tests/test-passfd.c (main): Enhance test to cover this.
29761 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29763         gettimeofday: port recent C++ fix to Emacs
29764         Without this further patch, Emacs won't build due to
29765         the portcheck failing.  Also, this simplifies the patch a bit.
29766         * lib/time.in.h (localtime, gmtime): Don't replace unless
29767         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
29768         * lib/time.in.h (localtime, gmtime):
29769         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
29770         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29771         * modules/time (time.h):
29772         Don't worry about the possibility of localtime and gmtime
29773         being absent; they're present in all C libraries we know about.
29774         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29775         Don't assume sys_time is present and has been initialized.
29776         Instead, use a hack that should work even if it hasn't been.
29777         Don't use a portcheck for gmtime or localtime; this supports
29778         the hack.
29779         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
29781 2013-12-17  John W. Eaton  <jwe@gnu.org>
29783         gettimeofday: fix C++ crosscompilation
29785         Never replace gmtime and localtime by macros when compiling with
29786         C++, this prevents <ctime> from being included.
29788         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
29789         define gmtime and localtime as preprocessor macros.  Instead
29790         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
29791         REPLACE_LOCALTIME substitutions.
29792         * lib/time.in.h: Declare gmtime and localtime when needed.
29793         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
29794         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
29795         * modules/time: Depend on gettimeofday, and substitute the above
29796         variables in time.h.
29798 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29800         qacl: port to Windows better
29801         See Eli Zaretskii in
29802         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
29803         * lib/file-has-acl.c (acl_access_nontrivial):
29804         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
29805         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
29807 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
29809         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
29810         * lib/gl_openssl.h: Cast void pointers to a specific type.
29812 2013-12-07  Pádraig Brady  <P@draigBrady.com>
29814         open-tests: fix build failure with -Werror=old-style-declaration
29815         * tests/test-open.h: Reorder the inline to avoid the issue.
29817 2013-12-07  Pádraig Brady  <P@draigBrady.com>
29819         md5, sha1, sha256, sha512: fix link error with partial libcrypto
29820         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
29821         init time, so that if early checks find crypto routines,
29822         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
29823         avoiding link failures.
29825 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29827         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
29828         This provides a new way to specify the default for
29829         gl_CRYPTO_CHECK, one that is reflected in the --help message.
29830         Emacs uses this, as well as the old way.
29831         This attempts to implement a suggestion by Pádraig Brady in
29832         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
29833         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
29834         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
29836         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
29837         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
29838         Add support for a new option, --with-openssl=auto, which causes
29839         the library to be used if available and silently ignored if not.
29840         Add support to allow configure.ac to specify its own
29841         default, by setting with_openssl_default before invoking gl_INIT.
29843 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
29845         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
29846         Problem reported by Daiki Ueno in:
29847         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
29848         * tests/test-open.h (__always_inline):
29849         New macro, if not already defined.
29850         (test_open): Use it.
29852 2013-12-04  Eric Blake  <eblake@redhat.com>
29854         include_next: minimize code duplication
29855         * modules/include_next (Depends-on): Add absolute-header.
29856         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
29857         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
29859 2013-12-04  Pádraig Brady  <P@draigBrady.com>
29861         getcwd: fix compile error in configure check
29862         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
29864 2013-12-04  Pádraig Brady  <P@draigBrady.com>
29866         regex: suppress core dumps from detection code
29867         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
29868         to suppress core dumps that may well occur on glibc systems.
29869         These core dumps might not be cleaned up automatically, or could
29870         trigger some system core dump handling logic.
29872 2013-12-03  Pádraig Brady  <P@draigBrady.com>
29874         md5, sha1, sha256, sha512: support mandating use of openssl
29875         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
29876         description, to list the now 3 separate options.  also don't
29877         mention the default=no, since this is implicit given the option
29878         is described as --with-openssl rather than --without-openssl.
29879         If projects change the default they're free to document that.
29880         with --with-openssl[=yes] we now error out when the specified
29881         hash algorithm is not available in libcrypto.
29883 2013-12-03  Ivailo  <xakepa10@gmail.com>
29885         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
29886         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
29887         -Wformat-nonliteral checks, as these edge cases are part of the test.
29889 2013-12-03  Eric Blake  <eblake@redhat.com>
29891         regex: avoid glibc deadlock during configure
29892         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
29893         glibc bug 15078 in turn triggers bug 16159.
29894         Reported by Michal Privoznik.
29896 2013-12-02  Pádraig Brady  <P@draigBrady.com>
29898         md5, sha1, sha256, sha512: use openssl routines if available.
29899         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
29900         routines will be used if available, requiring apps to link @LIB_CRYPTO@
29901         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
29902         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
29903         in the standard system location.
29904         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
29905         * m4/sha256.m4: Likewise with SHA256.
29906         * m4/sha512.m4: Likewise with SHA512.
29907         * m4/md5.m4: Likewise with MD5.
29908         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
29909         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
29910         * lib/sha256.h: Likewise with SHA256.
29911         * lib/sha512.h: Likewise with SHA512.
29912         * lib/md5.h: Likewise with MD5.
29913         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
29914         * lib/sha256.c: Likewise with SHA256.
29915         * lib/sha512.c: Likewise with SHA512.
29916         * lib/md5.c: Likewise with MD5.
29917         * modules/crypto/sha1 (Link:): Add the new optional lib.
29918         (Depends-on:): Add dependency on extern-inline.
29919         * modules/crypto/sha256: Likewise.
29920         * modules/crypto/sha512: Likewise.
29921         * modules/crypto/md5: Likewise.
29922         * modules/crypto/sha1-tests: Reference the lib here too.
29923         * modules/crypto/md5-tests: Likewise.
29924         * modules/crypto/gc-des-tests: Likewise.
29925         * modules/crypto/gc-hmac-md5-tests: Likewise.
29926         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29927         * modules/crypto/gc-hmac-sha256-tests: Likewise.
29928         * modules/crypto/gc-hmac-sha512-tests: Likewise.
29929         * modules/crypto/gc-md5-tests: Likewise.
29930         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29931         * modules/crypto/gc-sha1-tests: Likewise.
29932         * modules/crypto/gc-tests: Likewise.
29933         * modules/crypto/hmac-md5-tests: Likewise.
29934         * modules/crypto/hmac-sha1-tests: Likewise.
29935         * modules/crypto/hmac-sha256-tests: Likewise.
29936         * modules/crypto/hmac-sha512-tests: Likewise.
29938 2013-11-29  RV1971  <rv1971@web.de>
29940         base64: (trivial) fix compilation regression on some compilers
29941         * lib/base64.c: Don't return the void function,
29942         instead split to a separate return statement.
29944 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
29946         ignore-value: revert previous code change
29947         * lib/ignore-value.h (ignore_value): Use __extension__ and
29948         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
29949         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
29950         Change the comment to try to explain this better.
29952 2013-11-27  Pádraig Brady  <P@draigBrady.com>
29954         selinux-h: improve stub types and add more stub functions
29956         * lib/se-selinux.in.h: Change security_context_t to a typedef
29957         rather than a define, as it's a pointer type and so is better
29958         as a typedef to avoid issues declaring multiple variables
29959         with the comma operator.  Also add stub for string_to_security_class().
29960         * lib/se-context.in.h: Add stub functions for
29961         context_{type,range,role,user}_get().
29963 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
29965         ignore-value: prefer GCC version back through 2.0
29966         The code didn't match the comments, so I did a bit of software
29967         archaeology.  GCC 2.0 seems to support __extension__ and
29968         __typeof__, so fix both code and comments to use 2.0.
29969         * lib/ignore-value.h (ignore_value): Use __extension__ and
29970         __typeof__ for GCC 2.0 through 3.3, too.
29972 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
29974         pty: Activate the signature wrapper of forkpty.
29975         The intended preprocessor macro HAVE_FORKPTY is
29976         never defined, yet `lib/forkpty.c' depends on it.
29978         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
29979         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
29980         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
29982 2013-11-18  Jim Meyering  <meyering@fb.com>
29983         and Paul Eggert  <eggert@cs.ucla.edu>
29985         quotearg: don't attempt to store 1 << 31 into an "int"
29986         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
29987         gcc's new -fsanitize=undefined and running its tests triggered some
29988         new test failures due to undefined behavior, all with this diagnostic:
29989           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
29990             cannot be represented in type int
29991         Rather than shifting "1" left to form a mask, shift the bits right and
29992         simply use "1" as the mask.
29994 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
29996         error: depend on stdio
29997         Problem reported by Nikos Mavrogiannopoulos in
29998         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
29999         * modules/error (Depends-on): Add stdio.
30001 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
30003         * doc/relocatable-maint.texi (Supporting Relocation): Improve
30004         wording.
30005         Reported by Reuben Thomas <rrt@sc3d.org>.
30007 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
30009         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
30010         New function and macro, to work around _DARWIN_C_SOURCE problem.
30011         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
30013 2013-11-11  Pádraig Brady  <P@draigBrady.com>
30015         base64: provide a fast path for encoding well sized buffers
30016         Avoid conditionals in the base64 encoding loop,
30017         which was seen to give 60% better throughput.
30018         * lib/base64.c (base64_encode_fast): A new function to be called
30019         when we don't want to NUL terminate, and we have enough space
30020         in the output to encode the given input.
30021         (base64_encode): Call the _fast() version when appropriate.
30022         Also remove a redundant mask with 0x3F on the first encoded byte.
30024 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
30026         extern-inline: port better to OS X 10.9
30027         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
30028         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
30029         OS X 10.9, except for g++ where the bug is still present.
30030         See <http://trac.macports.org/ticket/41033>.
30032 2013-11-08  Eric Blake  <eblake@redhat.com>
30034         fpending: fix regression on DragonFly BSD
30035         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
30036         * lib/fpending.h (__fpending): Don't declare twice.
30037         Reported by GW in
30038         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
30040 2013-11-05  Jim Meyering  <meyering@fb.com>
30042         hash: relax license to LGPLv2+, for libguestfs
30043         * modules/hash (License): Change from GPL to LGPLv2+.
30045 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30047         intprops: port to Oracle Studio c99
30048         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
30049         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
30051 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30053         obstack: pacify HP C
30054         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
30055         warning "conversion from pointer to smaller integer" from HP
30056         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
30057         C89 or later nowadays, so cast to void instead of int.  Privately
30058         reported by H.Merijn Brand.  Also, change header to match glibc's,
30059         to make checking against glibc easier.
30061 2013-10-29  Jim Meyering  <meyering@fb.com>
30063         maint.mk: prefer gpgv2 over gpgv
30064         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
30065         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
30066         Reported by Gary Vaughan.
30068 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
30070         isnan: port to VAX
30071         Reported by John Klos for NetBSD-5/VAX in
30072         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
30073         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
30074         (FUNC): Use it.
30076 2013-10-28  Jim Meyering  <meyering@fb.com>
30078         gnulib-tool: protect against CDPATH
30079         * gnulib-tool: Many "cd" built-in functions print a directory name
30080         to stdout when CDPATH is set, e.g.,
30081           $ bash -c 'CDPATH=/; cd tmp'
30082           /tmp
30083         Unset it, when possible.  Prompted by a comment from Bruce Korb.
30085         maint.mk: restore functionality removed by recent change...
30086         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
30087         the context of a shallow-cloned gnulib repository: "git describe"
30088         would fail in such a directory.  However, that change made it so
30089         the reported gnulib revision no longer includes the version number
30090         or a commit count, even when run from a full clone.
30091         * top/maint.mk (gnulib-version): Use the full "git describe"
30092         output when possible, e.g., the form above, rather than the
30093         abbreviated, no-tag, no-commit-count string, and fall back to
30094         using a 10-byte hash, rather than the default minimal-length
30095         hash prefix, since while the minimal-length one may be fine today,
30096         it is likely not to be unique for very long.
30098 2013-10-26  Jim Meyering  <meyering@fb.com>
30100         maint.mk: fix "release" target to build _version
30101         This fixes a bug in README-release whereby following the outlined
30102         steps, one would publish a tarball whose programs would report
30103         --version output not consistent with the package version number.
30104         This bug caused grep-2.15 to produce a grep program whose
30105         --version option made it print 2.14.56-1e3d rather than 2.15.
30106         * top/maint.mk (release): Making this target build "_version"
30107         ensures that the new version number is reflected in configure.
30109 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
30111         install-reloc: Support multi-binary installation.
30112         * build-aux/install-reloc: Support installing multiple programs in
30113         one invocation, as done by Automake starting with commit
30114         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
30115         Haible <bruno@clisp.org>, archived at
30116         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
30117         Reported by Sylvain <beuc@gnu.org>.
30119 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30121         selinux-h: Really build without selinux when library is missing.
30122         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
30123         continue without selinux, as already told in the warning message.
30125 2013-10-21  Jim Meyering  <meyering@fb.com>
30127         regex: also remove dependency on HAVE_WCSCOLL
30128         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
30130 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
30132         xfreopen: Fix typo. s/frepoen/freopen/
30133         * lib/xfreopen.c: Fix description.
30134         * modules/xfreopen: Likewise.
30136 2013-10-21  Jim Meyering  <meyering@fb.com>
30138         regex: don't depend on wcscoll
30139         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
30140         It is no longer used.
30142 2013-10-20  Jim Meyering  <meyering@fb.com>
30144         error: add the printf attribute to a static function
30145         * lib/error.c (error_tail): Add the printf attribute, to placate
30146         gcc's -Werror=suggest-attribute=format option.
30148 2013-09-30  Jim Meyering  <meyering@fb.com>
30150         fpending, obstack, strerror-override: use pure+const function attrs
30151         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
30152         * lib/obstack.c (_obstack_allocated_p): Likewise.
30153         * lib/obstack.h (_obstack_memory_used): Likewise.
30154         (_obstack_memory_used): Likewise.
30155         * lib/strerror-override.h (strerror_override): Declare with
30156         the "const" attribute.
30158 2013-10-18  Eric Blake  <eblake@redhat.com>
30160         extern-inline: make safe for -Wundef usage
30161         Reported by Vladimir 'phcoder' Serbinenko in
30162         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
30163         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
30165 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30167         mkfifo-tests, etc.: allow HP-UX 11.11 bug
30168         Problem reported by Daniel Richard G. in
30169         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
30170         * doc/posix-functions/mkfifo.texi (mkfifo):
30171         * doc/posix-functions/mkfifoat.texi (mkfifoat):
30172         * doc/posix-functions/mknod.texi (mknod):
30173         * doc/posix-functions/mknodat.texi (mknodat):
30174         Document the HP-UX 11.11 bug.
30175         * tests/test-mkfifo.h (test_mkfifo):
30176         Allow the HP-UX 11.11 bug.
30178 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
30180         acl: allow cross-compilation to Gentoo
30181         Problem reported by Gabriel Marcano in
30182         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
30183         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
30184         test only whether it links.
30186 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30188         mgetgroups: remove dependency on realloc-gnu
30189         The dependency violates the comment in realloc-gnu, which
30190         says that tests can't depend on realloc-gnu; some tests depend
30191         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
30192         Problem reported by Daniel Richard G. in
30193         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
30194         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
30195         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
30196         not realloc-gnu.
30198 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30200         regex-tests: port to HP-UX 11.11
30201         Problem reported by Daniel Richard G. in
30202         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
30203         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
30205 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30207         verify: document some 'assume' pitfalls
30208         * doc/verify.texi (Compile-time Assertions):
30209         Mention that 'assume (E)' can sometimes slow things down.
30210         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
30212 2013-10-10  Eric Blake  <eblake@redhat.com>
30214         strtoumax: fix typo in previous commit.
30215         * modules/strtoumax (Depends-on): Fix typo.
30216         * modules/strtoimax (Depends-on): Likewise.
30218 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30220         strtoumax: port to Solaris 8
30221         This problem was introduced in the recent HP-UX patch.
30222         Reported by Tom G. Christensen in
30223         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
30224         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
30225         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
30227 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
30229         strtoimax, strtoumax: port to HP-UX 11.11
30230         Problem reported by Daniel Richard G. in
30231         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
30232         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
30233         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
30234         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
30235         REPLACE_STRTOUMAX.
30236         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
30237         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
30238         Replace the function if defined as a macro but not as a function.
30239         * modules/inttypes-incomplete (inttypes.h): Substitute
30240         REPLACE_STRTOUMAX.
30241         * modules/strtoumax (configure.ac): Replace strtoumax if
30242         REPLACE_STRTOUMAX.
30244 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30246         strtoimax: port to HP-UX 11.11
30247         Problem reported by Daniel Richard G.
30248         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
30249         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
30250         they might clash with inttypes.h.
30252 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30254         New module 'count-trailing-zeros'.
30255         * MODULES.html.sh: Mention it.
30256         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
30257         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
30258         * modules/count-trailing-zeros-tests:
30259         * tests/test-count-trailing-zeros.c:
30260         New files.
30262         count-leading-zeros: port to MSC; support types wider than 64 bits
30263         The ideas behind the MSC port are stolen from Emacs.
30264         * lib/count-leading-zeros.h:
30265         Don't include verify.h: it's no longer needed, as types wider than
30266         64 bits are now supported.
30267         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
30268         performance with MSC.  All uses changed.  Do not assume that TYPE
30269         has at most 64 bits.
30270         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
30271         All uses changed.  Fold the subtraction from 31 into the table.
30273         count-one-bits: port to MSC; support types wider than 64 bits
30274         The ideas behind the MSC port are stolen from Emacs.
30275         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
30276         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
30277         Don't include verify.h: it's no longer needed, as types wider than
30278         64 bits are now supported.
30279         (COUNT_ONE_BITS_GENERIC): New macro.
30280         (popcount_supported) [_MSC_VER]: New inline function.
30281         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
30282         performance with MSC.  All uses changed.  Do not assume that TYPE
30283         has at most 64 bits.
30284         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
30286 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
30288         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
30289         * lib/mountlist.c (read_file_system_list): fix leak of directory
30290         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
30292 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30294         tests: improve diagnostic when an assertion fails
30295         * tests/macros.h (ASSERT): Report the assertion that failed.
30297 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30299         verify: new macro 'assume'
30300         This is taken from Emacs, and should be generally useful.
30301         * doc/verify.texi (assume): Document it.
30302         * lib/verify.h (assume): New macro.
30303         (__has_builtin): Expand to 0 if not defined.
30305 2013-09-26  Eric Blake  <eblake@redhat.com>
30307         dup2, dup3: work around another cygwin crasher
30308         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
30309         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
30310         * tests/test-dup2.c (main): Likewise.
30311         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
30312         * lib/dup3.c (dup3): Likewise.
30313         * doc/posix-functions/dup2.texi (dup2): Document it.
30314         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30316         getdtablesize: work around cygwin issue
30317         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
30318         * modules/getdtablesize (configure.ac): Build replacement.
30319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
30320         * modules/unistd (Makefile.am): Expose the witness.
30321         * lib/unistd.in.h (getdtablesize): Declare replacement.
30322         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
30323         * tests/test-getdtablesize.c (main): Test it.
30324         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
30326 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
30328         pmccabe2html: escaping of special characters
30329         Escape all '<', '>', and '&' in HTML output.
30330         * build-aux/pmccabe2html (html_fnc): Call gsub()
30331         instead of sub() to capture all '<', '>', and '&'.
30332         Neither of '<' and '>' is special in a regexp,
30333         so first arguments to gsub() are corrected. Also,
30334         in replacement strings, ampersand must be escaped.
30335         Finally, '&' must be handled first, then '<' and '>'.
30337 2013-09-24  Eric Blake  <eblake@redhat.com>
30339         manywarnings: enable nicer gcc warning messages
30340         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
30341         some -f options for optimal warnings.
30343 2013-09-21  Jim Meyering  <meyering@fb.com>
30345         timespec: use the new TIMESPEC_RESOLUTION in a few more places
30346         * lib/timespec-add.c (timespec_add): Also replace 999999999
30347         with TIMESPEC_RESOLUTION - 1.
30348         * lib/timespec-sub.c (timespec_sub): Likewise.
30350 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30352         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
30353         Problem reported by Dagobert Michelsen via Eric Blake in
30354         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
30355         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
30356         not AC_COMPILE_IFELSE.
30358 2013-09-23  Eric Blake  <eblake@redhat.com>
30360         configmake: support new --runstatedir option
30361         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
30362         even if autoconf was too old to provide the command line option.
30363         * modules/configmake (Makefile.am): Propagate it to .h file.
30365 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30367         ctype, string: depend on extern-inline
30368         This is needed to complete the recent OS X fixes.
30369         Also, fix related documentation as suggested by Eric Blake.
30370         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
30371         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
30372         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
30373         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
30374         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
30375         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
30376         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
30377         * doc/posix-functions/toupper.texi:
30378         List the 'ctype' gnulib module.
30379         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
30380         * doc/posix-functions/strncpy.texi:
30381         List the 'string' gnulib module.
30382         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
30383         Add string.
30384         * modules/ctype, modules/string (Depends-on): Add extern-inline.
30386 2013-09-19  Pádraig Brady  <P@draigBrady.com>
30388         userspec: support optional parameters to parse_user_spec()
30389         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
30390         then avoid group processing and treat the full spec as a user.
30391         (parse_with_separator): Allow the USERNAME and GROUPNAME to
30392         be optional params (NULL), in which case they're ignored.
30394 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
30396         timespec: new function make_timespec, and new constants
30397         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
30398         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
30399         (make_timespec): New function.
30400         * lib/dtotimespec.c (dtotimespec):
30401         * lib/timespec-add.c (timespec_add):
30402         * lib/timespec-sub.c (timespec_sub):
30403         * lib/utimens.c (validate_timespec):
30404         * lib/utimensat.c (rpl_utimensat):
30405         Use these new constants and functions.
30407         stdio: OS X port of putc_unlocked + extern inline
30408         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
30409         * doc/posix-functions/putc_unlocked.texi:
30410         * doc/posix-functions/putchar_unlocked.texi:
30411         Document this portability problem.
30413         signal: OS X port of sigaddset etc. + extern inline
30414         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
30415         (sigismember): #undef on problematic Apple platforms.
30416         * doc/posix-functions/sigaddset.texi:
30417         * doc/posix-functions/sigdelset.texi:
30418         * doc/posix-functions/sigemptyset.texi:
30419         * doc/posix-functions/sigfillset.texi:
30420         * doc/posix-functions/sigismember.texi:
30421         Document this portability problem.
30423         extern-inline: do not always suppress extern inline on OS X
30424         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
30425         extern inline on Apple only if the particular compile-time
30426         configuration is known to have the problem.
30427         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
30428         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
30429         other Gnulib modules.
30431         extern-inline: document fixes for ctype and wctype macros
30432         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
30433         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
30434         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
30435         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
30436         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
30437         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
30438         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
30439         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
30440         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
30441         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
30442         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
30443         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
30444         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
30445         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
30446         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
30447         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
30448         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
30449         * doc/posix-functions/strncpy.texi:
30450         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
30451         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
30452         Document that Gnulib fixes portability problems with these
30453         functions on OS X 10.8 and earlier when called from plain inline
30454         or extern inline functions.
30456 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
30458         fflush, freadahead, fseeko: Fix for Android
30459         Suggested by Bruno Haible in:
30460         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
30461         * lib/stdio-impl.h: Use local __sfileext definition.
30463 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
30465         pmccabe2html: Portability to other awk versions.
30466         The functions systime() and strftime() are available
30467         in Gawk only.  Properly close two HTML-tags 'style'
30468         and 'span'.
30469         * build-aux/pmccabe2html (BEGIN): Store timing
30470         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
30471         systime() in HTML_COMMENT.
30472         (html_header): Correctly close tag 'style'.
30473         (END): Replace strftime() by CHRONOS_TIME.  Close
30474         tag 'span' correctly, not as 'div'.
30476 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
30478         getgroups: statement without effect
30479         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
30480         Change equality conditional to expected assignment.
30482 2013-09-09  Eric Blake  <eblake@redhat.com>
30484         glob: fix compilation
30485         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
30487 2013-09-07  Eric Blake  <eblake@redhat.com>
30489         glob: fix build for platforms without __THROW
30490         * lib/glob.in.h (__THROW): Add definition again.
30492 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
30494         regex-quote: fix buffer access out of bounds
30495         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
30496         * lib/regex-quote.c (regex_quote_spec_pcre):
30497         Fix typo that resulted in an out-of-bounds read.
30499 2013-09-04  Eric Blake  <eblake@redhat.com>
30501         glob: avoid -Wattribute warnings on glibc
30502         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
30503         __THROWNL, not __THROW, on static functions.
30504         * lib/glob.in.h (__THROW): Adjust...
30505         (__THROWNL): ...accordingly.
30507 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
30509         headers: check that _GL_INLINE_HEADER_BEGIN is defined
30510         Suggested by Bruce Korb in:
30511         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
30512         * doc/extern-inline.texi (extern inline):
30513         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
30514         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
30515         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
30516         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
30517         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
30518         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
30519         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
30520         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
30521         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
30522         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
30523         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
30524         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
30525         * lib/xtime.h:
30526         Check that _GL_INLINE_HEADER_BEGIN is defined.
30528 2013-08-29  Pádraig Brady  <P@draigBrady.com>
30530         bootstrap: remove the --version requirement from ancillary tools
30531         * build-aux/bootstrap (check_exists): A new refactored function to
30532         determine if a command exists.
30533         (find_tool): Use the new function which does not require the
30534         --version option to be supported.
30535         (check_versions): Use the new function.
30537 2013-08-26  Simon Josefsson  <simon@josefsson.org>
30539         gc: support HMAC-SHA256 and HMAC-SHA512.
30540         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
30541         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
30542         functions.
30543         (gc_hmac_md5): Use symbolic constant.
30544         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
30545         (gc_hmac_sha256, gc_hmac_sha512): New functions.
30546         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
30547         * m4/sha256.m4: Protect against empty expansion.
30548         * m4/sha512.m4: Likewise.
30549         * lib/hmac-sha256.c: New file.
30550         * lib/hmac-sha512.c: Likewise.
30551         * m4/gc-hmac-sha256.m4: Likewise.
30552         * m4/gc-hmac-sha512.m4: Likewise.
30553         * m4/gc-sha256.m4: Likewise.
30554         * m4/gc-sha512.m4: Likewise.
30555         * modules/crypto/gc-hmac-sha256: Likewise.
30556         * modules/crypto/gc-hmac-sha256-tests: Likewise.
30557         * modules/crypto/gc-hmac-sha512: Likewise.
30558         * modules/crypto/gc-hmac-sha512-tests: Likewise.
30559         * modules/crypto/hmac-sha256: Likewise.
30560         * modules/crypto/hmac-sha256-tests: Likewise.
30561         * modules/crypto/hmac-sha512: Likewise.
30562         * modules/crypto/hmac-sha512-tests: Likewise.
30563         * tests/test-gc-hmac-sha256.c: Likewise.
30564         * tests/test-gc-hmac-sha512.c: Likewise
30565         * tests/test-hmac-sha256.c: Likewise.
30566         * tests/test-hmac-sha512.c: Likewise
30568 2013-08-24  Daiki Ueno  <ueno@gnu.org>
30570         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
30571         of AC_CHECK_DECLS.
30573 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30575         selinux-at: omit unnecessary include
30576         * lib/selinux-at.c: Don't include dosname.h; not needed, since
30577         this source file doesn't use its macros, and subsidiary files that
30578         use the macros already include it.
30580 2013-08-21  Eric Blake  <eblake@redhat.com>
30582         d-ino: avoid false negative on symlink
30583         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
30584         Reported by Stephane Chazelas.
30586 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
30588         bootstrap: port to OpenBSD sed
30589         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
30590         does not interpret `-' as a file argument to mean stdin.
30592 2013-08-15  Eric Blake  <eblake@redhat.com>
30594         warnings: minor optimization
30595         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
30597         warnings: check -Wfoo rather than -Wno-foo
30598         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
30599         -Wno-, test if the compiler recognizes the positive form instead.
30601 2013-08-15  Karl Berry  <karl@gnu.org>
30603         * config/srclist-update: add option "doclicense" to placate
30604         pulling *.texi files from Emacs.  Write terse usage
30605         documentation at the top.
30607 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
30609         xvasprintf-tests: port to GCC with hardening flags
30610         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
30611         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
30612         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
30614 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30616         fpending: port to recent Cygwin change to stdio_ext.h
30617         Reported by LRN in
30618         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
30619         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
30620         just declare __fpending unless it's a macro.
30621         A duplicate decl shouldn't hurt.
30622         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
30623         call compiles and links, instead of separately checking for
30624         decl and lib function.
30625         * modules/fpending (configure-ac):
30626         Adjust to fpending.m4's renaming of shell variable.
30628 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30630         sys_time: port to OpenBSD
30631         * lib/sys_time.in.h: Simply delegate to the system's header
30632         in the BSDish cases as well.  Problem reported by Mike Miller in
30633         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
30634         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
30635         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
30636         wider than time_t.
30638 2013-08-09  Pádraig Brady  <P@draigBrady.com>
30640         bootstrap: support checksum utils having -c but not --status
30641         * build-aux/bootstrap: Only look for sha1sum if updating po files.
30642         Add sha1 to the list of supported checksum utils since it's now
30643         supported through adjustments below.
30644         (update_po_files): Remove the use of --status
30645         in a way that will suppress all error messages, but since this is
30646         only used to minimize updates, it shouldn't cause an issue.
30647         Exit early if there is a problem updating the po file checksums.
30648         (find_tool): Remove the check for --version support as this
30649         is optional as per commit 86186b17.  Don't even check for the
30650         presence of the command as if that is needed, it's supported
30651         through configuring prerequisites in bootstrap.conf.
30652         Prompt that when a tool isn't found, one can define an environment
30653         variable to add to the hardcoded search list.
30655 2013-08-05  Jim Meyering  <meyering@fb.com>
30657         regex: port to non-glibc/lock-using systems
30658         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
30659         system with GNULIB_LOCK would fail due to absence of the
30660         included "glthread/lock.h".  This would affect any package
30661         for which the "lock" module is used only by the regex module,
30662         and not explicitly used.
30663         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
30664         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
30665         Add a dependency on the "lock" module.
30667 2013-07-20  Daiki Ueno  <ueno@gnu.org>
30669         localecharset: make locale_charset thread-safe on Mac OS X
30670         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
30671         instead of MB_CUR_MAX.
30673 2013-07-20  Daiki Ueno  <ueno@gnu.org>
30675         gettext: update to version 0.18.3
30676         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
30677         require AC_PROG_SED to allow user to specify custom sed command when
30678         generating en@quot PO file.
30680 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
30682         bootstrap: use correct source when copying build-aux files
30683         * build-aux/bootstrap (gnulib_extra_files): This variable is
30684         relative to upstream gnulib layout, not downstream.
30686 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
30688         tmpdir: fix bug in VMS port
30689         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
30690         See Steven M. Schweda in
30691         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
30693 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30695         tmpdir: port to VMS, to // != /, and to long dirs
30696         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
30697         __secure_getenv, so that we're more like the glibc version.
30698         All uses changed.
30699         (path_search): Don't put slash after directory if __VMS.
30700         Problem reported by Steven M. Schweda in
30701         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
30702         Simplify code to add slash; no need for a loop.
30703         Do not remove trailing slash from "//".
30704         Do not assume dlen <= INT_MAX.
30706 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
30708         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
30709         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
30710         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
30711         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
30713         accept4, dup3, pipe2: port to Cygwin
30714         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
30715         * lib/accept4.c (accept4) [O_BINARY]:
30716         * lib/dup3.c (dup3) [O_BINARY]:
30717         * lib/pipe2.c (pipe2) [O_BINARY]:
30718         Use set_binary_mode, not setmode.
30719         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
30720         * modules/binary-io (Depends-on): Remove module indicator.
30721         These last two bits undo the previous change to pipe2 and binary-io.
30723 2013-07-09  Pádraig Brady  <P@draigBrady.com>
30725         mountlist: add support for deallocating returned list entries
30726         * lib/mountlist.c (free_mount_entry): A new exported function
30727         to deallocate a mount list entry.
30728         (read_file_system_list): Refactor to use the new deallocation function.
30729         Suggested by Anton Ovchinnikov.
30731 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30733         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
30734         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
30735         * lib/stdalign.in.h (_Alignas, _Alignof):
30736         Port to FreeBSD 9.1, and to C11 and C++11.
30737         (_Alignas): Also support ICC.
30738         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
30739         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
30741 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30743         fnmatch: don't goto over declaration
30744         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
30745         undefined behavior for goto over a declaration.
30746         Problem reported by Charlie Brown in
30747         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
30749         pipe2: decouple from binary-io a bit
30750         This is for Emacs, which needs pipe2 but not binary-io.
30751         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
30752         * modules/binary-io (Depends-on): Add module indicator.
30754 2013-07-03  Eric Blake  <eblake@redhat.com>
30756         mgetgroups: relax license to LGPLv2+
30757         * modules/getugroups (License): Change from GPLv3+.
30758         * modules/mgetgroups (License): Likewise.
30759         * modules/getgroups (License): Change from LGPLv3+.
30761         xalloc-oversized: relax license to LGPLv2+
30762         * modules/xalloc-oversized (License): Change from GPLv3+.
30764         nproc: relax license to LGPLv2+
30765         * modules/nproc (License): Change from LGPLv3+.
30767         bootstrap: honor --no-git
30768         * build-aux/bootstrap: Don't even try to use git when user is
30769         pointing to a static checkout.
30771 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30773         ignore-value: port to gcc -pedantic
30774         * lib/ignore-value.h (ignore_value):
30775         Port to gcc -pedantic, by using __extension__.
30776         Reindent as per usual gnulib style nowadays.
30777         Simplify GCC version check.
30779 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
30781         extern-inline: port to gcc -std=c89
30782         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
30783         Do not use __gnu_inline__ if pedantic and pre-C99.
30785 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
30787         doc: document extern-inline
30788         * doc/extern-inline.texi: New file.
30789         * doc/gnulib.texi (alloca-opt): Include it.
30790         * m4/extern-inline.m4: Move some comments to documentation,
30791         and others closer to what they describe.
30793         doc: chatter less
30794         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
30795         (updated-stamp): Use it.  This causes 'make' to output just
30796         one file name rather than zillions.
30798         fflush, fseeko: port to musl cross-compiles
30799         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
30800         on some implementation that (1) is not known to be buggy,
30801         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
30802         cross-compiled to so we can't easily check for lack of
30803         conformance.  This is for cross-compiling to musl.
30804         Reported by Rich Felker in
30805         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
30806         * m4/fclose.m4 (gl_FUNC_FCLOSE):
30807         * m4/fflush.m4 (gl_FUNC_FFLUSH):
30808         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
30809         Adjust to above change.
30810         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
30811         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
30812         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
30813         known not to work, or unknown.
30815 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
30817         msvc-inval: port to mingw-w64
30818         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
30819         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
30820         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
30822 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
30824         getcwd-lgpl: port to Tru64
30825         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
30826         Problem reported by Steven M. Schweda in
30827         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
30829         tests: port large-fd POSIX spawn tests to OS X
30830         Problem reported by Daiki Ueno in
30831         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
30832         * tests/test-posix_spawn_file_actions_addclose.c:
30833         * tests/test-posix_spawn_file_actions_adddup2.c:
30834         * tests/test-posix_spawn_file_actions_addopen.c:
30835         Include <limits.h>, for OPEN_MAX, if available.
30836         (big_fd): New static function.
30837         (main): Use it.
30839 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
30841         tests/nap.h: use an adaptive delay to avoid ctime update issues
30842         The recent change in nap.h (5191133e) decreased the probability of lost
30843         races to about a third, however such problems could still be observed
30844         in virtual machines and openSUSE's OBS.
30845         Before, nap() detected the needed time once empirically and then used
30846         that delay (together with a small correction multiplier) in further
30847         calls.  This problem has been reported and discussed several times,
30848         including guesses about possible kernel issues:
30849         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
30850         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
30851         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
30852         http://bugs.gnu.org/12820
30853         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
30854         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
30855         Now, nap() avoids the race alltogether by verifying on a reference
30856         file whether a timestamp difference has happened.
30857         * tests/nap.h (nap_fd): Define file descriptor variable for the
30858         witness file.
30859         (nap_works): Change return value to bool.  Change passing
30860         the old file's status by value instead of by reference as this function
30861         does no longer update that timestamp; rename the function argument from
30862         st to old_st.  Remove the local variables cdiff and mdiff because that
30863         function now returns true/false instead of the precise delay.
30864         (guess_delay): Remove function.
30865         (clear_tmp_file): Add new function to close and unlink the witness file.
30866         (nap): Instead of re-using the delay which has been calculated during
30867         the first call, avoid the race by actually verifying that a timestamp
30868         difference can be observed on the current file system.  Use an adaptive
30869         approach for the delay to minimize execution time.  Assert that the
30870         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
30871         = 2^31 - 1 = 2.1s.
30872         Use atexit to call clear_tmp_file when the process terminates.
30874 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30876         sig2str: port to C++
30877         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
30878         Reported by Daniel J Sebald in
30879         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
30881 2013-05-30  Eric Blake  <eblake@redhat.com>
30883         docs: mention cygwin shortcoming in <sys/un.h>
30884         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
30886         vasnprintf: silence mingw compiler warning
30887         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
30889 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
30891         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
30892         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
30893         This fixes a porting bug I recently reintroduced in regex, and
30894         some other instances that I discovered while testing the fix.
30895         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
30896         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
30897         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
30898         with an empty argument if this is a pedantic pre-C99 GCC.
30899         * lib/verify.h: Do not use _Static_assert if this is a pedantic
30900         pre-C11 GCC.
30902         regex: adapt to locking regime instead of depending on pthread
30903         Instead of depending on pthread, adapt to whatever thread
30904         modules are in use.  Problem reported by Ludovic Courtès in
30905         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
30906         and by Mats Erik Andersson in
30907         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
30908         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
30909         Support either the 'lock' module, or the 'pthread' module, or
30910         no module.
30911         (lock_lock, lock_unlock): New macros.
30912         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
30913         * modules/lock, modules/pthread (configure.ac): Add module indicator.
30914         * modules/regex (Depends-on): Remove pthread.
30916 2013-05-22  Eric Blake  <eblake@redhat.com>
30918         getgroups: document portability issues
30919         * doc/glibc-functions/initgroups.texi (initgroups): Mention
30920         multithread safety.
30921         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
30922         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
30923         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
30924         getugroups.
30925         * doc/posix-functions/getgroups.texi (getgroups): Mention
30926         multithread safety and mgetgroups.
30928 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
30930         test-lchown, test-chown: also skip test if chown fails with EPERM
30931         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
30932         skip this test, to handle FAT file systems.
30933         * tests/test-chown.h (test_chown): Likewise.
30935 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
30937         regex: fix dfa race in multithreaded uses
30938         Problem reported by Ludovic Courtès in
30939         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
30940         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
30941         New macros.  All uses of __libc_lock_define, __libc_lock_init
30942         changed to use the first two of these.
30943         (__libc_lock_lock, __libc_lock_unlock): New macros, for
30944         non-glibc platforms.
30945         (struct re_dfa_t): Define the lock unconditionally.
30946         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
30947         '#ifdef _LIBC"s.
30948         * modules/regex (Depends-on): Add pthread, if we use the
30949         included regex.
30951         * lib/regcomp.c: Do actions that are not needed for glibc,
30952         but may be needed elsewhere.
30953         (regfree, re_compile_internal): Destroy the lock.
30954         (re_compile_internal): Check for lock-initialization failure.
30956         malloca: port to compilers that reject size-zero arrays
30957         This fixes a bug introduced in my previous patch.
30958         * lib/malloca.c (struct preliminary_header): Use an int
30959         rather than a character array of size int; that's simpler.
30960         (struct header): Remove, replacing with ...
30961         (union header): New type.  This avoids the need for declaring a
30962         character array of size zero, which is not allowed on some platforms.
30963         All uses changed.
30965 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30967         parse-datetime, tests: don't use "string" + int
30968         Recent versions of 'clang' complain about C source code that
30969         uses expressions of the form '"string literal" + integer',
30970         I guess on the theory that it's confusing for readers who are
30971         used to C++.  On those grounds I suppose it's OK to make this
30972         minor style change.
30973         * lib/parse-datetime.y (parse_datetime):
30974         * tests/test-fchdir.c (main):
30975         * tests/test-snprintf-posix.h (test_function):
30976         * tests/test-snprintf.c (main):
30977         * tests/test-vasnprintf-posix.c (test_function):
30978         * tests/test-vasnprintf.c (test_function):
30979         * tests/test-vsnprintf.c (main):
30980         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
30981         Rewrite '"str" + E' to '&"str"[E]'.
30983 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
30985         argmatch: port to C++
30986         * lib/argmatch.h [__cplusplus]: Add extern "C".
30988         argp: typo fix
30989         * lib/argp-help.c: Typo in comment.
30991 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
30993         manywarnings: update for GCC 4.8.0
30994         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
30995         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
30996         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
30997         -Wmissing-noreturn, as they are duplicates of other warnings.
30998         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
30999         was documented to be flaky in earlier versions of GCC.
31001         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
31002         * tests/test-spawn.c (main):
31003         * tests/test-sys_socket.c (main):
31004         * tests/test-sys_wait.c (main):
31005         Don't have a switch value that isn't covered by a case.
31007         getaddrinfo-tests: port --enable-gcc-warnings to clang
31008         * tests/test-getaddrinfo.c (simple):
31009         Avoid casts from looser to stricter-aligned pointers.
31011         thread: port --enable-gcc-warnings to clang
31012         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
31013         Include <signal.h>, to pacify a warning about pthread_sigmask.
31015         stdio: use __REDIRECT for fwrite, fwrite_unlocked
31016         * lib/stdio.in.h (fwrite):
31017         When working around bug 11959, use __REDIRECT rather than '#define
31018         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
31019         fix the -Wunused-value issue with clang, and it works with GCC too.
31020         Problem with targeting reported by Eric Blake in
31021         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
31022         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
31023         debugging the fwrite issue.
31025         stdio: port --enable-gcc-warnings to clang
31026         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
31027         since the GCC workaround for fwrite does not pacify clang.
31029         sig2str: port --enable-gcc-warnings to clang
31030         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
31032         obstack: port --enable-gcc-warnings to clang
31033         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
31034         Avoid casts from looser to stricter-aligned pointers.
31036         memchr2: port --enable-gcc-warnings to clang
31037         * lib/memchr2.c (memchr2):
31038         Avoid casts from looser to stricter-aligned pointers.
31040         mbsstr: port --enable-gcc-warnings to clang
31041         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
31042         Avoid casts from looser to stricter-aligned pointers.
31044         malloca: port --enable-gcc-warnings to clang
31045         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
31046         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
31048         inttostr: port --enable-gcc-warnings to clang
31049         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
31051         warnings: port to clang
31052         Problem reported by Daniel P. Berrange via Eric Blake in
31053         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
31054         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
31055         (gl_WARN_ADD): Use it.
31057 2013-05-11  Jim Meyering  <meyering@fb.com>
31059         quotearg: do not read beyond end of buffer
31060         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
31061         end of an ARG for which no length was specified.  With an N-byte
31062         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
31063         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
31064         via coreutils' misc/sort-debug-keys.sh test and detected by running
31065         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
31066         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
31067         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
31068         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
31069         characters correctly."
31071 2013-05-11  Daiki Ueno  <ueno@gnu.org>
31073         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
31074         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
31075         compilation target is Mac OS X 10.6.
31076         Problem reported by parafin and Andoni Morales in
31077         <http://savannah.gnu.org/bugs/?37844> and
31078         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
31080 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
31082         mkdir-p: remove assumptions about umask and mode
31083         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
31084         umask is 0, or that MODE is a subset of MODE_BITS.
31086 2013-05-10  Eric Blake  <eblake@redhat.com>
31088         maint.mk: catch more abuse of HAVE_DECL in syntax-check
31089         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
31091 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
31093         deps: require Automake >= 1.9.6 in generated Makefile fragments
31095         That is the same minimal version required in the DEPENDENCIES file.
31096         Moreover, the old code generated a requirement of Automake >= 1.5,
31097         and that is an insanely outdated version.
31099         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
31100         * tests/havelib/rpathlx/Makefile.am: Likewise.
31101         * tests/havelib/rpathly/Makefile.am: Likewise.
31102         * tests/havelib/rpathlyx/Makefile.am: Likewise.
31103         * tests/havelib/rpathlz/Makefile.am: Likewise.
31104         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
31105         * tests/havelib/rpathx/Makefile.am: Likewise.
31106         * tests/havelib/rpathy/Makefile.am: Likewise.
31107         * tests/havelib/rpathz/Makefile.am: Likewise.
31109 2013-05-08  Eric Blake  <eblake@redhat.com>
31111         bootstrap: AC_INIT may have more than four parameters
31112         * build-aux/bootstrap (extract_package_name): Correctly extract
31113         non-empty tarname field.  Avoid range in regex.
31114         Based on a report by Sami Kerola <kerolasa@iki.fi>.
31116 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
31118         qacl: port to MS-Windows port of GNU Emacs
31119         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
31120         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
31121         port of GNU Emacs.  Problem reported by Eli Zaretskii in
31122         <http://bugs.gnu.org/14295#14>.
31124 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
31126         acl: include quote.h
31127         * lib/copy-acl.c: Include quote.h.
31128         * lib/set-acl.c: Likewise.
31130 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
31132         fchownat, renameat, unlinkat: update statat dependencies
31133         These modules use statat and lstatat, not fstatat; so depend on
31134         the statat module, which was split out recently from fstatat.
31135         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
31136         * modules/renameat: Likewise.  Also delete fstat.
31137         URL: http://bugs.gentoo.org/468790
31139 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
31141         Assume gnulib is checked out from Git, not CVS
31143         In fact, access to the gnulib repository through CVS has been
31144         disabled, or more precisely, got broken and was never restored; see:
31145         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
31147         Note that support for CVS is not removed completely and unthinkingly
31148         by this change: only support for CVS checkouts of gnulib itself is
31149         removed.  For example, the 'bootstrap' script still cater to .cvsingore
31150         files and CVS directories, for the benefit of those poor gnulib clients
31151         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
31153         * gnulib-tool: Simplify accordingly.
31154         * posix-modules: Likewise.
31155         * MODULES.html.sh: Likewise.
31156         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
31157         repository.
31158         * doc/gnulib-intro.texi: Likewise.
31159         * doc/gnulib-readme.texi: Likewise.
31160         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
31161         sample '.gitignore' file rather than a sample '.cvsignore'.
31162         * NEWS: Update.
31163         * m4/extensions.m4: While at it, remove a comment mistakenly referring
31164         to "CVS Autoconf" rather than "git Autoconf".
31166 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
31168         utimensat-tests, etc.: try to fix some races
31169         Problem reported by Bernhard Voelker in
31170         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
31171         I don't know whether this patch fixes that race condition, but it
31172         fixes *some* race conditions, so it should be a win.
31173         * modules/chown-tests (Depends-on):
31174         * modules/fchownat-tests (Depends-on):
31175         * modules/fdutimensat-tests (Depends-on):
31176         * modules/futimens-tests (Depends-on):
31177         * modules/lchown-tests (Depends-on):
31178         * modules/stat-time-tests (Depends-on):
31179         * modules/utimens-tests (Depends-on):
31180         * modules/utimensat-tests (Depends-on):
31181         Depend on nanosleep, not usleep.
31182         * modules/chown-tests (test_chown_LDADD):
31183         * modules/lchown-tests (test_lchown_LDADD):
31184         * modules/stat-time-tests (test_stat_time_LDADD):
31185         New macro.
31186         * modules/fchownat-tests (test_fchownat_LDADD):
31187         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
31188         * modules/futimens-tests (test_futimens_LDADD):
31189         * modules/utimens-tests (test_utimens_LDADD):
31190         * modules/utimensat-tests (test_utimensat_LDADD):
31191         Add $(LIB_NANOSLEEP).
31192         * modules/stat-time-tests (Files): Add tests/nap.h.
31193         * tests/nap.h: Include <limits.h>, for INT_MAX.
31194         (lt_mtime): Remove.
31195         (diff_timespec): New function.
31196         (get_stat): Rename from get_mtime.  All callers changed.
31197         (nap_works): Determine the needed delay by inspecting the
31198         file system's timestamp jumps; this should be more reliable.
31199         Look at both mtime and ctime, and take the maximum of the two jumps.
31200         (nap_works, guess_delay):
31201         Return a nanosecond count, not a microsecond count.
31202         All callers changed.
31203         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
31204         failure.
31205         (nap): Multiply the guess by 1.125, to accommodate the case where
31206         the file system's clock is a bit slower than nanosleep's clock.
31207         * tests/test-stat-time.c (BASE): New macro.
31208         Include nap.h.
31209         (nap): Remove; nap.h now defines this.  This removes a duplicate
31210         implementation of 'nap'.
31212         utimens, utimensat: work around Solaris UTIME_OMIT bug
31213         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
31214         Linux kernel 2.6.32 does.  Work around it in the same way.
31215         * doc/posix-functions/futimens.texi (futimens):
31216         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
31217         * lib/utimens.c (fdutimens, lutimens):
31218         * lib/utimensat.c (rpl_utimensat): Work around the bug.
31220         gettext: now it's your responsibility to add -I$(top_builddir)/intl
31221         Formerly, it was your responsibility to do this for all Makefile.ams
31222         other than Gnulib's.  Now it's your responsibility to do it for
31223         Gnulib's Makefile.am, too.
31224         * NEWS: Document this.
31225         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
31227         acl: include errno.h to get errno
31228         Reported by Daiki Ueno in
31229         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
31230         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
31232 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
31234         tests: don't assume getdtablesize () <= 10000000
31235         * modules/cloexec-tests:
31236         * modules/dup2-tests:
31237         * modules/dup3-tests:
31238         * modules/nonblocking-tests:
31239         * modules/posix_spawn_file_actions_addclose-tests:
31240         * modules/posix_spawn_file_actions_adddup2-tests:
31241         * modules/posix_spawn_file_actions_addopen-tests:
31242         * modules/unistd-safer-tests:
31243         Depend on the getdtablesize module.
31244         * tests/test-cloexec.c:
31245         * tests/test-dup-safer.c:
31246         * tests/test-dup2.c:
31247         * tests/test-dup3.c:
31248         * tests/test-fcntl.c:
31249         * tests/test-nonblocking.c:
31250         * tests/test-posix_spawn_file_actions_addclose.c:
31251         * tests/test-posix_spawn_file_actions_adddup2.c:
31252         * tests/test-posix_spawn_file_actions_addopen.c:
31253         Don't assume getdtablesize () <= 10000000.
31255 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
31257         extern-inline: work around bug in Sun c99
31258         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
31259         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
31261 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
31263         qacl: new module, broken out from the acl module
31264         This is for GNU Emacs, which wants the acl functions but does
31265         not want 'error' invoked when they fail.
31266         * lib/acl-internal.h: Do not include error.h, quote.h.
31267         (ENOSYS, ENOTSUP): Remove; no longer needed.
31268         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
31269         * lib/acl.h: Include <stdbool.h>.
31270         (acl_errno_valid): New function.
31271         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
31272         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
31273         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
31274         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
31275         (ACL_INTERNAL_INLINE): Remove; no longer needed.
31276         * lib/file-has-acl.c (file_has_acl):
31277         * lib/qcopy-acl.c (qcopy_acl):
31278         * lib/qset-acl.c (qset_acl):
31279         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
31280         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
31281         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
31282         lib/file-has-acl.c, m4/acl.m4 to qacl module.
31283         Add lib/set-acl.c.
31284         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
31285         Add qacl.
31286         (configure.ac): Move gl_FUNC_ACL to qacl module.
31287         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
31288         Rename set-mode-acl.c to set-acl.c.
31289         * lib/acl-errno-valid.c: New file.
31290         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
31291         copy_acl function remains in copy-acl.c.
31292         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
31293         (_): Remove; not needed.
31294         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
31295         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
31296         * modules/qacl: New file, moved from the old modules/acl.
31297         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
31298         Remove set-mode-acl.c, copy-acl.c.
31299         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
31301         alignof, intprops, malloca: port better to IBM's C compiler
31302         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
31303         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
31304         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
31306 2013-04-25  Daiki Ueno  <ueno@gnu.org>
31308         wctype-h: fix gettext link error on mingw
31309         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
31310         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
31311         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
31312         rpl_towupper and rpl_towupper.
31314 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
31316         regex-tests, regex: allow glibc re_search behavior
31317         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
31318         re_search input data to make the multi-character collating element
31319         in it clearly visible, and treat re_search return code 0 as valid.
31320         * m4/regex.m4 (gl_REGEX): Likewise.
31322 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31324         stdalign: doc fix
31325         * doc/posix-headers/stdalign.texi (stdalign.h):
31326         Gnulib doesn't support '_Alignof expr'.
31328 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
31330         stdalign: port to stricter ISO C11
31331         ISO C11 says that _Alignof's operand must be a parenthesized type.
31332         Problem reported by Eli Zaretskii in
31333         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
31334         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
31335         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
31337 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
31339         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
31340         Problem reported by Marco Atzeri in
31341         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
31342         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
31343         Simply delegate to the system <sys/select.h> in this case too.
31344         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
31345         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
31346         be needed on Solaris either.
31347         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
31348         Simply delegate to the system <sys/time.h> in this case.
31350 2013-03-19  Karl Berry  <karl@gnu.org>
31352         * build-aux/gnupload: check for erroneous (with gnupload) use of
31353         ftp-upload.gnu.org, tweak help.
31355 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
31357         copy-file, rpmatch: fix problems found by cppcheck
31358         Reported by Arno Onken in
31359         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
31360         * lib/rpmatch.c (try): Fix memory leak.
31361         * lib/copy-file.c: Include "ignore-value.h".
31362         (qcopy_file_preserving): Ignore chown value.
31363         * modules/copy-file (Depends-on): Add ignore-value.
31365 2013-01-27  Jim Meyering  <jim@meyering.net>
31367         prefix-gnulib-mk: give better diagnostics
31368         * build-aux/prefix-gnulib-mk: Don't just "die".
31369         Give better diagnostics upon failure.
31371 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
31373         putenv: port to Solaris 10
31374         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
31375         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
31376         is not what is wanted here.
31377         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
31378         declaration, not for its existence.
31380 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
31382         mktime: fix configure typo
31383         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
31385 2013-03-12  Eric Blake  <eblake@redhat.com>
31387         regex-tests: skip UTF-8 test on mingw
31388         * modules/regex-tests (Depends-on): Add localcharset.
31389         * tests/test-regex.c (main): Use it to skip test on mingw.
31391 2013-03-11  Eric Blake  <eblake@redhat.com>
31393         tests: make it easier to bypass alarm time in debugger
31394         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
31395         * tests/test-memmem.c (main): Likewise.
31396         * tests/test-passfd.c (main): Likewise.
31397         * tests/test-ptsname.c (main): Likewise.
31398         * tests/test-ptsname_r.c (main): Likewise.
31399         * tests/test-strcasestr.c (main): Likewise.
31400         * tests/test-strstr.c (main): Likewise.
31402         regex: port to mingw's recent addition of undeclared alarm
31403         * doc/posix-functions/alarm.texi (alarm): Document that alarm
31404         exists but still doesn't work in newer mingw.
31405         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
31406         not existence.  Ensure SIGALRM is not trapped.
31407         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
31408         * m4/regex.m4 (gl_REGEX): Likewise.
31409         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
31410         * tests/test-regex.c (main): Use correct probe for alarm.
31412         putenv: avoid compilation warning on mingw
31413         * lib/putenv.c (_unsetenv): Protect variable declaration.
31414         (putenv): Fix indentation.
31416 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
31418         unistd: don't prevent Tru64 Unix from using gnulib strtod.
31419         * lib/unistd.in.h: be careful not to include un-needed system
31420         stdlib.h from here, because that prevents gnulib stdlib.h from
31421         defining rpl_strtod correctly.
31423 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
31425         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
31426         changesets, but for the 'precision 0' test.
31427         * tests/test-vasprintf-posix.c (test_function): Don't insist on
31428         round-to-even, since POSIX says rounding is implementation-defined
31429         and OS X 10.8.2 rounds 1.51 to 1 here.
31431         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
31432         changeset.
31433         * tests/test-vasprintf-posix.c (test_function): Don't insist on
31434         round-to-even, since POSIX says rounding is implementation-defined
31435         and OS X 10.8.2 rounds 1.5 to 1 here.
31437 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
31439         vasnprintf-posix-tests: allow rounding 1.5 to 1
31440         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
31441         round-to-even, since POSIX says rounding is implementation-defined
31442         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
31443         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
31445         bootstrap: port to FreeBSD
31446         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
31447         that treat '--' differently.  Reported by Mats Erik Andersson in
31448         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
31450 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
31452         regex: rename remaining __attribute calls to __attribute__.
31453         2012-02-25 changed definition of __attribute, but left some uses
31454         unchanged, preventing compilation of regex module on most non-gcc
31455         environments.
31456         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
31457         (lookup_collation_sequence_value, build_range_exp)
31458         (build_collating_symbol): Set attributes with newly renamed
31459         __attribute__ decorator.
31460         * lib/regex_internal.c (re_string_peek_byte_case)
31461         (re_node_set_compare, re_node_set_contains): Likewise.
31462         * lib/regexec.c (acquire_init_state_context): Likewise.
31464 2013-03-06  Bruno Haible  <bruno@clisp.org>
31466         execute: Revert last change, but use a different condition.
31467         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
31468         on Windows.
31470 2013-03-05  Eric Blake  <eblake@redhat.com>
31472         execute: drop dead code
31473         * lib/execute.c (nonintr_close, nonintr_open): Delete.
31475 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
31477         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
31478         * m4/non-recursive-gnulib-prefix-hack.m4
31479         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
31480         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
31481         <http://bugs.gnu.org/10305#237>.
31483 2013-03-04  Eric Blake  <eblake@redhat.com>
31485         test-getsockopt: avoid compiler warning
31486         * tests/test-getsockopt.c (includes): Ensure close is declared.
31488 2013-03-02  Bruno Haible  <bruno@clisp.org>
31490         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
31491         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
31493 2013-03-02  Bruno Haible  <bruno@clisp.org>
31495         gettext: Update to version 0.18.2.
31496         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
31497         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
31498                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
31500 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31502         regex: merge patches from libc
31504         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31505         * lib/regex_internal.h (__attribute__): Rename from __attribute.
31506         All uses changed.
31507         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
31508         (re_string_wchar_at, re_string_elem_size_at):
31509         Mark function as possibly unused.
31511         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
31512         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
31513         elements compare against the byte sequence of it, not its name.
31515 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
31517         putenv: port better to native Windows
31518         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
31519         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
31520         (_unsetenv): Use _putenv if available.
31521         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
31522         a bit less likely to cause damage.
31523         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
31524         Fix the wrong value with SetEnvironmentVariable.
31525         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
31526         code better.
31528 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31530         regex: ignore old-style-definition warnings
31531         * lib/regex.c: Add pragma to ignore these warnings.
31532         Problem reported for GNU tar by Pavel Raiskup.
31534 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
31536         getcwd: support coreutils better
31537         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
31538         but this might not be correct in coreutils, which disables
31539         the raw decl checks.  Problem reported by Nagendra in
31540         <http://bugs.gnu.org/10305#192>.
31541         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
31542         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
31543         Test the getcwd function, not any macro, since getcwd.c wants the
31544         function.
31545         * m4/getcwd.m4 (gl_FUNC_GETCWD):
31546         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
31547         compile, as might happen if there's a macro but no function.
31549         strtod: support coreutils better
31550         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
31551         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
31552         disables the raw decl checks.  This assumes there is an underlying
31553         strtod, but that's a safe assumption these days.
31554         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
31556         mountlist: port to HP NonStop
31557         Reported by Joachim Schmitz in
31558         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
31559         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
31560         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
31562 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
31564         extern-inline: avoid compilation error with HP-UX cc
31565         Reported by Richard Lloyd in
31566         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
31567         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
31568         Suppress extern inline with HP-UX cc.  This should be safe,
31569         though it may hurt performance.  Perhaps someone with some HP-UX
31570         experience can come up with a higher-performance fix.
31572 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
31574         putenv: fix heap corruption with mixed putenv/_putenv
31575         Problem reported by Michael Goffioul in
31576         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
31577         * lib/putenv.c (putenv) [HAVE__PUTENV]:
31578         Rely on _putenv to allocate the new environment.
31579         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
31580         * modules/putenv (configure.ac): Use it.
31582 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
31584         unsetenv etc.: port to Solaris 11 + GNU Emacs
31585         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
31586         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
31587         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
31588         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
31589         idea but is too painful to fix right now), and without this gnulib
31590         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
31591         compiling unsetenv.c on Solaris 11.  Fix the problem for
31592         unsetenv.c, and fix other similar occurrences.
31594 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
31596         secure_getenv: fix C++ declaration typo
31597         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
31598         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
31599         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
31601 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
31603         careadlinkat: stop exporting careadlinkatcwd
31604         Only Emacs used it directly, and Emacs no longer needs it.
31605         * NEWS: Document this simplification.
31606         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
31607         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
31608         for readlink.
31609         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
31610         Don't include stdlib.h; no longer needed.
31611         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
31612         * lib/relocwrapper.c: Adjust comment to match new dependencies.
31613         * modules/areadlink (Depends-on): Add readlink.
31614         (Maintainer): Add self.
31615         * modules/careadlinkat (Depends-on): Remove readlink.
31617         extensions: port better to HP-UX
31618         This is merged from git Autoconf.
31619         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
31620         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
31621         so that it's compatible with the value used when compiling.
31623         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
31624         Problem reported by Mats Erik Andersson in
31625         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
31626         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
31627         openpty function exists, not merely when we intend to replace it.
31628         This corrects the 2013-01-31 patch, which mistakenly defined
31629         HAVE_OPENPTY even on hosts that lacked it.
31631 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
31633         secure_getenv: fix include typo
31634         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
31636         secure_getenv: port better to FreeBSD and Solaris
31637         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
31638         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
31639         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
31640         This works better on BSDish platforms.
31641         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
31642         Test for issetugid if __secure_getenv is missing.
31644 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
31646         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
31647         Some of these changes are merged in from git Autoconf.
31648         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
31649         When deciding whether to define _XOPEN_SOURCE, inspect the
31650         preprocessor macro __hpux instead of the more-heavyweight
31651         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
31652         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
31653         as the key for __EXTENSIONS__.
31655         unistd: avoid namespace pollution on non-glibc systems
31656         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
31657         This avoids namespace pollution on non-glibc systems, by causing
31658         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
31659         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
31660         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
31662 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
31664         tmpdir: use secure_getenv
31665         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
31666         Define to secure_getenv, not getenv.
31667         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
31668         as that's now secure_getenv's job.
31669         * modules/tmpdir (Depends-on): Add secure_getenv.
31671         tempname: use secure_getenv
31672         * lib/tempname.c (__secure_getenv) [!_LIBC]:
31673         Define to secure_getenv, not getenv.
31674         * modules/tempname (Depends-on):
31675         Add secure_getenv.
31677         secure_getenv: new module
31678         * MODULES.html.sh (Extra functions based on ANSI C 89):
31679         Add secure_getenv.
31680         * doc/glibc-functions/secure_getenv.texi: New file.
31681         * doc/gnulib.texi: Include it.
31682         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
31683         New files.
31684         * lib/stdlib.in.h (secure_getenv): New decl.
31685         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
31686         * modules/stdlib (stdlib.h):
31687         Add secure_getenv checks.
31689 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31691         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
31692         Reported for OS X 10.8.2 by Assaf Gordon in
31693         <http://bugs.gnu.org/13516>.
31694         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
31695         !HAVE_OPENAT && !HAVE_FDOPENDIR.
31696         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
31697         so that they can be kept in sync more easily.  Avoid PATH_MAX
31698         test on the Hurd.  Sync from test-getcwd.c for errno tests after
31699         mkdir or chdir failure.
31700         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
31701         lib/getcwd.c.
31702         (test_abort_bug): Do not test for the deep directory bug unless we
31703         have openat support.  Avoid PATH_MAX test on the Hurd.
31705         regex-tests, regex: fix bug: memset undeclared
31706         * tests/test-regex.c: Don't include regex.h twice.  Include
31707         string.h, to declare memset.  Christensen's report also mentioned
31708         this issue.
31709         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
31710         test-regex.c, to avoid future problems like this.  Remove
31711         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
31712         twice.
31714         regex-tests: fix link errors on older Solaris
31715         These need to link with @LIBINTL@ to get libintl_gettext.
31716         Problem reported by Tom G. Christensen in
31717         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
31718         * modules/regex-tests (test_regex_LDADD): New macro.
31720 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
31722         regex-tests: new module
31723         * modules/regex-tests, tests/test-regex.c: New files.
31725         regex: fix off-by-one error in configure test
31726         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
31728 2013-01-31  Eric Blake  <eblake@redhat.com>
31730         regex: avoid infinite configure test
31731         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
31733 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
31735         openpty: fix bug where HAVE_OPENPTY wasn't defined
31736         See the thread starting at:
31737         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
31738         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
31739         openpty function exists, not merely when we intend to replace it.
31741 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
31743         sys_time: port to Solaris 2.6
31744         There is a circularity problem on Solaris 2.6, where <time.h> includes
31745         <sys/time.h> for struct timespec.  The include nesting is gnulib
31746         <time.h>, system <time.h>, gnulib <sys/time.h>, system
31747         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
31748         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
31749         <sys/siginfo.h>; the last, innermost file needs struct
31750         timestruc_t, which is defined in <sys/time.h>, which has not been
31751         fully parsed.  Problem reported by Tom G. Christensen in
31752         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
31753         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
31754         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
31755         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
31756         uses split double-inclusion guards.
31758 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
31760         regex: test for buffer overrun
31761         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
31762         for the just-fixed regex bug.
31764 2013-01-29  Andreas Schwab  <schwab@suse.de>
31766         regex: fix buffer overrun in regexp matcher [BZ #15078]
31767         * lib/regexec.c (extend_buffers): Add parameter min_len.
31768         (check_matching): Pass minimum needed length.
31769         (clean_state_log_if_needed): Likewise.
31770         (get_subexp): Likewise.
31772 2013-01-28  Pádraig Brady  <P@draigBrady.com>
31774         mountlist: don't consider "devtmpfs" as dummy
31775         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
31776         as there is storage associcated with it.
31778 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
31780         futimens-tests, utimens-tests: Depend on gettext.
31781         This works around a problem introduced in my 2013-01-12 patch,
31782         which added @LIBINTL@ to these modules.
31783         * modules/futimens-tests (Depends-on):
31784         * modules/utimens-tests (Depends-on): Add gettext.
31786 2013-01-26  Eric Blake  <eblake@redhat.com>
31788         test-getpeername: fix typo
31789         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
31791 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
31793         bootstrap: remove the need for a sorted .gitignore file
31794         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
31795         rename to insert_if_absent(), so that we don't need or generate
31796         a sorted .gitignore file.  We do require a .gitignore with no
31797         existing duplicate entries and enforce that.
31798         (sort_patterns): Remove this function as we now use the simpler
31799         technigue of inserting blacklist entries at the top of the file,
31800         assuming gnulib won't be inserting !whitelist entries.
31802 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31804         readlinkat: don't depend on gl_FUNC_OPENAT
31805         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
31806         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
31807         renameat.m4, symlinkat.m4; but one thing at a time.
31809         statat: new module, split out from fstatat
31810         GNU Emacs needs the POSIX-specified fstatat, but not the
31811         gnulib-specified statat and lstat.  Split the latter two into a
31812         new module 'statat'.
31813         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
31814         * lib/openat.h, lib/statat.c (STATAT_INLINE):
31815         Rename from FSTATAT_INLINE. All uses changed.
31816         * modules/fstatat (Files): Remove lib/statat.c.
31817         (gl_MODULE_INDICATOR([fstatat])): Remove.
31818         (lib_SOURCES): Remove.
31819         (Maintainer): Add self.
31820         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
31821         * tests/test-fstatat.c (BASE): Don't define if already defined.
31822         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
31824 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
31826         tests: don't assume fd 99 is closed
31827         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
31828         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
31829         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
31830         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
31831         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
31832         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
31833         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
31834         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
31835         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
31836         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
31837         * tests/test-fwrite.c, tests/test-getpeername.c:
31838         * tests/test-getsockname.c, tests/test-getsockopt.c:
31839         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
31840         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
31841         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
31842         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
31843         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
31844         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
31845         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
31846         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
31847         * tests/test-unlinkat.c, tests/test-unlockpt.c:
31848         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
31849         Close file descriptor 99, instead of assuming it's already closed.
31851 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
31853         stpncpy: port to OS X 10.8
31854         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
31855         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
31857 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
31859         unistd: port to recent mingw
31860         * lib/unistd.in.h: Remove special invocation convention for mingw,
31861         which breaks for the latest mingw version.  See John W. Eaton in
31862         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
31864         largefile: port better to Mac OS X 10.5
31865         This patch is backported from Autoconf git.
31866         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
31867         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
31868         with ino_t size being different for configuration time versus
31869         build/run time.  Problem reported by PHO in
31870         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
31872 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31874         doc: clarify -Werror
31875         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
31876         clarify that it's intended for developers, not for ordinary builds,
31877         and mention --enable-gcc-warnings as one possible use.
31879 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
31881         stdint: fix build with Android's Bionic fox x86
31882         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
31883         was already included as _SSIZE_T_DEFINED_ might also be defined
31884         in include/machine/_types.h, which is included by stdio.h
31886 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
31888         net_if-tests: port to Solaris 7 + GCC 3.4.6
31889         Problem reported by Tom G. Christensen in
31890         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
31891         * tests/test-net_if.c (ni): Move to next the code that uses it,
31892         so that it's declared only if needed.
31894 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
31896         net_if-tests: port to older Solaris
31897         Problem reported by Tom G. Christensen in
31898         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
31899         * modules/net_if-tests (NET_IF_LIB): New substitution.
31900         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
31901         (HAVE_IF_NAMEINDEX): New C macro.
31902         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
31904         system-quote-tests: port to older Solaris
31905         Problem reported by Tom G. Christensen in
31906         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
31907         * tests/test-system-quote-child.c (fopen, fread): Undef.
31909         c-xvasprintf etc.: fix link errors on older Solaris
31910         These need to link with @LIBINTL@ to get libintl_gettext.
31911         Problem reported by Tom G. Christensen in
31912         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
31913         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
31914         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
31915         * modules/futimens-tests (test_futimens_LDADD):
31916         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
31918 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
31920         locale: port to Solaris 2.6 and 7 + GNU gettext
31921         * lib/locale.in.h: Just include_next <locale.h> when
31922         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
31923         when combining the localename module with GNU gettext 0.18.2.
31924         Problem reported by Tom G. Christensen in
31925         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
31927 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
31929         stdlib: port to Solaris 2.6
31930         Also, the code worked on Solaris 7 through 9 only by accident.
31931         Problem reported by Tom G. Christensen in
31932         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
31933         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
31934         simply include the system stdlib.h.
31935         * lib/getopt.in.h (__need_system_stdlib_h):
31936         * lib/pthread.in.h (__need_system_stdlib_h):
31937         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
31938         Define when including <stdlib.h>, to avoid problems at least for
31939         the pthread case on Solaris 2.6 and 7.  These .h files can get by
31940         with the system stdlib.h.
31942 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
31944         doc: update main copyright year
31945         * doc/gnulib.texi: Update copyright date.
31947         doc: improve ISO 8601 discussion
31948         * doc/parse-datetime.texi (Combined date and time of day items):
31949         Specify more carefully what formats are supported and what is
31950         done with excess precision.
31952 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
31954         doc: avoid small caps
31955         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
31956         they're more trouble than they're worth.  Suggested by Karl Berry
31957         in <http://bugs.gnu.org/13360>.
31959         regex: conform to strict C
31960         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
31961         From Aharon Robbins.
31963         gnulib-tool: fix incompatibility with autopoint 0.18.2
31964         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
31965         Problem reported by Tom G. Christensen in
31966         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
31968 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31970         fprintftime: bring back and reword fwrite comment
31971         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
31973         stdio: remove now-unnecessary stdio.c
31974         Since stdio.in.h no longer uses inline functions, we no longer
31975         need to compile the extern versions.
31976         * lib/stdio.c: Remove.
31977         * modules/stdio (Files): Remove lib/stdio.c.
31978         (lib_SOURCES): Remove.
31980         unicodeio: depend on stdio, not ignore-value
31981         * lib/unicodeio.c: Do not include ignore-value.h.
31982         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
31983         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
31985         fprintftime: depend on stdio, not ignore-value
31986         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
31987         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
31988         since the stdio module arranges to silence that warning now.
31989         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
31991 2012-10-04  Simon Josefsson  <simon@josefsson.org>
31993         stdint-tests: Fix expanded-before-required-warning.
31994         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
31996 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
31998         fwrite: silence __wur only for older glibc versions
31999         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
32000         This will help us remove this workaround some time in the far future.
32002 2013-01-03  Eric Blake  <eblake@redhat.com>
32004         fwrite: silence __wur without using inline
32005         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
32006         just gcc, and in a way that avoids inline issues.
32007         * modules/stdio (Depends-on): Drop extern-inline.
32009 2013-01-03  Jim Meyering  <jim@meyering.net>
32011         update-copyright: avoid copyright notice date corruption
32012         Given a sequence of copyright year numbers in which the final
32013         one was a two-digit number that happened to be a substring of
32014         a preceding four-digit year number, we would mistakenly update
32015         the substring (from two- to four-digit) rather than the two-digit
32016         number at the end, which, combined with the addition of the current
32017         4-digit year number would yield two 5-digit year numbers, e.g.,
32018         here, it would convert the first "99" to "1999, 2013" rather than
32019         the final one:
32020           1991, 99
32021           11999, 20131, 1999
32022         * build-aux/update-copyright: Tighten a regexp.
32023         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
32024         Reported by Joseph Myers in
32025         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
32027 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32029         regex: omit needless signed-pointer casts
32030         * lib/regcomp.c (build_charclass, build_charclass_op):
32031         Use char *, not unsigned char *, for class name and extra.
32032         The char values are always nonnegative so there's no need to
32033         insist on unsigned char * here, and using char * removes the need
32034         for casts.  Reported by Aharon Robbins in
32035         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32037         regex: support Gawk, which never uses alloca
32038         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
32039         Do not include in this case.  Gawk doesn't supply a substitute
32040         alloca.h and doesn't need one.
32042         regex: port __libc_lock_define usage to C89
32043         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
32044         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
32045         does not conform to C89, as it has an empty macro argument.
32046         Reported by Aharon Robbins in
32047         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32049 2013-01-01  Eric Blake  <eblake@redhat.com>
32051         maint: update all copyright year number ranges
32052         Run "make update-copyright".
32054         version-etc: bump copyright year reported in --version
32055         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
32057 2012-12-31  Eric Blake  <eblake@redhat.com>
32059         sigprocmask-tests: skip test if pid is unexpectedly large
32060         * tests/test-sigprocmask.c (main): Add range check.
32062         git-version-gen: avoid test -z portability glitch
32063         * build-aux/git-version-gen: Prefer portable test spelling, since
32064         git-version-gen is run on more than just developer machines.
32066 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
32068         git-version-gen: add --fallback option to use if git is not present
32069         * build-aux/git-version-gen: Add support for the new option --fallback,
32070         which comes into play when there is no $tarball_version_file and
32071         git is not working.
32072         (scriptversion): Update.
32074         maint.mk: handle missing git with more grace
32075         * top/maint.mk (no-submodule-changes, public-submodule-commit):
32076         Quietly proceed if git is not present.
32078 2012-12-31  Eric Blake  <eblake@redhat.com>
32080         dup2: work around cygwin bug
32081         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
32082         * lib/dup2.c (rpl_dup2): Work around it.
32083         * doc/posix-functions/dup2.texi (dup2): Document it.
32085 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
32087         regex: remove unnecessary dependency on localcharset.h
32088         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
32089         hasn't been needed for years.
32090         * modules/regex (Depends-on): Remove localcharset.
32092         regex: revert single-byte change
32093         * lib/regexec.c (check_node_accept_bytes): Revert previous change
32094         to this function.  This was alredy fixed in a different way, at
32095         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
32096         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
32097         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
32099         regex: simplify based on Gawk version
32100         * lib/regex_internal.c (re_dfa_add_node): Simplify.
32101         Reported by Aharon Robbins in
32102         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32104 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32106         regex: check that pattern char is single-byte
32107         Reported by Aharon Robbins in
32108         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32109         * lib/regexec.c (check_node_accept_bytes):
32110         Return 0 if the pattern string has a multibyte character here.
32112         regex: implement rational ranges
32113         Reported by Aharon Robbins in
32114         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32115         * lib/regcomp.c (build_range_exp) [!_LIBC]:
32116         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
32117         Implement rational ranges.
32119         regex: avoid redefining __wctype
32120         Reported by Aharon Robbins in
32121         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32122         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
32123         #undef before defining.
32125         regex: port to hosts where malloc (0) == NULL
32126         Reported by Aharon Robbins in
32127         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32128         * lib/regex_internal.c (re_node_set_alloc):
32129         Don't assume that malloc (0) yields nonnull.
32130         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
32131         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
32132         * modules/regex (Files): Add m4/eealloc.m4.
32134         regex: port to C89
32135         Reported by Aharon Robbins in
32136         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32137         * lib/regcomp.c (init_word_char): Declaration before statement.
32139         regex: merge glibc changes
32140         Also, copy the license wording from glibc.  This simplifies
32141         merging changes.  gnulib-tool will change the wording to GPL as
32142         appropriate, when importing it to other packages.  The only
32143         glibc change made since the last merge, which needs merging, is:
32144         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
32145         * lib/regex_internal.h (gettext): Remove use of INTUSE.
32147         * users.txt: Add Emacs.
32149         doc: omit mention of version when not needed
32150         * doc/gnulib-intro.texi (Portability and Application Code):
32151         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
32152         Don't mention particular dates or versions when not necessary, so
32153         that the documentation won't go out of date so quickly.
32155         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
32157 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
32159         bootstrap: pass --force to autoreconf.
32160         * build-aux/bootstrap (AUTORECONFFLAGS): New.
32161         Add "--force" so that Automake's ylwrap and other such tools
32162         be updated at each bootstrap invocation.
32163         Use it.
32165 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
32167         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
32168         The earlier patch forgot to update one of the #if conditions, causing
32169         a problem on Debian testing i386 reported by Mats Erik Andersson
32170         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
32171         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
32172         (__argp_fmtstream_puts, argp_fmtstream_puts)
32173         (__argp_fmtstream_write, argp_fmtstream_write)
32174         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
32176         * doc/gnulib-readme.texi: Minor fixups.
32177         (Portability guidelines): Modernize URLs.  Remove some repetition.
32178         (Indent with spaces not TABs): Reword to avoid too-long lines.
32179         Remove some '@ifset standalone' stuff that isn't used.
32181         * doc/gnulib-readme.texi (Portability guidelines):
32182         ctype.h, not ctime.h.
32184         Correct name of POSIX.1-2001.
32185         * doc/posix-functions/fgetc.texi (fgetc):
32186         * doc/posix-functions/fgets.texi (fgets):
32187         * doc/posix-functions/fread.texi (fread):
32188         * doc/posix-functions/fscanf.texi (fscanf):
32189         * doc/posix-functions/getc.texi (getc):
32190         * doc/posix-functions/getchar.texi (getchar):
32191         * doc/posix-functions/scanf.texi (scanf):
32192         POSIX.1-2001, not POSIX-2001.
32194         doc: move README into manual
32195         * README: Move contents to new file doc/gnulib-readme.texi.
32196         Replace with a one-line summary.
32197         * doc/gnulib.texi (Brief Overview): New section,
32198         with old intro preface.  Include gnulib-readme.texi for contents.
32199         (Philosophy): Rename from "Introduction", since this
32200         section no longer introduces the rest.  Write a new preface.
32201         * doc/gnulib-readme.texi: New file, with the old contents of
32202         README texinfo-ized.  This way, the README info appears
32203         in the online and printed manual.
32205 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
32207         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
32208         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
32209         c_vasprintf() prototype.
32211 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
32213         c-vasprintf: Fix "empty declaration" warning reported by GCC.
32214         * lib/c-vasprintf.h: Remove stray semicolon.
32216 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32218         gettext: avoid obsolete macro AM_PROG_MKDIR_P
32219         It is obsolete and is planned to be removed from Automake 1.14; see
32220         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
32221         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
32222         (installdirs-data, installdirs-data-yes):
32223         Use $(MKDIR_P), not $(mkdir_p).
32224         * m4/intl.m4 (AM_INTL_SUBDIR):
32225         * m4/po.m4 (AM_PO_SUBDIRS):
32226         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
32228 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
32230         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
32231         On this platform, we are not optimizing but we are using
32232         the substitute for extern inlines, so compile as if
32233         C99-style extern inline, or a substitute, is available.
32234         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
32235         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
32236         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
32237         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
32238         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
32239         Declare as ARGP_FS_EI, not as extern.
32240         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
32241         (__option_is_short, _option_is_end, __option_is_end)
32242         [!_LIBC && __USE_EXTERN_INLINES]:
32243         Declare as ARGP_EI, not as extern.
32245 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
32247         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
32248         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
32249         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
32250         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
32251         ...), as the latter is fatal with older Autoconfs.
32252         Problem reported and fix suggested by Eric Blake in thread starting at
32253         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
32255 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
32257         AC_PROG_MKDIR_P: don't workaround if not buggy
32258         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
32259         Define only for Autoconf versions before 2.62.
32260         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
32261         undocumented m4_PACKAGE_VERSION, for consistency with the
32262         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
32263         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
32264         was introduced in 2.62.
32266 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
32268         New 'c-*printf' modules for formatted output in C locale.
32270         New module 'c-vasnprintf'.
32271         * modules/c-vasnprintf: New file.
32272         * lib/c-vasnprintf.c: New file.
32273         * lib/c-vasnprintf.h: New file.
32275         New module 'c-snprintf'.
32276         * modules/c-snprintf: New file.
32277         * modules/c-snprintf-tests: New file.
32278         * lib/c-snprintf.c: New file.
32279         * lib/c-snprintf.h: New file.
32280         * tests/test-c-snprintf.c: New file.
32281         * tests/test-c-snprintf.sh: New file.
32283         New module 'c-vsnprintf'.
32284         * modules/c-vsnprintf: New file.
32285         * modules/c-vsnprintf-tests: New file.
32286         * lib/c-vsnprintf.c: New file.
32287         * lib/c-vsnprintf.h: New file.
32288         * tests/test-c-vsnprintf.c: New file.
32289         * tests/test-c-vsnprintf.sh: New file.
32291         New module 'c-vasprintf'.
32292         * modules/c-vasprintf: New file.
32293         * modules/c-vasprintf-tests: New file.
32294         * lib/c-asprintf.c: New file.
32295         * lib/c-vasprintf.c: New file.
32296         * lib/c-vasprintf.h: New file.
32297         * tests/test-c-vasprintf.c  +: New file.
32298         * tests/test-c-vasprintf.sh: New file.
32300         New module 'c-xvasprintf'.
32301         * modules/c-xvasprintf: New file.
32302         * modules/c-xvasprintf-tests: New file.
32303         * lib/c-xasprintf.c: New file.
32304         * lib/c-xvasprintf.c: New file.
32305         * lib/c-xvasprintf.h: New file.
32306         * tests/test-c-xvasprintf.c: New file.
32307         * tests/test-c-xvasprintf.sh: New file.
32309 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
32311         argp: better 'inline'
32312         Use extern-inline module to declare extern inline functions.
32313         This avoids some bogus warning diagnostics.  Problem discovered
32314         when modifying GNU tar to use the manywarnings module.
32315         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
32316         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
32317         Define based on extern-inline.
32318         * modules/argp (Depends-on): Add extern-inline.
32320 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32322         filemode, sys_stat: Handle MPX files a la AIX.
32323         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
32324         * lib/sys_stat.in.h (S_ISMPX): New macro.
32325         * tests/test-sys_stat.c: Add tests for MPX files.
32327 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32329         x-to-1: honor $PERL
32330         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
32331         a chance to use his preferred version of Perl.  This is typically
32332         required by Darwin users whose default /usr/bin/perl does not have all
32333         the libraries required by help2man, and who need to use their MacPorts
32334         installation of Perl instead.
32336 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32338         gnu-web-doc-update: add all the new files, even in new directories
32339         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
32340         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
32341         Use it.
32342         (main): Don't use cvsutils to get the list of unknown files,
32343         just add all the existing files and directories.
32345 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32347         gnu-web-doc-update: improve --help
32348         * build-aux/gnu-web-doc-update: Move comments into --help.
32350 2012-12-07  Eric Wong  <normalperson@yhbt.net>
32352         mountlist: recognize more "dummy" file systems
32353         * lib/mountlist.c (ME_DUMMY_0):
32354         Add these dummy FS names to the list:
32355         - "debugfs" virtual filesystem for kernel debugging
32356         - "devpts" PTY slave filesystem
32357         - "devtmpfs" device filesystem on top of tmpfs/ramfs
32358         - "fusectl" control filesystem for FUSE
32359         - "mqueue" enumerates POSIX message queues
32360         - "rpc_pipefs" kernel <-> userspace bridge for NFS
32361         - "sysfs" is for exporting kernel objects
32362         - "devfs" device filesystem for Linux 2.4 and FreeBSD
32364 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
32366         extern-inline: avoid incompatibility with Darwin Libc
32367         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
32368         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
32369         Problem reported by Akim Demaille in
32370         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
32372 2012-12-11  Simon Josefsson  <simon@josefsson.org>
32374         gnupload: Work with GnuPG using gpg-agent (for smartcards).
32375         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
32376         let it handle password prompting.
32378 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
32380         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
32381         * lib/canonicalize.c (canonicalize_filename_mode):
32382         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
32383         fetching the current directory.  Don't overrun the beginning of
32384         rpath if there's no slashes after the MS-Windows drive letter.
32386 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
32388         maint.mk: avoid extra forks
32389         * top/maint.mk (_cfg_mk): The GNU make manual documents that
32390         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
32391         So use that instead of "$(shell test -f FILE && echo FILE)".
32393 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32395         vasnprintf: fix ASCII_ONLY typo
32396         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32397         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32398         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32399         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
32400         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
32402 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
32404         list, oset, xlist, xoset: fix extern inline issue with C99
32405         This was introduced by my recent changes for 'inline'.
32406         Problem reported for gettext by Daiki Ueno in
32407         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
32408         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
32409         (gl_list_nx_create, gl_list_size, gl_list_node_value)
32410         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
32411         (gl_list_previous_node, gl_list_get_at)
32412         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
32413         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
32414         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
32415         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
32416         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
32417         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
32418         (gl_list_iterator_free, gl_sortedlist_search)
32419         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
32420         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
32421         (gl_sortedlist_remove):
32422         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
32423         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
32424         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
32425         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
32426         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
32427         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
32428         (gl_list_add_at, gl_sortedlist_add):
32429         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
32430         Wrap these extern decls inside "#if 0", because they are implemented
32431         as inline functions, and extern inline is not what's wanted here.
32432         It would simplify these .h files to remove the extern decls entirely,
32433         although a downside would be less-clear separation between
32434         specification and implementation.
32436 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
32438         sys_stat: no 'static inline'
32439         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
32440         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
32442         extern-inline: no 'static inline'
32443         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
32444         Do not require AC_C_INLINE.
32445         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
32446         'static inline', for older compilers.
32448         snippet/warn-on-use: no 'static inline'
32449         * build-aux/snippet/warn-on-use.h:
32450         Remove unnecessary 'inline' in comment.
32452         rbtree-list, rbtreehash-list: no 'static inline'
32453         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
32454         * lib/gl_anytree_list2.h (node_at):
32455         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
32456         (gl_oset_first, add_nodes_to_buckets):
32457         Now static, not static inline.
32459         regex: no 'static inline'
32460         * lib/regex_internal.c (calc_state_hash):
32461         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
32462         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
32463         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
32464         Now static, not static inline.
32465         (inline) [__GNUC__ < 3 && _LIBC]:
32466         Remove macro; no longer needed.
32468         xvasprintf: no 'static inline'
32469         * lib/xvasprintf.c (xstrcat):
32470         Now static, not static inline.
32471         * m4/xvasprintf.m4 (gl_XVASPRINTF):
32472         Do not require AC_C_INLINE.
32474         parse-datetime, parse-duration: no 'static inline'
32475         * lib/parse-datetime.y (to_uchar):
32476         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
32477         (scale_n_add):
32478         Now static, not static inline.
32479         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
32480         * modules/parse-duration (configure.ac):
32481         Do not require AC_C_INLINE.
32483         getaddrinfo: no 'static inline'
32484         * lib/getaddrinfo.c (validate_family):
32485         Now static, not static inline.
32486         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
32487         Do not require AC_C_INLINE.
32489         ftruncate, fts, lstat, openat, raise: no 'static inline'
32490         * lib/ftruncate.c (chsize_nothrow):
32491         * lib/fts.c (opendirat, diropen):
32492         * lib/lstat.c (orig_lstat):
32493         * lib/openat.c (orig_openat):
32494         * lib/raise.c (raise_nothrow):
32495         Now static, not static inline.
32496         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
32497         * m4/fts.m4 (gl_FUNC_FTS_CORE):
32498         * m4/lstat.m4 (gl_PREREQ_LSTAT):
32499         * m4/openat.m4 (gl_PREREQ_OPENAT):
32500         * m4/raise.m4 (gl_PREREQ_RAISE):
32501         Do not require AC_C_INLINE.
32503         fflush, stat: no 'static inline'
32504         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32505         (clear_ungetc_buffer, disable_seek_optimization)
32506         (restore_seek_optimization, update_fpos_cache):
32507         * lib/stat.c (orig_stat):
32508         Now static, not static inline.
32509         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
32510         (update_fpos_cache):
32511         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
32512         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
32513         * m4/stat.m4 (gl_PREREQ_STAT):
32514         Do not require AC_C_INLINE.
32516         error, filevercmp: no 'static inline'
32517         * lib/error.c (is_open, flush_stdout):
32518         * lib/filevercmp.c (order):
32519         Now static, not static inline.
32520         * m4/error.m4 (gl_PREREQ_ERROR):
32521         * modules/filevercmp (configure.ac):
32522         Do not require AC_C_INLINE.
32524         dup, execute, fatal-signal, etc.: no 'static inline'
32525         * lib/dup.c (dup_nothrow):
32526         * lib/execute.c (nonintr_close, nonintr_open):
32527         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
32528         * lib/fopen.c (orig_fopen):
32529         * lib/freadseek.c (freadptrinc):
32530         * lib/freopen.c (orig_freopen):
32531         * lib/fstat.c (orig_fstat, fstat_nothrow):
32532         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
32533         (get_rusage_as_via_iterator):
32534         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
32535         * lib/getdtablesize.c (_setmaxstdio_nothrow):
32536         * lib/isatty.c (_isatty_nothrow):
32537         * lib/open.c (orig_open):
32538         * lib/read.c (read_nothrow):
32539         * lib/sigprocmask.c (signal_nothrow):
32540         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
32541         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
32542         * lib/wait-process.c (unregister_slave_subprocess):
32543         * lib/write.c (write_nothrow):
32544         Now static, not static inline.
32545         * lib/spawn-pipe.c (nonintr_open): Define only if
32546         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
32547         * m4/dup.m4 (gl_PREREQ_DUP):
32548         * m4/execute.m4 (gl_EXECUTE):
32549         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
32550         * m4/fopen.m4 (gl_PREREQ_FOPEN):
32551         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
32552         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
32553         * m4/fstat.m4 (gl_PREREQ_FSTAT):
32554         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
32555         * m4/isatty.m4 (gl_PREREQ_ISATTY):
32556         * m4/open.m4 (gl_PREREQ_OPEN):
32557         * m4/read.m4 (gl_PREREQ_READ):
32558         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
32559         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
32560         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
32561         * m4/wait-process.m4 (gl_WAIT_PROCESS):
32562         * m4/write.m4 (gl_PREREQ_WRITE):
32563         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
32564         Do not require AC_C_INLINE.
32566         c-strtod, memcoll, readutmp: no 'static inline'
32567         * lib/c-strtod.c (c_locale):
32568         * lib/memcoll.c (strcoll_loop):
32569         * lib/readutmp.c (desirable_utmp_entry):
32570         Now static, not static inline.
32571         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
32572         * m4/memcoll.m4 (gl_MEMCOLL):
32573         * m4/readutmp.m4 (gl_READUTMP):
32574         Do not require AC_C_INLINE.
32576         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
32577         * lib/arctwo.c (to_uchar):
32578         * lib/md4.c (set_uint32):
32579         * lib/md5.c (set_uint32):
32580         * lib/sha1.c (set_uint32):
32581         * lib/sha256.c (set_uint32):
32582         * lib/sha512.c (set_uint64):
32583         Now static, not static inline.  This is a bit simpler, and doesn't
32584         affect performance with GCC and default optimization.
32585         * m4/arctwo.m4 (gl_ARCTWO):
32586         * m4/md4.m4 (gl_MD4):
32587         * m4/md5.m4 (gl_MD5):
32588         * m4/sha1.m4 (gl_SHA1):
32589         * m4/sha256.m4 (gl_SHA256):
32590         * m4/sha512.m4 (gl_SHA512):
32591         Do not require AC_C_INLINE.
32593         cond, lock, thread: better 'inline'
32594         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
32595         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
32596         New macros.  Use them instead of static inline, for header functions.
32597         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
32598         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
32599         * lib/glthread/lock.c (gl_waitqueue_init)
32600         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
32601         * lib/glthread/thread.c (get_current_thread_handle):
32602         Change 'static inline' to 'inline'.
32603         * lib/glthread/cond.h, lib/glthread/thread.h:
32604         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32605         * m4/cond.m4 (gl_COND):
32606         * m4/lock.m4 (gl_PREREQ_LOCK):
32607         * m4/thread.m4 (gl_THREAD):
32608         Do not require AC_C_INLINE.
32609         * modules/cond, modules/thread (Depends-on): Add extern-inline.
32611         chdir-long, cycle-check, savewd: better 'inline'
32612         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
32613         (find_non_slash):
32614         * lib/cycle-check.c (is_zero_or_power_of_two):
32615         * lib/savewd.c (savewd_delegating):
32616         Change 'static inline' to 'inline'.
32617         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
32618         Replace all remaining uses of 'static inline' with it.
32619         * lib/savewd.h:
32620         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32621         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
32622         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
32623         * m4/savewd.m4 (gl_SAVEWD):
32624         Do not require AC_C_INLINE.
32625         * modules/savewd (Depends-on): Add extern-inline.
32627         base32, base64: no need for 'inline'
32628         * lib/base32.c (to_uchar, get_8, decode_8):
32629         * lib/base64.c (to_uchar, get_4, decode_4):
32630         Change 'static inline' to 'inline'.
32631         * m4/base32.m4 (gl_PREREQ_BASE32):
32632         * m4/base64.m4 (gl_PREREQ_BASE64):
32633         Do not require AC_C_INLINE.
32635         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
32636         * lib/gl_array_oset.c (gl_array_nx_add_at):
32637         (gl_array_remove_at):
32638         * lib/gl_linkedhash_list.c (hash_resize_after_add)
32639         (add_to_bucket, remove_from_bucket):
32640         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
32641         Change 'static inline' to 'static', as it's simpler to omit
32642         'inline' unless there's a significant performance advantage.
32644         list, oset, xlist, xoset, xsublist: simplify via extern inline
32645         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
32646         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
32647         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
32648         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
32649         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
32650         New macro.  Replace all uses of 'static inline' with it.
32651         [HAVE_INLINE]: Implement functions as *_INLINE functions,
32652         instead of as macros FOO that are defined to static inline
32653         functions FOO_inline.
32654         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
32655         * lib/gl_xsublist.c:
32656         Reimplement from scratch, by defining the corresponding *_INLINE
32657         macro and including the corresponding .h file.  This is simpler.
32658         * modules/list, modules/oset, modules/xlist, modules/xoset:
32659         (Files): Remove m4/gl_list.m4.
32660         (configure.ac): Remove gl_LIST.
32661         * m4/gl_list.m4: Remove.
32662         * modules/list, modules/oset, modules/xlist, modules/xoset:
32663         * modules/xsublist:
32664         (Depends-on): Depend on extern-inline, not inline.
32666         xalloc: better 'inline'
32667         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
32668         New macro.  Replace all uses of 'static inline' with it.
32669         (static_inline): Remove.
32670         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
32671         Let 'extern inline' do the work automatically, instead of doing
32672         it by hand.
32673         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
32674         Remove.  All uses removed.
32675         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
32677         gethrxtime: better 'inline'
32678         * lib/xtime.c: New file.
32679         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
32680         * lib/xtime.h (XTIME_INCLUDE):
32681         New macros.  Replace all uses of 'static inline' with them.
32682         * lib/gethrxtime.c (gethrxtime): Define only if
32683         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
32684         this source file is now always compiled, because of the extern inline.
32685         * lib/gethrxtime.h, lib/xtime.h:
32686         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32687         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
32688         if gethrtime works, as they're not needed in that case.
32689         (gl_XTIME): Do not require AC_C_INLINE.
32690         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
32691         compiled now.  Move the check into gl_GETHRXTIME.
32692         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
32693         (Depends-on): Add extern-inline.
32694         (configure.ac): gethrxtime is always compiled now.
32695         (lib_SOURCES): Add gethrxtime.c.
32697         wctype-h: better 'inline'
32698         * lib/wctype-h.c: New file.
32699         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
32700         New macro.  Replace all uses of 'static inline' with it.
32701         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32702         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
32703         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
32704         (Depends-on): Add extern-inline.
32706         unistd: better 'inline'
32707         * lib/unistd.c: New file.
32708         * lib/unistd.in.h (_GL_UNISTD_INLINE):
32709         New macro.  Replace all uses of 'static inline' with it.
32710         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32711         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
32712         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
32713         (Depends-on): Add extern-inline.
32715         sys_socket: better 'inline'
32716         * lib/sys_socket.c: New file.
32717         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
32718         New macro.  Replace all uses of 'static inline' with it.
32719         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32720         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
32721         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
32722         (Depends-on): Add extern-inline.
32724         stdio: better 'inline'
32725         * lib/stdio.c: New file.
32726         * lib/stdio.in.h (_GL_STDIO_INLINE):
32727         New macro.  Replace all uses of 'static inline' with it.
32728         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32729         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
32730         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
32731         (Depends-on): Add extern-inline.
32733         sigaction: better 'inline'
32734         * lib/sig-handler.c: New file.
32735         * lib/sig-handler.h (SIG_HANDLER_INLINE):
32736         New macro.  Replace all uses of 'static inline' with it.
32737         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32738         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
32739         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
32740         (Depends-on): Add extern-inline.
32742         selinux-h: better 'inline'
32743         * lib/se-context.c, lib/se-selinux.c: New files.
32744         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
32745         * lib/se-context.in.h (SE_CONTEXT_INLINE):
32746         New macro.  Replace all uses of 'static inline' with it.
32747         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32748         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
32749         New macro.  Replace all uses of 'static inline' with it.
32750         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32751         * modules/selinux-h (Files, lib_SOURCES):
32752         Add lib/se-context.c, lib/se-selinux.c.
32753         (Depends-on): Add extern-inline.
32754         (configure.ac): Do not require AC_C_INLINE.
32756         pthread: better 'inline'
32757         * lib/pthread.c: New file.
32758         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
32759         New macro.  Replace all uses of 'static inline' with it.
32760         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32761         * m4/pthread.m4 (gl_PTHREAD_CHECK):
32762         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
32763         * modules/pthread (Files): Add lib/pthread.c.
32764         (Depends-on): Add extern-inline.
32766         math: better 'inline'
32767         * lib/math.c: New file.
32768         * lib/math.in.h (_GL_MATH_INLINE):
32769         New macro.  Replace all uses of 'static inline' with it.
32770         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32771         * m4/math_h.m4 (gl_MATH_H):
32772         Do not require AC_C_INLINE.
32773         * modules/math (Files, lib_SOURCES):
32774         Add lib/math.c.
32775         (Depends-on): Add extern-inline.
32777         count-one-bits: better 'inline'
32778         * lib/count-one-bits.c: New file.
32779         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
32780         New macro.  Replace all uses of 'static inline' with it.
32781         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32782         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
32783         Do not require AC_C_INLINE.
32784         * modules/count-one-bits (Files, lib_SOURCES):
32785         Add lib/count-one-bits.c.
32786         (Depends-on): Add extern-inline.
32788         count-leading-zeros: better 'inline'
32789         * lib/count-leading-zeros.c: New file.
32790         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
32791         New macro.  Replace all uses of 'static inline' with it.
32792         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32793         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
32794         Do not require AC_C_INLINE.
32795         * modules/count-leading-zeros (Files, lib_SOURCES):
32796         Add lib/count-leading-zeros.c.
32797         (Depends-on): Add extern-inline.
32799         bitrotate: better 'inline'
32800         * lib/bitrotate.c: New file.
32801         * lib/bitrotate.h (BITROTATE_INLINE):
32802         New macros.
32803         Replace all uses of 'static inline' with them.
32804         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32805         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
32806         (Depends-on): Add extern-inline.
32807         (configure.ac): Do not require AC_C_INLINE.
32809 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
32811         maint.mk: avoid gratuitous failure
32812         Reported by Stefano Lattarini in
32813         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
32814         * top/maint.mk (public-submodule-commit): Quote more safely.
32816 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
32818         canonicalize, canonicalize-lgpl: support MS-Windows file names
32819         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
32820         for test cases, which it'd be nice to add at some point.
32821         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
32822         * lib/canonicalize.c (canonicalize_filename_mode):
32823         * lib/canonicalize-lgpl.c (__realpath):
32824         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
32825         slash is at the beginning of the file name.  Use ISSLASH, instead
32826         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
32827         the first character with '/'.  Test for
32828         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
32829         with a drive letter.
32830         * lib/canonicalize.c (SLASHES): New macro.
32831         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
32833 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
32835         fts: introduce FTS_VERBATIM
32836         * lib/fts_.h (FTS_VERBATIM): New bit flag.
32837         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
32838         * lib/fts.c (fts_open): Honor it.
32840 2012-11-09  Pádraig Brady  <P@draigBrady.com>
32842         getlogin-tests: allow errno == ENXIO
32843         * tests/test-getlogin.c (main): Skip tests if getlogin fails
32844         with errno == ENXIO (No controlling tty).
32845         getlogin_r-tests: Likewise. Also allow errno == ENOENT
32846         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
32847         with errno == ENOENT.  This was reported to happen in various
32848         situations on GNU/Linux.
32850 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32852         getlogin-tests: allow errno == ENOENT
32853         * tests/test-getlogin.c (main): Skip tests if getlogin fails
32854         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
32855         when running a test in an Emacs shell buffer.
32857 2012-11-08  Jim Meyering  <jim@meyering.net>
32859         tests/nap.h: avoid warning about unused variable
32860         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
32862         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
32863         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
32864         white space before each of the special-cased file names, to avoid
32865         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
32866         in http://bugs.gnu.org/12830.
32868 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
32870         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
32871         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
32872         fails with errno == EBADF when fd is opened with O_PATH.
32873         Reported by Jim Meyering in
32874         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
32875         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
32876         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
32878 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
32880         test-utimens: speed up by taking shorter naps
32881         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
32882         New functions.
32883         (nap): Use them, to do a better job of guessing the delay.
32884         On Fedora 17 with ext4 atop md atop hard disks, this made
32885         test-utimens run 10x faster, because the test napped for
32886         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
32887         <http://bugs.gnu.org/12820#11>.
32889 2012-11-07  Jim Meyering  <jim@meyering.net>
32891         mountlist.c: fix a compilation failure
32892         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
32893         I introduced while transforming commit v0.0-7683-g613bcb6
32895 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32897         errno: port to LynxOS 178 2.2.2
32898         Problem reported by Joel Brobecker in
32899         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
32900         * doc/posix-headers/errno.texi (errno.h): Document this.
32901         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
32902         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
32903         Supply a string for EILSEQ.
32904         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
32906 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32908         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
32909         Linux kernel 2.6.39 introduced O_PATH (see
32910         <http://lwn.net/Articles/433854/>) and this is a better fallback
32911         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
32912         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
32913         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
32914         * lib/fcntl.in.h (O_ACCMODE):
32915         * tests/test-fcntl-h.c (main):
32916         Do not reject O_ACCMODE merely because it has more than the
32917         minimal number of bits, as POSIX allows extensions here.
32919 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
32921         mountlist: do not classify a bind-mounted dir entry as "dummy"
32922         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
32923         the "none"-testing clause.
32924         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
32925         exception for bind-mounted directories.
32927 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
32929         quote: provide a means to escape strings with nul characters
32930         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
32931         (quote, quote_n): Rename formal arguments for consistency with
32932         quotearg.
32934 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
32936         test-raise: don't assume 199 is an invalid signal
32937         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
32939         sh-quote-tests: port to Solaris 9
32940         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
32941         Problem reported by Dagobert Michelsen in
32942         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
32944 2012-10-28  Jim Meyering  <jim@meyering.net>
32946         maint.mk: rename a new configurable variable
32947         * top/maint.mk (_gl_translatable_string_re): Rename from
32948         translation-markers: _gl_ prefix to insulate from user Makefile code,
32949         and the _re suffix to inform that it's a regular expression.
32951 2012-10-26  Eric Blake  <eblake@redhat.com>
32953         maint.mk: let packages tweak sc_po_check pattern
32954         * top/maint.mk (sc_po_check): Add translation-markers, to allow
32955         finding files with other translation markers.
32957 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32959         euidaccess: speed up 'configure' on GNU hosts
32960         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
32961         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
32962         it's needed only in this case.  Use AC_CHECK_DECLS, not
32963         AC_CHECK_DECLS_ONCE.
32964         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
32965         or AC_REQUIRE for AC_FUNC_GETGROUPS.
32967         * lib/regexec.c (re_search_internal): Fix grammar in comment.
32969 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32971         fchmodat, fchownat, fstatat: port to non-inlining compilers
32972         Problem reported for FreeBSD 9 by Jim Meyering in
32973         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
32974         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
32975         New files, which define FCHMODAT_INLINE etc.
32976         * lib/fchmodat.c (FCHMODAT_INLINE):
32977         * lib/fchownat.c (FCHOWNAT_INLINE):
32978         * lib/fstatat.c (FSTATAT_INLINE):
32979         Remove, as chmodat.c etc. now do this.
32980         * modules/fchmodat (Files): Add lib/chmodat.c.
32981         * modules/fchownat (Files): Add lib/chownat.c.
32982         * modules/fstatat (Files): Add lib/statat.c.
32984 2012-10-15  Jim Meyering  <jim@meyering.net>
32986         fchmodat.c, fchownat.c: compile-impeding typos
32987         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
32988         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
32989         Introduced in commit v0.0-7636-gd202279.
32991 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32993         fcntl-h: support GNU flags like O_IGNORE_CTTY
32994         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
32995         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
32996         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
32997         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
32998         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
32999         Define to 0 if not already defined.
33000         * tests/test-fcntl-h.c: Test these new flags.
33002 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33004         faccessat, etc.: support AT_FDCWD-only use
33005         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
33006         this function only if its first argument is AT_FDCWD.
33007         Emacs wants faccessat for AT_EACCESS but not for any first-arg
33008         values other than AT_FDCWD, so it doesn't want all the openat
33009         machinery with fchdir etc.
33010         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
33011         * modules/fstatat, modules/mkdirat, modules/openat (Files):
33012         * modules/unlinkat (Files):
33013         Remove lib/openat-priv.h, as at-internal supplies this file.
33014         Removing this file here allows us to support programs like Emacs
33015         that avoid at-internal.
33017         faccessat: speed up 'configure' on mainstream hosts
33018         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
33019         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
33020         since it's only on unusual platforms that we need to check for
33021         'access', and it's better not to slow 'configure' down on all
33022         platforms.
33024         faccessat: port to Solaris 10
33025         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
33026         Needed on Solaris 10, which doesn't have AT_EACCESS,
33027         so we need the Gnulib fcntl.h, which defines it.
33029 2012-10-14  Pádraig Brady  <P@draigBrady.com>
33030         canonicalize: fix C89 compilation
33031         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
33032         declarations so C89 is supported.  Also remove the comment
33033         referencing memorty allocation as the suggested feature could
33034         not be implemented as suggested.
33035         Reported by Michael Goffioul.
33037 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33039         group-member: omit unnecessary dependencies
33040         This is for Emacs, which has its own allocator and where we
33041         don't want to use xalloc.
33042         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
33043         since we no longer use xmalloc.  Do not include stdbool.h, since
33044         the changes below happen to remove the only use of bool.
33045         (GROUPBUF_SIZE): New constant.
33046         (struct group_info): Remove n_groups member.  Add groupbuf member.
33047         This lets us get the groups without using malloc, usually.
33048         (free_group_info, get_group_info): Adjust to this.
33049         (get_group_info): Return the number of groups found, or -1 on error.
33050         Use plain malloc not xmalloc, and treat its failure as if there
33051         are no groups, as the user already loses in case of error.
33052         (group_member): Simplify, based on changes to get_group_info.
33053         * modules/group-member (Depends-on): Remove dependencies on
33054         xalloc and stdbool.  Add dependency on xalloc-oversized.
33056 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
33058         gethrxtime: port to C++
33059         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
33061 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33063         ptsname: fix macro-name typo
33064         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
33066 2012-10-03  Simon Josefsson  <simon@josefsson.org>
33068         inttostr: Relax license.
33069         * modules/inttostr (License): Change from LGPL to LGPLv2+.
33071 2012-10-03  Eric Blake  <eblake@redhat.com>
33073         ptsname_r: support ptys returned by FreeBSD posix_openpt
33074         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
33075         lives in /dev/pts/.
33077 2012-10-02  Eric Blake  <eblake@redhat.com>
33079         pselect: reject invalid file descriptors
33080         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
33081         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
33082         * modules/pselect (Depends-on): Add dup2.
33083         * doc/posix-functions/pselect.texi (pselect): Document this.
33085         select: reject invalid file descriptors
33086         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
33087         * lib/select.c (rpl_select) [!win32]: Work around it.
33088         * modules/select (Depends-on): Add dup2.
33089         * doc/posix-functions/select.texi (select): Document this.
33091         select: enhance test
33092         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
33093         New functions.
33094         (test_function): Enhance test.
33095         (do_select_bad_fd): Avoid any stale errno values.
33097         ptsname: reject invalid file descriptors
33098         http://www.austingroupbugs.net/view.php?id=503
33099         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
33100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
33101         * modules/stdlib (Makefile.am): Replace witness.
33102         * lib/stdlib.in.h (ptsname): Allow for replacement.
33103         * modules/ptsname (configure.ac): Trigger replacement.
33104         * doc/posix-functions/ptsname.texi (ptsname): Document this.
33106 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
33108         hash-pjw-bare: new module
33109         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
33110         * lib/hash-pjw-bare.h: Likewise.
33111         * modules/hash-pjw-bare: New file.
33112         * MODULES.html.sh (Misc): Add it.
33114 2012-10-02  Eric Blake  <eblake@redhat.com>
33116         manywarnings: cater to more gcc infelicities
33117         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
33118         -Wuninitialized without -O.
33120 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
33122         select, poll tests: Make setsockopt invocation effective.
33123         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
33124         the bind() call.
33125         * tests/test-select.h (open_server_socket): Likewise.
33127 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33129         sockets, sys_stat: restore AC_C_INLINE
33130         This undoes the 2012-09-22 patch.
33131         * m4/sockets.m4 (gl_SOCKETS):
33132         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
33133         Restore AC_C_INLINE, since MSVC requires __inline or _inline
33134         and does not support plain 'inline'.  Reported by Bruno Haible in
33135         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
33137 2012-09-30  Bruno Haible  <bruno@clisp.org>
33139         localeconv tests: Avoid test failure on OpenIndiana.
33140         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
33141         skip the 'grouping' and 'mon_grouping' tests.
33142         Reported by Jim Meyering.
33144 2012-09-30  Bruno Haible  <bruno@clisp.org>
33146         havelib: Follow libtool developments.
33147         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
33148         Suggested by Simon Josefsson.
33150 2012-09-29  Jim Meyering  <meyering@redhat.com>
33152         fstatat.c: fix a compile-impeding typo
33153         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
33154         Introduced in commit v0.0-7636-gd202279.
33155         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
33157 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
33159         extern-inline: provide a -Wundef safe config.h
33160         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
33161         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
33162         to produce a -Wundef warning free config.h.
33164 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
33166         hash-pjw: relax license to LGPLv2+
33167         * modules/hash-pjw (License): Relax, with consent of author.
33169 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
33171         maint.mk: fix strict vs. lazy variable issues with RELEASE
33172         * top/maint.mk (_equal): New function.
33173         (member_check): Strip the result to avoid spurious spaces.
33174         (url_dir_list): Do not use ifeq, which is strict, as it will
33175         require RELEASE_TYPE to be defined.
33176         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
33177         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
33178         (announcement_Cc_alpha,announcement_mail_headers_alpha)
33179         (announcement_Cc_beta,announcement_mail_headers_beta)
33180         (announcement_Cc_stable,announcement_mail_headers_stable): these.
33181         (release): Do not depend on $(release-type), as it forces its
33182         evaluation.  Bounce to it.
33184 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
33186         maint.mk: formatting changes
33187         * top/maint.mk: Indent bodies of if's.
33189 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
33191         maint.mk: factor the validation of RELEASE_TYPE
33192         With help from Jim Meyering.
33193         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
33194         * top/maint.mk (_empty, _sp): Move their definition earlier.
33195         (member-check, release-type): New.
33196         Use the latter instead of $(RELEASE_TYPE).
33197         Remove now useless local checks.
33199 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
33201         maint.mk: provide "make upload" to ease uploading
33202         See
33203         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
33204         Do not depend simply on the current $(VERSION), as there may have been
33205         new commits since the tarball generation.  Rather, rely on $(RELEASE),
33206         as "make release-commit" already does.
33208         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
33209         "make TYPE".
33211         * top/maint.mk (upload_command, upload, release): New.
33212         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
33213         (VERSION): first word of $(RELEASE) is always right.
33214         (emit_upload_commands): Adjust.
33215         * top/README-release: Update.
33217 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
33219         maint.mk: silent rules
33220         With help from Stefano Lattarini.
33221         * top/maint.mk (writable-files): Use $(AM_V_GEN).
33222         (announcement): Use $(AM_V_at).
33224 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
33226         localename: port gl_locale_name_thread_unsafe to FreeBSD
33227         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
33228         and use the simpler FreeBSD implementation on Mac OS X as well.
33229         Original idea suggested by Ed Maste in
33230         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
33232 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33234         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
33235         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
33236         * lib/mbuiter.c, lib/xsize.c: New files.
33237         * lib/binary-io.h (BINARY_IO_INLINE):
33238         * lib/eealloc.h (EEALLOC_INLINE):
33239         * lib/mbfile.h (MBFILE_INLINE):
33240         * lib/mbiter.h (MBITER_INLINE):
33241         * lib/mbuiter.h (MBUITER_INLINE):
33242         * lib/xsize.h (XSIZE_INLINE):
33243         New macros.
33244         Replace all uses of 'static inline' with them.
33245         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33246         * m4/eealloc.m4 (gl_EEALLOC):
33247         * m4/mbfile.m4 (gl_MBFILE):
33248         * m4/mbiter.m4 (gl_MBITER):
33249         * m4/xsize.m4 (gl_XSIZE):
33250         Do not require AC_C_INLINE.
33251         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
33252         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
33253         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
33254         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
33255         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
33256         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
33257         * modules/binary-io, modules/eealloc, modules/mbfile:
33258         * modules/mbiter, modules/mbuiter:
33259         (Depends-on): Add extern-inline.
33261         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
33262         * lib/pipe-filter-aux.c: New file.
33263         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
33264         Replace all uses of 'static inline' with it.
33265         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33266         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
33267         (filter_retcode): No real need for inline here.
33268         * modules/pipe-filter-gi, modules/pipe-filter-ii:
33269         (Files): Add lib/pipe-filter-aux.c.
33270         (Depends-on): Add extern-inline.
33271         (configure.ac): Do not require AC_C_INLINE.
33272         (lib_SOURCES): Add pipe-filter-aux.c.
33274         fdutimensat: omit unnecessary AC_C_INLINE
33275         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
33277         fchmodat, fchownat, fstatat: use extern-inline
33278         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
33279         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
33280         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
33281         New macros.
33282         * lib/openat.h:
33283         Replace all uses of 'static inline' with them.
33284         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33285         * modules/fchmodat, modules/fchownat, modules/fstatat:
33286         * modules/openat-h:
33287         (Depends-on):
33288         Add extern-inline.
33289         (configure.ac): Remove AC_C_INLINE.
33291         acl, mbchar, priv-set: use extern-inline
33292         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
33293         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
33294         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
33295         New macros.
33296         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
33297         Replace all uses of 'static inline' with it.
33298         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33299         * m4/acl.m4 (gl_FUNC_ACL):
33300         * m4/mbchar.m4 (gl_MBCHAR):
33301         * m4/priv-set.m4 (gl_PRIV_SET):
33302         Remove AC_C_INLINE, since 'inline' is no longer used directly.
33303         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
33304         Add extern-inline.
33306         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
33307         * m4/sockets.m4 (gl_SOCKETS):
33308         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
33309         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
33310         environments where it's already guaranteed to work, so we needn't
33311         check for it at 'configure'-time.
33313         tls-tests: omit unnecessary 'inline'
33314         * tests/test-tls.c (perhaps_yield): No longer inline.
33315         Simplicity and portability trump efficiency in test cases.
33317         utimens-tests: avoid unnecessary 'inline'
33318         * modules/fdutimensat-tests (configure.ac):
33319         * modules/futimens-tests (configure.ac):
33320         * modules/utimens-tests (configure.ac):
33321         * modules/utimensat-tests (configure.ac):
33322         Remove AC_C_INLINE.
33323         * tests/test-utimens-common.h (ctime_compare):
33324         No longer inline.  Simplicity and portability trump efficiency here.
33326         misc: don't limit commentary to inline functions
33327         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
33328         * lib/xalloc-oversized.h, lib/xsize.h:
33329         Contrast macros to functions in general, not just to inline functions,
33330         when the commentary does not apply only to inline functions.
33332 2012-09-20  Jim Meyering  <meyering@redhat.com>
33334         non-recursive-gnulib-prefix-hack: new module
33335         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
33336         the file that originated in Bison.
33337         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
33338         largely copied from a snippet that resided in bison's configure.ac.
33339         * modules/non-recursive-gnulib-prefix-hack: New file.
33340         * MODULES.html.sh (Support for maintaining and releasing projects):
33341         Add it.
33343 2012-09-18  Jim Meyering  <meyering@redhat.com>
33345         maint.mk: generalize _gl_tight_scope for non-recursive make
33346         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
33347         that *.h would describe additional .h files in the directory
33348         specified by $(_gl_TS_dir).  I.e., add this...
33349         (_gl_TS_other_headers): New variable.
33351         maint.mk: exempt trailing blanks found in "binary" files
33352         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
33353         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
33354         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33356 2012-09-17  Jim Meyering  <meyering@redhat.com>
33358         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
33359         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
33360         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
33361         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33363 2012-09-17  Jim Meyering  <meyering@redhat.com>
33365         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
33366         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
33367         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
33368         It is not in the same category as "exit (0)" or "exit (1)", and
33369         besides, I know of no symbolic name for that 77.  Reported by
33370         Richard W.M. Jones in
33371         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33373 2012-09-17  Jim Meyering  <meyering@redhat.com>
33375         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
33376         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
33377         all uses of #define, not just those that start in column 1.
33378         Richard W.M. Jones reported a false positive in
33379         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33381 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
33383         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
33384         * lib/localcharset.c (locale_charset) [DARWIN7]:
33385         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
33386         as these two values are incompatible.  Problem reported by Max Horn.
33387         For more discussion, please see
33388         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
33390         doc: document sticky-EOF issue
33391         * doc/posix-functions/fgetc.texi (fgetc):
33392         * doc/posix-functions/fgets.texi (fgets):
33393         * doc/posix-functions/fread.texi (fread):
33394         * doc/posix-functions/fscanf.texi (fscanf):
33395         * doc/posix-functions/getc.texi (getc):
33396         * doc/posix-functions/getchar.texi (getchar):
33397         * doc/posix-functions/scanf.texi (scanf):
33398         Mention that glibc and default Solaris do not conform to
33399         C99 and POSIX-2001 or later, with respect to how getchar
33400         etc. behave when feof reports nonzero.
33402 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33404         poll: fix poll(0, NULL, msec)
33405         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
33406         but nfd is 0.  In that case poll should behave like select.
33408 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33409             Paolo Bonzini  <bonzini@gnu.org>
33411         poll: fix for systems that can't recv() on a non-socket
33412         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
33413         is readable.  In this case POLLHUP will not be supported.
33414         * doc/posix-functions/poll.texi: Document this.
33416 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
33418         poll/select: document portability problems not fixed by Gnulib.
33419         * doc/posix-functions/poll.texi: poll does not work well on
33420         pipes under Windows.  It has the same limitations as select on
33421         BeOS.
33422         * doc/posix-functions/select.texi: select does not work well
33423         on pipes under Windows.
33425 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
33427         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
33428         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
33429         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
33430         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
33432 2012-09-06  Eric Blake  <eblake@redhat.com>
33434         net_if: give more details about the bug being fixed
33435         * doc/posix-headers/net_if.texi: Add clarification.
33437 2012-09-05  Eric Blake  <eblake@redhat.com>
33439         net_if: new module
33440         * modules/net_if: New module, borrowing ideas from netinet_in.
33441         * m4/net_if_h.m4: New file.
33442         * lib/net_if.in.h: Likewise.
33443         * doc/posix-headers/net_if.texi (net/if.h): Document it.
33444         * MODULES.html.sh (lacking POSIX:2008): Likewise.
33445         * tests/test-net_if.c: Make function checks conditional.
33446         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
33448 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33450         readutmp: fix non-portable UT_PID use
33451         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
33452         Use `UT_PID (u) > 0' as absolute condition.
33454 2012-09-04  Jim Meyering  <meyering@redhat.com>
33456         fts: reduce two or more trailing spaces to just one, usually
33457         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
33458         or more slashes, trim all but the final one.  But if a name consists
33459         solely of two slashes, don't modify it.  If it consists solely of
33460         three or more slashes, strip all but one.
33462         This is part of the solution to a minor problem with rm:
33463         it would print a bogus ELOOP diagnostic when failing to remove
33464         the slash-decorated name of a symlink-to-directory:
33466             $ mkdir d && ln -s d s && env rm -r s/
33467             rm: cannot remove 's': Too many levels of symbolic links
33469         With the change below and a trivial don't-trim-trailing-slashes
33470         adjustment to remove.c, it does this:
33472             $ env rm -r s/
33473             rm: cannot remove 's/': Not a directory
33475         Improved by: Eric Blake
33477         fts: when there is no risk of overlap, use memcpy, not memmove
33478         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
33480 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33482         stdbool: be more compatible with mixed C/C++ compiles
33483         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
33484         Define to bool, true, false, respectively, as GCC's builtin
33485         stdbool.h does.  Problem reported by Michael Goffioul in
33486         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
33488 2012-08-28  Jim Meyering  <meyering@redhat.com>
33490         revert last change: it was not needed
33491         * tests/test-vc-list-files-git.sh: There's already a test for
33492         a working git, just below.
33494 2012-08-28  Jim Meyering  <meyering@redhat.com>
33496         tests: test-vc-list-files-git.sh: skip if git is not available
33497         * tests/test-vc-list-files-git.sh: Skip this test when git is
33498         not available.
33500 2012-08-26  Bruno Haible  <bruno@clisp.org>
33502         gnulib-tool: Remove no-op option --no-changelog.
33503         * gnulib-tool (func_usage): Don't mention --no-changelog.
33504         (do_changelog): Remove variable.
33505         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33507 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33509         doc: remove fdl-1.2.texi
33510         It is no longer used or maintained, and its use of @acronym
33511         is problematic.  See the thread containing
33512         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
33513         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
33514         * doc/old-licenses/fdl-1.2.texi: Remove.
33516         execinfo: port to FreeBSD
33517         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
33518         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
33519         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
33520         * modules/execinfo (Link): Add $(LIB_EXECINFO).
33522 2012-08-23  Jim Meyering  <meyering@redhat.com>
33524         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
33525         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
33526         to placate gcc's -Wold-style-declaration.
33528 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33530         doc: do not use @acronym
33531         * doc/inet_ntoa.texi (inet_ntoa):
33532         * doc/parse-datetime.texi (Seconds since the Epoch)
33533         (Specifying time zone rules):
33534         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
33535         Don't use @acronym.  Problem reported by John Darlington in
33536         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
33538 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33540         stdnoreturn: port to newer GCCs
33541         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
33542         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
33543         Problem reported by Jim Meyering in
33544         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
33545         Also, rename the 'test' function to a void a clash with the
33546         already-supplied 'main' function; this fixes a bug that incorrectly
33547         rejected GCC 4.7.1's <stdnoreturn.h>.
33548         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
33549         Document GCC problem.
33551 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
33553         pipe-filter: fix comment typo
33554         * lib/pipe-filter.h: Mention correct function.
33556 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33558         execinfo: new module
33559         This is for Emacs.  Currently, it provides a no-effect stub
33560         on all platforms where it does not already work.
33561         It already works on glibc-based systems, and on Solaris 11.
33562         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
33563         New files.
33564         * doc/glibc-headers/execinfo.texi (execinfo.h):
33565         * MODULES.html.sh (Misc): Document it.
33567 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33569         extern-inline: support old GCC 'inline'
33570         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
33571         if available.  This applies to GCC versions 2.7 through 4.2, or
33572         when newer GCC is using -fgnu89-inline.  The goal is to address
33573         some of the performance issues mentioned by Bruno Haible in
33574         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
33576 2012-08-20  Eric Blake  <eblake@redhat.com>
33578         maint.mk: avoid redundant file name in message
33579         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
33580         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
33581         (sc_makefile_path_separator_check): Remove bogus $(ME).
33583 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
33585         timer-time: fix link order when static linking on glibc
33586         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
33587         _after_ -lrt so that it's significant.
33589 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33591         timespec: omit unnecessary AC_C_INLINE
33592         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
33594         stat-time: omit unnecessary AC_C_INLINE
33595         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
33596         Do not require AC_C_INLINE.
33598         ignore-value: omit unnecessary AC_C_INLINE
33599         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
33601         sys_select: avoid 'static inline'
33602         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
33604         mktime: avoid 'static inline'
33605         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
33606         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
33608 2012-08-19  Bruno Haible  <bruno@clisp.org>
33610         gnulib-tool: Improve coding style.
33611         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
33612         func_emit_lib_Makefile_am.
33613         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33615 2012-08-19  Bruno Haible  <bruno@clisp.org>
33617         gnulib-tool: Fix indentation.
33618         * gnulib-tool (func_import): Fix indentation.
33620 2012-08-19  Bruno Haible  <bruno@clisp.org>
33622         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
33623         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
33624         on the list of removed files.
33626 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33628         test-parse-datetime: avoid glibc leap-second glitch
33629         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
33630         with the 2012 rules.  Problem reported by Bruce Dubbs in
33631         <http://bugs.gnu.org/12206>.
33633 2012-08-14  Bruno Haible  <bruno@clisp.org>
33635         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
33636         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
33637         from argument.
33638         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33640 2012-08-14  Eric Blake  <eblake@redhat.com>
33642         ldexp: relax license
33643         * modules/ldexp (License): Trivial relax, since the module only
33644         provides a permissively licensed m4 file.
33646 2012-08-13  Bruno Haible  <bruno@clisp.org>
33648         gnulib-tool: Fix persistence of --witness-c-macro option.
33649         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
33650         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33652 2012-08-11  Eric Blake  <eblake@redhat.com>
33654         count-leading-zeros: use a lookup table on non-gcc compilers
33655         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
33656         alternate implementation, suggested by Jim Meyering.
33658 2012-08-10  Eric Blake  <eblake@redhat.com>
33660         count-leading-zeros: new module
33661         * modules/count-leading-zeros: New module.
33662         * m4/count-leading-zeros.m4: New file.
33663         * lib/count-leading-zeros.h: Likewise.
33664         * modules/count-leading-zeros-tests: New test.
33665         * tests/test-count-leading-zeros.c: New file.
33666         * MODULES.html.sh (Integer arithmetic functions): Document it.
33668 2012-08-07  Simon Josefsson  <simon@josefsson.org>
33669             Jim Meyering  <meyering@redhat.com>
33671         maintainer-makefile: Fix syntax error with dash.
33672         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
33673         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
33675 2012-08-05  Jim Meyering  <meyering@redhat.com>
33677         extern-inline: also ignore -Wmissing-declarations
33678         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
33679         required with gcc-4.8.0-to-be.
33681         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
33682         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
33683         for /error ?([^,]*)/.  This avoids false-positives for strings like
33684         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
33686 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
33688         gnumakefile: better interaction with Automake-NG
33689         * modules/gnumakefile [Makefile.am]: The makefiles generated by
33690         Automake-NG always contain a definition of VPATH, even in non-VPATH
33691         builds (its value being simply '.' in that case).  So, in the
33692         'clean-GNUmakefile' rule, to determine whether running under a
33693         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
33694         '$(VPATH)' expands to the empty string.
33696 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
33698         base64: Use extern C scope in header file, for C++.
33699         * lib/base64.h: Add C++ namespace protection.
33701 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
33703         stat-time, timespec, u64: support naive out-of-dir builds
33704         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
33705         Use '#include "foo.h"', not '#include <foo.h>', when including
33706         one's own interface.  This works better when configuring with
33707         out-of-directory builds, since packages need not add an
33708         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
33710 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
33712         utimens: use extern-inline
33713         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
33714         * lib/utimens.h: Add copyright notice, since this is now large enough
33715         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33716         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
33717         * modules/utimens (Depends-on): Add extern-inline.
33719         u64: use extern-inline
33720         * lib/u64.c: New file.
33721         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33722         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
33723         * modules/u64 (Files): Add lib/u64.c.
33724         (Depends-on): Add extern-inline.
33725         (configure.ac): No need to require AC_C_INLINE, since extern-inline
33726         does that now.
33727         (lib_SOURCES): Add u64.c.
33729         timespec: use extern-inline
33730         * lib/timespec.c: New file.
33731         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33732         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
33733         * modules/timespec (Files): Add lib/timespec.c.
33734         (Depends-on): Add extern-inline.
33735         (lib_SOURCES): Add timespec.c.
33737         stat-time: use extern-inline
33738         * lib/stat-time.c: New file.
33739         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33740         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
33741         * modules/stat-time (Files): Add lib/stat-time.c.
33742         (Depends-on): Add extern-inline.
33743         (lib_SOURCES): Add stat-time.c.
33745         extern-inline: new module
33746         * modules/extern-inline, m4/extern-inline.m4: New files.
33747         This is for better support of 'extern inline' a la ISO C99,
33748         with a portable alternative on compilers that do not support
33749         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
33750         of the Emacs executable, when compiled with debugging disabled,
33751         which is a typical way that Emacs is built while developing.
33753 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
33755         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
33756         * build-aux/do-release-commit-and-tag: Move variable definitions
33757         together.
33758         ($branch): Instead of defaulting to "master", default to the current
33759         branch (as gnu-web-doc-update does).
33760         (help): Display the current values of the option arguments.
33761         * top/maint.mk (release-commit): New.
33762         * top/README-release: Simplify the corresponding step.
33764 2012-07-30  Eric Blake  <eblake@redhat.com>
33766         passfd: fix comment on recvfd
33767         * lib/passfd.c (recvfd): Fix comment.
33768         Reported by Jann Horn <jannhorn@googlemail.com>.
33770 2012-07-30  Jim Meyering  <meyering@redhat.com>
33772         maint.mk: avoid a sub-shell
33773         * top/maint.mk (release-prep): Remove unneeded sub-shell.
33775 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33777         maint.mk: use silent-rules support from Automake
33778         * top/maint.mk (news-check, vc-diff-check, announcement)
33779         (no-submodule-changes, alpha beta stable, release-prep)
33780         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
33782 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33784         maint.mk: provide a web-manual-update target
33785         * top/maint.mk: here.
33786         * top/README-release: Use it to simplify the web manual update step.
33788 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33790         README-release: shorten the circuit to post a news
33791         * top/README-release: Point directly to the news submission form.
33793 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33795         gnu-web-doc-update: fix --help
33796         * build-aux/gnu-web-doc-update: The information "top level" was written
33797         twice.
33799 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33801         maint.mk: absolute VPATH issue
33802         * top/maint.mk (release-prep): Help Git find .git/.
33803         From Jim Meyering.
33805 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33807         gitlog-to-changelog: fix previous change
33808         * build-aux/gitlog-to-changelog: Fix condition.
33809         Add missing ";".
33811 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33813         gitlog-to-changelog: don't expect .git to be in $srcdir
33814         Reported by Bruno Haible.
33815         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
33816         * build-aux/gitlog-to-changelog (&git_dir_option): New.
33817         Use it.
33819 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33821         maint.mk: absolute VPATH build fix
33822         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
33823         $(srcdir) is not a parent of $(builddir).
33825 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
33827         clean-temp: Fix memory leak.
33828         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
33829         'files' members of tmpdir.
33831 2012-07-27  Jim Meyering  <meyering@redhat.com>
33833         maint.mk: new rule: refresh-gnulib-patches
33834         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
33835         Use this rule to refresh them.
33836         * top/maint.mk (refresh-gnulib-patches): New rule.
33838 2012-07-24  Bruno Haible  <bruno@clisp.org>
33840         gnulib-tool: Fix handling of inctests variable.
33841         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
33842         Reported by Nick Bowler <nbowler@elliptictech.com>.
33844 2012-07-22  Bruno Haible  <bruno@clisp.org>
33846         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
33847         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
33848         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
33849         Remove exemption for getpass.h.
33850         Suggested by Eric Blake.
33852 2012-07-20  Eric Blake  <eblake@redhat.com>
33854         verify: document conflict with -Wnested-externs
33855         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
33857         maint.mk: forbid exit(-1)
33858         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
33860 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
33862         fsusage: port back to Solaris
33863         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
33864         error (fsd not declared) on Solaris 10.  Reported privately by
33865         Andrew Borodin.
33867 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
33869         gnu-web-doc-update: fix error messages
33870         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
33872         gnu-web-doc-update: check the requirements.
33873         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
33874         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
33875         * build-aux/bootstrap (find_tool): Comment change.
33877 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
33879         maint.mk: minor simplication.
33880         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
33881         for default values.
33883 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
33885         gitlog-to-changelog: VPATH build issues
33886         If builddir is not a subdirectory of srcdir, running git from it will
33887         fail.
33888         * build-aux/gitlog-to-changelog (--srcdir): New option.
33890 2012-07-15  Bruno Haible  <bruno@clisp.org>
33892         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
33893         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
33894         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
33895         Remove exemption for fpending.h.
33896         Suggested by Eric Blake.
33898 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
33900         pthread_sigmask: fix bug on FreeBSD 9
33901         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
33902         Include string.h.
33903         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
33904         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
33905         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
33906         but pthread_sigmask (1729, NULL, NULL) returns zero.
33907         See <http://bugs.gnu.org/11884>.
33908         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
33909         by inspecting whether the main call changed the old mask.
33911 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
33913         README-release: make it more legible
33914         * top/README-release: Improve typography slightly.
33916 2012-07-15  Jim Meyering  <meyering@redhat.com>
33918         maint: require that each sc_... command start with "@"
33919         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
33920         "make sc_maint" helps us avoid this nit.
33922 2012-07-15  Jim Meyering  <meyering@redhat.com>
33924         maint.mk: add leading "@" to quiet new "make syntax-check" rule
33925         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
33927 2012-07-13  Eric Blake  <eblake@redhat.com>
33929         maint.mk: new syntax check for HAVE_DECL checks
33930         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
33931         * cfg.mk
33932         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
33933         Exempt some false positives.
33934         Based on a report by Karel Zak.
33936         argp: make HAVE_DECL usage consistent
33937         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
33938         macros, not whether they are defined.
33939         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
33940         convention with other declaration checks.
33941         Reported by Karel Zak, with suggestions from Paul Eggert.
33943         stat-time: relax license to LGPLv2+
33944         * modules/stat-time (License): Relax, with consent of all authors.
33946         strndup: fix m4 usage error
33947         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
33948         defined, to either 0 or 1.
33949         Reported by Karel Zak.
33951 2012-07-11  Jim Meyering  <meyering@redhat.com>
33953         maint: enable the sc_avoid_if_before_free syntax-check rule
33954         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
33955         (if_before_free_offenders_): Define.
33956         (if_before_free_basename_re_): Define.
33957         Exempt current files with useless if-before-free.
33959 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
33961         gettext: do not assume '#define ... defined ...' behavior
33962         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
33963         Do not use '#define FOO ... defined BAR ...', as the C standard says
33964         it's not portable to expect that this works after macro expansion.
33965         Problem reported for gzip by Steven M. Schweda in
33966         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
33968 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
33970         getloadavg: clean out old Emacs and Autoconf cruft
33971         See Glenn Morris in <http://bugs.gnu.org/11905>.
33972         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
33973         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
33974         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
33975         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
33977 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
33979         bootstrap: let warn be like tests/init.sh's warn_
33980         Reported by Jim Meyering.
33981         * build-aux/bootstrap (warn): Remove, replaced by...
33982         (warnf_, warn_): these.
33983         Adjust callers.
33984         Shorten messages that no longer fit in 80 columns.
33986 2012-07-09  Bruno Haible  <bruno@clisp.org>
33988         getopt: Simplify after Emacs changed.
33989         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
33990         (gl_GETOPT_IFELSE): Remove macro.
33992 2012-07-09  Jim Meyering  <meyering@redhat.com>
33994         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
33995         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
33997         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
33998         Bugs in both of those conspired to make the
33999         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
34000         _sc_search_regexp's handling of non-empty $in_files would filter
34001         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
34002         choice of in_files value meant there would be no match in most
34003         projects, due to the presence of two or more Makefile.in files.
34004         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
34005         Fix a bug in how a non-empty $$in_files was processed:
34006         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
34007         in spite of the name, it's a regexp, not a list of file names.
34009 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34011         getloadavg, getopt: fix commentary re configure.in
34012         Autoconf is deprecating the name 'configure.in', so change it to
34013         to the new name 'configure.ac' in a couple of places.
34014         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
34015         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
34016         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
34017         Emacs has renamed it to configure.ac, and it no longer refers
34018         to these macros anyway.
34020         timespec: mark functions with const attributes
34021         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
34022         Mark with _GL_ATTRIBUTE_CONST.
34024 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
34026         canonicalize[-lgpl]: handle "guessing" values when cross-building
34027         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34028         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
34029         matches "*yes" instead of just "yes".  Regression introduced in commit
34030         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
34032 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
34033             Bruno Haible  <bruno@clisp.org>
34035         canonicalize: make the right guess when cross-compiling to GNU
34036         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
34037         determine whether cross-compiling to glibc systems, so as to
34038         include GNU/Hurd.
34040 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34042         timespec-sub: avoid duplicate include
34043         * lib/timespec-sub.c: Do not include <config.h> twice.
34044         Reported by Juanma Barranquero.
34046 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
34048         bootstrap: use a more consistent error reporting scheme
34049         * build-aux/bootstrap (warn, die): New.
34050         Use them.
34052 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34054         sys_time: allow too-wide tv_sec
34055         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
34056         timeval even if tv_sec is wider than time_t.  This allows
34057         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
34058         as without this patch gnulib replaces struct timeval
34059         and OpenBSD futimes therefore has a type mismatch.
34060         * doc/posix-headers/sys_time.texi: Mention this.
34062         pthread: check for both pthread_create and pthread_join
34063         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
34064         alter the check so that it tests for both pthread_create and
34065         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
34066         Suggested by Bruno Haible and Richard Yao in
34067         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
34069         parse-datetime: doc tuneup
34070         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
34071         spacing issues.
34073 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
34075         do-release-commit-and-tag: fix the previous commit
34076         * build-aux/do-release-commit-and-tag: Actually the test was right,
34077         but the comment and the error message were misleading.
34078         Fix comment, and improve error message.
34079         Perform check first, so that NEWS is not modified uselessly.
34081         do-release-commit-and-tag: fix typo
34082         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
34083         _not_ start with a stub.
34085 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
34087         pthread: check for pthread_create, not pthread_join
34088         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
34089         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
34090         pthread_join in libc.  I hope this removes the need for all the
34091         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
34092         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
34094 2012-07-04  Jim Meyering  <meyering@redhat.com>
34096         parse-datetime: fix failure to diagnose invalid input
34097         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
34098         rather than diagnosing the invalid input.  Now it reports this:
34099         date: invalid date '\260'
34100         * lib/parse-datetime.y (to_uchar): Define.
34101         (yylex): Don't sign-extend "other" bytes.
34102         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
34103         Thanks to Bruno Haible for the patch to this file.
34104         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
34105         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
34107 2012-07-03  Jim Meyering  <meyering@redhat.com>
34109         bootstrap: do not require now-removed build-aux/missing
34110         Now that build-aux/missing is, er, missing, bootstrap would
34111         silently fail.
34112         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
34113         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
34114         no longer part of gnulib.
34115         Diagnose the failure.
34117 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34119         alloca: add support for HP NonStop TNS/E native
34120         * lib/alloca.in.h (alloca): Support the new host.
34121         From a suggestion by Joachim Schmitz in
34122         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
34124 2012-07-02  Pádraig Brady  <P@draigBrady.com>
34126         fsusage: remove code not needed on non GNU/Linux systems.
34128         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
34129         Don't include headers no longer needed in this case.
34130         * lib/fsusage.c [STAT_STATVFS &&
34131         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
34132         STAT_STATFS2_FRSIZE to exclude code not used in this case.
34134 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34136         fsusage: include files needed for glibc 2.6 fallback
34137         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
34138         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
34139         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
34140         Problem reported by Ludovic Courtès in
34141         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
34143         fsusage: avoid needless check on GNU/Linux
34144         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
34145         on GNU/Linux systems, since it can't possibly work.
34147 2012-07-01  Bruno Haible  <bruno@clisp.org>
34149         log: Fix an autoconf >= 2.64 warning.
34150         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
34151         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34153 2012-06-28  Bruno Haible  <bruno@clisp.org>
34155         log10f: Fix possible configuration problem.
34156         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
34157         $LOGF_LIBM.
34158         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34160 2012-06-28  Bruno Haible  <bruno@clisp.org>
34162         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
34163         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
34164         not gl_cv_func_unlink_works.
34165         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34167 2012-06-27  Eric Blake  <eblake@redhat.com>
34169         config: drop scripts that automake says are not independent
34170         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
34171         * build-aux/elisp-comp: Delete.
34172         * build-aux/missing: Likewise.
34173         * build-aux/ylwrap: Likewise.
34174         * modules/elisp-comp: Likewise.
34175         * MODULES.html.sh: Drop mention of elisp-comp.
34176         * NEWS: Mention this.
34178 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
34180         root-uid: new module
34181         This is for portability to Tandem's NonStop Kernel.
34182         * lib/root-uid.h, modules/root-uid: New files.
34183         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
34184         * lib/write-any-file.c, tests/test-sethostname2.c:
34185         Include "root-uid.h".
34186         * lib/euidaccess.c (euidaccess):
34187         * lib/pt_chown.c (main):
34188         * lib/unlinkdir.c (cannot_unlink_dir):
34189         * lib/write-any-file.c (can_write_any_file):
34190         * m4/mknod.m4 (gl_FUNC_MKNOD):
34191         * tests/test-sethostname2.c (geteuid, main):
34192         Don't assume ROOT_UID == 0.
34193         * modules/euidaccess (Depends-on):
34194         * modules/pt_chown (Depends-on):
34195         * modules/sethostname-tests (Depends-on):
34196         * modules/unlinkdir (Depends-on):
34197         * modules/write-any-file (Depends-on):
34198         Add root-uid.
34200         regex: use locale-independent comparison for codeset name
34201         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
34202         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
34203         for codeset name.
34204         * lib/regex_internal.h: Do not include <strings.h>, since we
34205         no longer use strcasecmp.
34206         * modules/regex (Depends-on): Remove strcase.
34208 2012-06-23  Bruno Haible  <bruno@clisp.org>
34210         getopt-posix: No longer guarantee that option processing is resettable.
34211         * doc/posix-functions/getopt.texi: Drop description of problem with
34212         internal state. Fix info about mingw and msvc9.
34213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
34214         option processing by getopt(). Run three test programs instead of one.
34215         Simplify cross-compilation guess.
34216         * NEWS: Mention the change.
34217         Reported by Rich Felker <dalias@aerifal.cx>.
34219 2012-06-26  Bruno Haible  <bruno@clisp.org>
34221         argp, regex: Ensure strcasecmp gets declared.
34222         * lib/argp-help.c: Include <strings.h>.
34223         * lib/regex_internal.h: Likewise.
34224         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
34226 2012-06-24  Bruno Haible  <bruno@clisp.org>
34228         ptsname_r: Make it consistent with ptsname on AIX.
34229         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
34230         implementation as for OSF/1.
34231         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
34232         a pty master.
34234         ptsname_r: Make it consistent with ptsname on OSF/1.
34235         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
34236         OSF/1.
34238 2012-06-24  Bruno Haible  <bruno@clisp.org>
34240         ttyname_r: Fix result on OSF/1, Solaris.
34241         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
34243 2012-06-24  Bruno Haible  <bruno@clisp.org>
34245         ptsname_r: Add support for Solaris.
34246         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
34247         Solaris.
34249         ptsname_r: Fix test failure on native Windows.
34250         * modules/ptsname_r (Depends-on): Add isatty.
34252         ptsname_r: Fix test failures on IRIX, Solaris.
34253         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
34254         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
34255         accordingly.
34256         * lib/ptsname_r.c: Include <fcntl.h>.
34257         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
34258         set errno if fd is invalid.
34259         * tests/test-isatty.c (main): Update comments.
34261 2012-06-24  Bruno Haible  <bruno@clisp.org>
34263         ptsname test: Extend test.
34264         * tests/test-ptsname.c: Include <errno.h>.
34265         (main): Test behaviour with invalid file descriptor.
34267 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34269         time: fix obsolete comment
34270         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
34271         reference to HAVE_STRUCT_TIMESPEC in comment.
34273 2012-06-23  Bruno Haible  <bruno@clisp.org>
34275         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
34276         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
34277         does not handle abbreviated long options with equivalent
34278         disambiguations, set gl_replace_getopt to yes.
34279         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
34281 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34283         time_r: fix typo that always overrode localtime_r decl
34284         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
34285         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
34286         not in a standard include.
34288 2012-06-22  Bruno Haible  <bruno@clisp.org>
34290         Write "Mac OS X" instead of "MacOS X".
34291         * README: Write "Mac OS X" instead of "MacOS X".
34292         * build-aux/bootstrap: Likewise.
34293         * build-aux/install-reloc: Likewise.
34294         * lib/acl-internal.h: Likewise.
34295         * lib/acl_entries.c: Likewise.
34296         * lib/argp-ba.c: Likewise.
34297         * lib/argp-pv.c: Likewise.
34298         * lib/config.charset: Likewise.
34299         * lib/copy-acl.c: Likewise.
34300         * lib/csharpexec.c: Likewise.
34301         * lib/euidaccess.c: Likewise.
34302         * lib/fbufmode.c: Likewise.
34303         * lib/fflush.c: Likewise.
34304         * lib/file-has-acl.c: Likewise.
34305         * lib/filemode.h: Likewise.
34306         * lib/fpurge.c: Likewise.
34307         * lib/freadable.c: Likewise.
34308         * lib/freadahead.c: Likewise.
34309         * lib/freading.c: Likewise.
34310         * lib/freadptr.c: Likewise.
34311         * lib/freadseek.c: Likewise.
34312         * lib/fseeko.c: Likewise.
34313         * lib/fseterr.c: Likewise.
34314         * lib/fsusage.c: Likewise.
34315         * lib/fwritable.c: Likewise.
34316         * lib/fwriting.c: Likewise.
34317         * lib/get-rusage-as.c: Likewise.
34318         * lib/get-rusage-data.c: Likewise.
34319         * lib/getdomainname.c: Likewise.
34320         * lib/idpriv-drop.c: Likewise.
34321         * lib/idpriv-droptemp.c: Likewise.
34322         * lib/localcharset.c: Likewise.
34323         * lib/locale.in.h: Likewise.
34324         * lib/localename.c: Likewise.
34325         * lib/mbsrtowcs-state.c: Likewise.
34326         * lib/nproc.c: Likewise.
34327         * lib/passfd.c: Likewise.
34328         * lib/posix_openpt.c: Likewise.
34329         * lib/printf-parse.c: Likewise.
34330         * lib/progreloc.c: Likewise.
34331         * lib/safe-read.h: Likewise.
34332         * lib/safe-write.h: Likewise.
34333         * lib/sched.in.h: Likewise.
34334         * lib/set-mode-acl.c: Likewise.
34335         * lib/signal.in.h: Likewise.
34336         * lib/stdint.in.h: Likewise.
34337         * lib/stdio-impl.h: Likewise.
34338         * lib/stdlib.in.h: Likewise.
34339         * lib/strtod.c: Likewise.
34340         * lib/sys_select.in.h: Likewise.
34341         * lib/tcgetsid.c: Likewise.
34342         * lib/unistd.in.h: Likewise.
34343         * lib/unlockpt.c: Likewise.
34344         * lib/vasnprintf.c: Likewise.
34345         * lib/vma-iter.c: Likewise.
34346         * lib/wcsrtombs-state.c: Likewise.
34347         * m4/acl.m4: Likewise.
34348         * m4/acosl.m4: Likewise.
34349         * m4/asinl.m4: Likewise.
34350         * m4/atanl.m4: Likewise.
34351         * m4/c-stack.m4: Likewise.
34352         * m4/cosl.m4: Likewise.
34353         * m4/expl.m4: Likewise.
34354         * m4/extensions.m4: Likewise.
34355         * m4/fdatasync.m4: Likewise.
34356         * m4/fmal.m4: Likewise.
34357         * m4/frexp.m4: Likewise.
34358         * m4/frexpf.m4: Likewise.
34359         * m4/frexpl.m4: Likewise.
34360         * m4/fsusage.m4: Likewise.
34361         * m4/getdomainname.m4: Likewise.
34362         * m4/getloadavg.m4: Likewise.
34363         * m4/getopt.m4: Likewise.
34364         * m4/gettext.m4: Likewise.
34365         * m4/gnulib-common.m4: Likewise.
34366         * m4/intdiv0.m4: Likewise.
34367         * m4/intlmacosx.m4: Likewise.
34368         * m4/largefile.m4: Likewise.
34369         * m4/ldexpl.m4: Likewise.
34370         * m4/link-follow.m4: Likewise.
34371         * m4/locale-ar.m4: Likewise.
34372         * m4/locale-fr.m4: Likewise.
34373         * m4/locale-ja.m4: Likewise.
34374         * m4/locale-tr.m4: Likewise.
34375         * m4/locale-zh.m4: Likewise.
34376         * m4/locale_h.m4: Likewise.
34377         * m4/lock.m4: Likewise.
34378         * m4/logl.m4: Likewise.
34379         * m4/mathfunc.m4: Likewise.
34380         * m4/minus-zero.m4: Likewise.
34381         * m4/mktime.m4: Likewise.
34382         * m4/mmap-anon.m4: Likewise.
34383         * m4/multiarch.m4: Likewise.
34384         * m4/nanosleep.m4: Likewise.
34385         * m4/nocrash.m4: Likewise.
34386         * m4/poll.m4: Likewise.
34387         * m4/printf-frexpl.m4: Likewise.
34388         * m4/printf.m4: Likewise.
34389         * m4/signbit.m4: Likewise.
34390         * m4/sinl.m4: Likewise.
34391         * m4/sqrtl.m4: Likewise.
34392         * m4/strerror_r.m4: Likewise.
34393         * m4/tanl.m4: Likewise.
34394         * m4/threadlib.m4: Likewise.
34395         * m4/ttyname_r.m4: Likewise.
34396         * m4/unlink.m4: Likewise.
34397         * m4/visibility.m4: Likewise.
34398         * m4/wcwidth.m4: Likewise.
34399         * tests/minus-zero.h: Likewise.
34400         * tests/test-alloca-opt.c: Likewise.
34401         * tests/test-copy-acl.sh: Likewise.
34402         * tests/test-copy-file.sh: Likewise.
34403         * tests/test-fdatasync.c: Likewise.
34404         * tests/test-file-has-acl.sh: Likewise.
34405         * tests/test-flock.c: Likewise.
34406         * tests/test-fsync.c: Likewise.
34407         * tests/test-localename.c: Likewise.
34408         * tests/test-malloca.c: Likewise.
34409         * tests/test-nonblocking-pipe.h: Likewise.
34410         * tests/test-nonblocking-socket.h: Likewise.
34411         * tests/test-openpty.c: Likewise.
34412         * tests/test-posix_openpt.c: Likewise.
34413         * tests/test-ptsname.c: Likewise.
34414         * tests/test-ptsname_r.c: Likewise.
34415         * tests/test-sameacls.c: Likewise.
34416         * tests/test-select.h: Likewise.
34417         * tests/test-set-mode-acl.sh: Likewise.
34418         * tests/test-snprintf-posix.h: Likewise.
34419         * tests/test-sprintf-posix.h: Likewise.
34420         * tests/test-strtod.c: Likewise.
34421         * tests/test-time.c: Likewise.
34422         * tests/test-vasnprintf-posix.c: Likewise.
34423         * tests/test-vasprintf-posix.c: Likewise.
34424         * doc/acl-resources.txt: Likewise.
34425         * doc/**/*.texi: Likewise.
34426         Reported by Max Horn <max@quendi.de>.
34428 2012-06-22  Bruno Haible  <bruno@clisp.org>
34430         grantpt: Relax requirement regarding invalid file descriptors.
34431         * lib/grantpt.c: Don't include <fcntl.h>.
34432         (grantpt): Don't verify the validity of the file descriptor.
34433         * modules/grantpt (Depends-on): Remove fcntl-h.
34434         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
34435         file descriptors.
34436         * doc/posix-functions/grantpt.texi: Document more platforms on which
34437         grantpt succeeds for invalid file descriptors.
34438         Reported by Rich Felker <dalias@aerifal.cx>.
34440 2012-06-22  Bruno Haible  <bruno@clisp.org>
34442         fbufmode test: Don't test unportable behaviour.
34443         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
34444         (main): Invoke it three times.
34445         Reported by Szabolcs Nagy <nsz@port70.net>
34446         and Rich Felker <dalias@aerifal.cx>.
34448 2012-06-21  Bruno Haible  <bruno@clisp.org>
34450         gnulib-tool: Refactor inctests variable.
34451         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
34452         (func_modules_transitive_closure,
34453         func_modules_transitive_closure_separately,
34454         func_import, func_create_testdir): Update.
34456         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
34457         * gnulib-tool: Accept option --without-tests.
34458         (func_usage): Document --without-tests option. Rearrange.
34459         (inctests): Normalize according to the mode.
34460         * NEWS: Mention the change.
34461         Suggested by Simon Josefsson.
34463 2012-06-21  Bruce Korb  <bkorb@gnu.org>
34465         parse-duration test: Avoid spurious output.
34466         * tests/test-parse-duration.sh: Reindent with leading tabs.
34468 2012-06-21  Jim Meyering  <meyering@redhat.com>
34470         maint: disable the strncpy prohibition
34471         * cfg.mk: Do not prohibit strncpy here.
34473 2012-06-21  Bruno Haible  <bruno@clisp.org>
34475         nonblocking: Avoid compilation error on mingw64.
34476         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
34477         fscanf.
34478         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
34479         * modules/vfscanf (configure.ac): Likewise.
34480         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
34481         definition only if stdio.h has prepared it.
34482         Reported by Daniel P. Berrange <berrange@redhat.com>.
34484 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
34486         gnulib-tool: Use readlink if it is available.
34487         * gnulib-tool (func_readlink): Choose function more appropriately.
34489 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34491         posixtm-tests: port to buggy compiler
34492         Problem reported by Simon Josefsson in
34493         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
34494         * modules/posixtm-tests (Depends-on): Add stdint.
34495         * tests/test-posixtm.c (struct posixtm_test.t_expected):
34496         Now of type int_least64_t, not int64_t, both because that's
34497         what INT64_C returns and because int_least64_t works even
34498         on 72-bit hosts.
34499         (T): Use INT64_C on constants outside the traditional int range,
34500         to work around compiler bug noted by Simon.
34502         mktime: fix integer overflow in 'configure'-time test
34503         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
34504         after integer overflow.  Problem reported by Rich Felker in
34505         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
34506         Also, don't look for further instances of a bug if we've already
34507         found one instance; this helps 'configure' run faster.
34509 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
34511         tmpfile, clean-temp: Fix invocation of GetVersionEx.
34512         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
34513         GetVersionEx correctly.
34514         * lib/clean-temp.c (supports_delete_on_close): Likewise.
34516 2012-06-20  Bruno Haible  <bruno@clisp.org>
34518         fdopen: Allow implementations that don't reject invalid fd arguments.
34519         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
34520         succeeds.
34521         Reported by Rich Felker <dalias@aerifal.cx>.
34523 2012-06-20  Simon Josefsson  <simon@josefsson.org>
34525         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
34526         bring in LIBINTL.
34528 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34530         init.sh: do not rely on autoupated PWD
34531         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
34532         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
34533         Although Nelson's bug was not necessarily fixed by this patch,
34534         it seems wise to make the change for safety.
34535         * tests/init.sh (path_prepend_): Do not rely on PWD updating
34536         automagically after 'cd'; this is not reliable on older shells.
34537         (setup_): Fail if we cannot cd to temporary directory.
34539 2012-06-19  Bruno Haible  <bruno@clisp.org>
34541         stat, fstat: Avoid warnings on mingw64.
34542         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
34543         redefining.
34544         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
34545         Reported by Daniel P. Berrange <berrange@redhat.com>.
34547 2012-06-19  Bruno Haible  <bruno@clisp.org>
34549         stdioext: Add support for musl libc.
34551         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
34552         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
34554         * m4/fseterr.m4: New file.
34555         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
34556         function exists.
34557         * modules/fseterr (Files): Add m4/fseterr.m4.
34558         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
34559         __fseterr does not exist.
34560         (Makefile.am): Remove fseterr.c from lib_SOURCES.
34562         * lib/freadable.h: Update comment.
34564         * lib/fwritable.h: Update comment.
34566         * lib/freading.h: Update comment.
34568         * lib/fwriting.h: Update comment.
34570         * m4/freadahead.m4: New file.
34571         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
34572         that function exists.
34573         * modules/freadahead (Files): Add m4/freadahead.m4.
34574         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
34575         __freadahead does not exist.
34576         (Makefile.am): Remove freadahead.c from lib_SOURCES.
34578         * m4/freadptr.m4: New file.
34579         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
34580         function exists.
34581         * modules/freadptr (Files): Add m4/freadptr.m4.
34582         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
34583         __freadptr does not exist.
34584         (Makefile.am): Remove freadptr.c from lib_SOURCES.
34586         * m4/freadseek.m4: New file.
34587         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
34588         exists.
34589         * modules/freadseek (Files): Add m4/freadseek.m4.
34590         (configure.ac): Invoke gl_FUNC_FREADSEEK.
34592         * lib/fpurge.c (fpurge): Update comment.
34594         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
34596 2012-06-19  Bruno Haible  <bruno@clisp.org>
34598         *printf-posix: Put more info into config.log.
34599         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
34600         exit code into config.log.
34602 2012-06-19  Bruno Haible  <bruno@clisp.org>
34604         getopt-gnu: Fix exit code overflow in autoconf test.
34605         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
34606         to keep them below < 128.
34608 2012-06-17  Jim Meyering  <meyering@redhat.com>
34610         maint.mk: fix typo in code to derive GPG key at release time
34611         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
34613 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
34615         regex: avoid warning when pointers are not long
34616         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
34617         and uintptr_t, not long, for portability to hosts where pointers and
34618         long have different sizes.  Issue noted by Daniel P. Berrange in
34619         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
34620         and fix suggested by Bruno Haible in
34621         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
34623 2012-06-17  Bruno Haible  <bruno@clisp.org>
34625         dummy: Relicense into the public domain.
34626         * modules/dummy (License): Set to "public domain".
34627         Suggested by Reuben Thomas.
34629 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
34631         announce-gen: VPATH issues
34632         * build-aux/announce-gen (--srcdir): New option, used to trim the
34633         $srcdir part of the path from $builddir to NEWS.
34634         * top/maint.mk (announcement): Adjust.
34636 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
34638         gnu-web-doc-update: VPATH builds
34639         * build-aux/gnu-web-doc-update (--builddir): New option.
34640         Revamp the handling of options.
34641         Prefer $(...) to `...`.
34642         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
34643         the template, and it is GNU mktemp specific.
34644         Prefer set -e to long series of &&.
34645         Restore the initial git branch, not "master".
34646         Properly initialize submodules (don't rely only on bootstrap).
34647         Do not reconfigure blindly, use config.status.
34648         * top/README-release: Update instructions for gnu-web-doc-update.
34650 2012-06-11  Jim Meyering  <meyering@redhat.com>
34652         maint.mk: revert most of the previous change re "all these"
34653         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
34654         For rationale, see the discussion at
34655         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
34657 2012-06-10  Karl Berry  <karl@gnu.org>
34659         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
34661         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
34663 2012-06-10  Bruce Korb  <bkorb@gnu.org>
34665         parse-duration: Relicense under LGPLv2+.
34666         * modules/parse-duration (License): Change to LGPLv2+.
34668 2012-06-10  Jim Meyering  <meyering@redhat.com>
34670         maint.mk: prohibit common grammar error: "all these"
34671         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
34672         the list of prohibited word sequences.  It should be "all of these".
34673         * lib/tempname.c (__gen_tempname): Fix one of them.
34675 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34677         do-release-commit-and-tag: support VPATH builds
34678         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
34679         (noteworthy): Defined earlier to factor its value.
34680         (noteworthy_stub): New.
34681         Use it to factor.
34682         (help_version): Split into...
34683         (help, version): these.
34684         Adjust the option processing part.
34685         Support "--option=value" in addition to "--option value".
34686         (builddir): New.
34687         (--builddir): New option.
34688         * top/README-release: Document this.
34689         Reword slightly so that the reader cannot understand that he
34690         has to do these steps before calling do-release-commit-and-tag.
34692 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34694         readme-release: also require announce-gen and maintainer-makefile
34695         * modules/readme-release (Depends-on): here.
34696         * modules/announce-gen, modules/do-release-commit-and-tag,
34697         modules/gnu-web-doc-update, modules/maintainer-makefile
34698         (Description): Point to readme-release.
34700 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34702         maint.mk: fix VPATH issues.
34703         * top/maint.mk (news-check): GNU Make understand $< very well.
34704         (release-prep): NEWS is in $(srcdir).
34706 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
34708         readme-release: require the promoted modules.
34709         * modules/readme-release (Depends-on): Add
34710         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
34711         in this text.
34713 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34714             Bruno Haible  <bruno@clisp.org>
34716         error, strerror-override: Support mingw64 from Fedora 17.
34717         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
34718         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
34719         EINPROGRESS.
34720         * lib/strerror-override.h (strerror_override): Test it.
34721         * lib/strerror-override.c (strerror_override): Likewise.
34722         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
34724 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34725             Bruno Haible  <bruno@clisp.org>
34727         error, strerror-override: Support mingw64 from Fedora 17.
34728         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
34729         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
34730         * lib/strerror-override.h (strerror_override): Test it.
34731         * lib/strerror-override.c (strerror_override): Likewise.
34733 2012-06-03  Bruno Haible  <bruno@clisp.org>
34735         error, strerror-override: Support new errno values from POSIX:2008.
34736         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
34737         ENOTRECOVERABLE.
34738         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
34739         platforms.
34740         * lib/strerror-override.c (strerror_override): Conditionalize the
34741         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
34742         * lib/strerror-override.h (strerror_override): Declare also if
34743         GNULIB_defined_EOWNERDEAD is defined.
34744         * tests/test-errno.c (e130, e131): New variables.
34745         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
34746         ENOTRECOVERABLE.
34747         Reported by Paolo Bonzini.
34749 2012-05-31  Jim Meyering  <meyering@redhat.com>
34751         savewd: add missing dependency on sys_wait module
34752         * modules/savewd (Depends-on): Add sys_wait, needed at least
34753         for MSVC.  Report and suggested change by Michael Goffioul.
34755 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34757         system-quote-tests: port to CentOS 5
34758         Problem reported by Tom G. Christensen in
34759         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
34760         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
34762 2012-05-29  Jim Meyering  <meyering@redhat.com>
34764         maint: fix typos in comments and ChangeLog
34765         Culprits identified and fixed mostly automatically using these commands:
34766         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
34767         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
34768         using http://github.com/lyda/misspell-check
34769         * ChangeLog: Fix typos.
34770         * doc/solaris-versions: Likewise.
34771         * lib/regexec.c (re_search_stub): Likewise.
34772         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
34774 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
34776         manywarnings: remove duplicate -Wmultichar entry
34777         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
34778         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
34779         so keep the entry marked as documented.
34781 2012-05-27  Karl Berry  <karl@gnu.org>
34783         * config/srclist.txt (mktime.c): remove last libc sync,
34784         perhaps just temporarily.
34786 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
34788         regex: don't assume uint64_t or uint32_t
34789         * lib/regcomp.c (init_word_char): Don't assume that the types
34790         uint64_t and uint32_t exist.  The C standard doesn't guarantee
34791         them, and on some 32-bit compilers there is no uint64_t.
34792         Problem reported by Gianluigi Tiesi in
34793         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
34795 2012-05-25  Jim Meyering  <meyering@redhat.com>
34797         maint.mk: add strncpy-prohibiting syntax-check rule
34798         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
34800 2012-05-24  Jim Meyering  <meyering@redhat.com>
34802         maint.mk: compute $(gpg_key_ID) more portably
34803         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
34804         That use of sed is not portable to some fringe systems.
34805         Reported by Paul Eggert in
34806         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
34808 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
34810         mktime: sync from glibc
34811         * config/srclist.txt: Uncomment mktime.c.
34812         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
34813         First, indent with tabs, since glibc uses tabs and doesn't want to
34814         change and we'd rather be identical to glibc.  Also, two small
34815         coding changes:
34816         (isdst_differ): Use &&, not &, as && is the usual style.
34817         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
34818         for clarity.
34820 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34822         announce-gen: du -h is more portable than du --human
34823         * build-aux/announce-gen (sizes): Invoke du with -h instead
34824         of --human.  Accept leading white space in its output.
34826 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34828         announce-gen: Improve diagnostics.
34829         * build-aux/announce-gen: When parsing command line options,
34830         prefer "announce-gen: option --release-type requires an argument"
34831         to "Option release-type requires an argument".
34833 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34835         maint.mk: gpg_key_ID: use sed more portably
34836         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
34837         the closing brace.
34838         (refresh-po): Fuse two sed invocations into one.
34840 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
34842         gitlog-to-changelog: support the log message format used in Bison.
34843         * build-aux/gitlog-to-changelog: Support --strip-tab and
34844         --strip-cherry-picked.
34846 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34848         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
34849         the rest of the current time slice to another thread in the current
34850         process. So if the thread that feeds the file decscriptor we're
34851         polling is not in the current process, we get busy-waiting.
34852         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
34853         Patch from Theodore Leblond.
34854         * lib/select.c: Split polling out of the loop that sets the output
34855         fd_sets.  Check for zero result and loop if the wait timeout is
34856         infinite.
34858 2012-05-21  Simon Josefsson  <simon@josefsson.org>
34860         select: Fix build error on IRIX 6.5.
34861         * lib/select.c: Include stddef.h for NULL.
34863 2012-05-21  Simon Josefsson  <simon@josefsson.org>
34865         gc: fix libgcrypt detection on older machines.
34866         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
34867         copyright years because the file has been distributed every year
34868         since it was created.
34870 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
34872         crypto: fix bug in large buffer handling
34873         Problem reported by Serge Belyshev for glibc in
34874         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
34875         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
34876         * lib/md4.c (md4_process_block):
34877         * lib/md5.c (md5_process_block):
34878         * lib/sha1.c (sha1_process_block):
34879         * lib/sha256.c (sha256_process_block):
34880         Don't assume the buffer length is less than 2**32.
34881         * lib/sha512.c (sha512_process_block): Likewise.
34882         Here, the bug is present only in the rare case where the host does
34883         not support uint64_t or where size_t is wider than 64 bits.
34884         Use u64size to work around the problems.
34885         * lib/u64.h (u64size): New macro.
34887 2012-05-15  Pádraig Brady  <P@draigBrady.com>
34889         fsusage: fix block size returned on older Linux 2.6
34891         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
34892         which is available since Linux 2.6.
34893         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
34894         when the member is available so it can be used as a fallback.
34895         * doc/posix-functions/statvfs.texi: Mention the hang issue
34896         on Linux < 2.6.36.
34898 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
34900         bootstrap: suppress stderr chatter
34901         * build-aux/bootstrap (insert_sorted_if_absent, main program):
34902         Omit unnecessary chatter to stderr.  The main program chatter
34903         was there only inadvertantly.
34905         bootstrap: .gitignore files created by autopoint, libtool
34906         I ran into this problem when bootstrapping the latest diffutils.
34907         After './bootstrap', 'git status' reported lots of untracked files
34908         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
34909         autopoint and do not need to be version-controlled.
34910         * build-aux/bootstrap: Put into .gitignore the files that
34911         autopoint and libtool create, by keeping track of files that exist
34912         after but not before these programs are run.
34913         (version_controlled_file): Move up.  2nd arg is now full file
34914         name, not base name; this is more convenient.  Put CVS at the end,
34915         as it's now somewhat deprecated.
34917 2012-05-14  Jim Meyering  <meyering@redhat.com>
34919         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
34920         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
34921         definition.  Reported by Bruno Haible.
34923 2012-05-13  Bruno Haible  <bruno@clisp.org>
34924             Paul Eggert  <eggert@cs.ucla.edu>
34926         binary-io: Define set_binary_mode function.
34927         * lib/binary-io.h (set_binary_mode): New function.
34928         (SET_BINARY): Define in terms of set_binary_mode.
34929         * modules/binary-io (configure.ac): Require AC_C_INLINE.
34930         * tests/test-binary-io.c (main): Accept an argument, and test either
34931         set_binary_mode or SET_BINARY depending on the argument.
34932         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
34933         argument. Clean up also t-bin-out0.tmp.
34935 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
34937         bootstrap: take advantage of POSIX shell features
34939         The 'bootstrap' script offered by Gnulib script already uses POSIX
34940         shell features (like $((...)) arithmetic expansions) that are not
34941         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
34942         means that bootstrap must already be run using a proper POSIX shell,
34943         which will thus provide more features, like ${var#pattern} parameter
34944         expansion or inversion of a command exit status with '!'.  We can
34945         thus use these features to improve the clarity and the performances
34946         of the bootstrap script.
34948         Suggested by Eric Blake.
34950         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
34951         of sed/expr plus command substitutions, to save some forks.  While
34952         we are at it, prefer the POSIX $(...) form of command substitution,
34953         rather than the legacy form `...` (since the former is visually
34954         clearer and interacts better with quoting), and prefer the idiom:
34955           "if ! CMD; then ACTION ..."
34956         over the idiom:
34957           "if CMD; then :; else ACTION ..."
34958         which was required by legacy Bourne shells not supporting '!'.
34960 2012-05-12  Bruno Haible  <bruno@clisp.org>
34962         system-quote: Add more comments.
34963         * lib/system-quote.h: Add more comments about wilcards and limitations.
34964         Suggested by Eli Zaretskii <eliz@gnu.org>.
34966         sh-quote, system-quote: Add comments about wildcards.
34967         * lib/sh-quote.h: Clarify what happens with wildcard characters.
34968         * lib/system-quote.h: Likewise.
34969         Reported by Eli Zaretskii <eliz@gnu.org>.
34971 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34973         fsusage: check for GNU/Linux statvfs problem dynamically
34974         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
34975         Define STAT_STATFS2_BSIZE too, since in this case the code now
34976         checks dynamically whether statvfs is reliable, falling back on
34977         Linux-style statfs otherwise.
34978         (statvfs_works): New function, for dynamically testing statvfs.
34979         (get_fs_usage) [STAT_STATVFS]: Use it.
34980         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
34981         statvfs on GNU/Linux hosts, since it's now done dynamically.
34983 2012-05-10  Bruno Haible  <bruno@clisp.org>
34985         system-quote, execute, spawn-pipe: Escape '?' on Windows.
34986         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
34987         '?' character.
34988         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
34989         * tests/test-system-quote-main.c (check_all): Check also strings like
34990         "??????????".
34991         Reported by Eli Zaretskii <eliz@gnu.org>.
34993 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
34995         _Noreturn: port config.h to gcc -Wundef
34996         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
34997         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
34998         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
35000 2012-05-10  Bruno Haible  <bruno@clisp.org>
35002         system-quote: Refactor.
35003         * lib/system-quote.h (system_quote_copy): Fix comment.
35004         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
35005         New functions, extracted from system_quote_copy.
35006         (system_quote_length, system_quote_copy): Use these functions.
35007         Reported by Paul Eggert.
35009 2012-05-08  Bruno Haible  <bruno@clisp.org>
35011         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
35012         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
35014 2012-05-08  Bruno Haible  <bruno@clisp.org>
35016         Tests for module 'system-quote'.
35017         * modules/system-quote-tests: New file.
35018         * tests/test-system-quote.sh: New file.
35019         * tests/test-system-quote-main.c: New file.
35020         * tests/test-system-quote-child.c: New file.
35022         New module 'system-quote'.
35023         * lib/system-quote.h: New file.
35024         * lib/system-quote.c: New file.
35025         * modules/system-quote: New file.
35027 2012-05-08  Bruno Haible  <bruno@clisp.org>
35029         sh-quote: Make C++ safe and allow multiple inclusion.
35030         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
35031         declarations in extern "C".
35033 2012-05-08  Bruno Haible  <bruno@clisp.org>
35035         sh-quote tests: Make tests stricter.
35036         * tests/test-sh-quote.c (check_one): Check the return value of
35037         shell_quote_copy.
35038         (main): Check a string with a CR character. Check a string that
35039         contains UCHAR_MAX.
35041 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
35043         warnings.m4: provide a means to specify the program to compile.
35044         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
35045         (gl_WARN_ADD): here.
35046         Use gl_AS_VAR_APPEND.
35047         Support an argument to specify the program to compile.
35048         (gl_WARN_ADD): Accept an argument to specify the program to compile.
35049         AC_SUBST the WARN_CFLAGS when they are used.
35050         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
35051         leave this to gl_WARN_ADD.
35053 2012-05-08  Eric Blake  <eblake@redhat.com>
35055         doc: recommendations on gettext version
35056         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
35057         choice between versions.
35058         * DEPENDENCIES (gettext): Cover both approaches.
35060 2012-05-08  Jim Meyering  <meyering@redhat.com>
35062         init.sh: explain why EXEEXT support uses aliases rather than functions
35063         * tests/init.sh: Add a comment.
35065         init.sh: don't let bash aliases interfere with tests
35066         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
35067         is bash.  This avoids problems for those who alias standard commands to
35068         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
35069         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
35071 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35073         stdint: be more consistent with glibc, SunOS libc
35074         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
35075         (gl_int_fast16_t, gl_uint_fast16_t)
35076         (gl_int_fast32_t, gl_uint_fast32_t)
35077         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
35078         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
35079         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
35080         Be consistent with glibc by default, and with SunOS 5.10 and later
35081         if __sun is defined.  This lessens the likelihood of clashes if
35082         code compiled for older hosts is combined with code compiled for
35083         newer ones.  Problem reported by Niels Möller in
35084         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
35086 2012-05-07  Eric Blake  <eblake@redhat.com>
35088         isatty: relax license to LGPLv2+
35089         * modules/isatty (License): Relax license.
35091 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35093         stat-size: comment fix
35094         * lib/stat-size.h: Remove obsolete comment about indenting.
35096 2012-05-06  Bruno Haible  <bruno@clisp.org>
35098         Tests for module 'sh-quote'.
35099         * modules/sh-quote-tests: New file.
35100         * tests/test-sh-quote.c: New file.
35102 2012-05-06  Bruno Haible  <bruno@clisp.org>
35104         sh-quote: Improve shell_quote_argv's signature.
35105         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
35106         * lib/sh-quote.c (shell_quote_argv): Likewise.
35108 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35110         stdint: document issues with int_fast8_t etc.
35111         * doc/posix-headers/stdint.texi (stdint.h): Say that other
35112         stdint.h substitutes may define these types differently.  See
35113         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
35115 2012-05-05  Bruno Haible  <bruno@clisp.org>
35117         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
35118         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
35119         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
35120         or 'guessing no (mishandles large arguments)'.
35122 2012-05-05  Bruno Haible  <bruno@clisp.org>
35124         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
35125         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
35126         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
35127         set gl_cv_func_link_follows_symlink to "guessing no".
35129 2012-05-05  Bruno Haible  <bruno@clisp.org>
35131         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
35132         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
35133         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
35134         "guessing no".
35135         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
35137 2012-05-05  Bruno Haible  <bruno@clisp.org>
35139         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
35140         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
35141         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
35142         set gl_cv_struct_dirent_d_ino to "guessing yes".
35144 2012-05-05  Bruno Haible  <bruno@clisp.org>
35146         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
35147         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
35148         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
35149         "guessing yes".
35151 2012-05-05  Bruno Haible  <bruno@clisp.org>
35153         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
35154         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
35155         compiling to a glibc system, set gl_cv_func_signbit and
35156         gl_cv_func_signbit_gcc to "guessing yes".
35158 2012-05-05  Bruno Haible  <bruno@clisp.org>
35160         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
35161         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
35162         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
35163         to "guessing yes".
35164         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
35165         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
35167 2012-05-05  Bruno Haible  <bruno@clisp.org>
35169         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
35170         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
35171         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
35172         gl_cv_func_realpath_works to "guessing yes".
35174 2012-05-05  Bruno Haible  <bruno@clisp.org>
35176         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
35177         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
35178         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
35180 2012-05-04  Bruno Haible  <bruno@clisp.org>
35182         Tweak last commit.
35183         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
35184         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35186 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
35188         unistd_h: make it easier to avoid sys_types_h
35189         This is useful for Emacs, which has its own method of porting to
35190         Windows, and which therefore does not need the sys_types_h module.
35191         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
35192         code moved here from gl_SYS_TYPES_H.
35193         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
35194         using the code directly.
35195         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
35196         gl_SYS_TYPES_H.
35197         * modules/sys_types (Files):
35198         * modules/unistd (Files): Add m4/off_t.m4.
35200 2012-05-03  Bruno Haible  <bruno@clisp.org>
35202         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
35203         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
35204         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
35205         "guessing yes" or "guessing no".
35206         (gl_FUNC_LSTAT): Update.
35207         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
35208         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
35209         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
35211 2012-05-03  Bruno Haible  <bruno@clisp.org>
35213         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
35214         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
35215         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
35216         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
35217         cross-compiling, choose the first alternative on glibc systems.
35218         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
35220 2012-05-03  Bruno Haible  <bruno@clisp.org>
35222         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
35223         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
35224         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
35226 2012-05-03  Bruno Haible  <bruno@clisp.org>
35228         chown: Avoid "guessing no" when cross-compiling to glibc systems.
35229         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
35231 2012-05-03  Bruno Haible  <bruno@clisp.org>
35233         Avoid "guessing no" guesses when cross-compiling to glibc systems.
35234         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
35235         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
35236         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
35237         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
35238         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
35239         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
35240         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
35241         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
35242         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
35243         compiling to glibc systems, set gl_cv_func_chown_slash_works,
35244         gl_cv_func_chown_ctime_works to "guessing yes".
35245         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
35246         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
35247         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
35248         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
35249         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
35250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
35251         compiling to glibc systems, set gl_cv_func_open_directory_works to
35252         "guessing yes".
35253         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
35254         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
35255         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
35256         "guessing yes".
35257         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
35258         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
35259         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
35260         compiling to glibc systems, set gl_cv_func_floorf_ieee to
35261         "guessing yes".
35262         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
35263         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
35264         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
35265         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
35266         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
35267         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
35268         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
35269         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
35270         "guessing yes".
35271         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
35272         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
35273         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
35274         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
35275         "guessing yes".
35276         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
35277         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
35278         "guessing yes".
35279         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
35280         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
35281         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
35282         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
35283         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
35284         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
35285         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
35286         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
35287         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
35288         compiling to glibc systems, set gl_cv_func_log10f_ieee to
35289         "guessing yes".
35290         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
35291         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
35292         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
35293         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
35294         "guessing yes".
35295         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
35296         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
35297         "guessing yes".
35298         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
35299         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
35300         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
35301         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
35302         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
35303         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
35304         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
35305         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
35306         compiling to glibc systems, set gl_cv_func_mkfifo_works to
35307         "guessing yes".
35308         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
35309         compiling to glibc systems, set gl_cv_func_mknod_works to
35310         "guessing yes".
35311         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
35312         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
35313         "guessing yes".
35314         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
35315         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
35316         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
35317         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
35318         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
35319         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
35320         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
35321         compiling to glibc systems, set gl_cv_func_svid_putenv to
35322         "guessing yes".
35323         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
35324         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
35325         "guessing yes".
35326         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
35327         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
35328         "guessing yes".
35329         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
35330         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
35331         to "guessing yes".
35332         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
35333         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
35334         to "guessing yes".
35335         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
35336         compiling to glibc systems, set gl_cv_func_rmdir_works to
35337         "guessing yes".
35338         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
35339         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
35340         gl_cv_func_unlink_parent_fails to "guessing yes".
35341         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
35342         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
35343         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
35344         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
35345         gl_cv_func_rename_dest_works to "guessing yes".
35346         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
35347         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
35348         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
35349         compiling to glibc systems, set gl_cv_func_roundf_ieee to
35350         "guessing yes".
35351         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
35352         compiling to glibc systems, set gl_cv_func_roundl_ieee to
35353         "guessing yes".
35354         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
35355         compiling to glibc systems, set gl_cv_func_setenv_works to
35356         "guessing yes".
35357         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
35358         compiling to glibc systems, set gl_cv_func_unsetenv_works to
35359         "guessing yes".
35360         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
35361         compiling to glibc systems, set gl_cv_func_sleep_works to
35362         "guessing yes".
35363         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
35364         compiling to glibc systems, set gl_cv_func_stat_file_slash to
35365         "guessing yes".
35366         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
35367         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
35368         "guessing yes".
35369         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
35370         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
35371         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
35372         compiling to glibc systems, set gl_cv_func_truncf_ieee to
35373         "guessing yes".
35374         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
35375         compiling to glibc systems, set gl_cv_func_truncl_ieee to
35376         "guessing yes".
35377         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
35378         compiling to glibc systems, set gl_cv_func_usleep_works to
35379         "guessing yes".
35380         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
35381         compiling to glibc systems, set gl_cv_func_futimesat_works to
35382         "guessing yes".
35384 2012-05-03  Bruno Haible  <bruno@clisp.org>
35386         Say "guessing yes" or "guessing no" when cross-compiling.
35387         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
35388         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
35389         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
35390         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
35391         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
35392         am_cv_func_working_getline to "guessing yes" or "guessing no".
35393         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
35394         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
35395         (gl_FUNC_MEMMEM): When cross-compiling, set
35396         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
35397         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
35398         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
35399         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
35400         set gl_cv_func_strcasestr_works_always to "guessing yes" or
35401         "guessing no".
35402         (gl_FUNC_STRCASESTR): When cross-compiling, set
35403         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
35404         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
35405         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
35406         (gl_FUNC_STRSTR): When cross-compiling, set
35407         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
35408         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
35409         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
35410         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
35411         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
35413 2012-05-01  Bruno Haible  <bruno@clisp.org>
35415         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
35416         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
35417         * build-aux/reloc-ldflags: Likewise.
35418         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
35420 2012-05-01  Bruno Haible  <bruno@clisp.org>
35422         gnulib-tool: Remove transitional code.
35423         * gnulib-tool: Don't warn about --import with 0 arguments any more.
35424         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
35426 2012-05-01  Bruno Haible  <bruno@clisp.org>
35428         getcwd: Fix misindentation.
35429         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
35431 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
35433         exclude: process exclude and include directives in order
35434         This restores the pre-2009 behavior, and is part of a fix of a
35435         grep bug reported by Quentin Arce in
35436         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
35437         * lib/exclude.c (struct exclude): Remove 'tail' member.
35438         (new_exclude_segment): Prepend the new segment instead of appending.
35439         Return void, since that's now more convenient.
35440         (file_pattern_matches): Renamed from excluded_file_pattern_p.
35441         (file_name_matches): Renamed from excluded_file_name_p.
35442         (file_pattern_matches, file_name_matches):
35443         Return true if the pattern matches, not if it excludes.
35444         All callers changed.
35445         (excluded_file_name): Process the list in reverse order;
35446         since the list is now reversed this restores the pre-2009 behavior.
35447         (add_exclude): Adjust to new reversed-order list.  Use local var
35448         rather than macro, for clarity.
35449         * tests/test-exclude7.sh: Adjust to corrected behavior.
35451         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
35452         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
35453         it's not possible here.  Handle the case of \ at end of pattern
35454         without dumping core.
35455         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
35457         _Noreturn: future-proof non-GNU and non-MSVC compilers
35458         * build-aux/snippet/_Noreturn.h (_Noreturn):
35459         * m4/gnulib-common.m4 (gl_COMMON_BODY):
35460         Do not define _Noreturn if __STDC_VERSION__ indicates this is
35461         C11 or later.  This is more likely to work with random future C
35462         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
35463         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
35465         exclude: handle wildcards with FNM_EXTMATCH
35466         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
35467         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
35468         comment that "has wildcards" really means "has or may have
35469         wildcards".  Simplify by avoiding the need to call strcspn.
35471 2012-04-29  Bruno Haible  <bruno@clisp.org>
35473         gnulib-tool: Fix list of authors.
35474         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
35476 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
35478         bootstrap: support Automake-NG in $buildreq
35479         * bootstrap (check_versions): Handle automake and aclocal from
35480         Automake-NG specially.  They can be specified as respectively
35481         the "automake-ng" and "aclocal-ng" requirements.
35483 2012-04-25  Eric Blake  <eblake@redhat.com>
35485         bootstrap: only force latest Makefile.in.in for gettext module
35486         * build-aux/bootstrap (with_gettext): Only install latest
35487         Makefile.in.in for projects requesting bleeding edge gettext.
35489 2012-04-22  Bruno Haible  <bruno@clisp.org>
35491         doc: Mention reason for replacement on glibc/Linux systems.
35492         * doc/posix-functions/dprintf.texi: Mention the problem with special
35493         'long double' values.
35494         * doc/posix-functions/fprintf.texi: Likewise.
35495         * doc/posix-functions/printf.texi: Likewise.
35496         * doc/posix-functions/snprintf.texi: Likewise.
35497         * doc/posix-functions/sprintf.texi: Likewise.
35498         * doc/posix-functions/vdprintf.texi: Likewise.
35499         * doc/posix-functions/vfprintf.texi: Likewise.
35500         * doc/posix-functions/vprintf.texi: Likewise.
35501         * doc/posix-functions/vsnprintf.texi: Likewise.
35502         * doc/posix-functions/vsprintf.texi: Likewise.
35503         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
35504         platforms with F_DUPFD_CLOEXEC problems.
35505         * doc/posix-functions/glob.texi: Mention which platforms are affected
35506         by the problem with symbolic links.
35507         * doc/posix-functions/linkat.texi: Mention the problem with
35508         AT_SYMLINK_FOLLOW on Linux.
35510 2012-04-22  Bruno Haible  <bruno@clisp.org>
35512         pwrite: Don't replace on all platforms.
35513         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
35515 2012-04-22  Bruno Haible  <bruno@clisp.org>
35517         rint* tests: Avoid gcc warnings.
35518         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
35519         * tests/test-rintf.c (INFINITY, NAN): Likewise.
35520         * tests/test-rintl.c (INFINITY, NAN): Likewise.
35522 2012-04-21  Bruno Haible  <bruno@clisp.org>
35524         users.txt: Update.
35525         * users.txt: Add freedink, wdiff. Update URLs for projects that have
35526         switched from CVS to git, bzr, or svn.
35528 2012-04-21  Bruno Haible  <bruno@clisp.org>
35530         Large File Support for native Windows platforms.
35532         * m4/largefile.m4 (gl_LARGEFILE): New macro.
35533         * modules/largefile (configure.ac): Require gl_LARGEFILE.
35535         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
35536         type.
35537         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
35538         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
35539         * doc/posix-headers/sys_types.texi: Mention the effect of the
35540         'largefile' module.
35542         * lib/fcntl.in.h: Add comments about off_t.
35543         * modules/fcntl-h (Depends-on): Add sys_types.
35545         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
35546         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
35547         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
35548         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
35549         * modules/unistd (Depends-on): Add sys_types.
35550         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
35552         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
35553         instead of lseek.
35554         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
35555         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
35556         * modules/lseek (Depends-on): Add sys_types.
35558         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
35559         msvc-nothrow.h.
35560         (SetFileSize): New function.
35561         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
35562         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
35563         if Large File Support is requested.
35564         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
35565         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
35567         * lib/stdio.in.h: Add comments about off_t.
35568         * modules/stdio (Depends-on): Add sys_types.
35570         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
35571         instead of ftello.
35572         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
35573         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
35574         (gl_PREREQ_FTELLO): New macro.
35575         * modules/ftello (Depends-on): Add sys_types.
35576         (configure.ac): Incoke gl_PREREQ_FTELLO.
35578         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
35579         instead of fseeko.
35580         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
35581         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
35582         (gl_PREREQ_FSEEKO): New macro.
35583         * modules/fseeko (Depends-on): Add sys_types.
35584         (configure.ac): Invoke gl_PREREQ_FSEEKO.
35586         * lib/sys_stat.in.h: Add comments about off_t.
35587         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
35588         64-bit integer for st_size in 'struct stat'.
35589         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
35590         Define _GL_WINDOWS_64_BIT_ST_SIZE.
35591         * modules/sys_stat (Depends-on): Add sys_types.
35592         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
35594         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
35595         instead of stat or _stat.
35597         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
35598         'struct _stati64' instead of fstat and 'struct stat'.
35599         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
35600         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
35602         Reported by Ray Satiro <raysatiro@yahoo.com>.
35604 2012-04-19  Eric Blake  <eblake@redhat.com>
35606         bootstrap: accommodate older libtool
35607         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
35608         Reported by Daniel P. Berrange.
35610 2012-04-19  Jim Meyering  <meyering@redhat.com>
35612         announce-gen: avoid failure due to lack of Digest::SHA1
35613         Even with the preferred Digest::SHA available, this script
35614         would fail when the backup module, Digest::SHA1, was not installed.
35615         * build-aux/announce-gen: Quote the conditional use of "use".
35616         Reported by Reuben Thomas in:
35617         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
35619         bootstrap: don't let a user's CDPATH setting affect this script
35620         When CDPATH is set, cd will sometimes generate output.
35621         When "cd" is run in a subshell whose output matters, that
35622         surprising-to-some output can cause malfunction.
35623         Unsetting CDPATH turns off this shell "feature."
35624         * build-aux/bootstrap (CDPATH): Unset.
35625         Reported by Reuben Thomas in:
35626         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
35627         and inspired by his patch here:
35628         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
35630 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
35631         and Jim Meyering  <meyering@redhat.com>
35633         maint.mk: catch "see @xref{}" and similar
35634         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
35635         prohibit "See also @xref{", "Also see @pxref{", and similar.
35637 2012-04-16  Jim Meyering  <meyering@redhat.com>
35639         bootstrap: really use gnulib's po/Makefile.in.in
35640         * build-aux/bootstrap: Correct the source file name in previous change.
35641         Reported by Akim Demaille.
35643         configmake: correct minor inconsistency in Makefile rule
35644         * modules/configmake (Makefile.am): All other rules like this one
35645         run the final "mv -f ..." in the same backslash-continued command
35646         as the one that does everything else.  This one put the mv -f ...
35647         command on a separate, non-backslash-continued line.
35648         Make it like the others.
35650         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
35651         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
35652         the one from gettext.  Reported by Akim Demaille.
35654 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
35656         Fix recursion of install-* into po directories.
35657         Bison's install-pdf bug reported by Hans Aberg at
35658         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
35659         * build-aux/po/Makefile.in.in (install-dvi, install-html)
35660         (install-info, install-pdf, install-ps): New targets.
35662 2012-04-16  Jim Meyering  <meyering@redhat.com>
35664         maint: avoid spurious "make sc_maint" failure
35665         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
35666         exempt all *.class file names, for lib/javaversion.class.
35668 2012-04-15  Bruno Haible  <bruno@clisp.org>
35670         lseek: Make configure test independent of environment.
35671         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
35672         Windows, we know that lseek() on pipes is broken; skip the runtime
35673         test.
35675 2012-04-14  Bruno Haible  <bruno@clisp.org>
35677         stat: Bypass buggy override in mingw64.
35678         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
35679         * lib/stat.c (stat) [mingw64]: Define to _stat.
35680         * doc/posix-functions/stat.texi: Mention mingw64 bug.
35682 2012-04-14  Bruno Haible  <bruno@clisp.org>
35684         pathmax: Fix compilation error on MSVC 9.
35685         * modules/pathmax (Depends-on): Add unistd.
35687 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
35689         README: document pointer comparison assumption
35690         * README (Portability guidelines): Document assumption about
35691         pointer comparisons, in response to a recent bug-gnulib comment by
35692         Jeffrey Kegler.
35694 2012-04-12  Bruno Haible  <bruno@clisp.org>
35696         Tests for module 'getrusage'.
35697         * modules/getrusage-tests: New file.
35698         * tests/test-getrusage.c: New file.
35700         New module 'getrusage'.
35701         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
35702         warn-on-use.h.
35703         (getrusage): New declaration.
35704         * lib/getrusage.c: New file.
35705         * m4/getrusage.m4: New file.
35706         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
35707         is declared.
35708         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
35709         HAVE_GETRUSAGE.
35710         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
35711         snippet/c++defs, snippet/warn-on-use.
35712         (Makefile.am): Update generation of sys/resource.h. Substitute
35713         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
35714         * modules/getrusage: New file.
35715         * doc/posix-functions/getrusage.texi: Mention the new module.
35717 2012-04-12  Bruno Haible  <bruno@clisp.org>
35719         Tests for module 'sys_resource'.
35720         * modules/sys_resource-tests: New file.
35721         * tests/test-sys_resource.c: New file.
35723         New module 'sys_resource'.
35724         * lib/sys_resource.in.h: New file.
35725         * m4/sys_resource_h.m4: New file.
35726         * modules/sys_resource: New file.
35727         * doc/posix-headers/sys_resource.texi: Mention the new module.
35729 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
35731         ioctl: Fix compilation error on mingw.
35732         * lib/ioctl.c: Include <windows.h>.
35733         Also reported by Ray Satiro <raysatiro@yahoo.com>.
35735 2012-04-04  Jim Meyering  <meyering@redhat.com>
35737         regex: correct #pragma guard expression
35738         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
35739         not 4.3.  Correct its cpp guard expression.
35741 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35743         regex: remove unnecessary type punning
35744         Problem reported by Vladimir Serbinenko in
35745         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
35746         * lib/regex.h (struct re_pattern_buffer): Change the type of
35747         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
35748         Fix comment to match code.
35749         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
35750         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
35751         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
35752         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
35753         (set_regs):
35754         Omit no-longer-necessary casts.
35756 2012-04-03  Bruno Haible  <bruno@clisp.org>
35758         Tests for module 'ilogbl'.
35759         * modules/ilogbl-tests: New file.
35760         * tests/test-ilogbl.c: New file.
35762         New module 'ilogbl'.
35763         * lib/math.in.h (ilogbl): New declaration.
35764         * lib/ilogbl.c: New file.
35765         * m4/ilogbl.m4: New file.
35766         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
35767         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
35768         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
35769         Split sed invocation, to avoid the limit of 100 substitutions of
35770         HP-UX 'sed'.
35771         * modules/ilogbl: New file.
35772         * tests/test-math-c++.cc: Check the declaration of ilogbl.
35773         * doc/posix-functions/ilogbl.texi: Mention the new module.
35775 2012-04-03  Bruno Haible  <bruno@clisp.org>
35777         Tests for module 'ilogbf'.
35778         * modules/ilogbf-tests: New file.
35779         * tests/test-ilogbf.c: New file.
35781         New module 'ilogbf'.
35782         * lib/math.in.h (ilogbf): New declaration.
35783         * lib/ilogbf.c: New file.
35784         * m4/ilogbf.m4: New file.
35785         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
35786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
35787         REPLACE_ILOGBF.
35788         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
35789         REPLACE_ILOGBF.
35790         * modules/ilogbf: New file.
35791         * tests/test-math-c++.cc: Check the declaration of ilogbf.
35792         * doc/posix-functions/ilogbf.texi: Mention the new module.
35794 2012-04-03  Bruno Haible  <bruno@clisp.org>
35796         Tests for module 'ilogb'.
35797         * modules/ilogb-tests: New file.
35798         * tests/test-ilogb.c: New file.
35799         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
35800         tests/test-logb-ieee.h.
35802         New module 'ilogb'.
35803         * lib/math.in.h (ilogb): New declaration.
35804         * lib/ilogb.c: New file.
35805         * m4/ilogb.m4: New file.
35806         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
35807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
35808         REPLACE_ILOGB.
35809         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
35810         REPLACE_ILOGB.
35811         * modules/ilogb: New file.
35812         * tests/test-math-c++.cc: Check the declaration of ilogb.
35813         * doc/posix-functions/ilogb.texi: Mention the new module.
35815 2012-04-03  Bruno Haible  <bruno@clisp.org>
35817         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
35818         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
35819         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
35820         (main): Check their values.
35821         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
35822         problem.
35824 2012-04-03  Bruno Haible  <bruno@clisp.org>
35826         Tests for module 'logbl-ieee'.
35827         * modules/logbl-ieee-tests: New file.
35828         * tests/test-logbl-ieee.c: New file.
35830         New module 'logbl-ieee'.
35831         * modules/logbl-ieee: New file.
35833         Tests for module 'logb-ieee'.
35834         * modules/logb-ieee-tests: New file.
35835         * tests/test-logb-ieee.c: New file.
35837         New module 'logb-ieee'.
35838         * modules/logb-ieee: New file.
35840         Tests for module 'logbf-ieee'.
35841         * modules/logbf-ieee-tests: New file.
35842         * tests/test-logbf-ieee.c: New file.
35843         * tests/test-logb-ieee.h: New file.
35845         New module 'logbf-ieee'.
35846         * modules/logbf-ieee: New file.
35848 2012-04-03  Bruno Haible  <bruno@clisp.org>
35850         Tests for module 'logbl'.
35851         * modules/logbl-tests: New file.
35852         * tests/test-logbl.c: New file.
35854         New module 'logbl'.
35855         * lib/math.in.h (logbl): New declaration.
35856         * lib/logbl.c: New file.
35857         * m4/logbl.m4: New file.
35858         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
35859         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
35860         REPLACE_LOGBL.
35861         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
35862         REPLACE_LOGBL.
35863         * modules/logbl: New file.
35864         * tests/test-math-c++.cc: Check the declaration of logbl.
35865         * doc/posix-functions/logbl.texi: Mention the new module.
35867 2012-04-02  Bruno Haible  <bruno@clisp.org>
35869         Tests for module 'logbf'.
35870         * modules/logbf-tests: New file.
35871         * tests/test-logbf.c: New file.
35873         New module 'logbf'.
35874         * lib/math.in.h (logbf): New declaration.
35875         * lib/logbf.c: New file.
35876         * m4/logbf.m4: New file.
35877         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
35878         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
35879         REPLACE_LOGBF.
35880         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
35881         REPLACE_LOGBF.
35882         * modules/logbf: New file.
35883         * tests/test-math-c++.cc: Check the declaration of logbf.
35884         * doc/posix-functions/logbf.texi: Mention the new module.
35886 2012-04-02  Bruno Haible  <bruno@clisp.org>
35888         logb tests: More tests.
35889         * tests/test-logb.h: New file, based on tests/test-logb.c and
35890         tests/test-frexp.h.
35891         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
35892         (main): Just invoke test_function.
35893         * modules/logb-tests (Files): Add tests/test-logb.h,
35894         tests/minus-zero.h, tests/randomd.c.
35895         (Makefile.am): Add randomd.c to test_logb_SOURCES.
35897         logb: Provide replacement and workarounds.
35898         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
35899         is 1.
35900         * lib/logb.c: New file.
35901         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
35902         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
35903         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
35904         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
35905         * modules/logb (Files): Add lib/logb.c.
35906         (Depends-on): Add isfinite, frexp, isnand.
35907         (configure.ac): Compile the replacement code logb.c if needed.
35908         * tests/test-math-c++.cc: Check the declaration of logb.
35909         * doc/posix-functions/logb.texi: Mention the replacement and the bug
35910         with subnormal numbers.
35912 2012-04-02  Bruno Haible  <bruno@clisp.org>
35914         log10* tests: Speed up.
35915         * tests/test-log10.h (test_function): Reduce amount of random numbers
35916         to test.
35918 2012-04-01  Bruno Haible  <bruno@clisp.org>
35920         logf-ieee: Fix test whether logf works.
35921         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
35923 2012-04-01  Bruno Haible  <bruno@clisp.org>
35925         log10l: Work around log10l-ieee test failure on IRIX 6.5.
35926         * lib/log10l.c: Include <float.h>
35927         (log10l): On IRIX, normalize the +Infinity value.
35928         * modules/log10l (Depends-on): Add 'float'.
35929         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
35930         +Infinity.
35932         log10f-ieee: Work around test failure on NetBSD 5.1.
35933         * m4/log10f-ieee.m4: New file.
35934         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
35935         test whether log10f works with a negative argument. Replace it if not.
35936         * lib/log10f.c (log10f): For negative arguments, return NaN.
35937         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
35938         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
35939         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
35941         log10f-ieee: Work around test failure on Solaris 9.
35942         * modules/log10f-ieee (Depends-on): Add log10-ieee.
35943         (configure.ac): Require gl_FUNC_LOG10F.
35945         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
35946         * m4/log10-ieee.m4: New file.
35947         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
35948         whether log10 works with a negative argument. Replace it if not.
35949         * lib/log10.c (log10): For negative arguments, return NaN.
35950         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
35951         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
35952         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
35954         Tests for module 'log10l-ieee'.
35955         * modules/log10l-ieee-tests: New file.
35956         * tests/test-log10l-ieee.c: New file.
35958         New module 'log10l-ieee'.
35959         * modules/log10l-ieee: New file.
35961         Tests for module 'log10-ieee'.
35962         * modules/log10-ieee-tests: New file.
35963         * tests/test-log10-ieee.c: New file.
35965         New module 'log10-ieee'.
35966         * modules/log10-ieee: New file.
35968         Tests for module 'log10f-ieee'.
35969         * modules/log10f-ieee-tests: New file.
35970         * tests/test-log10f-ieee.c: New file.
35971         * tests/test-log10-ieee.h: New file.
35973         New module 'log10f-ieee'.
35974         * modules/log10f-ieee: New file.
35976 2012-04-01  Bruno Haible  <bruno@clisp.org>
35978         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
35979         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
35980         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
35981         workaround.
35982         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
35983         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
35984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
35985         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
35986         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
35987         (Depends-on): Update conditions.
35988         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
35989         IRIX 6.5, OSF/1 5.1 problems.
35991 2012-04-01  Bruno Haible  <bruno@clisp.org>
35993         log10f: Work around OSF/1 5.1 bug.
35994         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
35995         * lib/log10f.c (log10f): If logf exists, use it and provide just the
35996         workaround.
35997         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
35998         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
35999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
36000         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
36001         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
36002         (Depends-on): Update conditions.
36003         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
36005 2012-04-01  Bruno Haible  <bruno@clisp.org>
36007         log10: Work around OSF/1 5.1 bug.
36008         * lib/math.in.h (log10): New declaration.
36009         * lib/log10.c: New file.
36010         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
36011         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
36012         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
36013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
36014         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
36015         * modules/log10 (Files): Add lib/log10.c.
36016         (Depends-on): Add math.
36017         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
36018         * tests/test-math-c++.cc: Check the declaration of log10.
36019         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
36021 2012-03-31  Bruno Haible  <bruno@clisp.org>
36023         log10l tests: More tests.
36024         * modules/log10l-tests (Files): Add tests/test-log10l.h,
36025         tests/minus-zero.h, tests/randoml.c.
36026         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
36027         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
36028         (main): Invoke test_function.
36030         log10f tests: More tests.
36031         * modules/log10f-tests (Files): Add tests/test-log10.h,
36032         tests/minus-zero.h, tests/randomf.c.
36033         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
36034         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
36035         (main): Invoke test_function.
36037         log10 tests: More tests.
36038         * tests/test-log10.h: New file.
36039         * modules/log10-tests (Files): Add tests/test-log10.h,
36040         tests/minus-zero.h, tests/randomd.c.
36041         (Makefile.am): Add randomd.c to test_log10_SOURCES.
36042         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
36043         (main): Invoke test_function.
36045 2012-03-31  Simon Josefsson  <simon@josefsson.org>
36047         fflush: Fix syntax error.
36048         * lib/fflush.c: Include unused-parameter.h, needed for
36049         _GL_UNUSED_PARAMETER.
36050         * modules/fflush (Depends-on): Add snippet/unused-parameter.
36052 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36054         regex: pacify GCC when compiling GRUB
36055         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
36056         a diagnostic.  Reported by Vladimir Serbinenko in
36057         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
36059 2012-03-29  Eric Blake  <eblake@redhat.com>
36061         stdio: don't assume gets any more
36062         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
36063         support.
36064         * modules/stdio (Makefile.am): Likewise.
36065         * lib/stdio-read.c (gets): Likewise.
36066         * tests/test-stdio-c++.cc: Likewise.
36067         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
36068         * lib/stdio.in.h (gets): Make warning occur in more places.
36069         * doc/posix-functions/gets.texi (gets): Update documentation.
36070         Reported by Christer Solskogen.
36072         maint.mk: fix syntax checks without exclusions
36073         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
36074         Reported by Daniel P. Berrange.
36076         strerror_r: avoid compiler warning
36077         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
36078         level.
36080         fflush: avoid compiler warning
36081         * lib/fflush.c (update_fpos_cache): Mark variables that are
36082         potentially unused.
36084 2012-03-25  Bruno Haible  <bruno@clisp.org>
36086         Tests for module 'localeconv'.
36087         * modules/localeconv-tests: New file.
36088         * tests/test-localeconv.c: New file.
36090         New module 'localeconv'.
36091         * lib/locale.in.h (localeconv): New declaration.
36092         * lib/localeconv.c: New file.
36093         * m4/localeconv.m4: New file.
36094         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
36095         REPLACE_LOCALECONV.
36096         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
36097         REPLACE_LOCALECONV.
36098         * modules/localeconv: New file.
36099         * modules/nl_langinfo (Depends-on): Add localeconv.
36100         * modules/human (Depends-on): Likewise.
36101         * doc/posix-functions/localeconv.texi: Mention the new module.
36103 2012-03-25  Bruno Haible  <bruno@clisp.org>
36105         locale: Provide a complete 'struct lconv'.
36106         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
36107         'struct lconv' does not contain int_p_cs_precedes.
36108         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
36109         * doc/posix-headers/locale.texi: Update.
36111         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
36112         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
36113         * doc/posix-headers/locale.texi: Update.
36115         locale: Provide a working 'struct lconv'.
36116         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
36117         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
36118         'struct lconv' does not even contain decimal_point.
36119         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
36120         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
36121         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
36122         * doc/posix-headers/locale.texi: Mention the problems with
36123         'struct lconv'.
36124         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
36126 2012-03-24  Bruno Haible  <bruno@clisp.org>
36128         Enable common subexpression optimization in GCC.
36129         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
36130         macros.
36131         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
36132         GCC attribute 'const'.
36133         (uc_locale_language): Declare with GCC attribute 'pure'.
36134         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
36135         with GCC attribute 'const'.
36136         * lib/unictype.in.h (uc_is_general_category_withtable,
36137         uc_combining_class, uc_combining_class_name,
36138         uc_combining_class_long_name, uc_bidi_class_name,
36139         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
36140         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
36141         uc_decimal_value, uc_digit_value, uc_numeric_value,
36142         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
36143         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
36144         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
36145         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
36146         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
36147         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
36148         Declare with GCC attribute 'const'.
36149         (uc_general_category_name, uc_general_category_long_name,
36150         uc_general_category_byname, uc_general_category,
36151         uc_is_general_category, uc_combining_class_byname,
36152         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
36153         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
36154         Declare with GCC attribute 'pure'.
36155         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
36156         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
36157         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
36158         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
36159         with GCC attribute 'pure'.
36160         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
36161         'const'.
36162         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
36163         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
36164         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
36165         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
36166         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
36167         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
36168         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
36169         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
36170         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
36171         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
36172         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
36173         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
36174         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
36175         GCC attribute 'pure'.
36176         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
36177         'const'.
36178         * lib/uniwidth.in.h (uc_width): Simplify declaration.
36179         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
36180         u32_strwidth): Declare with GCC attribute 'pure'.
36182         Enable common subexpression optimization in GCC.
36183         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36184         (alphasort): Declare with GCC attribute 'pure'.
36185         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36186         (atoll): Declare with GCC attribute 'pure'.
36187         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36188         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36189         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
36190         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36191         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
36192         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
36193         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
36195 2012-03-24  Bruno Haible  <bruno@clisp.org>
36197         gnulib-tool: Avoid unintended error output from 'cmp'.
36198         * gnulib-tool (func_add_file, func_update_file, func_import): Use
36199         "cmp -s", not "cmp > /dev/null".
36201 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
36203         gnulib-tool: fix imprecise comments w.r.t. an automake bug
36205         It's not just Automake versions < 1.9b that creates an empty
36206         pkgdatadir at installation time if pkgdata_DATA is specified
36207         to empty; modern automake versions do this as well, at least
36208         until automake 1.11.4 (not yet released at the moment of writing,
36209         but soon to appear).  That behaviour was generally considered a
36210         feature rather than a bug, at least until this discussion:
36211         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
36213         See also automake bugs #10997 and #11030.
36215         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
36216         reference to relevant automake bug numbers.
36217         (func_emit_tests_Makefile_am): Likewise.
36219 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
36221         announce-gen: use Digest::SHA when possible
36222         * build-aux/announce-gen: Use Digest::SHA when possible, falling
36223         back to Digest::SHA1 if necessary.
36225 2012-03-20  Jim Meyering  <meyering@redhat.com>
36227         tests: avoid gcc warnings about argv vs. const initializers
36228         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
36229         warnings about discarding 'const' qualifier from pointer target type.
36230         * tests/test-posix_spawn2.c (main): Likewise.
36232 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
36234         README-release: simplify slightly
36235         * top/README-release: Run "git checkout master" only once.
36237 2012-03-15  Mark Wielaard  <mark@klomp.org>
36239         git-merge-changelog: add specific example on how to use with hg.
36240         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
36242 2012-03-18  Mark Wielaard  <mark@klomp.org>
36244         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
36246 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
36248         git-version-gen: don't let "prefix" envvar cause trouble
36249         * build-aux/git-version-gen (prefix): Initialize properly,
36250         so as not to use a value specified via the environment.
36251         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
36253 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36255         regex: diagnose too-large repeat counts in EREs
36256         Previously, the code did not diagnose the too-large repeat count
36257         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
36258         as if it were 'b\{1000000000}', which is unexpected.
36259         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
36260         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
36261         is a reasonable one for this problem.  Another option would be to
36262         create a new REG_OVERFLOW error for repeat counts that are too large.
36263         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
36264         count is too large, so that the caller can distinguish the two cases.
36265         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
36266         "Too large" return code, and that repeat counts are one example of this.
36268 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36270         doc: some glibc x32 integer width issues
36271         * doc/posix-headers/sys_types.texi (sys/types.h):
36272         * doc/posix-headers/time.texi (time.h):
36273         Mention that glibc x32 does not conform to POSIX in a couple of
36274         areas related to integer widths.
36276 2012-03-15  Bruno Haible  <bruno@clisp.org>
36278         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
36279         * lib/fma.c (VOLATILE): New macro.
36280         (FUNC): Use it to work around a GCC compiler bug.
36282 2012-03-13  Bruno Haible  <bruno@clisp.org>
36284         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36285         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
36286         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
36287         REPLACE_HYPOTL to 1.
36288         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
36290 2012-03-13  Bruno Haible  <bruno@clisp.org>
36292         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36293         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
36294         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
36295         REPLACE_REMAINDERL to 1.
36296         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
36297         bug.
36299 2012-03-13  Bruno Haible  <bruno@clisp.org>
36301         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36302         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
36303         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
36304         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
36305         too big rounding errors.
36306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
36307         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
36308         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
36309         (Depends-on): Update conditions.
36310         * tests/test-sqrtl.c (my_ldexpl): New function.
36311         (main): Add test of a particular value.
36312         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36314 2012-03-13  Pádraig Brady  <P@draigBrady.com>
36316         doc: Update timer_* platform portability notes.
36317         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
36318         that always return ENOSYS.
36319         * doc/posix-functions/timer_delete.texi: Likewise.
36320         * doc/posix-functions/timer_gettime.texi: Likewise.
36321         * doc/posix-functions/timer_settime.texi: Likewise.
36323 2012-03-13  Bruno Haible  <bruno@clisp.org>
36325         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36326         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
36327         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
36328         REPLACE_CBRTL to 1.
36329         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36331 2012-03-13  Bruno Haible  <bruno@clisp.org>
36333         remainderl: Avoid compilation error on AIX >= 5.2.
36334         * lib/math.in.h (remainderl): Undefine macro from the system header.
36336 2012-03-13  Bruno Haible  <bruno@clisp.org>
36338         Avoid compilation errors with MSVC option -fp:strict.
36339         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
36340         * lib/cbrtf.c: Likewise.
36341         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
36343 2012-03-12  Bruno Haible  <bruno@clisp.org>
36345         uninorm: Don't crash in out-of-memory conditions.
36346         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
36347         gracefully.
36348         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
36349         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
36351 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
36353         quote: fix syntax-check
36354         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
36355         also exports quote_quoting_options.
36357 2012-03-12  Simon Josefsson  <simon@josefsson.org>
36359         Collapse list of copyright years to ranges.  See
36360         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
36361         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
36362         build-aux/csharpexec.sh.in, build-aux/gnupload,
36363         build-aux/install-reloc, build-aux/javacomp.sh.in,
36364         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
36365         build-aux/move-if-change, build-aux/reloc-ldflags,
36366         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
36368 2012-03-11  Bruno Haible  <bruno@clisp.org>
36370         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36371         * m4/log2f-ieee.m4: New file.
36372         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
36373         whether log2f works with a minus zero argument. Replace it if not.
36374         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
36375         (Depends-on): Add log2-ieee.
36376         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
36377         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
36379         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36380         * m4/log2-ieee.m4: New file.
36381         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
36382         whether log2 works with a minus zero argument. Replace it if not.
36383         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
36384         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
36385         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
36387         Tests for module 'log2l-ieee'.
36388         * modules/log2l-ieee-tests: New file.
36389         * tests/test-log2l-ieee.c: New file.
36391         New module 'log2l-ieee'.
36392         * modules/log2l-ieee: New file.
36394         Tests for module 'log2-ieee'.
36395         * modules/log2-ieee-tests: New file.
36396         * tests/test-log2-ieee.c: New file.
36398         New module 'log2-ieee'.
36399         * modules/log2-ieee: New file.
36401         Tests for module 'log2f-ieee'.
36402         * modules/log2f-ieee-tests: New file.
36403         * tests/test-log2f-ieee.c: New file.
36404         * tests/test-log2-ieee.h: New file.
36406         New module 'log2f-ieee'.
36407         * modules/log2f-ieee: New file.
36409 2012-03-11  Bruno Haible  <bruno@clisp.org>
36411         Tests for module 'log2l'.
36412         * modules/log2l-tests: New file.
36413         * tests/test-log2l.c: New file.
36415         New module 'log2l'.
36416         * lib/math.in.h (log2l): New declaration.
36417         * lib/log2l.c: New file.
36418         * m4/log2l.m4: New file.
36419         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
36420         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
36421         REPLACE_LOG2L.
36422         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
36423         REPLACE_LOG2L.
36424         * modules/log2l: New file.
36425         * tests/test-math-c++.cc: Check the declaration of log2l.
36426         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
36427         and OSF/1 problems.
36429 2012-03-11  Bruno Haible  <bruno@clisp.org>
36431         Tests for module 'log2f'.
36432         * modules/log2f-tests: New file.
36433         * tests/test-log2f.c: New file.
36435         New module 'log2f'.
36436         * lib/math.in.h (log2f): New declaration.
36437         * lib/log2f.c: New file.
36438         * m4/log2f.m4: New file.
36439         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
36440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
36441         REPLACE_LOG2F.
36442         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
36443         REPLACE_LOG2F.
36444         * modules/log2f: New file.
36445         * tests/test-math-c++.cc: Check the declaration of log2f.
36446         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
36447         and OSF/1 and Cygwin problems.
36449 2012-03-11  Bruno Haible  <bruno@clisp.org>
36451         Tests for module 'log2'.
36452         * modules/log2-tests: New file.
36453         * tests/test-log2.c: New file.
36454         * tests/test-log2.h: New file.
36456         New module 'log2'.
36457         * lib/math.in.h (log2): New declaration.
36458         * lib/log2.c: New file.
36459         * m4/log2.m4: New file.
36460         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
36461         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
36462         REPLACE_LOG2.
36463         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
36464         REPLACE_LOG2.
36465         * modules/log2: New file.
36466         * tests/test-math-c++.cc: Check the declaration of log2.
36467         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
36468         and OSF/1 and Cygwin problems.
36470 2012-03-11  Bruno Haible  <bruno@clisp.org>
36472         exp2* tests: More tests.
36473         * tests/test-exp2.h (test_function): Test all integral arguments that
36474         don't need to overflow or denormalized numbers.
36475         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
36476         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
36477         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
36479 2012-03-10  Bruno Haible  <bruno@clisp.org>
36481         log1pl-ieee: Work around test failure on AIX 7.1.
36482         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
36484         log1pl-ieee: Work around test failure on IRIX 6.5.
36485         * m4/log1pl-ieee.m4: New file.
36486         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
36487         test whether log1pl works with a minus zero argument. Replace it if
36488         not.
36489         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
36490         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
36491         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
36492         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
36493         (Depends-on): Update conditions.
36494         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
36495         m4/signbit.m4.
36496         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
36497         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
36499         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
36500         * m4/log1pf-ieee.m4: New file.
36501         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
36502         test whether log1pf works with a minus zero argument. Replace it if
36503         not.
36504         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
36505         m4/signbit.m4.
36506         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
36507         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
36509         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
36510         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
36511         (configure.ac): Require gl_FUNC_LOG1PF.
36513         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
36514         * m4/log1p-ieee.m4: New file.
36515         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
36516         whether log1p works with a minus zero argument. Replace it if not.
36517         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
36518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
36519         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
36520         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
36521         (Depends-on): Update conditions.
36522         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
36523         m4/signbit.m4.
36524         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
36525         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
36527         Tests for module 'log1pl-ieee'.
36528         * modules/log1pl-ieee-tests: New file.
36529         * tests/test-log1pl-ieee.c: New file.
36531         New module 'log1pl-ieee'.
36532         * modules/log1pl-ieee: New file.
36534         Tests for module 'log1p-ieee'.
36535         * modules/log1p-ieee-tests: New file.
36536         * tests/test-log1p-ieee.c: New file.
36538         New module 'log1p-ieee'.
36539         * modules/log1p-ieee: New file.
36541         Tests for module 'log1pf-ieee'.
36542         * modules/log1pf-ieee-tests: New file.
36543         * tests/test-log1pf-ieee.c: New file.
36544         * tests/test-log1p-ieee.h: New file.
36546         New module 'log1pf-ieee'.
36547         * modules/log1pf-ieee: New file.
36549 2012-03-10  Bruno Haible  <bruno@clisp.org>
36551         Tests for module 'log1pl'.
36552         * modules/log1pl-tests: New file.
36553         * tests/test-log1pl.c: New file.
36555         New module 'log1pl'.
36556         * lib/math.in.h (log1pl): New declaration.
36557         * lib/log1pl.c: New file.
36558         * m4/log1pl.m4: New file.
36559         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
36560         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
36561         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
36562         * modules/log1pl: New file.
36563         * tests/test-math-c++.cc: Check the declaration of log1pl.
36564         * doc/posix-functions/log1pl.texi: Mention the new module.
36566 2012-03-10  Bruno Haible  <bruno@clisp.org>
36568         Tests for module 'log1pf'.
36569         * modules/log1pf-tests: New file.
36570         * tests/test-log1pf.c: New file.
36572         New module 'log1pf'.
36573         * lib/math.in.h (log1pf): New declaration.
36574         * lib/log1pf.c: New file.
36575         * m4/log1pf.m4: New file.
36576         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
36577         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
36578         REPLACE_LOG1PF.
36579         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
36580         REPLACE_LOG1PF.
36581         * modules/log1pf: New file.
36582         * tests/test-math-c++.cc: Check the declaration of log1pf.
36583         * doc/posix-functions/log1pf.texi: Mention the new module.
36585 2012-03-10  Bruno Haible  <bruno@clisp.org>
36587         log1p tests: More tests.
36588         * tests/test-log1p.h: New file.
36589         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
36590         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
36591         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
36592         (main): Invoke test_function.
36594         log1p: Provide replacement for Minix and MSVC.
36595         * lib/math.in.h (log1p): New declaration.
36596         * lib/log1p.c: New file.
36597         * m4/log1p.m4: New file.
36598         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
36599         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
36600         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
36601         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
36602         (Depends-on): Add math, isnand, log, round.
36603         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
36604         HAVE_LOG1P is 0.
36605         * tests/test-math-c++.cc: Check the declaration of log1p.
36606         * doc/posix-functions/log1p.texi: Mention the replacement.
36608 2012-03-10  Bruno Haible  <bruno@clisp.org>
36610         math tests: Small simplification.
36611         * tests/test-exp.h (test_function): Use the same err_bound for
36612         'double' on platforms with sizeof (long double) == sizeof (double)
36613         than on platforms with sizeof (long double) > sizeof (double).
36614         * tests/test-exp2.h (test_function): Likewise.
36615         * tests/test-expm1.h (test_function): Likewise.
36616         * tests/test-log.h (test_function): Likewise.
36618 2012-03-10  Bruno Haible  <bruno@clisp.org>
36620         Fix some comments.
36621         * lib/expl.c: Fix an ambiguous comment.
36622         * lib/expm1.c: Likewise.
36623         * lib/expm1l.c: Likewise.
36624         * lib/exp2.c: Likewise.
36625         * lib/exp2l.c: Likewise.
36627 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
36629         regex: allow inclusion of <regex.h> before <limits.h>
36630         Without this patch, portable programs had to include <limits.h> before
36631         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
36632         I ran into this problem with a test version of GNU grep on Solaris 8.
36633         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
36634         This is done conditionally so that this change can be merged
36635         back to glibc.
36636         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
36637         using the included regex.
36639         fts: depend on fdopendir
36640         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
36641         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
36642         problem was introduced when fdopendir was split out.
36644 2012-03-10  Bruno Haible  <bruno@clisp.org>
36646         Remove unused variables.
36647         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
36648         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
36650 2012-03-10  Bruno Haible  <bruno@clisp.org>
36652         isnanf-nolibm: Fix last commit.
36653         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
36655         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
36656         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
36658 2012-03-10  Bruno Haible  <bruno@clisp.org>
36660         logf-ieee: Work around test failure on NetBSD 5.1.
36661         * m4/logf-ieee.m4: New file.
36662         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
36663         whether logf works with a negative argument. Replace it if not.
36664         * lib/logf.c (logf): For negative arguments, return NaN.
36665         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
36666         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
36667         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
36669         logf-ieee: Work around test failure on Solaris 9.
36670         * modules/logf-ieee (Depends-on): Add log-ieee.
36671         (configure.ac): Require gl_FUNC_LOGF.
36673         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
36674         * m4/log-ieee.m4: New file.
36675         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
36676         log works with a negative argument. Replace it if not.
36677         * lib/log.c (log): For negative arguments, return NaN.
36678         * modules/log-ieee (Files): Add m4/log-ieee.m4.
36679         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
36680         * doc/posix-functions/log.texi: Mention the log-ieee module.
36682         Tests for module 'logl-ieee'.
36683         * modules/logl-ieee-tests: New file.
36684         * tests/test-logl-ieee.c: New file.
36686         New module 'logl-ieee'.
36687         * modules/logl-ieee: New file.
36689         Tests for module 'log-ieee'.
36690         * modules/log-ieee-tests: New file.
36691         * tests/test-log-ieee.c: New file.
36693         New module 'log-ieee'.
36694         * modules/log-ieee: New file.
36696         Tests for module 'logf-ieee'.
36697         * modules/logf-ieee-tests: New file.
36698         * tests/test-logf-ieee.c: New file.
36699         * tests/test-log-ieee.h: New file.
36701         New module 'logf-ieee'.
36702         * modules/logf-ieee: New file.
36704 2012-03-10  Bruno Haible  <bruno@clisp.org>
36706         log: Fix bug introduced on 2012-03-09.
36707         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
36709 2012-03-10  Pádraig Brady  <P@draigBrady.com>
36711         timer-time: link explicitly with pthreads on glibc
36712         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
36713         to support static linking, when newer glibc is
36714         detected, as that contains pthread emulation of
36715         POSIX timer functions where required.
36716         * modules/timer-time: Depend on threadlib to
36717         pull in the appropriate library to link.
36719 2012-03-10  Bruno Haible  <bruno@clisp.org>
36721         log* tests: More tests.
36722         * tests/test-log.h: New file.
36723         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
36724         (main): Invoke test_function.
36725         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
36726         (main): Invoke test_function.
36727         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
36728         (main): Invoke test_function.
36729         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36730         tests/randomd.c.
36731         (Makefile.am): Add randomd.c to test_log_SOURCES.
36732         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36733         tests/randomf.c.
36734         (Makefile.am): Add randomf.c to test_logf_SOURCES.
36735         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36736         tests/randoml.c.
36737         (Depends-on): Add 'float'.
36738         (Makefile.am): Add randoml.c to test_logl_SOURCES.
36740 2012-03-09  Bruno Haible  <bruno@clisp.org>
36742         logl: Work around OSF/1 5.1 bug.
36743         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
36744         * lib/logl.c (logl): If logl exists, use it and provide just the
36745         workaround.
36746         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
36747         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
36748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
36749         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
36750         * modules/logl (configure.ac): Consider REPLACE_LOGL.
36751         (Depends-on): Update conditions.
36752         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
36754 2012-03-09  Bruno Haible  <bruno@clisp.org>
36756         logf: Work around OSF/1 5.1 bug.
36757         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
36758         * lib/logf.c (logf): If logf exists, use it and provide just the
36759         workaround.
36760         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
36761         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
36762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
36763         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
36764         * modules/logf (configure.ac): Consider REPLACE_LOGF.
36765         (Depends-on): Update conditions.
36766         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
36768 2012-03-09  Bruno Haible  <bruno@clisp.org>
36770         log: Work around OSF/1 5.1 bug.
36771         * lib/math.in.h (log): New declaration.
36772         * lib/log.c: New file.
36773         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
36774         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
36775         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
36776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
36777         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
36778         * modules/log (Files): Add lib/log.c.
36779         (Depends-on): Add math.
36780         (configure.ac): If REPLACE_LOG is 1, compile an override.
36781         * tests/test-math-c++.cc: Check the declaration of log.
36782         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
36784 2012-03-09  Jim Meyering  <meyering@redhat.com>
36786         readtokens.c: adjust wording in a comment
36787         * lib/readtokens.c: Insert omitted "that" in a comment.
36789 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36791         modechange: add notations +40, 00440, etc.
36792         * lib/modechange.c (mode_compile): Support new notations
36793         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
36795 2012-03-08  Bruno Haible  <bruno@clisp.org>
36797         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
36798         * m4/exp2l-ieee.m4: New file.
36799         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
36800         test whether exp2l works with a NaN argument and with a negative
36801         infinity argument. Replace it if not.
36802         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
36803         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
36804         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
36805         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
36806         (Depends-on): Update conditions.
36807         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
36808         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
36809         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
36811         Tests for module 'exp2l-ieee'.
36812         * modules/exp2l-ieee-tests: New file.
36813         * tests/test-exp2l-ieee.c: New file.
36815         New module 'exp2l-ieee'.
36816         * modules/exp2l-ieee: New file.
36818         Tests for module 'exp2-ieee'.
36819         * modules/exp2-ieee-tests: New file.
36820         * tests/test-exp2-ieee.c: New file.
36822         New module 'exp2-ieee'.
36823         * modules/exp2-ieee: New file.
36825         Tests for module 'exp2f-ieee'.
36826         * modules/exp2f-ieee-tests: New file.
36827         * tests/test-exp2f-ieee.c: New file.
36828         * tests/test-exp2-ieee.h: New file.
36830         New module 'exp2f-ieee'.
36831         * modules/exp2f-ieee: New file.
36833 2012-03-08  Bruno Haible  <bruno@clisp.org>
36835         Tests for module 'exp2l'.
36836         * modules/exp2l-tests: New file.
36837         * tests/test-exp2l.c: New file.
36839         New module 'exp2l'.
36840         * lib/math.in.h (exp2l): New declaration.
36841         * lib/exp2l.c: New file.
36842         * lib/expl-table.c: New file, extracted from lib/expl.c.
36843         * lib/expl.c (gl_expl_table): New declaration.
36844         (expl): Remove expl_table. Update reference.
36845         * m4/exp2l.m4: New file.
36846         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
36847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
36848         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
36849         * modules/exp2l: New file.
36850         * modules/expl (Files): Add lib/expl-table.c.
36851         (configure.ac): Compile also expl-table.c.
36852         * tests/test-math-c++.cc: Check the declaration of exp2l.
36853         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
36854         problem.
36856 2012-03-08  Bruno Haible  <bruno@clisp.org>
36858         Tests for module 'exp2f'.
36859         * modules/exp2f-tests: New file.
36860         * tests/test-exp2f.c: New file.
36862         New module 'exp2f'.
36863         * lib/math.in.h (exp2f): New declaration.
36864         * lib/exp2f.c: New file.
36865         * m4/exp2f.m4: New file.
36866         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
36867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
36868         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
36869         * modules/exp2f: New file.
36870         * tests/test-math-c++.cc: Check the declaration of exp2f.
36871         * doc/posix-functions/exp2f.texi: Mention the new module and the
36872         IRIX problem.
36874 2012-03-08  Bruno Haible  <bruno@clisp.org>
36876         Tests for module 'exp2'.
36877         * modules/exp2-tests: New file.
36878         * tests/test-exp2.c: New file.
36879         * tests/test-exp2.h: New file.
36881         New module 'exp2'.
36882         * lib/math.in.h (exp2): New declaration.
36883         * lib/exp2.c: New file.
36884         * m4/exp2.m4: New file.
36885         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
36886         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
36887         REPLACE_EXP2.
36888         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
36889         REPLACE_EXP2.
36890         * modules/exp2: New file.
36891         * tests/test-math-c++.cc: Check the declaration of exp2.
36892         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
36893         and OpenBSD problems.
36895 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36897         savedir: fix comment typo
36898         * lib/savedir.c (savedirstream): Fix typo in comment.
36900 2012-03-08  Bruno Haible  <bruno@clisp.org>
36902         test-readtokens.c: use const; remove unwarranted cast
36903         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
36905 2012-03-08  Bruno Haible  <bruno@clisp.org>
36907         fmal: Avoid compilation error on AIX.
36908         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
36909         AIX 5.2..7.1.
36911 2012-03-08  Bruno Haible  <bruno@clisp.org>
36913         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
36914         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
36915         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
36916         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
36917         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
36918         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
36919         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
36921 2012-03-08  Bruno Haible  <bruno@clisp.org>
36923         remainderf: Override buggy system function on IRIX 6.5.
36924         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
36925         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
36926         when it exists.
36927         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
36929 2012-03-08  Jim Meyering  <meyering@redhat.com>
36931         test-readtokens.c: avoid const-related compilation warnings
36932         * tests/test-readtokens.c: Avoid const-related compilation warnings.
36934 2012-03-07  Jim Meyering  <meyering@redhat.com>
36935             Bruno Haible  <bruno@clisp.org>
36937         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
36938         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
36939         tests/randomd.c.
36940         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
36941         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
36942         tests/randoml.c.
36943         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
36945 2012-03-07  Bruno Haible  <bruno@clisp.org>
36947         expm1l: Avoid compilation error on AIX.
36948         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
36949         AIX 5.2..7.1.
36951 2012-03-07  Bruno Haible  <bruno@clisp.org>
36953         expm1l: Don't override undeclared system function on IRIX 6.5.
36954         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
36955         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
36956         it exists. Set HAVE_DECL_EXPM1L.
36957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
36958         HAVE_EXPM1L.
36959         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
36960         HAVE_EXPM1L.
36961         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
36963 2012-03-07  Bruno Haible  <bruno@clisp.org>
36965         remainderl: Don't override undeclared system function on IRIX 6.5.
36966         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
36967         HAVE_REMAINDERL.
36968         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
36969         declared when it exists. Set HAVE_DECL_REMAINDERL.
36970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
36971         not HAVE_REMAINDERL.
36972         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
36973         HAVE_REMAINDERL.
36974         * doc/posix-functions/remainderl.texi: Mention missing declaration
36975         problem.
36977 2012-03-07  Bruno Haible  <bruno@clisp.org>
36979         rintf: Don't override undeclared system function on IRIX 6.5.
36980         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
36981         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
36982         exists. Set HAVE_DECL_RINTF.
36983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
36984         HAVE_RINTF.
36985         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
36986         HAVE_RINTF.
36987         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
36989 2012-03-07  Bruno Haible  <bruno@clisp.org>
36991         roundl: Avoid compilation error on AIX.
36992         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
36993         AIX 5.2..7.1.
36995 2012-03-07  Bruno Haible  <bruno@clisp.org>
36997         roundl: Don't override undeclared system function on IRIX 6.5.
36998         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
36999         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
37000         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
37001         * modules/roundl (configure.ac): For replacement code, test
37002         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
37003         (Depends-on): Update conditions.
37004         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
37006 2012-03-07  Bruno Haible  <bruno@clisp.org>
37008         roundf: Don't override undeclared system function on IRIX 6.5.
37009         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
37010         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
37011         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
37012         * modules/roundf (configure.ac): For replacement code, test
37013         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
37014         (Depends-on): Update conditions.
37015         * modules/roundf-ieee (Depends-on): Update conditions.
37016         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
37018 2012-03-07  Bruno Haible  <bruno@clisp.org>
37020         round: Don't override undeclared system function on IRIX 6.5.
37021         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
37022         argument.
37023         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
37024         also when it is not declared. Set HAVE_ROUND. For replacement code,
37025         test HAVE_ROUND, not HAVE_DECL_ROUND.
37026         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
37027         not HAVE_DECL_ROUND.
37028         (Depends-on): Update conditions.
37029         * modules/round-ieee (Depends-on): Update conditions.
37030         * doc/posix-functions/round.texi: Mention the IRIX problem.
37032 2012-03-07  Bruno Haible  <bruno@clisp.org>
37034         copysignf: Don't override undeclared system function on IRIX 6.5.
37035         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
37036         HAVE_COPYSIGNF.
37037         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
37038         declared when it exists. Set HAVE_DECL_COPYSIGNF.
37039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
37040         not HAVE_COPYSIGNF.
37041         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
37042         HAVE_COPYSIGNF.
37043         * doc/posix-functions/copysignf.texi: Mention missing declaration
37044         problem.
37046 2012-03-07  Jim Meyering  <meyering@redhat.com>
37048         readtokens: add tests
37049         * modules/readtokens-tests: New file.
37050         * tests/test-readtokens.c: New file.
37052 2012-03-07  Jim Meyering  <meyering@redhat.com>
37054         quotearg: the module must now include quote.h
37055         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
37056         So must the module.
37057         * modules/quotearg (Files): Add quote.h.
37059 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
37061         readtokens: avoid core dumps with unusual calling patterns
37062         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
37063         * lib/readtokens.c: Include limits.h.
37064         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
37065         (readtoken): Don't cache the delimiters; the cache code was buggy
37066         if !delim && saved_delim, or if the new n_delim differs from the old.
37067         Also, it wasn't thread-safe.
37069 2012-03-07  Bruno Haible  <bruno@clisp.org>
37071         quote: Adhere to common module description layout.
37072         * modules/quote (Makefile.am): Add back empty section.
37074 2012-03-06  Akim Demaille  <demaille@gostai.com>
37076         quote: fuse into quotearg
37077         This patch is made for the benefit of Bison.
37078         quote does not leave the choice of the quoting style to the user.
37079         quoting_style provides poor customizability, yet quoting_options,
37080         which is very rich, is hidden inside quotearg.c.  So in order to
37081         allow quote customization, move its implementation to quotearg.c.
37082         * lib/quote.c: Remove.
37083         * modules/quote: Adjust.
37084         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
37085         warning: provide all the members of literal structs.
37086         (quote_quoting_options): New.
37087         (quote, quote_n): Import implementation from quote.c.
37088         * lib/quote.h: Import the comments from quote.c.
37089         (quote_quoting_options): New.
37091 2012-03-06  Bruno Haible  <bruno@clisp.org>
37093         Tests for module 'expm1l-ieee'.
37094         * modules/expm1l-ieee-tests: New file.
37095         * tests/test-expm1l-ieee.c: New file.
37097         New module 'expm1l-ieee'.
37098         * modules/expm1l-ieee: New file.
37100         Tests for module 'expm1f-ieee'.
37101         * modules/expm1f-ieee-tests: New file.
37102         * tests/test-expm1f-ieee.c: New file.
37104         New module 'expm1f-ieee'.
37105         * modules/expm1f-ieee: New file.
37107         Tests for module 'expm1-ieee'.
37108         * modules/expm1-ieee-tests: New file.
37109         * tests/test-expm1-ieee.c: New file.
37110         * tests/test-expm1-ieee.h: New file.
37112         New module 'expm1-ieee'.
37113         * modules/expm1-ieee: New file.
37114         * m4/expm1-ieee.m4: New file.
37115         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
37116         whether expm1 works with a minus zero argument. Replace it if not.
37117         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
37118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
37119         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
37120         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
37121         (Depends-on): Update conditions.
37122         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
37123         AIX problem.
37125 2012-03-06  Bruno Haible  <bruno@clisp.org>
37127         Work around expm1f bug on IRIX 6.5.
37128         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
37129         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
37130         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
37131         not work.
37132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
37133         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
37134         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
37135         (Depends-on): Update conditions.
37136         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
37138 2012-03-06  Bruno Haible  <bruno@clisp.org>
37140         Tests for module 'expm1l'.
37141         * modules/expm1l-tests: New file.
37142         * tests/test-expm1l.c: New file.
37144         New module 'expm1l'.
37145         * lib/math.in.h (expm1l): New declaration.
37146         * lib/expm1l.c: New file.
37147         * m4/expm1l.m4: New file.
37148         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
37149         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
37150         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
37151         * modules/expm1l: New file.
37152         * tests/test-math-c++.cc: Check the declaration of expm1l.
37153         * doc/posix-functions/expm1l.texi: Mention the new module.
37155 2012-03-06  Bruno Haible  <bruno@clisp.org>
37157         Tests for module 'expm1f'.
37158         * modules/expm1f-tests: New file.
37159         * tests/test-expm1f.c: New file.
37161         New module 'expm1f'.
37162         * lib/math.in.h (expm1f): New declaration.
37163         * lib/expm1f.c: New file.
37164         * m4/expm1f.m4: New file.
37165         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
37166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
37167         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
37168         * modules/expm1f: New file.
37169         * tests/test-math-c++.cc: Check the declaration of expm1f.
37170         * doc/posix-functions/expm1f.texi: Mention the new module.
37172 2012-03-06  Bruno Haible  <bruno@clisp.org>
37174         Tests for module 'expm1'.
37175         * modules/expm1-tests: New file.
37176         * tests/test-expm1.c: New file.
37177         * tests/test-expm1.h: New file.
37179         New module 'expm1'.
37180         * lib/math.in.h (expm1): New declaration.
37181         * lib/expm1.c: New file.
37182         * m4/expm1.m4: New file.
37183         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
37184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
37185         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
37186         * modules/expm1: New file.
37187         * tests/test-math-c++.cc: Check the declaration of expm1.
37188         * doc/posix-functions/expm1.texi: Mention the new module.
37190 2012-03-06  Bruno Haible  <bruno@clisp.org>
37192         math: Ensure declarations of math functions.
37193         * modules/acosf (Depends-on): Add 'extensions'.
37194         * modules/asinf (Depends-on): Likewise.
37195         * modules/atan2f (Depends-on): Likewise.
37196         * modules/atanf (Depends-on): Likewise.
37197         * modules/cbrt (Depends-on): Likewise.
37198         * modules/cbrtf (Depends-on): Likewise.
37199         * modules/cbrtl (Depends-on): Likewise.
37200         * modules/copysignf (Depends-on): Likewise.
37201         * modules/copysignl (Depends-on): Likewise.
37202         * modules/cosf (Depends-on): Likewise.
37203         * modules/coshf (Depends-on): Likewise.
37204         * modules/expf (Depends-on): Likewise.
37205         * modules/fabsf (Depends-on): Likewise.
37206         * modules/fabsl (Depends-on): Likewise.
37207         * modules/fmaf (Depends-on): Likewise.
37208         * modules/fmal (Depends-on): Likewise.
37209         * modules/fmodf (Depends-on): Likewise.
37210         * modules/fmodl (Depends-on): Likewise.
37211         * modules/frexpf (Depends-on): Likewise.
37212         * modules/frexpl (Depends-on): Likewise.
37213         * modules/hypot (Depends-on): Likewise.
37214         * modules/hypotf (Depends-on): Likewise.
37215         * modules/hypotl (Depends-on): Likewise.
37216         * modules/ldexpf (Depends-on): Likewise.
37217         * modules/ldexpl (Depends-on): Likewise.
37218         * modules/log10f (Depends-on): Likewise.
37219         * modules/log10l (Depends-on): Likewise.
37220         * modules/log1p (Depends-on): Likewise.
37221         * modules/logb (Depends-on): Likewise.
37222         * modules/logf (Depends-on): Likewise.
37223         * modules/modff (Depends-on): Likewise.
37224         * modules/modfl (Depends-on): Likewise.
37225         * modules/powf (Depends-on): Likewise.
37226         * modules/remainderf (Depends-on): Likewise.
37227         * modules/remainderl (Depends-on): Likewise.
37228         * modules/rintf (Depends-on): Likewise.
37229         * modules/rintl (Depends-on): Likewise.
37230         * modules/sinf (Depends-on): Likewise.
37231         * modules/sinhf (Depends-on): Likewise.
37232         * modules/sqrtf (Depends-on): Likewise.
37233         * modules/tanf (Depends-on): Likewise.
37234         * modules/tanhf (Depends-on): Likewise.
37235         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
37236         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
37237         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
37238         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
37239         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
37240         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
37241         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
37242         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
37243         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
37244         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
37245         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
37246         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
37247         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
37248         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
37249         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
37250         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
37251         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
37252         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
37253         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
37254         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
37255         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
37256         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
37257         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
37258         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
37259         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
37260         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
37261         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
37262         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
37263         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
37264         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
37265         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
37266         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
37267         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
37268         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
37269         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
37270         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
37271         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
37272         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
37273         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
37274         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
37275         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
37277 2012-03-06  Bruno Haible  <bruno@clisp.org>
37279         math: Update module names in warnings.
37280         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37281         tanl): Use specific module name in warn-on-use warning.
37283 2012-03-06  Bruno Haible  <bruno@clisp.org>
37285         expl: Simplify computation.
37286         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
37288 2012-03-05  Bruno Haible  <bruno@clisp.org>
37290         exp* tests: More tests.
37291         * tests/test-exp.h: New file.
37292         * tests/test-exp.c: Include <float.h> and test-exp.h.
37293         (main): Invoke test_function.
37294         * tests/test-expf.c: Include <float.h> and test-exp.h.
37295         (main): Invoke test_function.
37296         * tests/test-expl.c: Include <float.h> and test-exp.h.
37297         (main): Invoke test_function.
37298         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
37299         (Makefile.am): Add randomd.c to test_exp_SOURCES.
37300         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
37301         (Makefile.am): Add randomf.c to test_expf_SOURCES.
37302         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
37303         (Depends-on): Add 'float'.
37304         (Makefile.am): Add randoml.c to test_expl_SOURCES.
37306         expl: Fix precision of computed result.
37307         * lib/expl.c: Completely rewritten.
37308         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
37309         (Maintainer): Add me.
37310         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
37312 2012-03-05  Bruno Haible  <bruno@clisp.org>
37314         cbrt* tests: More tests.
37315         * tests/test-cbrt.h: New file.
37316         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
37317         (main): Invoke test_function.
37318         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
37319         (main): Invoke test_function.
37320         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
37321         (main): Invoke test_function.
37322         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
37323         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
37324         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
37325         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
37326         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
37327         (Depends-on): Add 'float'.
37328         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
37330 2012-03-05  Bruno Haible  <bruno@clisp.org>
37332         hypot* tests: More tests.
37333         * tests/test-hypot.h: New file, partially extracted from
37334         tests/test-hypotl.c.
37335         * tests/test-hypot.c: Include test-hypot.h.
37336         (main): Invoke test_function.
37337         * tests/test-hypotf.c: Include test-hypot.h.
37338         (main): Invoke test_function.
37339         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
37340         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
37341         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
37342         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
37343         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
37344         tests/randomf.c.
37345         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
37346         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
37347         tests/randoml.c.
37348         (Depends-on): Add 'fpucw', 'float'.
37349         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
37351 2012-03-05  Bruno Haible  <bruno@clisp.org>
37353         fpucw: Doc about FreeBSD.
37354         * lib/fpucw.h: Mention FreeBSD in comments.
37356 2012-03-04  Bruno Haible  <bruno@clisp.org>
37358         sqrt* tests: More tests.
37359         * tests/test-sqrt.h: New file.
37360         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
37361         (main): Invoke test_function.
37362         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
37363         (main): Invoke test_function.
37364         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
37365         (main): Invoke test_function.
37366         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
37367         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
37368         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
37369         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
37370         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
37371         (Depends-on): Add 'float'.
37372         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
37374 2012-03-04  Bruno Haible  <bruno@clisp.org>
37376         remainder* tests: More tests.
37377         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
37378         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
37379         (main): Invoke test_function.
37380         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
37381         (main): Invoke test_function.
37382         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
37383         (main): Invoke test_function.
37384         * modules/remainder-tests (Files): Add tests/test-remainder.h,
37385         tests/randomd.c.
37386         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
37387         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
37388         tests/randomf.c.
37389         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
37390         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
37391         tests/randoml.c.
37392         (Depends-on): Add 'float'.
37393         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
37395 2012-03-04  Bruno Haible  <bruno@clisp.org>
37397         remainder, remainderf, remainderl: Fix computation for large quotients.
37398         * lib/remainder.c: Completely rewritten.
37399         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
37400         USE_FLOAT.
37401         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
37402         USE_LONG_DOUBLE.
37403         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
37404         isnand, isinf. Remove round, fma.
37405         * modules/remainderf (Files): Add lib/remainder.c.
37406         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
37407         Remove roundf, fmaf.
37408         * modules/remainderl (Files): Add lib/remainder.c.
37409         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
37410         isinf. Remove roundl, fmal.
37411         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
37412         REMAINDER_LIBM.
37413         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
37414         REMAINDERF_LIBM.
37415         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
37416         REMAINDERL_LIBM.
37418 2012-03-04  Bruno Haible  <bruno@clisp.org>
37420         fmod* tests: More tests.
37421         * tests/test-fmod.h (my_ldexp): New function.
37422         (test_function): Reduce amount of random numbers to test. Add tests
37423         of very large quotients x / y.
37424         * tests/test-fmod.c (MAX_EXP): New macro.
37425         * tests/test-fmodf.c (MAX_EXP): Likewise.
37426         * tests/test-fmodl.c (MAX_EXP): Likewise.
37428 2012-03-04  Bruno Haible  <bruno@clisp.org>
37430         fmod, fmodl: Fix computation for large quotients x / y.
37431         * lib/fmod.c: Completely rewritten.
37432         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
37433         USE_LONG_DOUBLE.
37434         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
37435         isnand. Remove fma.
37436         * modules/fmodl (Files): Add lib/fmod.c.
37437         (Depends-on): Add float, isfinite, signbit, fabsl,
37438         frexpl, ldexpl, isnanl. Remove fma.
37439         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
37440         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
37442 2012-03-03  Bruno Haible  <bruno@clisp.org>
37444         fmod* tests: More tests.
37445         * tests/test-fmod.h: New file.
37446         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
37447         (main): Invoke test_function.
37448         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
37449         (main): Invoke test_function.
37450         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
37451         (main): Invoke test_function.
37452         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
37453         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
37454         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
37455         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
37456         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
37457         (Depends-on): Add 'float'.
37458         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
37460 2012-03-03  Bruno Haible  <bruno@clisp.org>
37462         rint* tests: More tests.
37463         * tests/test-rint.h: New file, partially extracted from
37464         tests/test-rintl.c.
37465         * tests/test-rint.c: Include test-rint.h.
37466         (main): Invoke test_function.
37467         * tests/test-rintf.c: Include test-rint.h.
37468         (main): Invoke test_function.
37469         * tests/test-rintl.c: Include test-rint.h.
37470         (main): Invoke test_function.
37471         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
37472         (Makefile.am): Add randomd.c to test_rint_SOURCES.
37473         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
37474         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
37475         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
37476         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
37478 2012-03-03  Bruno Haible  <bruno@clisp.org>
37480         modf* tests: More tests.
37481         * tests/test-modf.h: New file.
37482         * tests/test-modf.c: Include <float.h> and test-modf.h.
37483         (main): Invoke test_function.
37484         * tests/test-modff.c: Include <float.h> and test-modf.h.
37485         (main): Invoke test_function.
37486         * tests/test-modfl.c: Include <float.h> and test-modf.h.
37487         (main): Invoke test_function.
37488         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
37489         (Makefile.am): Add randomd.c to test_modf_SOURCES.
37490         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
37491         (Makefile.am): Add randomf.c to test_modff_SOURCES.
37492         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
37493         (Depends-on): Add 'float'.
37494         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
37496 2012-03-03  Bruno Haible  <bruno@clisp.org>
37498         fabs* tests: More tests.
37499         * tests/test-fabs.h: New file, partially extracted from
37500         tests/test-fabsl.c.
37501         * tests/test-fabs.c (RANDOM): New macro.
37502         * tests/test-fabsf.c (RANDOM): New macro.
37503         * tests/test-fabsl.c (RANDOM): New macro.
37504         * modules/fabs-tests (Files): Add tests/randomd.c.
37505         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
37506         * modules/fabsf-tests (Files): Add tests/randomf.c.
37507         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
37508         * modules/fabsl-tests (Files): Add tests/randoml.c.
37509         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
37511 2012-03-03  Bruno Haible  <bruno@clisp.org>
37513         ldexp* tests: More tests.
37514         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
37515         * tests/test-ldexp.c (RANDOM): New macro.
37516         * tests/test-ldexpf.c (RANDOM): New macro.
37517         * tests/test-ldexpl.c (RANDOM): New macro.
37518         * modules/ldexp-tests (Files): Add tests/randomd.c.
37519         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
37520         * modules/ldexpf-tests (Files): Add tests/randomf.c.
37521         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
37522         * modules/ldexpl-tests (Files): Add tests/randoml.c.
37523         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
37525 2012-03-03  Bruno Haible  <bruno@clisp.org>
37527         frexp* tests: More tests.
37528         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
37529         * tests/test-frexp.c (RANDOM): New macro.
37530         * tests/test-frexpf.c (RANDOM): New macro.
37531         * tests/test-frexpl.c (RANDOM): New macro.
37532         * modules/frexp-tests (Files): Add tests/randomd.c.
37533         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
37534         * modules/frexpf-tests (Files): Add tests/randomf.c.
37535         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
37536         * modules/frexpl-tests (Files): Add tests/randoml.c.
37537         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
37539 2012-03-03  Bruno Haible  <bruno@clisp.org>
37541         Support for pseudo-random numbers in tests.
37542         * tests/randomf.c: New file.
37543         * tests/randomd.c: New file.
37544         * tests/randoml.c: New file.
37545         * tests/macros.h (randomf, randomd, randoml): New declarations.
37547 2012-03-03  Bruno Haible  <bruno@clisp.org>
37549         frexp* tests: Refactor.
37550         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
37551         * tests/test-frexp.c: Include and use it.
37552         * tests/test-frexpf.c: Likewise.
37553         * tests/test-frexpl.c: Likewise.
37554         * modules/frexp-tests (Files): Add tests/test-frexp.h.
37555         * modules/frexpf-tests (Files): Likewise.
37556         * modules/frexpl-tests (Files): Likewise.
37558 2012-03-02  Jim Meyering  <meyering@redhat.com>
37560         maint: don't specify XZ_OPT=-9ev in dist-related rule
37561         Using xz's -9 option is warranted only if you have a very large
37562         tarball (see xz's documentation for the sizes vs. presets), and
37563         requires 64MiB of memory at decompression time.
37564         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
37565         Automake's default of just "-e" is fine.  Override on a
37566         per-package basis by setting XZ_OPT e.g., in cfg.mk.
37568 2012-03-01  Eric Blake  <eblake@redhat.com>
37570         maint.mk: allow announcement for non-gnulib project
37571         * maint.mk (announcement): Skip gnulib version if not used.
37573 2012-03-01  Jim Meyering  <meyering@redhat.com>
37575         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
37576         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
37577         envvar settings cannot interfere.  Otherwise, setting envvars like
37578         prohibit=foo require=bar, etc. would cause spurious test failures.
37580 2012-03-01  Eric Blake  <eblake@redhat.com>
37582         maint.mk: add per-line exclusions to prohibitions
37583         * maint.mk (_sc_search_regexp): Add $exclude parameter.
37584         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
37585         (sc_const_long_option): Use it.
37587 2012-03-01  Bruno Haible  <bruno@clisp.org>
37589         Tests for module 'expl-ieee'.
37590         * modules/expl-ieee-tests: New file.
37591         * tests/test-expl-ieee.c: New file.
37593         New module 'expl-ieee'.
37594         * modules/expl-ieee: New file.
37596         Tests for module 'exp-ieee'.
37597         * modules/exp-ieee-tests: New file.
37598         * tests/test-exp-ieee.c: New file.
37600         New module 'exp-ieee'.
37601         * modules/exp-ieee: New file.
37603         Tests for module 'expf-ieee'.
37604         * modules/expf-ieee-tests: New file.
37605         * tests/test-expf-ieee.c: New file.
37606         * tests/test-exp-ieee.h: New file.
37608         New module 'expf-ieee'.
37609         * modules/expf-ieee: New file.
37611 2012-02-29  Bruno Haible  <bruno@clisp.org>
37613         cbrtl-ieee: Work around test failure on IRIX 6.5.
37614         * m4/cbrtl-ieee.m4: New file.
37615         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
37616         test whether cbrtl works with a minus zero argument. Replace it if not.
37617         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
37618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
37619         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
37620         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
37621         (Depends-on): Update conditions.
37622         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
37623         m4/signbit.m4.
37624         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
37625         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
37626         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
37628         Tests for module 'cbrtl-ieee'.
37629         * modules/cbrtl-ieee-tests: New file.
37630         * tests/test-cbrtl-ieee.c: New file.
37632         New module 'cbrtl-ieee'.
37633         * modules/cbrtl-ieee: New file.
37635         Tests for module 'cbrt-ieee'.
37636         * modules/cbrt-ieee-tests: New file.
37637         * tests/test-cbrt-ieee.c: New file.
37639         New module 'cbrt-ieee'.
37640         * modules/cbrt-ieee: New file.
37642         Tests for module 'cbrtf-ieee'.
37643         * modules/cbrtf-ieee-tests: New file.
37644         * tests/test-cbrtf-ieee.c: New file.
37645         * tests/test-cbrt-ieee.h: New file.
37647         New module 'cbrtf-ieee'.
37648         * modules/cbrtf-ieee: New file.
37650 2012-02-29  Bruno Haible  <bruno@clisp.org>
37652         cbrtf: Work around bug in IRIX 6.5 system function.
37653         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
37654         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
37655         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
37656         work.
37657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
37658         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
37659         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
37660         (Depends-on): Update conditions.
37661         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
37663 2012-02-29  Bruno Haible  <bruno@clisp.org>
37665         Tests for module 'cbrtl'.
37666         * modules/cbrtl-tests: New file.
37667         * tests/test-cbrtl.c: New file.
37669         New module 'cbrtl'.
37670         * lib/math.in.h (cbrtl): New declaration.
37671         * lib/cbrtl.c: New file.
37672         * m4/cbrtl.m4: New file.
37673         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
37674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
37675         HAVE_DECL_CBRTL.
37676         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
37677         HAVE_DECL_CBRTL.
37678         * modules/cbrtl: New file.
37679         * tests/test-math-c++.cc: Check the declaration of cbrtl.
37680         * doc/posix-functions/cbrtl.texi: Mention the new module.
37682 2012-02-29  Bruno Haible  <bruno@clisp.org>
37684         Tests for module 'cbrtf'.
37685         * modules/cbrtf-tests: New file.
37686         * tests/test-cbrtf.c: New file.
37688         New module 'cbrtf'.
37689         * lib/math.in.h (cbrtf): New declaration.
37690         * lib/cbrtf.c: New file.
37691         * m4/cbrtf.m4: New file.
37692         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
37693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
37694         HAVE_DECL_CBRTF.
37695         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
37696         HAVE_DECL_CBRTF.
37697         * modules/cbrtf: New file.
37698         * tests/test-math-c++.cc: Check the declaration of cbrtf.
37699         * doc/posix-functions/cbrtf.texi: Mention the new module.
37701 2012-02-29  Bruno Haible  <bruno@clisp.org>
37703         cbrt: Provide replacement on MSVC and Minix.
37704         * lib/math.in.h (cbrt): New declaration.
37705         * lib/cbrt.c: New file.
37706         * m4/cbrt.m4: New file.
37707         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
37708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
37709         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
37710         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
37711         (Depends-on): Add dependencies.
37712         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
37713         * tests/test-math-c++.cc: Check the declaration of cbrt.
37714         * doc/posix-functions/cbrt.texi: Mention that the module provides a
37715         replacement.
37717 2012-02-29  Bruno Haible  <bruno@clisp.org>
37719         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
37720         * m4/hypotl-ieee.m4: New file.
37721         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
37722         test whether hypotl works with mixed NaN and Infinity arguments.
37723         Replace it if not.
37724         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
37725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
37726         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
37727         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
37728         (Depends-on): Update conditions.
37729         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
37730         (Depends-on): Add hypot-ieee.
37731         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
37732         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
37734         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
37735         * m4/hypotf-ieee.m4: New file.
37736         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
37737         test whether hypotf works with mixed NaN and Infinity arguments.
37738         Replace it if not.
37739         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
37740         (Depends-on): Add hypot-ieee.
37741         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
37742         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
37744         hypot-ieee: Work around test failure on OSF/1 and native Windows.
37745         * lib/math.in.h (hypot): New declaration.
37746         * lib/hypot.c: New file.
37747         * m4/hypot-ieee.m4: New file.
37748         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
37749         whether hypot works with mixed NaN and Infinity arguments. Replace it
37750         if not.
37751         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
37752         REPLACE_HYPOT.
37753         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
37754         * modules/hypot (Files): Add lib/hypot.c.
37755         (Depends-on): Add dependencies.
37756         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
37757         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
37758         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
37759         * tests/test-math-c++.cc: Check the declaration of hypot.
37760         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
37762         Tests for module 'hypotl-ieee'.
37763         * modules/hypotl-ieee-tests: New file.
37764         * tests/test-hypotl-ieee.c: New file.
37766         New module 'hypotl-ieee'.
37767         * modules/hypotl-ieee: New file.
37769         Tests for module 'hypot-ieee'.
37770         * modules/hypot-ieee-tests: New file.
37771         * tests/test-hypot-ieee.c: New file.
37773         New module 'hypot-ieee'.
37774         * modules/hypot-ieee: New file.
37776         Tests for module 'hypotf-ieee'.
37777         * modules/hypotf-ieee-tests: New file.
37778         * tests/test-hypotf-ieee.c: New file.
37779         * tests/test-hypot-ieee.h: New file.
37781         New module 'hypotf-ieee'.
37782         * modules/hypotf-ieee: New file.
37784 2012-02-29  Bruno Haible  <bruno@clisp.org>
37786         Remove unused variables.
37787         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
37788         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
37789         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
37790         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
37792 2012-02-29  Eric Blake  <eblake@redhat.com>
37794         termios: fix pid_t always, not just for tcgetsid
37795         * doc/posix-headers/termios.texi (termios.h): Mention problem.
37796         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
37797         just when building tcgetsid.
37799 2012-02-29  Bruno Haible  <bruno@clisp.org>
37801         Tests for module 'hypotl'.
37802         * modules/hypotl-tests: New file.
37803         * tests/test-hypotl.c: New file.
37805         New module 'hypotl'.
37806         * lib/math.in.h (hypotl): New declaration.
37807         * lib/hypotl.c: New file.
37808         * m4/hypotl.m4: New file.
37809         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
37810         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
37811         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
37812         * modules/hypotl: New file.
37813         * tests/test-math-c++.cc: Check the hypotl declaration.
37814         * doc/posix-functions/hypotl.texi: Mention the new module.
37816 2012-02-29  Eric Blake  <eblake@redhat.com>
37818         tcgetsid: fix cygwin header bug
37819         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
37821         docs: update cygwin progress
37822         * doc/posix-functions/llround.texi (llround): Added in cygwin
37823         1.7.8.
37824         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
37825         * doc/glibc-functions/program_invocation_name.texi
37826         (program_invocation_name): Likewise.
37827         * doc/glibc-functions/program_invocation_short_name.texi
37828         (program_invocation_short_name): Likewise.
37829         * doc/glibc-functions/madvise.texi (madvise): Likewise.
37830         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
37831         Likewise.
37832         * doc/posix-functions/pthread_spin_destroy.texi
37833         (pthread_spin_destroy): Added in cygwin 1.7.10.
37834         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
37835         Likewise.
37836         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
37837         Likewise.
37838         * doc/posix-functions/pthread_spin_trylock.texi
37839         (pthread_spin_trylock): Likewise.
37840         * doc/posix-functions/pthread_spin_unlock.texi
37841         (pthread_spin_unlock): Likewise.
37842         * doc/posix-functions/pthread_setschedprio.texi
37843         (pthread_setschedprio): Likewise.
37844         * doc/posix-functions/pthread_attr_getstack.texi
37845         (pthread_attr_getstack): Likewise.
37846         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
37847         (pthread_attr_getstackaddr): Likewise.
37848         * doc/glibc-functions/pthread_getattr_np.texi
37849         (pthread_getattr_np): Likewise.
37850         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
37851         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
37852         * doc/posix-functions/clock_settime.texi (clock_settime):
37853         Likewise.
37854         * doc/posix-functions/pthread_attr_getguardsize.texi
37855         (pthread_attr_getguardsize): Likewise.
37856         * doc/posix-functions/pthread_attr_setguardsize.texi
37857         (pthread_attr_setguardsize): Likewise.
37858         * doc/posix-functions/pthread_attr_setstack.texi
37859         (pthread_attr_setstack): Likewise.
37860         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
37861         (pthread_attr_setstackaddr): Likewise.
37862         * doc/posix-functions/clock_getcpuclockid.texi
37863         (clock_getcpuclockid): Likewise.
37864         * doc/posix-functions/pthread_getcpuclockid.texi
37865         (pthread_getcpuclockid): Likewise.
37866         * doc/glibc-functions/error.texi (error): Likewise.
37867         * doc/glibc-functions/error_at_line.texi (error_at_line):
37868         Likewise.
37869         * doc/glibc-functions/error_message_count.texi
37870         (error_message_count): Likewise.
37871         * doc/glibc-functions/error_one_per_line.texi
37872         (error_one_per_line): Likewise.
37873         * doc/glibc-functions/error_print_progname.texi
37874         (error_print_progname): Likewise.
37875         * doc/posix-functions/pthread_condattr_getclock.texi
37876         (pthread_condattr_getclock): Likewise.
37877         * doc/posix-functions/pthread_condattr_setclock.texi
37878         (pthread_condattr_setclock): Likewise.
37879         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
37880         Likewise.
37881         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
37882         * doc/glibc-functions/getpt.texi (getpt): Likewise.
37883         * doc/glibc-functions/get_current_dir_name.texi
37884         (get_current_dir_name): Likewise.
37885         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
37886         Likewise.
37887         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
37888         wrong return type.
37889         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
37890         1.7.11.
37892 2012-02-29  Bruno Haible  <bruno@clisp.org>
37894         Tests for module 'hypotf'.
37895         * modules/hypotf-tests: New file.
37896         * tests/test-hypotf.c: New file.
37898         New module 'hypotf'.
37899         * lib/math.in.h (hypotf): New declaration.
37900         * lib/hypotf.c: New file.
37901         * m4/hypotf.m4: New file.
37902         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
37903         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
37904         REPLACE_HYPOTF.
37905         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
37906         REPLACE_HYPOTF.
37907         * modules/hypotf: New file.
37908         * tests/test-math-c++.cc: Check the hypotf declaration.
37909         * doc/posix-functions/hypotf.texi: Mention the new module.
37911         hypot: Prepare for hypotf module.
37912         * m4/hypot.m4: New file.
37913         * modules/hypot (Files): Add m4/hypot.m4.
37914         (configure.ac): Invoke gl_FUNC_HYPOT.
37916 2012-02-29  Bruno Haible  <bruno@clisp.org>
37918         hypot tests: More tests.
37919         * tests/test-hypot.c: Include <float.h>.
37920         (main): Add tests about overflow and underflow.
37922 2012-02-29  Bruno Haible  <bruno@clisp.org>
37924         math code: Add comments.
37925         * lib/acosl.c: Add comment about related glibc source files.
37926         * lib/asinl.c: Likewise.
37927         * lib/atanl.c: Likewise.
37928         * lib/expl.c: Likewise.
37929         * lib/logl.c: Likewise.
37930         * lib/sincosl.c: Likewise.
37931         * lib/sinl.c: Likewise.
37932         * lib/tanl.c: Likewise.
37933         * lib/trigl.c: Likewise.
37934         * lib/cosl.c: Likewise. Fix comments.
37936 2012-02-28  Bruno Haible  <bruno@clisp.org>
37938         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
37939         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
37940         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
37941         HUGE_VALL are defined.
37942         (numeric_equald): Renamed from numeric_equal.
37943         (numeric_equalf, numeric_equall): New functions.
37944         (main): Check also HUGE_VALF, HUGE_VALL.
37945         * modules/math-tests (Files): Add tests/macros.h.
37946         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
37947         HUGE_VALL.
37949 2012-02-28  Bruno Haible  <bruno@clisp.org>
37951         doc: Move ISO C11 feature notes into POSIX chapters.
37952         * doc/posix-functions/aligned_alloc.texi: Renamed from
37953         doc/glibc-functions/aligned_alloc.texi.
37954         * doc/posix-functions/quick_exit.texi: Renamed from
37955         doc/glibc-functions/quick_exit.texi.
37956         * doc/posix-headers/uchar.texi: Renamed from
37957         doc/glibc-headers/uchar.texi.
37958         * doc/posix-functions/c16rtomb.texi: Renamed from
37959         doc/glibc-functions/c16rtomb.texi.
37960         * doc/posix-functions/c32rtomb.texi: Renamed from
37961         doc/glibc-functions/c32rtomb.texi.
37962         * doc/posix-functions/mbrtoc16.texi: Renamed from
37963         doc/glibc-functions/mbrtoc16.texi.
37964         * doc/posix-functions/mbrtoc32.texi: Renamed from
37965         doc/glibc-functions/mbrtoc32.texi.
37966         * doc/gnulib.texi: Update.
37967         (Glibc uchar.h): Remove section.
37968         Suggested by Eric Blake.
37970 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
37972         stdnoreturn: port to MSVC better
37973         MSVC standard headers use __declspec(noreturn), so #define noreturn
37974         to empty on that platform.  Reported by Bruno Haible in
37975         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
37976         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
37977         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
37979 2012-02-28  Bruno Haible  <bruno@clisp.org>
37981         doc: Mention new glibc headers and functions.
37982         * doc/glibc-headers/uchar.texi: New file.
37983         * doc/glibc-functions/aligned_alloc.texi: New file.
37984         * doc/glibc-functions/c16rtomb.texi: New file.
37985         * doc/glibc-functions/c32rtomb.texi: New file.
37986         * doc/glibc-functions/clock_adjtime.texi: New file.
37987         * doc/glibc-functions/fanotify_init.texi: New file.
37988         * doc/glibc-functions/fanotify_mark.texi: New file.
37989         * doc/glibc-functions/inet6_opt_append.texi: New file.
37990         * doc/glibc-functions/inet6_opt_find.texi: New file.
37991         * doc/glibc-functions/inet6_opt_finish.texi: New file.
37992         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
37993         * doc/glibc-functions/inet6_opt_init.texi: New file.
37994         * doc/glibc-functions/inet6_opt_next.texi: New file.
37995         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
37996         * doc/glibc-functions/inet6_rth_add.texi: New file.
37997         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
37998         * doc/glibc-functions/inet6_rth_init.texi: New file.
37999         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
38000         * doc/glibc-functions/inet6_rth_segments.texi: New file.
38001         * doc/glibc-functions/inet6_rth_space.texi: New file.
38002         * doc/glibc-functions/login.texi: New file.
38003         * doc/glibc-functions/mbrtoc16.texi: New file.
38004         * doc/glibc-functions/mbrtoc32.texi: New file.
38005         * doc/glibc-functions/name_to_handle_at.texi: New file.
38006         * doc/glibc-functions/ntp_gettimex.texi: New file.
38007         * doc/glibc-functions/open_by_handle_at.texi: New file.
38008         * doc/glibc-functions/prlimit.texi: New file.
38009         * doc/glibc-functions/process_vm_readv.texi: New file.
38010         * doc/glibc-functions/process_vm_writev.texi: New file.
38011         * doc/glibc-functions/recvmmsg.texi: New file.
38012         * doc/glibc-functions/scandirat.texi: New file.
38013         * doc/glibc-functions/sendmmsg.texi: New file.
38014         * doc/glibc-functions/setns.texi: New file.
38015         * doc/glibc-functions/timespec_get.texi: New file.
38016         * doc/gnulib.texi: Include them.
38017         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
38018         sections.
38019         Reported by Eric Blake.
38021 2012-02-28  Bruno Haible  <bruno@clisp.org>
38023         Avoid compilation errors with MSVC option -fp:strict.
38024         * lib/floor.c: Use MSVC specific pragma fenv_access.
38025         * lib/ceil.c: Likewise.
38026         * lib/trunc.c: Likewise.
38027         * lib/round.c: Likewise.
38028         * lib/rint.c: Likewise.
38029         * lib/fma.c: Likewise.
38030         * lib/integer_length.c: Likewise.
38031         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38032         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38033         * tests/test-floor2.c: Likewise.
38034         * tests/test-floorf2.c: Likewise.
38035         * tests/test-ceil2.c: Likewise.
38036         * tests/test-ceilf2.c: Likewise.
38037         * tests/test-trunc2.c: Likewise.
38038         * tests/test-truncf2.c: Likewise.
38039         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
38041 2012-02-27  Bruno Haible  <bruno@clisp.org>
38043         Tests for module 'sqrtl-ieee'.
38044         * modules/sqrtl-ieee-tests: New file.
38045         * tests/test-sqrtl-ieee.c: New file.
38047         New module 'sqrtl-ieee'.
38048         * modules/sqrtl-ieee: New file.
38050         Tests for module 'sqrt-ieee'.
38051         * modules/sqrt-ieee-tests: New file.
38052         * tests/test-sqrt-ieee.c: New file.
38054         New module 'sqrt-ieee'.
38055         * modules/sqrt-ieee: New file.
38057         Tests for module 'sqrtf-ieee'.
38058         * modules/sqrtf-ieee-tests: New file.
38059         * tests/test-sqrtf-ieee.c: New file.
38060         * tests/test-sqrt-ieee.h: New file.
38062         New module 'sqrtf-ieee'.
38063         * modules/sqrtf-ieee: New file.
38065 2012-02-27  Bruno Haible  <bruno@clisp.org>
38067         remainderl-ieee: Work around test failure on OSF/1.
38068         * m4/remainderl-ieee.m4: New file.
38069         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
38070         present, test whether remainderl works with a zero second argument.
38071         Replace it if not.
38072         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
38073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
38074         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
38075         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
38076         (Depends-on): Update conditions.
38077         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
38078         (Depends-on): Add remainder-ieee.
38079         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
38080         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
38081         module.
38083         remainderf-ieee: Work around test failure on OSF/1.
38084         * m4/remainderf-ieee.m4: New file.
38085         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
38086         present, test whether remainderf works with a zero second argument.
38087         Replace it if not.
38088         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
38089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
38090         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
38091         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
38092         (Depends-on): Update conditions.
38093         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
38094         (Depends-on): Add remainder-ieee.
38095         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
38096         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
38097         module.
38099         remainder-ieee: Work around test failure on OSF/1.
38100         * m4/remainder-ieee.m4: New file.
38101         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
38102         present, test whether remainder works with a zero second argument.
38103         Replace it if not.
38104         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
38105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
38106         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
38107         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
38108         (Depends-on): Update dependencies.
38109         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
38110         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
38111         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
38113         Tests for module 'remainderl-ieee'.
38114         * modules/remainderl-ieee-tests: New file.
38115         * tests/test-remainderl-ieee.c: New file.
38117         New module 'remainderl-ieee'.
38118         * modules/remainderl-ieee: New file.
38120         Tests for module 'remainder-ieee'.
38121         * modules/remainder-ieee-tests: New file.
38122         * tests/test-remainder-ieee.c: New file.
38124         New module 'remainder-ieee'.
38125         * modules/remainder-ieee: New file.
38127         Tests for module 'remainderf-ieee'.
38128         * modules/remainderf-ieee-tests: New file.
38129         * tests/test-remainderf-ieee.c: New file.
38130         * tests/test-remainder-ieee.h: New file.
38132         New module 'remainderf-ieee'.
38133         * modules/remainderf-ieee: New file.
38135 2012-02-27  Bruno Haible  <bruno@clisp.org>
38137         modff, modfl: Fix configure syntax error.
38138         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
38139         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
38141 2012-02-27  Bruno Haible  <bruno@clisp.org>
38143         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
38144         * m4/fmodl-ieee.m4: New file.
38145         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
38146         whether fmodl works with zero arguments. Replace it if not.
38147         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
38148         (Depends-on): Add fmod-ieee.
38149         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
38150         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
38152         fmodf-ieee: Work around test failure on OSF/1.
38153         * m4/fmodf-ieee.m4: New file.
38154         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
38155         whether fmodf works with zero arguments. Replace it if not.
38156         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
38157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
38158         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
38159         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
38160         (Depends-on): Update dependencies.
38161         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
38162         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
38163         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
38165         fmodf-ieee: Work around test failure on MSVC 9.
38166         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
38167         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
38169         fmod-ieee: Work around test failures on OSF/1, mingw.
38170         * m4/fmod-ieee.m4: New file.
38171         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
38172         whether fmod works with zero arguments. Replace it if not.
38173         * lib/math.in.h (fmod): New declaration.
38174         * lib/fmod.c: New file.
38175         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
38176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
38177         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
38178         * modules/fmod (Files): Add lib/fmod.c.
38179         (Depends-on): Add math, isinf, trunc, fma.
38180         (configure.ac): Arrange to compile lib/fmod.c if needed.
38181         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
38182         m4/signbit.m4.
38183         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
38184         * tests/test-math-c++.cc: Check the declaration of fmod.
38185         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
38187         fmodl-ieee: Fix test failures.
38188         * lib/fmodl.c (fmodl): Treat Inf specially.
38189         * modules/fmodl (Depends-on): Add isinf.
38191         Tests for module 'fmodl-ieee'.
38192         * modules/fmodl-ieee-tests: New file.
38193         * tests/test-fmodl-ieee.c: New file.
38195         New module 'fmodl-ieee'.
38196         * modules/fmodl-ieee: New file.
38198         Tests for module 'fmod-ieee'.
38199         * modules/fmod-ieee-tests: New file.
38200         * tests/test-fmod-ieee.c: New file.
38202         New module 'fmod-ieee'.
38203         * modules/fmod-ieee: New file.
38205         Tests for module 'fmodf-ieee'.
38206         * modules/fmodf-ieee-tests: New file.
38207         * tests/test-fmodf-ieee.c: New file.
38208         * tests/test-fmod-ieee.h: New file.
38210         New module 'fmodf-ieee'.
38211         * modules/fmodf-ieee: New file.
38213 2012-02-27  Bruno Haible  <bruno@clisp.org>
38215         Tests for module 'rintl-ieee'.
38216         * modules/rintl-ieee-tests: New file.
38217         * tests/test-rintl-ieee.c: New file.
38219         New module 'rintl-ieee'.
38220         * modules/rintl-ieee: New file.
38222         Tests for module 'rint-ieee'.
38223         * modules/rint-ieee-tests: New file.
38224         * tests/test-rint-ieee.c: New file.
38226         New module 'rint-ieee'.
38227         * modules/rint-ieee: New file.
38229         Tests for module 'rintf-ieee'.
38230         * modules/rintf-ieee-tests: New file.
38231         * tests/test-rintf-ieee.c: New file.
38232         * tests/test-rint-ieee.h: New file.
38234         New module 'rintf-ieee'.
38235         * modules/rintf-ieee: New file.
38237 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38239         regex: re_search etc. should return -2 when memory exhausted
38240         This bug was uncovered when testing 'grep'.  Without the fix,
38241         re_search and friends return -1 when memory is exhausted, but -1
38242         means no match, and this causes grep to falsely report no-match
38243         instead of memory-exhaustion.  See
38244         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
38245         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
38246         trouble; this can occur if re_search_internal ran out of memory.
38248 2012-02-26  Bruno Haible  <bruno@clisp.org>
38250         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
38251         * m4/modfl-ieee.m4: New file.
38252         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
38253         whether modfl works with Inf. Replace it if not.
38254         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
38255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
38256         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
38257         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
38258         (Depends-on): Update dependencies.
38259         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
38260         m4/signbit.m4.
38261         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
38262         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
38264         modfl-ieee: Fix dependencies.
38265         * modules/modfl-ieee (Depends-on): Add modf-ieee.
38267         modfl-ieee: Fix test failures.
38268         * lib/modfl.c (modfl): Treat NaN and Inf specially.
38269         * modules/modfl (Depends-on): Add isfinite, isinf.
38271         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
38272         * m4/modff-ieee.m4: New file.
38273         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
38274         whether modff works with NaN and Inf. Replace it if not.
38275         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
38276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
38277         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
38278         * modules/modff (configure.ac): Consider REPLACE_MODFF.
38279         (Depends-on): Update dependencies.
38280         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
38281         m4/signbit.m4.
38282         (Depends-on): Add modf-ieee.
38283         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
38284         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
38286         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
38287         * m4/modf-ieee.m4: New file.
38288         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
38289         whether modf works with NaN and Inf. Replace it if not.
38290         * lib/math.in.h (modf): New declaration.
38291         * lib/modf.c: New file.
38292         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
38293         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
38294         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
38295         * modules/modf (Files): Add lib/modf.c.
38296         (Depends-on): Add math, isfinite, trunc, isinf.
38297         (configure.ac): Addrange to compile lib/modf.c if needed.
38298         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
38299         m4/signbit.m4.
38300         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
38301         * tests/test-math-c++.cc: Check the declaration of modf.
38302         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
38304         Tests for module 'modfl-ieee'.
38305         * modules/modfl-ieee-tests: New file.
38306         * tests/test-modfl-ieee.c: New file.
38308         New module 'modfl-ieee'.
38309         * modules/modfl-ieee: New file.
38311         Tests for module 'modf-ieee'.
38312         * modules/modf-ieee-tests: New file.
38313         * tests/test-modf-ieee.c: New file.
38315         New module 'modf-ieee'.
38316         * modules/modf-ieee: New file.
38318         Tests for module 'modff-ieee'.
38319         * modules/modff-ieee-tests: New file.
38320         * tests/test-modff-ieee.c: New file.
38321         * tests/test-modf-ieee.h: New file.
38323         New module 'modff-ieee'.
38324         * modules/modff-ieee: New file.
38326 2012-02-26  Bruno Haible  <bruno@clisp.org>
38328         Tests for module 'fabsl-ieee'.
38329         * modules/fabsl-ieee-tests: New file.
38330         * tests/test-fabsl-ieee.c: New file.
38332         New module 'fabsl-ieee'.
38333         * modules/fabsl-ieee: New file.
38335         Tests for module 'fabs-ieee'.
38336         * modules/fabs-ieee-tests: New file.
38337         * tests/test-fabs-ieee.c: New file.
38339         New module 'fabs-ieee'.
38340         * modules/fabs-ieee: New file.
38342         Tests for module 'fabsf-ieee'.
38343         * modules/fabsf-ieee-tests: New file.
38344         * tests/test-fabsf-ieee.c: New file.
38345         * tests/test-fabs-ieee.h: New file.
38347         New module 'fabsf-ieee'.
38348         * modules/fabsf-ieee: New file.
38350 2012-02-26  Bruno Haible  <bruno@clisp.org>
38352         Tests for module 'fmal-ieee'.
38353         * modules/fmal-ieee-tests: New file.
38354         * tests/test-fmal-ieee.c: New file.
38356         New module 'fmal-ieee'.
38357         * modules/fmal-ieee: New file.
38359         Tests for module 'fma-ieee'.
38360         * modules/fma-ieee-tests: New file.
38361         * tests/test-fma-ieee.c: New file.
38363         New module 'fma-ieee'.
38364         * modules/fma-ieee: New file.
38366         Tests for module 'fmaf-ieee'.
38367         * modules/fmaf-ieee-tests: New file.
38368         * tests/test-fmaf-ieee.c: New file.
38369         * tests/test-fma-ieee.h: New file.
38371         New module 'fmaf-ieee'.
38372         * modules/fmaf-ieee: New file.
38374 2012-02-26  Bruno Haible  <bruno@clisp.org>
38376         Tests for module 'ldexpl-ieee'.
38377         * modules/ldexpl-ieee-tests: New file.
38378         * tests/test-ldexpl-ieee.c: New file.
38380         New module 'ldexpl-ieee'.
38381         * modules/ldexpl-ieee: New file.
38383         Tests for module 'ldexp-ieee'.
38384         * modules/ldexp-ieee-tests: New file.
38385         * tests/test-ldexp-ieee.c: New file.
38387         New module 'ldexp-ieee'.
38388         * modules/ldexp-ieee: New file.
38390         Tests for module 'ldexpf-ieee'.
38391         * modules/ldexpf-ieee-tests: New file.
38392         * tests/test-ldexpf-ieee.c: New file.
38393         * tests/test-ldexp-ieee.h: New file.
38395         New module 'ldexpf-ieee'.
38396         * modules/ldexpf-ieee: New file.
38398 2012-02-26  Bruno Haible  <bruno@clisp.org>
38400         Refactor frexp*-ieee tests.
38401         * tests/test-frexp-ieee.h: New file.
38402         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
38403         (main): Just call test_function.
38404         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
38405         (main): Just call test_function.
38406         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
38407         (main): Just call test_function.
38408         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
38409         * modules/frexp-ieee-tests (Files): Likewise.
38410         * modules/frexpl-ieee-tests (Files): Likewise.
38412         Tests for module 'frexpl-ieee'.
38413         * modules/frexpl-ieee-tests: New file.
38414         * tests/test-frexpl-ieee.c: New file.
38416         New module 'frexpl-ieee'.
38417         * modules/frexpl-ieee: New file.
38419         Tests for module 'frexp-ieee'.
38420         * modules/frexp-ieee-tests: New file.
38421         * tests/test-frexp-ieee.c: New file.
38423         New module 'frexp-ieee'.
38424         * modules/frexp-ieee: New file.
38426         Tests for module 'frexpf-ieee'.
38427         * modules/frexpf-ieee-tests: New file.
38428         * tests/test-frexpf-ieee.c: New file.
38430         New module 'frexpf-ieee'.
38431         * modules/frexpf-ieee: New file.
38433 2012-02-26  Bruno Haible  <bruno@clisp.org>
38435         roundl-ieee tests: More tests.
38436         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38437         (main): Add tests for [MX] shaded specification in POSIX.
38438         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38439         (Depends-on): Add isnanl-nolibm.
38441         round-ieee tests: More tests.
38442         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38443         (main): Add tests for [MX] shaded specification in POSIX.
38444         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38445         (Depends-on): Add isnand-nolibm.
38447         roundf-ieee tests: More tests.
38448         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38449         (main): Add tests for [MX] shaded specification in POSIX.
38450         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38451         (Depends-on): Add isnanf-nolibm.
38453         truncl-ieee tests: More tests.
38454         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38455         (main): Add tests for [MX] shaded specification in POSIX.
38456         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38457         (Depends-on): Add isnanl-nolibm.
38459         trunc-ieee tests: More tests.
38460         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38461         (main): Add tests for [MX] shaded specification in POSIX.
38462         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38463         (Depends-on): Add isnand-nolibm.
38465         truncf-ieee tests: More tests.
38466         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38467         (main): Add tests for [MX] shaded specification in POSIX.
38468         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38469         (Depends-on): Add isnanf-nolibm.
38471         ceill-ieee tests: More tests.
38472         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38473         (main): Add tests for [MX] shaded specification in POSIX.
38474         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38475         (Depends-on): Add isnanl-nolibm.
38477         ceil-ieee tests: More tests.
38478         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38479         (main): Add tests for [MX] shaded specification in POSIX.
38480         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38481         (Depends-on): Add isnand-nolibm.
38483         ceilf-ieee tests: More tests.
38484         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38485         (main): Add tests for [MX] shaded specification in POSIX.
38486         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38487         (Depends-on): Add isnanf-nolibm.
38489         floorl-ieee tests: More tests.
38490         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38491         (main): Add tests for [MX] shaded specification in POSIX.
38492         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38493         (Depends-on): Add isnanl-nolibm.
38495         floor-ieee tests: More tests.
38496         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38497         (main): Add tests for [MX] shaded specification in POSIX.
38498         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38499         (Depends-on): Add isnand-nolibm.
38501         floorf-ieee tests: More tests.
38502         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38503         (main): Add tests for [MX] shaded specification in POSIX.
38504         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38505         (Depends-on): Add isnanf-nolibm.
38507 2012-02-26  Bruno Haible  <bruno@clisp.org>
38509         fpieee: More comments.
38510         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
38512 2012-02-25  Bruno Haible  <bruno@clisp.org>
38514         Tests for module 'log10l'.
38515         * modules/log10l-tests: New file.
38516         * tests/test-log10l.c: New file.
38517         * tests/test-math-c++.cc: Check the declaration of log10l.
38519         New module 'log10l'.
38520         * lib/math.in.h (log10l): New declaration.
38521         * lib/log10l.c: New file.
38522         * m4/log10l.m4: New file.
38523         * modules/log10l: New file.
38524         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
38525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
38526         HAVE_DECL_LOG10L.
38527         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
38528         HAVE_DECL_LOG10L.
38529         * doc/posix-functions/log10l.texi: Mention the new module.
38531 2012-02-25  Bruno Haible  <bruno@clisp.org>
38533         fmodl, remainder*: Avoid wrong results due to rounding errors.
38534         * lib/fmodl.c (fmodl): Correct the result if it is not within the
38535         expected bounds.
38536         * lib/remainderf.c (remainderf): Likewise.
38537         * lib/remainder.c (remainder): Likewise.
38538         * lib/remainderl.c (remainderl): Likewise.
38540 2012-02-25  Bruno Haible  <bruno@clisp.org>
38542         Tests for module 'remainderl'.
38543         * modules/remainderl-tests: New file.
38544         * tests/test-remainderl.c: New file.
38545         * tests/test-math-c++.cc: Check the declaration of remainderl.
38547         New module 'remainderl'.
38548         * lib/math.in.h (remainderl): New declaration.
38549         * lib/remainderl.c: New file.
38550         * m4/remainderl.m4: New file.
38551         * modules/remainderl: New file.
38552         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
38553         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
38554         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
38555         HAVE_REMAINDERL.
38556         * doc/posix-functions/remainderl.texi: Mention the new module.
38558 2012-02-25  Bruno Haible  <bruno@clisp.org>
38560         Tests for module 'remainderf'.
38561         * modules/remainderf-tests: New file.
38562         * tests/test-remainderf.c: New file.
38563         * tests/test-math-c++.cc: Check the declaration of remainderf.
38565         New module 'remainderf'.
38566         * lib/math.in.h (remainderf): New declaration.
38567         * lib/remainderf.c: New file.
38568         * m4/remainderf.m4: New file.
38569         * modules/remainderf: New file.
38570         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
38571         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
38572         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
38573         HAVE_REMAINDERF.
38574         * doc/posix-functions/remainderf.texi: Mention the new module.
38576 2012-02-25  Bruno Haible  <bruno@clisp.org>
38578         remainder: Support for MSVC.
38579         * lib/math.in.h (remainder): New declaration.
38580         * lib/remainder.c: New file.
38581         * m4/remainder.m4: New file.
38582         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
38583         (Depends-on): Add math, round, fma.
38584         (configure.ac): Use results of gl_FUNC_REMAINDER.
38585         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
38586         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
38587         HAVE_DECL_REMAINDER.
38588         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
38589         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
38590         * tests/test-math-c++.cc: Check the declaration of remainder.
38591         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
38592         problems are fixed.
38594 2012-02-25  Bruno Haible  <bruno@clisp.org>
38596         Tests for module 'fmodl'.
38597         * modules/fmodl-tests: New file.
38598         * tests/test-fmodl.c: New file.
38599         * tests/test-math-c++.cc: Check the declaration of fmodl.
38601         New module 'fmodl'.
38602         * lib/math.in.h (fmodl): New declaration.
38603         * lib/fmodl.c: New file.
38604         * m4/fmodl.m4: New file.
38605         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
38606         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
38607         REPLACE_FMODL.
38608         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
38609         REPLACE_FMODL.
38610         * modules/fmodl: New file.
38611         * doc/posix-functions/fmodl.texi: Mention the new module.
38613 2012-02-25  Bruno Haible  <bruno@clisp.org>
38615         Tests for module 'modfl'.
38616         * modules/modfl-tests: New file.
38617         * tests/test-modfl.c: New file.
38618         * tests/test-math-c++.cc: Check the declaration of modfl.
38620         New module 'modfl'.
38621         * lib/math.in.h (modfl): New declaration.
38622         * lib/modfl.c: New file.
38623         * m4/modfl.m4: New file.
38624         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
38625         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
38626         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
38627         * modules/modfl: New file.
38628         * doc/posix-functions/modfl.texi: Mention the new module.
38630 2012-02-25  Bruno Haible  <bruno@clisp.org>
38632         Tests for module 'fabsl'.
38633         * modules/fabsl-tests: New file.
38634         * tests/test-fabsl.c: New file.
38635         * tests/test-math-c++.cc: Check the declaration of fabsl.
38637         New module 'fabsl'.
38638         * lib/math.in.h (fabsl): New declaration.
38639         * lib/fabsl.c: New file.
38640         * m4/fabsl.m4: New file.
38641         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
38642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
38643         REPLACE_FABSL.
38644         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
38645         REPLACE_FABSL.
38646         * modules/fabsl: New file.
38647         * doc/posix-functions/fabsl.texi: Mention the new module.
38649 2012-02-25  Bruno Haible  <bruno@clisp.org>
38651         fabs tests: More tests.
38652         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
38653         (zero): New variable.
38654         (main): Add tests for signed zero.
38655         * modules/fabs-tests (Files): Add tests/minus-zero.h.
38657         fabsf tests: More tests.
38658         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
38659         (zero): New variable.
38660         (main): Add tests for signed zero.
38661         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
38663 2012-02-24  Bruno Haible  <bruno@clisp.org>
38665         atanl: Provide function definition on MSVC.
38666         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
38667         function pointer.
38668         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
38670 2012-02-24  Bruno Haible  <bruno@clisp.org>
38672         acosl: Provide function definition on MSVC.
38673         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
38674         function pointer.
38675         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
38677 2012-02-24  Bruno Haible  <bruno@clisp.org>
38679         asinl: Provide function definition on MSVC.
38680         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
38681         function pointer.
38682         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
38684 2012-02-24  Bruno Haible  <bruno@clisp.org>
38686         tanl: Provide function definition on MSVC.
38687         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
38688         function pointer.
38689         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
38691 2012-02-24  Bruno Haible  <bruno@clisp.org>
38693         cosl: Provide function definition on MSVC.
38694         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
38695         function pointer.
38696         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
38698 2012-02-24  Bruno Haible  <bruno@clisp.org>
38700         sinl: Provide function definition on MSVC.
38701         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
38702         function pointer.
38703         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
38705 2012-02-24  Bruno Haible  <bruno@clisp.org>
38707         logl: Provide function definition on MSVC.
38708         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
38709         function pointer.
38710         * lib/math.in.h (logl): Undefine if it does not exist as a function.
38712 2012-02-24  Bruno Haible  <bruno@clisp.org>
38714         expl: Provide function definition on MSVC.
38715         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
38716         function pointer.
38717         * lib/math.in.h (expl): Undefine if it does not exist as a function.
38719 2012-02-24  Bruno Haible  <bruno@clisp.org>
38721         sqrtl: Provide function definition on MSVC.
38722         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
38723         a function pointer.
38724         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
38726 2012-02-24  Bruno Haible  <bruno@clisp.org>
38728         ceill: Provide function definition on MSVC.
38729         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
38730         used as a function pointer.
38731         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
38733 2012-02-24  Bruno Haible  <bruno@clisp.org>
38735         floorl: Provide function definition on MSVC.
38736         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
38737         used as a function pointer.
38738         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
38740 2012-02-24  Bruno Haible  <bruno@clisp.org>
38742         ceilf: Provide function definition on MSVC.
38743         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
38744         used as a function pointer.
38745         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
38747 2012-02-24  Bruno Haible  <bruno@clisp.org>
38749         floorf: Provide function definition on MSVC.
38750         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
38751         used as a function pointer.
38752         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
38754 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38756         stdnoreturn: new module
38757         This implements a replacement for C11's <stdnoreturn.h>.
38758         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
38759         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
38760         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
38761         * tests/test-stdnoreturn.c: New files.
38763 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
38765         regex: fix false multibyte matches in some regular expressions
38766         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
38767         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
38768         * lib/regex_internal.c (re_string_skip_chars):
38769         Fix miscomputation of remain_len that may cause incomplete
38770         multi-byte character and false match.
38772 2012-02-24  Jim Meyering  <meyering@redhat.com>
38774         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
38775         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
38776         uses with "==" *before* the call, e.g., 0 == strcmp (...)
38777         Remove now-unnecessary str''cmp obfuscation.
38778         Suggested by Akim Demaille.
38780 2012-02-24  Bruno Haible  <bruno@clisp.org>
38782         streq: Rename macro.
38783         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
38784         * NEWS: Mention the change.
38785         * lib/mbrtowc.c (mbrtowc): Update.
38786         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
38787         * lib/wcwidth.c (wcwidth): Update.
38788         Suggested by Akim Demaille and Jim Meyering.
38790 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38792         regex: fix typo in definition of MIN
38793         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
38794         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
38796 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
38797             Bruno Haible  <bruno@clisp.org>
38799         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
38800         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
38801         entries into a stack-allocated buffer directly.
38802         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
38804 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
38805             Bruno Haible  <bruno@clisp.org>
38807         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
38809          - There were several instances of this pattern:
38811              for (;;) {
38812                n = acl (f, GETACLCNT, 0, NULL);
38813                [ allocate an array A of size N ]
38814                if (acl (f, GETACL, n, a) == n)
38815                  break;
38816              }
38818            This loop might never terminate if some other process is constantly
38819            manipulating the file's ACL.  The loop should be rewritten to
38820            terminate.
38822          - The acl (... GETACLNT ...) call is merely an optimization; its value
38823            is merely a hint as to how big to make the array.  A better
38824            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
38825            and just guess a reasonably-big size, growing the size and trying
38826            again if it's not large enough.  This guarantees termination, and
38827            saves a system call.
38829         * lib/acl-internal.h: Include <limits.h>.
38830         (MIN, SIZE_MAX): New macros.
38831         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
38832         a stack-allocated buffer, and use malloc if it does not fit. Don't
38833         use GETACLCNT.
38834         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
38836 2012-02-19  Bruno Haible  <bruno@clisp.org>
38838         acl: Fix endless loop on Solaris with vxfs.
38839         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
38840         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
38841         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
38842         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
38843         * tests/test-sameacls.c (main)[Solaris]: Likewise.
38844         Reported by Bill Jones in
38845         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
38847 2012-02-19  Bruno Haible  <bruno@clisp.org>
38849         acl: Fix copy-acl test failure on Solaris 11.0.
38850         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
38851         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
38852         that this function returns 0 in some more cases.
38854 2012-02-19  Bruno Haible  <bruno@clisp.org>
38856         acl: Update doc references.
38857         * doc/acl-resources.txt: Update links to Solaris documentation.
38859 2012-02-19  Bruno Haible  <bruno@clisp.org>
38861         Fix test failure in many locales on Solaris 11.
38862         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
38863         'tr' arguments.
38864         * tests/test-pipe-filter-ii1.c (main): Likewise.
38865         * build-aux/bootstrap (check_versions): Run 'tr' command with range
38866         expressions in the C locale.
38867         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
38868         * m4/host-os.m4 (gl_HOST_OS): Likewise.
38870 2012-02-19  Bruno Haible  <bruno@clisp.org>
38872         gnulib-tool: Improve usage message.
38873         * gnulib-tool (func_usage): Move doc of --help and --version to the
38874         section "Operation modes".
38876 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
38878         README-release: make it easier to execute commands
38879         * top/README-release: break commands out on to separate lines.
38881 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
38883         GNUmakefile: simplify detection of unconfigured trees
38884         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
38885         whether the tree make is being run from is already configured or
38886         not.  Related simplifications.
38888 2012-02-13  Simon Josefsson  <simon@josefsson.org>
38890         * gnulib-tool (func_usage): Document --help and --version.
38892 2012-02-11  Jim Meyering  <meyering@redhat.com>
38894         bootstrap: don't exit 0 upon gnulib-tool failure
38895         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
38896         its exit status, not 0.
38898 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
38900         README-release: various improvements
38901         * top/README-release: Give a command to push changes for the
38902         release.  Add "distcheck" to list of other pre-release checks.
38903         Fix instance of "make stable" which should be "make TYPE".
38905 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
38907         maint: replace FSF snail-mail addresses with URLs
38908         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
38909         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
38910         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
38911         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
38912         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
38913         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
38914         * lib/check-version.c, lib/check-version.h, lib/config.charset:
38915         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
38916         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
38917         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
38918         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
38919         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
38920         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
38921         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
38922         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
38923         * lib/glthread/thread.c, lib/glthread/thread.h:
38924         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
38925         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
38926         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
38927         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
38928         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
38929         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
38930         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
38931         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
38932         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
38933         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
38934         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
38935         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
38936         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
38937         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
38938         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
38939         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
38940         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
38941         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
38942         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
38943         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
38944         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
38945         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
38946         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
38947         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
38948         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
38949         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
38950         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
38951         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
38952         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
38953         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
38954         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
38955         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
38956         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
38957         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
38958         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
38959         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
38960         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
38961         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
38962         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
38963         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
38964         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
38965         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
38966         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
38967         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
38968         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
38969         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
38970         * tests/test-poll.c, tests/test-quotearg-simple.c:
38971         * tests/test-quotearg.c, tests/test-quotearg.h:
38972         * tests/test-round-ieee.c, tests/test-round1.c:
38973         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
38974         * tests/test-roundl-ieee.c, tests/test-roundl.c:
38975         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
38976         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
38977         * tests/test-strerror.c, tests/test-strerror_r.c:
38978         * tests/test-strsignal.c, tests/test-strverscmp.c:
38979         * tests/test-xmemdup0.c:
38980         Replace FSF snail mail addresses with URLs, as per GNU coding
38981         standards.  See glibc bug
38982         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
38984 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
38986         README-release: capitalize a word and split a line
38987         * top/README-release: Fix punctuation and spacing.
38989 2012-02-08  Akim Demaille  <demaille@gostai.com>
38991         fatal-signal: use C prototypes (with explicit void).
38992         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38993         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
38995 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
38997         regex: spelling fix
38998         * lib/regexec.c: spelling fix
39000         regex: rely on stdint.h for SIZE_MAX
39001         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
39003 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
39005         regex: merge glibc changes
39007         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
39008         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
39009         (init_word_char): Work even if bitset words are not exactly 32 or
39010         64 bits wide.  Don't assume there are no padding bits.
39011         * lib/regex.c [_LIBC]: Do not include <config.h>.
39012         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
39013         and -Wtype-limits.
39014         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
39015         needless disagreement with glibc.  All uses changed.  Define it to
39016         1 only if _GNU_SOURCE, to match glibc.
39017         (_REG_RM_NAME): Remove; no longer needed, since the names in
39018         question are now all protected by __USE_GNU.
39019         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
39020         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
39021         * lib/regex_internal.h (MIN): New macro.
39023         2012-01-03 Ulrich Drepper <drepper@gmail.com>
39024         * lib/regcomp.c (init_word_char): Optimize regex a bit.
39026         2011-12-30 Jakub Jelinek <jakub@redhat.com>
39027         * lib/regex_internal.c (re_string_fetch_byte_case):
39028         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
39029         is miscompiled, and it turns out it is because of an incorrect
39030         attribute on re_string_fetch_byte_case.  Unlike
39031         re_string_peek_byte_case, this one is really not pure, it modifies
39032         memory (increments pstr->cur_idx), and with the pure attribute GCC
39033         assumed it doesn't and it cached the presumed value of
39034         regexp->cur_idx in a variable across the
39035          for (;; ++i)
39036            {
39037              if (i >= BRACKET_NAME_BUF_SIZE)
39038                return REG_EBRACK;
39039              if (token->type == OP_OPEN_CHAR_CLASS)
39040                ch = re_string_fetch_byte_case (regexp);
39041              else
39042                ch = re_string_fetch_byte (regexp);
39043              if (re_string_eoi(regexp))
39044                return REG_EBRACK;
39045              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
39046                break;
39047              elem->opr.name[i] = ch;
39048            }
39050         2011-11-29 Andreas Schwab <schwab@redhat.com>
39051         * lib/regcomp.c (build_equiv_class):
39052         Fix access after end of search string in regex matcher.
39054         2011-11-12 Ulrich Drepper <drepper@redhat.com>
39055         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
39057         2011-10-12 Ulrich Drepper <drepper@redhat.com>
39058         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
39060         2011-10-11 Ulrich Drepper <drepper@redhat.com>
39061         * lib/regcomp.c (parse_branch, parse_sub_exp):
39062         More regex memory leak fixes and tests.
39063         (parse_sub_exp, parse_bracket_exp):
39064         Fix memory leak for some invalid regular expressions.
39066         2011-05-28 Ulrich Drepper <drepper@gmail.com>
39067         * lib/regex_internal.c, lib/regexec.c:
39068         Fix unnecessary overallocation due to incomplete character.  When
39069         incomplete characters are found at the end of a string the code
39070         ran amok and allocated lots of memory.  Stricter limits are now in
39071         place.
39073         2011-05-20 Reuben Thomas <rrt@sc3d.org>
39074         * lib/regex.h: Update documentation.
39076         2011-05-16 Aharon Robbins <arnold@skeeve.com>
39077         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
39079         2010-05-05 Andreas Schwab <schwab@redhat.com>
39080         * lib/regexec.c (find_collation_sequence_value):
39081         Fix lookup of collation sequence value during regexp matching.
39083         2010-01-22 Ulrich Drepper <drepper@redhat.com>
39084         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
39086         2008-01-16 Ulrich Drepper <drepper@redhat.com>
39087         * lib/regex.h: Cleanup namespace.
39089         2007-11-26 Ulrich Drepper <drepper@redhat.com>
39090         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
39092         2007-08-26 Ulrich Drepper <drepper@redhat.com>
39093         * lib/regex_internal.h: Prevent some declarations and definitions
39094         to be seen when used in tests.
39096         2005-05-06 Ulrich Drepper <drepper@redhat.com>
39097         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
39098         __libc_lock_* macros if not _LIBC.
39099         (struct re_dfa_t): Add lock.
39101 2012-02-07  Eric Blake  <eblake@redhat.com>
39103         maint.mk: also prohibit lower-case @var@
39104         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
39105         lower case, like @top_srcdir@.
39107 2012-02-04  Eric Blake  <eblake@redhat.com>
39109         canonicalize: avoid uninitialized memory use
39110         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
39111         random '/' left in dest.
39112         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
39114 2012-02-04  Bruno Haible  <bruno@clisp.org>
39116         isatty: Fix test failure of ptsname_r on native Windows.
39117         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
39118         and don't set errno.
39119         (isatty): Test first whether fd is valid. Set errno when returning 0.
39121 2012-02-04  Bruno Haible  <bruno@clisp.org>
39123         spawn-pipe tests: Fix a NULL program name in a diagnostic.
39124         * tests/test-spawn-pipe-main.c: Include progname.h.
39125         (main): Invoke set_program_name.
39126         * modules/spawn-pipe-tests (Depends-on): Add progname.
39128         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
39129         * tests/test-nonblocking-socket-main.c: Include progname.h.
39130         (main): Invoke set_program_name.
39131         * modules/nonblocking-socket-tests (Depends-on): Add progname.
39133         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
39134         * tests/test-nonblocking-pipe-main.c: Include progname.h.
39135         (main): Invoke set_program_name.
39136         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
39138 2012-02-04  Eric Blake  <eblake@redhat.com>
39140         canonicalize-lgpl: fix // handling
39141         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
39143         canonicalize: fix // handling
39144         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
39145         /// to //, since only // is special.
39147 2012-02-04  Bruno Haible  <bruno@clisp.org>
39149         ioctl: Fix test failure on native Windows.
39150         * lib/ioctl.c: Include msvc-nothrow.h.
39151         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
39153 2012-02-04  Bruno Haible  <bruno@clisp.org>
39155         fsync: Avoid test failure on native Windows.
39156         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
39157         read-only.
39159 2012-02-04  Bruno Haible  <bruno@clisp.org>
39161         sys_select: Avoid syntax error on OpenBSD 5.0.
39162         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
39163         currently being included, just include the system's <sys/select.h>.
39165 2012-02-04  Bruno Haible  <bruno@clisp.org>
39167         sys_select: Avoid syntax error on OpenBSD 5.0.
39168         * lib/sys_select.in.h: Include <signal.h> only after the include_next
39169         <sys/select.h>, not before.
39170         Reported by Jiri B <jirib@devio.us>.
39172 2012-02-04  Bruno Haible  <bruno@clisp.org>
39174         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
39175         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
39176         global variables.
39177         * tests/test-get-rusage-data.c (main): Likewise.
39178         Reported by Jim Meyering.
39180 2012-02-04  Bruno Haible  <bruno@clisp.org>
39182         stdioext: Fix last commit.
39183         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
39185 2012-02-03  Bruno Haible  <bruno@clisp.org>
39187         stdioext: Add tentative support for Plan9.
39188         * lib/stdio-impl.h: Include <errno.h>.
39189         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
39190         * lib/freadable.c (freadable): Likewise.
39191         * lib/fwritable.c (fwritable): Likewise.
39192         * lib/fbufmode.c (fbufmode): Likewise.
39193         * lib/freading.c (freading): Likewise.
39194         * lib/fwriting.c (fwriting): Likewise.
39195         * lib/freadptr.c (freadptr): Likewise.
39196         * lib/freadseek.c (freadptrinc): Likewise.
39197         * lib/freadahead.c (freadahead): Likewise.
39198         * lib/fpurge.c (fpurge): Likewise.
39199         * lib/fseeko.c (rpl_fseeko): Likewise.
39200         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
39201         Reported by Jens Staal <staal1978@gmail.com>.
39203 2012-02-02  Jim Meyering  <meyering@redhat.com>
39205         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
39206         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
39207         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
39208         not even to try to add the attribute.  Instead, add a pragma to suppress
39209         the suggestion/warning.
39211 2012-01-31  Karl Berry  <karl@gnu.org>
39213         setstate doc: typo.
39214         * doc/posix-functions/setstate.texi (setstate): { not (.
39216 2012-01-31  Bruno Haible  <bruno@clisp.org>
39218         popen: Make more robust on Windows.
39219         * lib/popen.c: On native Windows, use the _popen based code even if
39220         HAVE_POPEN is set.
39221         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
39222         environment variable on native Windows.
39224 2012-01-30  Bruno Haible  <bruno@clisp.org>
39226         pclose: Fix typo.
39227         * lib/stdio.in.h (pclose): Fix typo in warning message.
39229 2012-01-30  Bruno Haible  <bruno@clisp.org>
39231         doc about getlogin_r, setstate.
39232         * doc/posix-functions/getlogin_r.texi: List the incompatible
39233         declaration problem under "not fixed by gnulib".
39234         * doc/posix-functions/setstate.texi: Mention incompatible declaration
39235         problem on Solaris 11 and other platforms.
39237 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
39238             Bruno Haible  <bruno@clisp.org>
39240         poll tests: Make test more robust.
39241         * tests/test-poll.c: Include macros.h.
39242         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
39243         return value of various I/O operations.
39244         * modules/poll-tests (Files): Add tests/macros.h.
39246 2012-01-30  Bruno Haible  <bruno@clisp.org>
39248         sys_stat: Fix support for mingw64 and MSVC.
39249         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
39250         header files already do it.
39251         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
39252         stat itself.
39253         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39255 2012-01-30  Bruno Haible  <bruno@clisp.org>
39257         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
39258         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
39259         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
39261 2012-01-29  Bruno Haible  <bruno@clisp.org>
39263         quotearg: Fix test failure on MacOS X 10.5.
39264         * tests/test-quotearg-simple.c: Include localcharset.h.
39265         (main): If the locale encoding is not ASCII, bypass the tests of
39266         locale_quoting_style and clocale_quoting_style.
39267         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
39269 2012-01-29  Jim Meyering  <meyering@redhat.com>
39271         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
39272         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
39273         detect uses of canonicalize_file_name.
39275 2012-01-28  Bruno Haible  <bruno@clisp.org>
39277         test-framework-sh: Fix test failure with AIX 7.1 diff.
39278         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
39279         in column 1, like 'diff -c' does.
39280         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
39281         whether 'diff -u' is used. Instead, test whether the output contains
39282         some '@' character.
39284 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39286         strtoimax: eliminate need for stdint.h, inttypes.h checks
39287         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
39288         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
39289         the prerequisites for a recently-introduced strtoimax test.
39290         I guess this might cause strtoimax to be replaced when not
39291         strictly necessary on older hosts, but this shouldn't introduce
39292         any bugs and it should make Emacs 'configure' faster on typical
39293         modern hosts.  Problem discovered when importing the latest gnulib
39294         to an Emacs test version.
39295         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
39297 2012-01-28  Bruno Haible  <bruno@clisp.org>
39299         sys_time: Override 'struct timeval' on some native Windows platforms.
39300         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
39301         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
39302         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
39303         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
39304         needs to be overridden.
39305         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
39306         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
39307         * tests/test-sys_select.c: Check that the tv_sec member has the same
39308         size as a 'time_t'.
39309         * tests/test-sys_time.c: Likewise.
39310         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
39311         is set, set also REPLACE_GETTIMEOFDAY.
39312         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
39313         convert the resulting 'struct timeval' before returning.
39314         * lib/select.c: Include <sys/time.h>.
39315         (select, timeval): Undefine at the right place.
39316         * modules/select (Depends-on): Add sys_time.
39317         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
39318         some Windows platforms.
39319         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39321 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39323         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
39324         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
39325         an integer.
39326         * lib/fcntl.c (dupfd): Likewise.
39327         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
39329 2012-01-28  Bruno Haible  <bruno@clisp.org>
39331         fcntl: Avoid compilation error on native Windows.
39332         * modules/fcntl (Depends-on): Add 'close'.
39334 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39336         select, poll, isatty: Avoid warnings on x86_64 mingw64.
39337         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
39338         pointer to an integer.
39339         * lib/poll.c (IsConsoleHandle): Likewise.
39340         * lib/isatty.c (IsConsoleHandle): Likewise.
39342 2012-01-28  Jim Meyering  <meyering@redhat.com>
39344         doc: clarify README-release
39345         * top/README-release: Clarify: you should make a point to have
39346         the latest stable versions of build tools in your PATH, and the
39347         reference to buildreq is solely for its list of tool names, not
39348         for its minimal-functional version numbers.
39349         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
39351         maint.mk: use more readable (yet functionally equivalent) quoting
39352         It is common to quote a single quote in a single quoted string like
39353         this:  '...'\''...'.  Unless you know the idiom, that looks like
39354         gibberish, so prefer to double-quote the string when possible.
39355         Then you can use a more readable, lone single quote: "...'..."
39356         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
39357         "don't" is more readable than the equivalent 'don'\''t'.
39358         (sc_cast_of_x_alloc_return_value): Likewise.
39359         (sc_cast_of_alloca_return_value): Likewise.
39360         (sc_makefile_path_separator_check): Similar: use ":" in '...',
39361         rather than '\'':'\''.
39363 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39365         stdalign: relax _Alignof and tighten _Alignas test
39366         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
39367         as it was too strict: alignof must divide offsetof, but it need
39368         not equal offsetof.  Inspired by Joseph S. Myers's comment
39369         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
39370         Conversely, tighten the _Alignas test a bit, as the resulting
39371         alignment must be exactly 8.
39373 2012-01-27  Bruno Haible  <bruno@clisp.org>
39375         stdalign: Document the last change.
39376         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
39378 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39380         stdalign: check that alignof and offsetof are consistent
39381         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
39382         Problem reported for gnulib by Richard W.M. Jones in
39383         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
39385 2012-01-27  Jim Meyering  <meyering@redhat.com>
39387         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
39388         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
39389         convert a sequence with gaps to the minimal containing range.
39390         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
39391         * tests/test-update-copyright.sh: Test for this.
39392         The FSF confirmed it is ok to do this, assuming there is at
39393         least one significant change per year in the affected range:
39394         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
39396 2012-01-26  Bruno Haible  <bruno@clisp.org>
39398         pipe2: refine doc about thread-safety
39399         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
39400         multithread-safety problem.
39401         * doc/glibc-functions/accept4.texi: Likewise.
39403 2012-01-26  Bruno Haible  <bruno@clisp.org>
39405         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
39406         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
39407         In the test program, include <fcntl.h>, for O_RDONLY.
39409 2012-01-26  Eric Blake  <eblake@redhat.com>
39411         pipe2: document lack of thread-safety in replacement
39412         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
39413         issue in replacement.
39414         * doc/glibc-functions/accept4.texi (accept4): Likewise.
39415         Based on a report by Eric Wong.
39417 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39418             Bruno Haible  <bruno@clisp.org>
39420         malloca: Avoid warnings on x86_64 mingw64.
39421         * lib/malloca.c: Include <stdint.h>.
39422         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
39423         * modules/malloca (Depends-on): Add stdint.
39424         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
39426 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39428         obstack: remove __STDC__ conditionals
39429         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
39430         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
39431         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
39432         m4/include_next.m4 as the only gnulib-maintained places that still
39433         refer to __STDC__.
39435 2012-01-24  Bruno Haible  <bruno@clisp.org>
39437         havelib: Modern quoting.
39438         * build-aux/config.rpath: Quote 'like this', not `like this', as per
39439         the recent change to the GNU coding standards.
39441 2012-01-24  Bruno Haible  <bruno@clisp.org>
39443         stdint: Improve support for Android.
39444         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
39445         Reported by Simon Josefsson <simon@josefsson.org>.
39447 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39449         doc: omit trailing empty lines from INSTALL etc.
39450         * doc/Makefile (INSTALL): Omit trailing empty lines.
39451         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
39452         omit trailing empty lines.  This simplifies the build procedure.
39454 2012-01-23  Jim Meyering  <meyering@redhat.com>
39456         tests: avoid spurious warnings about gl_sockets_startup
39457         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
39458         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
39459         reporting a "statement with no effect".
39460         * tests/test-accept.c (main): Mark as "(void)".
39461         * tests/test-accept4.c (main): Likewise.
39462         * tests/test-bind.c (main): Likewise.
39463         * tests/test-connect.c (main): Likewise.
39464         * tests/test-getpeername.c (main): Likewise.
39465         * tests/test-getsockname.c (main): Likewise.
39466         * tests/test-getsockopt.c (main): Likewise.
39467         * tests/test-listen.c (main): Likewise.
39468         * tests/test-recv.c (main): Likewise.
39469         * tests/test-recvfrom.c (main): Likewise.
39470         * tests/test-send.c (main): Likewise.
39471         * tests/test-sendto.c (main): Likewise.
39472         * tests/test-setsockopt.c (main): Likewise.
39473         * tests/test-shutdown.c (main): Likewise.
39475 2012-01-21  Bruno Haible  <bruno@clisp.org>
39477         locale-fr.m4: Fix for Android.
39478         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
39479         failure of the test program on Bionic libc.
39481 2012-01-21  Jim Meyering  <meyering@redhat.com>
39483         bootstrap: fail when bootstrap_post_import_hook fails
39484         Otherwise, it's far too easy to miss diagnostics emitted
39485         between gnulib-tool's output and that of running configure.
39486         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
39488 2012-01-17  Jim Meyering  <meyering@redhat.com>
39490         maint: enable sc_trailing_blank
39491         * build-aux/pmccabe.css: Remove trailing blanks.
39492         * doc/acl-cygwin.txt: Likewise.
39493         * doc/gnu-oids.texi: Likewise
39494         * cfg.mk: Enable sc_trailing_blank.
39495         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
39497 2012-01-17  Jim Meyering  <meyering@redhat.com>
39499         maint: enable sc_prohibit_openat_without_use
39500         * cfg.mk: Enable sc_prohibit_openat_without_use.
39501         Exempt lib/selinux-at.c.
39503 2012-01-17  Jim Meyering  <meyering@redhat.com>
39505         maint: enable sc_prohibit_cloexec_without_use
39506         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
39507         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
39509 2012-01-17  Jim Meyering  <meyering@redhat.com>
39511         maint: enable sc_prohibit_intprops_without_use
39512         * cfg.mk: Enable sc_prohibit_intprops_without_use
39513         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
39515 2012-01-17  Jim Meyering  <meyering@redhat.com>
39517         maint: enable sc_prohibit_hash_pjw_without_use
39518         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
39519         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
39520         to match any use of \<hash_pjw\>, i.e., not necessarily with a
39521         following " (".
39523 2012-01-17  Jim Meyering  <meyering@redhat.com>
39525         maint: enable double-word-prohibiting rule
39526         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
39527         Exempt three files.
39529 2012-01-17  Jim Meyering  <meyering@redhat.com>
39531         maint: remove empty lines at EOF, but excluding modules/*
39532         Apply syntax rules at home as well as abroad.  Most changes
39533         were induced by running this:
39534           make srcdir=. _build-aux=build-aux -f top/maint.mk \
39535             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
39536             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
39537         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
39538         Exempt modules/* and two binary files.
39539         Also exempt doc/INSTALL*, per request from Bruno Haible.
39540         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
39541         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
39542         * doc/Copyright/request-assign.future: Likewise.
39543         * doc/Copyright/request-disclaim.changes: Likewise.
39544         * doc/INSTALL: Likewise.
39545         * doc/INSTALL.ISO: Likewise.
39546         * doc/INSTALL.UTF-8: Likewise.
39547         * doc/acl-cygwin.txt: Likewise.
39548         * doc/acl-resources.txt: Likewise.
39549         * doc/fdl-1.2.texi: Likewise.
39550         * doc/fdl-1.3.texi: Likewise.
39551         * doc/fdl.texi: Likewise.
39552         * lib/argp-pin.c: Likewise.
39553         * lib/round.c: Likewise.
39554         * lib/unicase/u16-totitle.c: Likewise.
39555         * lib/unictype/block_test.c: Likewise.
39556         * lib/uninorm/canonical-decomposition.c: Likewise.
39557         * m4/README: Likewise.
39558         * m4/relocatable-lib.m4: Likewise.
39559         * tests/test-isnand-nolibm.c: Likewise.
39560         * tests/test-isnand.c: Likewise.
39561         * tests/uninorm/NormalizationTest.txt: Likewise.
39563 2012-01-17  Jim Meyering  <meyering@redhat.com>
39565         maint: add framework to run syntax-check rules against gnulib sources
39566         * cfg.mk: New file, to disable all currently-failing tests.
39567         We'll enable them one by one, as they are made to pass.
39568         * Makefile (sc_maint): New rule.
39570 2012-01-21  Bruno Haible  <bruno@clisp.org>
39572         stdint: Add support for Android.
39573         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
39574         include the system's <stdint.h>.
39575         Reported by Simon Josefsson <simon@josefsson.org>.
39577 2012-01-19  Jim Meyering  <meyering@redhat.com>
39579         bootstrap: add bootstrap_post_import_hook
39580         Bison does still need something like the gnulib_mk_hook whose
39581         invocation I had to remove along with slurp in commit 767ccd40.
39582         Technically, we could get along without it, but doing so would
39583         have required living with a warning and a mandatory post-bootstrap
39584         automake rerun.
39585         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
39586         (bootstrap_post_import_hook): New function.
39587         Invoke it after gnulib-tool --import and before autoreconf.
39589 2012-01-18  Jim Meyering  <meyering@redhat.com>
39591         gitlog-to-changelog: don't use "no_"-prefixed variable name
39592         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
39593         to enable both --cluster and --no-cluster.  Change variable name,
39594         s/\$no_cluster/$cluster/, and reverse usage to match.
39596         gitlog-to-changelog: use "||", not "or" in expressions
39597         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
39598         expressions.
39600 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
39602         gitlog-to-changelog: new option --no-cluster
39603         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
39604         clustering of adjacent commit messages.
39606 2012-01-17  Jim Meyering  <meyering@redhat.com>
39608         maint: spell file systems with two words, not one
39609         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
39610         two words, not one.
39612 2012-01-16  Jim Meyering  <meyering@redhat.com>
39614         bootstrap: add a FIXME comment to ensure we eventually remove the hack
39615         * build-aux/bootstrap (gnulib_tool_options): Add comment.
39617 2012-01-16  Eric Blake  <eblake@redhat.com>
39619         bootstrap: cater to autoconf 2.59
39620         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
39621         is not available.
39623         bootstrap: properly check for libtool
39624         * build-aux/bootstrap (libtoolize): Also run libtool when older
39625         usage is detected.
39627 2012-01-15  Bruno Haible  <bruno@clisp.org>
39629         Improve support for MSVC 9.
39630         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
39631         clashes on MSVC.
39632         * lib/fcntl.in.h: Likewise.
39633         * lib/stdlib.in.h: Likewise.
39634         * lib/sys_stat.in.h: Likewise.
39636 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
39638         gnupload: we hold the master copy of this script now
39639         For motivation and more information, see:
39640         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
39641         * build-aux/gnupload: Make it clear in the heading comments that the
39642         master copy of this file is maintained by gnulib.  Since we are at
39643         it, bump its copyright year and ...
39644         ($scriptversion): ... the date in its version.
39645         ($usage): Patches and bug reports should be sent to the gnulib list,
39646         not the automake one.
39647         * config/srclist.txt: Don't try to sync 'gnupload' from automake
39648         anymore.
39650 2012-01-15  Bruno Haible  <bruno@clisp.org>
39652         Fix module 'random'.
39653         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
39654         initstate, setstate are declared.
39656 2012-01-14  Bruno Haible  <bruno@clisp.org>
39658         Tests for module 'random'.
39659         * modules/random-tests: New file.
39660         * tests/test-random.c: New file, based on tests/test-random_r.c.
39662         New module 'random'.
39663         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
39664         declarations.
39665         * lib/random.c: New file, based on glibc/stdlib/random.c.
39666         * m4/random.m4: New file.
39667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
39668         HAVE_RANDOM.
39669         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
39670         * modules/random: New file.
39671         * config/srclist.txt: Add an entry for random.c.
39672         * doc/posix-functions/random.texi: Mention the 'random' module.
39673         * doc/posix-functions/initstate.texi: Likewise.
39674         * doc/posix-functions/setstate.texi: Likewise.
39675         * doc/posix-functions/srandom.texi: Likewise.
39677 2012-01-12  Bruno Haible  <bruno@clisp.org>
39679         random_r: Use common idioms.
39680         * lib/random_r.c: Include <stdlib.h> first.
39682         random_r: Override incompatible API on AIX, OSF/1.
39683         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
39684         Override the system function if REPLACE_RANDOM_R is 1.
39685         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
39686         and OSF/1, set REPLACE_RANDOM_R.
39687         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
39688         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
39689         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
39690         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
39691         * doc/glibc-functions/random_r.texi: Likewise.
39692         * doc/glibc-functions/setstate_r.texi: Likewise.
39694         random_r: Support for MSVC 9.
39695         * lib/random_r.c: Include stdint.h, not inttypes.h.
39697 2012-01-12  Eric Blake  <eblake@redhat.com>
39699         inet_ntop: guard extra work by IF_LINT
39700         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
39701         better code generation when not checking for warnings.
39702         Suggested by Paul Eggert and Jim Meyering.
39704         strptime: fix regression on mingw
39705         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
39706         Fix regression.  Reported by Bruno Haible.
39708 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
39709             Bruno Haible  <bruno@clisp.org>
39711         copy-file: add error-code-returning variant.
39712         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
39713         (qcopy_file_preserving): New declaration.
39714         * lib/copy-file.c (qcopy_file_preserving): Renamed from
39715         copy_file_preserving. Change return type to 'int'. Don't emit an error
39716         message here.
39717         (copy_file_preserving): New function.
39718         * tests/test-copy-file.c: Include <stdlib.h>.
39719         (main): Test qcopy_file_preserving if the environment variable
39720         NO_STDERR_OUTPUT is set.
39721         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
39722         with NO_STDERR_OUTPUT
39723         * tests/test-copy-file-2.sh: Likewise.
39725 2012-01-10  Bruno Haible  <bruno@clisp.org>
39727         copy-file: Use 'quote' module consistently.
39728         * lib/copy-file.c (copy_file_preserving): Use quote().
39730         copy-file: Refactor.
39731         * lib/copy-file.c: Include quote.h.
39732         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
39733         message here.
39734         * modules/copy-file (Depends-on): Add quote.
39736         acl: Export qcopy_acl.
39737         * lib/acl.h (qcopy_acl): New declaration.
39738         * lib/copy-acl.c (qcopy_acl): Make non-static.
39740         acl: Rename a local variable.
39741         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
39743         acl: Align return values of copy_acl and qcopy_acl.
39744         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
39745         maybe < -1.
39747 2012-01-11  Eric Blake  <eblake@redhat.com>
39749         strptime: silence gcc warnings
39750         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
39751         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
39752         Reported by Daniel P. Berrange.
39754         inet_ntop: silence gcc warning
39755         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
39756         Reported by Daniel P. Berrange.
39758 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
39760         getloadavg test: skip the test on GNU/Linux without /proc mounted
39761         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
39762         file.  When /proc is not mounted, it always fails with ENOENT.
39763         * tests/test-getloadavg.c (main): Treat ENOENT return code from
39764         getloadavg(3) the same way as ENOSYS and ENOTSUP.
39766 2012-01-10  Bruno Haible  <bruno@clisp.org>
39768         regex: Avoid link error on MSVC 9.
39769         * modules/regex (Depends-on): Add wctype.
39771 2012-01-10  Bruno Haible  <bruno@clisp.org>
39773         doc: Mention --with-tests option.
39774         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
39775         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
39776         --with-tests.
39777         Reported by Reuben Thomas.
39779 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
39781         users.txt: order package names lexicographically.
39782         * users.txt: Order package names lexicographically.
39784 2012-01-10  Jim Meyering  <meyering@redhat.com>
39786         maint.mk: fix description in comment
39787         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
39789         ignore-value: remove deprecated ignore_ptr function
39790         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
39791         * NEWS: Note this.
39793 2012-01-09  Jim Meyering  <meyering@redhat.com>
39795         test-init.sh: avoid a subshell
39796         * tests/test-init.sh: Remove protective subshell.
39797         Suggested by Bernhard Voelker.  While a subshell is normally
39798         required to protect against older shells (Solaris, FreeBSD) that
39799         warn about a missing program before performing redirection, the
39800         shell-selection tests performed by init.sh probably exclude any
39801         offending shell.
39803 2012-01-08  Bruno Haible  <bruno@clisp.org>
39805         setlocale tests: Avoid test failure on Solaris 11.0.
39806         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
39807         variable.
39809 2012-01-08  Bruno Haible  <bruno@clisp.org>
39811         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
39812         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39813         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
39814         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
39815         macro.
39816         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
39817         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
39818         * lib/spawn_faction_addopen.c: Add workaround implementation if
39819         HAVE_WORKING_POSIX_SPAWN.
39820         * modules/spawn (Makefile): Substitute
39821         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
39822         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
39823         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
39824         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
39825         (Depends-on): Update conditions.
39826         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39827         the Solaris 11 bug.
39829 2012-01-08  Bruno Haible  <bruno@clisp.org>
39831         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
39832         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39833         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
39834         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
39835         macro.
39836         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
39837         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
39838         * lib/spawn_faction_adddup2.c: Add workaround implementation if
39839         HAVE_WORKING_POSIX_SPAWN.
39840         * modules/spawn (Makefile): Substitute
39841         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
39842         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
39843         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
39844         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
39845         (Depends-on): Update conditions.
39846         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39847         the Solaris 11 bug.
39849 2012-01-08  Bruno Haible  <bruno@clisp.org>
39851         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
39852         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39853         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
39854         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
39855         HAVE_WORKING_POSIX_SPAWN.
39856         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
39857         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
39858         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
39859         * lib/spawn_faction_addclose.c: Add workaround implementation if
39860         HAVE_WORKING_POSIX_SPAWN.
39861         * modules/spawn (Makefile): Substitute
39862         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
39863         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
39864         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
39865         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
39866         (Depends-on): Update conditions.
39867         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39868         the Solaris 11 bug.
39870 2012-01-08  Bruno Haible  <bruno@clisp.org>
39872         doc: Update for Solaris 11.0.
39873         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
39874         * m4/printf.m4: Update comments.
39876 2012-01-08  Bruno Haible  <bruno@clisp.org>
39878         mktime: Avoid compilation error on Solaris 11.
39879         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
39881 2012-01-08  Bruno Haible  <bruno@clisp.org>
39883         doc: Small fix.
39884         * doc/posix-headers/nl_types.texi: Correct platforms list.
39886 2012-01-08  Simon Josefsson  <simon@josefsson.org>
39888         Add lgpl-3.0 module.
39889         * MODULES.html.sh (Support for building documentation): Add
39890         lgpl-3.0.
39891         * modules/lgpl-3.0: New file.
39893 2012-01-08  Jim Meyering  <meyering@redhat.com>
39895         select.c: indent with spaces, not TABs
39896         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
39898 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
39900         quotearg: do not use grave accent for left quote
39901         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
39902         locale_quoting_style.
39903         (quotearg_buffer_restyled): Fix example.
39904         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
39906 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
39908         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
39909         Most programs do not have translation catalogs for English and much
39910         less separate catalogs for British and American English.  Drop the
39911         suggestion to translators about these two, and provide it
39912         automatically for Unicode locales.  Like most programs, even those
39913         using American English, we use single quotation marks.  This conflicts
39914         with the American typographic convention, but works better when you
39915         cite the entire error message within double quotes.  It also tries not
39916         to clash with established practice and with what non-gnulib programs
39917         will usually do.
39918         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
39919         using an UTF-8 or GB-18030 locale.  The list of other locales with
39920         quotes was provided by Bruno Haible.
39921         (quotearg_buffer_restyled): Adjust instructions to translators.
39922         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
39923         text, since this would be wrong when using Unicode.
39924         * modules/quotearg: Depend on c-strcaseeq.
39926 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
39928         quotearg: fix Wikipedia link
39929         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
39931 2012-01-07  Simon Josefsson  <simon@josefsson.org>
39933         Fix for mingw with MSVC9.
39934         * m4/ld-version-script.m4: Check that compiler rejects version
39935         scripts with syntax errors.  Reported by Bruno Haible
39936         <bruno@clisp.org>.
39938 2012-01-06  Bruno Haible  <bruno@clisp.org>
39940         Talk about "native Windows API", not "Woe32".
39941         * lib/accept4.c: Update comments to mention native Windows.
39942         * lib/execute.c: Likewise.
39943         * lib/fatal-signal.c: Likewise.
39944         * lib/localcharset.c: Likewise.
39945         * lib/nanosleep.c: Likewise.
39946         * lib/nl_langinfo.c: Likewise.
39947         * lib/pclose.c: Likewise.
39948         * lib/pipe-filter-gi.c: Likewise.
39949         * lib/pipe-filter-ii.c: Likewise.
39950         * lib/pipe.c: Likewise.
39951         * lib/pipe2.c: Likewise.
39952         * lib/popen.c: Likewise.
39953         * lib/progreloc.c: Likewise.
39954         * lib/relocatable.c: Likewise.
39955         * lib/sigaction.c: Likewise.
39956         * lib/sigprocmask.c: Likewise.
39957         * lib/spawn-pipe.h: Likewise.
39958         * lib/spawn-pipe.c: Likewise.
39959         * lib/spawni.c: Likewise.
39960         * lib/stat-time.h: Likewise.
39961         * lib/w32spawn.h: Likewise.
39962         * tests/test-isatty.c: Likewise.
39963         * lib/config.charset: More comments.
39964         * doc/gnulib-intro.texi: Mention native Windows.
39965         * doc/posix-functions/_Exit_C99.texi: Likewise.
39966         * doc/posix-headers/fcntl.texi: Likewise.
39968 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
39970         argp: Avoid crash if translator uses % characters in a translation.
39971         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
39972         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
39974 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
39976         doc: C11 and C++11 are now official
39977         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
39978         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
39979         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
39980         * modules/stdalign:
39981         Replace references to draft C1X to C11, and to draft C++0X to C++11.
39983 2012-01-06  Bruno Haible  <bruno@clisp.org>
39985         uc-is-grapheme-break tests: Tweak.
39986         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
39987         message.
39989 2012-01-06  Bruno Haible  <bruno@clisp.org>
39991         test-init.sh: correct the test for diff -u
39992         * tests/test-init.sh: Also redirect stdout to /dev/null.
39994 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
39996         Use ', not `, for quoting output.
39997         * build-aux/announce-gen (usage, sizes, print_news_deltas)
39998         (print_changelog_deltas, get_tool_versions, main program):
39999         * build-aux/git-version-gen:
40000         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
40001         * build-aux/move-if-change (help):
40002         * build-aux/useless-if-before-free (usage, main program):
40003         * check-module (parse_module_file, usage)
40004         (find_included_lib_files, check_module):
40005         * lib/argmatch.c (main) [TEST]:
40006         * lib/argp-help.c (_help):
40007         * lib/getopt1.c (main) [TEST]:
40008         * lib/git-merge-changelog.c (usage):
40009         * lib/xstrtol-error.c (xstrtol_error):
40010         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
40011         * m4/argz.m4 (gl_FUNC_ARGZ):
40012         * m4/bison.m4 (gl_BISON):
40013         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
40014         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
40015         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40016         * m4/fpending.m4 (gl_PREREQ_FPENDING):
40017         * m4/gc-random.m4 (gl_GC_RANDOM):
40018         * m4/intl.m4 (gt_CHECK_DECL):
40019         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
40020         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
40021         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
40022         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
40023         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
40024         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
40025         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
40026         * tests/test-dirname.c (main):
40027         * tests/test-getpass.c (main):
40028         * tests/test-iconvme.c (main):
40029         * tests/test-parse-datetime.c (LOG):
40030         * tests/test-xstrtoimax.sh:
40031         * tests/test-xstrtol.sh:
40032         * tests/test-xstrtoll.sh:
40033         * tests/test-xstrtoumax.sh:
40034         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
40035         * top/GNUmakefile (abort-due-to-no-makefile):
40036         Quote 'like this', not `like this', as per the recent change to
40037         the GNU coding standards.
40039 2012-01-05  Bruno Haible  <bruno@clisp.org>
40041         strtoimax: Don't force a replacement on systems where intmax_t is int.
40042         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
40043         'intmax_t' is not larger than 'int'.
40044         Reported by Pádraig Brady <P@draigBrady.com>.
40046 2012-01-05  Bruno Haible  <bruno@clisp.org>
40048         doc: Mention NetBSD bugs.
40049         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
40050         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
40052 2012-01-05  Bruno Haible  <bruno@clisp.org>
40054         strtoumax tests: Enhance tests.
40055         * tests/test-strtoumax.c (main): Add tests for large values.
40057 2012-01-05  Bruno Haible  <bruno@clisp.org>
40059         strtoimax: Work around AIX 5.1 bug.
40060         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
40061         definition.
40062         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
40063         Set HAVE_STRTOIMAX.
40064         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
40065         REPLACE_STRTOIMAX.
40066         * modules/inttypes-incomplete (Makefile.am): Substitute
40067         REPLACE_STRTOIMAX.
40068         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
40069         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
40070         (Depends-on): Update conditions.
40071         * tests/test-strtoimax.c (main): Add tests for large values.
40072         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
40074 2012-01-05  Bruno Haible  <bruno@clisp.org>
40076         inttypes: Modernize.
40077         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
40078         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
40079         (Makefile.am): Update inttypes.h rule.
40081 2012-01-05  Jim Meyering  <meyering@redhat.com>
40083         init.sh: don't waste a subshell just to redirect stderr
40084         * tests/init.sh: In testing for diff -u and diff -c, use a
40085         stderr-redirecting exec inside `...` rather than a subshell.
40087         test-init.sh: avoid failure on HP-UX 11.00
40088         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
40089         resolves to diff -c or cmp.  Reported by Bruno Haible.
40091 2012-01-05  Bruno Haible  <bruno@clisp.org>
40093         Tests for module 'strtoull'.
40094         * modules/strtoull-tests: New file.
40095         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
40097 2012-01-05  Bruno Haible  <bruno@clisp.org>
40099         Tests for module 'strtoll'.
40100         * modules/strtoll-tests: New file.
40101         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
40103 2012-01-05  Bruno Haible  <bruno@clisp.org>
40105         Tests for module 'strtoul'.
40106         * modules/strtoul-tests: New file.
40107         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
40109 2012-01-05  Bruno Haible  <bruno@clisp.org>
40111         Tests for module 'strtol'.
40112         * modules/strtol-tests: New file.
40113         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
40115 2012-01-04  Jim Meyering  <meyering@redhat.com>
40117         test-init.sh: accommodate Solaris 5.10's different diff -u output
40118         * tests/test-init.sh: Also exempt @@ lines from the comparison
40119         of diff output, since Solaris 5.10 and GNU diff formats differ.
40120         Reported by Stefano Lattarini.
40122 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40124         test-posixtm: don't assume signed integer wraparound
40125         * tests/test-posixtm.c (main): Don't assume wraparound semantics
40126         after signed integer overflow.  Inspired by (though it may not
40127         fix) Bruno Haible's bug report in
40128         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
40130         Spell out "Windows 9x" and "Windows XP".
40131         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
40132         "Windows 9x" and "WinXP" with "Windows XP".
40134 2012-01-04  Jim Meyering  <meyering@redhat.com>
40136         test-vc-list-files-cvs.sh: remove obsolete comment
40137         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
40138         double exit.  Now that's all encapsulated via skip_ and Exit.
40140 2012-01-04  Bruno Haible  <bruno@clisp.org>
40142         Talk about "native Windows API", not "Win32".
40143         * lib/classpath.c: Update comments to mention native Windows.
40144         * lib/csharpexec.c: Likewise.
40145         * lib/dup2.c: Likewise.
40146         * lib/error.c: Likewise.
40147         * lib/fcntl.c: Likewise.
40148         * lib/filename.h: Likewise.
40149         * lib/findprog.c: Likewise.
40150         * lib/get-rusage-as.c: Likewise.
40151         * lib/get-rusage-data.c: Likewise.
40152         * lib/getpagesize.c: Likewise.
40153         * lib/javaexec.c: Likewise.
40154         * lib/msvc-inval.c: Likewise.
40155         * lib/msvc-nothrow.c: Likewise.
40156         * lib/nanosleep.c: Likewise.
40157         * lib/nonblocking.c: Likewise.
40158         * lib/printf-parse.c: Likewise.
40159         * lib/setlocale.c: Likewise.
40160         * lib/sigaction.c: Likewise.
40161         * lib/strerror_r.c: Likewise.
40162         * lib/tmpdir.c: Likewise.
40163         * lib/vasnprintf.c: Likewise.
40164         * lib/w32spawn.h: Likewise.
40165         * lib/waitpid.c: Likewise.
40166         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
40167         * m4/locale-ar.m4: Likewise.
40168         * m4/locale-fr.m4: Likewise.
40169         * m4/locale-ja.m4: Likewise.
40170         * m4/locale-tr.m4: Likewise.
40171         * m4/locale-zh.m4: Likewise.
40172         * m4/printf.m4: Likewise.
40173         * tests/test-cloexec.c: Likewise.
40174         * tests/test-copy-acl.sh: Likewise.
40175         * tests/test-copy-file.sh: Likewise.
40176         * tests/test-file-has-acl.sh: Likewise.
40177         * tests/test-set-mode-acl.sh: Likewise.
40178         * tests/test-dup-safer.c: Likewise.
40179         * tests/test-dup2.c: Likewise.
40180         * tests/test-dup3.c: Likewise.
40181         * tests/test-fcntl.c: Likewise.
40182         * tests/test-nonblocking-pipe.h: Likewise.
40183         * tests/test-nonblocking-socket.h: Likewise.
40184         * tests/test-pipe.c: Likewise.
40185         * tests/test-pipe2.c: Likewise.
40186         * tests/test-spawn-pipe-child.c: Likewise.
40187         * doc/acl-resources.txt: Likewise.
40188         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40189         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
40190         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
40191         * lib/localcharset.c: Update comments to mention native Windows.
40192         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40193         * lib/localename.c: Likewise.
40194         * lib/progreloc.c: Likewise.
40195         * lib/relocatable.c: Likewise.
40196         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40197         (windows_compute_revents): Renamed from win32_compute_revents.
40198         (windows_compute_revents_socket): Renamed from
40199         win32_compute_revents_socket.
40200         * lib/select.c: Update comments to mention native Windows.
40201         (windows_poll_handle): Renamed from win32_poll_handle.
40202         * m4/threadlib.m4: Update comments to mention native Windows.
40203         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
40204         --enable-threads=windows instead of --enable-threads=win32. Set
40205         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
40206         * lib/glthread/lock.h: Update comments to mention native Windows.
40207         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
40208         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
40209         USE_WIN32_THREADS.
40210         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
40211         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
40212         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
40213         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
40214         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
40215         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
40216         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
40217         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
40218         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
40219         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
40220         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
40221         * tests/test-tls.c: Likewise.
40222         Rationale:
40223         Microsoft renamed the "Win32 API" to "Windows API", as it is available
40224         on both 32-bit and 64-bit Windows systems.
40225         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
40226         line of distinction is between "native Windows" on one side and Unix/
40227         POSIX systems on the other side. More details in
40228         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
40229         Suggested by Paul Eggert.
40231 2012-01-03  Bruno Haible  <bruno@clisp.org>
40233         isatty: Support for MSVC 9.
40234         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
40235         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
40236         (_isatty_nothrow): New function.
40237         (isatty): Use it instead of _isatty.
40238         (IsConsoleHandle): Add comment, from Paolo Bonzini.
40239         * lib/poll.c (IsConsoleHandle): Likewise.
40240         * lib/select.c (IsConsoleHandle): Likewise.
40241         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
40242         (gl_PREREQ_ISATTY): New macro.
40243         * modules/isatty (Depends-on): Add msvc-inval.
40244         (configure.ac): Invoke gl_PREREQ_ISATTY.
40246 2012-01-03  Jim Meyering  <meyering@redhat.com>
40248         maint.mk: remove temporary transition aid from over 1.5 years ago
40249         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
40250         purpose was to aid in the transition (avoiding silent malfunction)
40251         from that old name to the new _sc_search_regexp.  This shim was
40252         added by commit 219c504b.
40254         init.sh: do not try to accommodate compare arguments starting with "-"
40255         * tests/init.sh (compare_dev_null_): Do not try to accommodate
40256         compare arguments that start with "-".  Besides, we do not worry
40257         about this when invoking diff or cmp; why start now with sed?
40258         Using "--" to separate options from argument would trigger sed
40259         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
40260         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
40262 2012-01-02  Bruno Haible  <bruno@clisp.org>
40264         Enhance tests for module 'isatty'.
40265         * modules/isatty-tests (Depends-on): Add pipe-posix.
40266         * tests/test-isatty.c: Include <fcntl.h>.
40267         (DEV_NULL): New macro.
40268         (main): Test the resut of isatty() also on regular files, pipes, and
40269         /dev/null.
40271         New module 'isatty'.
40272         * lib/unistd.in.h (isatty): New declaration.
40273         * lib/isatty.c: New file, based on an idea of
40274         Bastien Roucariès <roucaries.bastien@gmail.com>.
40275         * m4/isatty.m4: New file.
40276         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
40277         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
40278         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
40279         REPLACE_ISATTY.
40280         * modules/isatty: New file.
40281         * doc/posix-functions/isatty.texi: Mention the new module.
40282         Suggested by Paolo Bonzini.
40284 2012-01-02  Bruno Haible  <bruno@clisp.org>
40286         canonicalize: Tweak 2011-12-29 commit.
40287         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
40288         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
40290 2012-01-02  Jim Meyering  <meyering@redhat.com>
40292         gitlog-to-changelog: describe input syntax in --help output
40293         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
40295         gitlog-to-changelog: fix typo in --help: show backslash before email @
40296         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
40297         in sources, but not in actual output.
40299 2011-12-30  Jim Meyering  <meyering@redhat.com>
40301         gitlog-to-changelog: don't malfunction when name contains %-directive
40302         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
40303         in a name string cause trouble.  E.g., with a user name of "%s",
40304         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
40306 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
40308         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
40309         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
40310         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
40311         the "  (tiny change)" notation that is appended to the standard
40312         ChangeLog "date  name  email" header line.
40314 2012-01-01  Jim Meyering  <meyering@redhat.com>
40316         test-framework-sh: init.sh: fix "make dist" failure
40317         When using gnulib-tool's --with-tests option and any module that
40318         depends on test-framework-sh, "make dist" would fail due to the
40319         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
40320         in the gltests directory, and not in the gllib/ directory.
40321         One way to work around that is to move the EXTRA_DIST += init.sh
40322         from the primary module to the -tests one:
40323         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
40324         * modules/test-framework-sh (Makefile.am): ...not here.
40325         Reported by Tom G. Christensen in
40326         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
40328         version-etc: update copyright year reported by --version
40329         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
40331 2011-12-31  Pádraig Brady  <P@draigBrady.com>
40333         canonicalize: only stat() if required
40334         * lib/canonicalize.c (canonicalize_filename_mode):
40335         Avoid calling l?stat() when both CAN_MISSING,
40336         and CAN_NOLINKS are set, as we neither need
40337         to resolve symlinks or test component existence.
40339 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
40341         doc: cover st_ino issues once; add OpenVMS etc.
40342         * doc/posix-functions/stat.texi (stat):
40343         * doc/posix-functions/lstat.texi (lstat):
40344         * doc/posix-functions/fstatat.texi (fstatat):
40345         * doc/posix-functions/fstat.texi (fstat):
40346         Move general 'struct stat' stuff to sys_stat.texi,
40347         leaving behind a pointer.
40348         * doc/posix-headers/sys_stat.texi (sys/stat.h):
40349         Merge duplicate info about 'struct stat' problems into here.
40350         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
40351         and suggest partial workarounds.
40353         same-inode: port to OpenVMS
40354         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
40355         three st_ino values.
40357 2011-12-30  Pádraig Brady  <P@draigBrady.com>
40359         canonicalize: fix references to stat() and lstat()
40360         * lib/canonicalize.c (canonicalize_filename_mode):
40361         Ensure references always resolve to a replacement
40362         function if required (even via a macro).
40364 2011-12-30  Jim Meyering  <meyering@redhat.com>
40366         gitlog-to-changelog: remove a little duplication
40367         * build-aux/gitlog-to-changelog (main): Grep @lines once,
40368         rather than twice.
40370 2011-12-29  Pádraig Brady  <P@draigBrady.com>
40372         canonicalize: add support for not resolving symlinks
40373         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
40374         indicate we don't want to follow symlinks.  Also
40375         provide CAN_MODE_MASK to aid setting these existing
40376         mutually exclusive values.
40377         * lib/canonicalize.c (canonicalize_filename_mode):
40378         Extract the flags from can_mode parameter, which
40379         are currently just used to select between stat()
40380         and lstat().  Also ensure that mutually exclusive
40381         values are flagged immediately as invalid.
40382         * tests/test-canonicalize.c: Verify symlinks are
40383         not followed, and that invalid flag combinations
40384         are diagnosed.
40386 2011-12-25  Jim Meyering  <meyering@redhat.com>
40388         gitlog-to-changelog: do not clump multi-paragraph entries
40389         Identical header lines (date,name,email+coauthors) are suppressed,
40390         thus putting all entries with those same characteristics under
40391         a single header.  However, when a log entry consists of two or
40392         more paragraphs, it may not be clear where it starts and ends.
40393         This change makes it so that such an entry is always separated
40394         from others by a header line, even when that header would
40395         otherwise be suppressed.
40396         * build-aux/gitlog-to-changelog: Implement the above.
40397         Inspired by a related request from Stefano Lattarini in
40398         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
40400 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40402         announce-gen: fix `cmd' typo in diagnostic
40403         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
40404         diagnostic: a missing '$' meant that the command was not output.
40406 2011-12-23  Jim Meyering  <meyering@redhat.com>
40408         test-framework-sh: distribute init.sh
40409         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
40410         Otherwise, "make -C gnulib-tests check" (at least in grep) would
40411         fail due to the lack of init.sh.
40413         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
40414         * modules/atexit-tests: Rather than listing tests/init.sh,
40415         now that there's a module for it, simply depend on that new module.
40416         * modules/closein-tests: Likewise.
40417         * modules/exclude-tests: Likewise.
40418         * modules/getcwd-tests: Likewise.
40419         * modules/perror-tests: Likewise.
40420         * modules/pread-tests: Likewise.
40421         * modules/pwrite-tests: Likewise.
40422         * modules/vc-list-files-tests: Likewise.
40423         * modules/verify-tests: Likewise.
40424         * modules/xalloc-die-tests: Likewise.
40425         * modules/xstrtoimax-tests: Likewise.
40426         * modules/xstrtol-tests: Likewise.
40427         * modules/xstrtoll-tests: Likewise.
40428         * modules/xstrtoumax-tests: Likewise.
40429         * modules/yesno-tests: Likewise.
40431 2011-12-22  Jim Meyering  <meyering@redhat.com>
40433         test-framework-sh: add minimal tests of init.sh's compare function
40434         * modules/test-framework-sh-tests: New file.
40435         * tests/test-init.sh: New file.
40437         test-framework-sh: new module
40438         * modules/test-framework-sh: New file.
40439         * MODULES.html.sh (Support for maintaining and releasing projects):
40440         List it.
40442         init.sh: do not emit simulated diff output to stderr
40443         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
40445 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
40447         .gitignore: ignore gnulib.dvi and regex.info
40448         * doc/.gitignore:add gnulib.dvi and regex.info
40450 2011-12-22  Jim Meyering  <meyering@redhat.com>
40452         init.sh: correct previous change
40453         * tests/init.sh (compare): My previous change was wrong.
40454         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
40456         init.sh: avoid unwarranted test failure when using "set -e"
40457         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
40458         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
40459         a use like "compare exp out" would get evoke an unconditional failure.
40461 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
40463         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
40464         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
40465         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
40466         autoreconf that did not.
40467         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
40468         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
40470 2011-12-17  Jim Meyering  <meyering@redhat.com>
40472         bootstrap: remove some now-unneeded code
40473         This script arose back when gnulib-tool was young.
40474         Since then, it has seen improvements that render much of this
40475         script unnecessary.  In particular, it can now make symlinks
40476         to the files it uses.  Also, I no longer see as much value in
40477         marking files as read-only via comments.
40478         If you relied on the symlink-creation feature of the preceding
40479         version of this script, you can get most of that functionality
40480         by adding the --symlink option to the definition of
40481         gnulib_tool_option_extras in your bootstrap.conf file.
40482         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
40483         Run autopoint and libtoolize *before* gnulib-tool.
40484         After it, run an abbreviated autoreconf, rather than a loop around
40485         all tools.
40486         (slirp, bt_mark_as_generated): Remove functions.
40488 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40490         ftoastr: fix typo
40491         * lib/ftoastr.h: Fix misspelling in comment.
40493 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
40495         * top/README-release: fix punctuation.
40497 2011-12-17  Jim Meyering  <meyering@redhat.com>
40499         bootstrap: correct the recent buildreq change
40500         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
40501         had no effect.
40502         * build-aux/bootstrap (buildreq): Bracket each search term with
40503         "*...*", so that the shell "case" statement works as intended.
40504         Add comments.
40506 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
40508         build: let bootstrap resort to wget when downloading .po files
40509         * build-aux/bootstrap (download_po_files): Fallback to wget when
40510         downloading the .po files via rsync fails.  This is necessary to
40511         bootstrap from behind a strict firewall.
40513 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
40515         stdint: don't assume C++11 when compiling with g++
40516         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
40517         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
40518         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
40519         work also in C++ before C++11, as that improperly inhibits
40520         generating a substitute stdint.h for that case.
40522 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
40524         alloca: protect comment from gnulib-tool
40525         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
40526         that gnulib-tool doesn't think it's a license, and munge it to
40527         say "GCC version 3".
40529 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
40531         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
40532         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
40533         $(abs_top_builddir) instead of $(top_builddir).
40535 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
40537         strftime-tests: also test nanoseconds
40538         * tests/test-strftime.c (T): Add a test of %N.
40540 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
40542         inttypes, stdint: add C++11 support
40543         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
40544         when including inttypes.h and stdint.h.  Support this change to
40545         the standard.
40546         * doc/posix-headers/inttypes.texi (inttypes.h):
40547         * doc/posix-headers/stdint.texi (stdint.h): Document this.
40548         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
40549         Define if not defined already, for the benefit of pre-C++11 hosts.
40550         Define the standard format macros (e.g., PRId8) always.
40551         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
40552         Likewise, if __cpluspus.  Define the standard constant and limit
40553         macros (e.g., INT8_C, INT8_MAX) always.
40554         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
40555         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
40556         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
40557         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
40558         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
40559         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
40560         Likewise.
40562 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
40564         nonblocking tests: Fix test failure on Linux/PPC.
40565         Suggested by Prerna Saxena in
40566         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
40567         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
40568         Set to 1100000.
40570 2011-12-12  Jim Meyering  <meyering@redhat.com>
40572         argmatch: don't hard-code `' when listing valid option arguments
40573         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
40574         use the quote function to add quotes.  Use fputs rather than
40575         fprintf for the format string with no format directive.
40577 2011-12-07  Eric Blake  <eblake@redhat.com>
40579         bootstrap: detect tools required by gnulib-tool
40580         * build-aux/bootstrap (buildreq): Provide minimum implicit
40581         dependencies.
40582         * DEPENDENCIES: Mention patch as a prereq.
40584 2011-12-04  Bruno Haible  <bruno@clisp.org>
40586         sethostname: Port to Windows platforms.
40587         * lib/sethostname.c: Provide an alternate implementation for Windows
40588         platforms.
40589         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
40590         (main): Skip the test if sethostname() fails with EPERM. On Windows
40591         platforms, don't check the result of gethostname().
40593 2011-12-04  Bruno Haible  <bruno@clisp.org>
40594             Jim Meyering  <meyering@redhat.com>
40596         tests: Avoid spurious error message on platforms without mktemp program.
40597         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
40599 2011-12-04  Bruno Haible  <bruno@clisp.org>
40601         sethostname: Fix documentation.
40602         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
40603         "not fixed" section.
40605 2011-12-03  Bruno Haible  <bruno@clisp.org>
40607         gnulib-tool: Verify that the License field is present and non-empty.
40608         * gnulib-tool (func_get_license_raw): New function, extracted from
40609         func_get_license.
40610         (func_get_license): Use it. Warn if the module is not a test module and
40611         has no license.
40612         Suggested by Jim Meyering.
40614 2011-12-03  Bruno Haible  <bruno@clisp.org>
40616         sethostname tests: Fix link error on mingw.
40617         * tests/test-sethostname1.c: New file, extracted from
40618         tests/test-sethostname.c.
40619         * tests/test-sethostname2.c: New file, extracted from
40620         tests/test-sethostname.c.
40621         * tests/test-sethostname.c: Remove file.
40622         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
40623         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
40624         (Depends-on): Add gethostname.
40625         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
40626         Link the latter with $(GETHOSTNAME_LIB).
40628         sethostname tests: Fix compilation error on mingw.
40629         * tests/test-sethostname.c: Don't include <sys/types.h>.
40630         (geteuid): Use a dummy value without uid_t.
40631         * modules/sethostname-tests (Depends-on): Remove sys_types.
40633         sethostname tests: Avoid a gcc warning.
40634         * tests/test-sethostname.c (main): Remove an unused variable.
40636         Tweak last commit.
40637         * modules/sethostname-tests (Files): Sort by decreasing importance.
40638         (configure.ac): Check for geteuid.
40639         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
40640         the test when there's nothing to test. Drop an unnecessary cast.
40641         Improve an error message. Verify that the final sethostname() call
40642         succeeds.
40644 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40646         Add a test suite for the sethostname module.
40647         * modules/sethostname-tests: New file.  A test program
40648         for the sethostname module.
40649         * tests/test-sethostname.c: Likewise.
40651 2011-12-03  Bruno Haible  <bruno@clisp.org>
40653         Tweak last commit.
40654         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
40655         Fix preprocessor directives indentation. Fix typos.
40656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
40657         * modules/unistd (Makefile): Likewise.
40659 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40661         Integrate the sethostname module into unistd.
40662         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
40663         into the unistd.h header.
40664         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
40665         preprocessor directives.
40666         * modules/unistd: Setup the Makefile substitutions of the
40667         SETHOSTNAME preprocessor directives.
40669 2011-12-03  Bruno Haible  <bruno@clisp.org>
40671         Tweak last commit.
40672         * lib/sethostname.c: Don't include <string.h>.
40673         (sethostname): No need to copy the argument string to the stack. Don't
40674         call clearerr. Preserve errno when fprintf failed.
40675         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
40676         Don't invoke AC_REPLACE_FUNCS.
40677         * modules/sethostname (Link): Remove empty section.
40678         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
40679         failure problem.
40681 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40683         New module 'sethostname'.
40684         * lib/sethostname.c (sethostname): New file.  Provide sethostname
40685         for systems that lack it.
40686         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
40687         sethostname declaration and function.
40688         * modules/sethostname: New file.  Define the sethostname module.
40690 2011-12-03  Bruno Haible  <bruno@clisp.org>
40692         Tweak last commit.
40693         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
40695 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40697         Split the HOST_NAME_MAX detection into a separate m4 macro.
40698         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
40699         macro so it can be used by the pending sethostname module.
40701 2011-12-03  Bruno Haible  <bruno@clisp.org>
40703         Fix module descriptions syntax.
40704         * modules/argv-iter (License): Fix syntax.
40705         * modules/di-set (License): Likewise.
40706         * modules/ino-map (License): Likewise.
40707         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
40709 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
40711         stdalign: port to Clang 3.0
40712         Problem reported by Simon Josefsson in
40713         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
40714         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
40715         which has <stdalign.h> but which does not define alignof.
40716         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
40718 2011-12-01  Eric Blake  <eblake@redhat.com>
40720         mktempd: silence dd usage
40721         * build-aux/mktempd (rand_bytes): Silence dd.
40723 2011-11-30  Simon Josefsson  <simon@josefsson.org>
40725         manywarnings: Don't mention gcc version in docstring.
40726         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
40727         Jim Meyering <meyering@redhat.com>.
40729 2011-11-30  Jim Meyering  <meyering@redhat.com>
40731         hash: mark a few floating point constants with "f" suffix
40732         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
40733         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
40734         floating point constants with "f", since they're destined to be
40735         saved/used as "float"s.
40737 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
40739         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
40740         * tests/test-float.c (test_long_double): Correct and re-enable the
40741         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
40743 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
40745         Avoid subtracting two pointers that don't point into the same block.
40746         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
40747         only pointers into the same memory block are subtracted. We cannot
40748         assume that sizeof (ptrdiff_t) == sizeof (void *).
40750 2011-11-29  Eric Blake  <eblake@redhat.com>
40752         maint.mk: add syntax check for use of compare from init.sh
40753         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
40754         moved here from coreutils.
40756         manywarnings: drop -Wunsuffixed-float-constants
40757         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
40758         '1.0D', which is the only way to silence this warning for 'double'.
40760 2011-11-29  Jim Meyering  <meyering@redhat.com>
40762         hash: mark compute_bucket_size with the pure attribute
40763         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
40765         quotearg, propername: correct pragma guard expression
40766         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
40767         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
40769 2011-11-28  Jim Meyering  <meyering@redhat.com>
40771         propername: do not mark proper_name with the const attribute
40772         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
40773         since it examines data pointed to by its parameter.
40774         * lib/propername.c (proper_name): Instead, add a pragma to suppress
40775         the suggestion from -Wsuggest-attribute=const.
40777         propername: mark one more function as const
40778         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
40780 2011-11-27  Jim Meyering  <meyering@redhat.com>
40782         mark functions with const and pure attributes
40784         Mark functions per suggestions from gcc-4.6 when using these options:
40785         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
40786         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
40787         Follow these guidelines: when possible, apply the attribute to
40788         an extern declaration, not to its definition.  Apply it to the
40789         definition only when the definition is static.
40790         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
40791         * lib/argv-iter.h (argv_iter_n_args): Likewise.
40792         * lib/base64.h (isbase64): Likewise.
40793         * lib/basename-lgpl.c (last_component, base_len): Likewise.
40794         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
40795         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
40796         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
40797         (c_tolower, c_toupper): Likewise.
40798         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
40799         * lib/chdir-long.c (find_non_slash): Likewise.
40800         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
40801         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
40802         * lib/file-type.h (file_type): Likewise.
40803         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
40804         * lib/filevercmp.c (verrevcmp): Likewise.
40805         * lib/freadahead.h (freadahead): Likewise.
40806         * lib/fts.c (fts_maxarglen): Likewise.
40807         * lib/hash-pjw.h (hash_pjw): Likewise.
40808         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
40809         * lib/hash.c (is_prime, next_prime): Likewise.
40810         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
40811         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
40812         (hash_table_ok, hash_get_first, hash_string): Likewise.
40813         (compute_bucket_size): Likewise.
40814         * lib/i-ring.h (i_ring_empty): Likewise.
40815         * lib/isnan.c (isnanl): Likewise.
40816         * lib/math.h (isnanl, rpl_isnanl): Likewise.
40817         * lib/memcasecmp.h (memcasecmp): Likewise.
40818         * lib/memchr2.h (memchr2): Likewise.
40819         * lib/memcmp2.h (memcmp2): Likewise.
40820         * lib/parse-datetime.y (lookup_zone): Likewise.
40821         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
40822         [!WINDOWS_SOCKETS]: Likewise.
40823         * lib/strnlen1.h (strnlen1): Likewise.
40824         * lib/uniwidth.in.h (uc_width): Likewise.
40825         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
40826         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
40827         (quoting_options_from_style): Add a comment.
40828         * lib/propername.h (proper_name): Add a comment.
40830 2011-11-27  Bruno Haible  <bruno@clisp.org>
40832         Remove unused macros from !_LIBC code in glibc-borrowed files.
40833         * lib/fnmatch.c (STRCOLL): Remove macro.
40834         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
40835         * lib/glob.c (__stat, __readdir64): Remove macros.
40836         * lib/tempname.c (__open64, __xstat64): Remove macros.
40837         Suggested by Paul Eggert.
40839 2011-11-27  Bruno Haible  <bruno@clisp.org>
40841         getcwd: Fix link error on MSVC 9.
40842         * modules/getcwd (Depends-on): Add readdir, rewinddir.
40844 2011-11-27  Bruno Haible  <bruno@clisp.org>
40846         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
40847         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
40848         HAVE_OPENDIR is 0.
40849         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
40850         HAVE_CLOSEDIR is 0.
40851         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
40852         is 0.
40853         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
40855 2011-11-27  Bruno Haible  <bruno@clisp.org>
40857         getcwd: Fix bug from 2011-08-17.
40858         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
40859         platforms that need it.
40860         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
40861         code of 4 to be a failure, not a success. This ensures that
40862         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
40864 2011-11-27  Bruno Haible  <bruno@clisp.org>
40866         binary-io tests: Avoid test failure on mingw when libtool is used.
40867         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
40868         Don't verify the size of t-bin-out1.tmp here.
40869         * tests/test-binary-io.sh: Verify it here.
40870         Reported by Simon Josefsson.
40872 2011-11-26  Bruno Haible  <bruno@clisp.org>
40874         Fix conflict between two instantiations of module 'unistd'.
40875         * gnulib-tool (func_emit_autoconf_snippet): Substitute
40876         ${include_guard_prefix} also in the autoconf snippet.
40877         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
40878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
40879         GNULIB_UNISTD_H_GETOPT.
40880         * modules/getopt-posix (configure.ac): Set the
40881         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
40882         * modules/getopt-gnu (configure.ac): Likewise.
40883         * modules/unistd (Makefile.am): Change the substitution value of
40884         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
40885         Reported by Simon Josefsson.
40887 2011-11-25  Bruno Haible  <bruno@clisp.org>
40889         pagealign_alloc: Doc and comments.
40890         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
40891         module.
40892         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
40894 2011-11-25  Jim Meyering  <meyering@redhat.com>
40896         test-update-copyright.sh: avoid false-positive failure
40897         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
40898         around false positive failure on Cygwin/Windows.  The latter was
40899         matching erroneously-created files with names like
40900         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
40902 2011-11-25  Simon Josefsson  <simon@josefsson.org>
40904         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
40905         * m4/valgrind-tests.m4: Check that the parameters that will be
40906         used works, not just a subset of them.  Reported by Bruno Haible
40907         <bruno@clisp.org>.
40909 2011-11-24  Jim Meyering  <meyering@redhat.com>
40911         test-stdalign.c: comment out long double tests
40912         * tests/test-stdalign.c: Don't try to reduce alignment of long double
40913         variables.  That provokes errors like this from gcc-4.7.0 20111124:
40914         error: '_Alignas' specifiers cannot reduce alignment of \
40915         'static_longdouble_alignas'.
40917 2011-11-22  Jim Meyering  <meyering@redhat.com>
40919         init.sh: make "compare /dev/null FILE" output more readable
40920         * tests/init.sh (compare_): Document the preferred order of arguments.
40921         (emit_diff_u_header_): New function.
40922         (compare_dev_null_): Emit a simulated diff, rather than just the
40923         contents of the unexpected file.  Suggestion from Bruno Haible.
40925 2011-11-21  Jim Meyering  <meyering@redhat.com>
40926             Eric Blake  <eblake@redhat.com>
40928         init.sh: work around OSF/1 5.1's mishandling of /dev/null
40929         * tests/init.sh: Make our compare function slightly more portable.
40930         Reported by Bruno Haible in
40931         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
40933 2011-11-21  Simon Josefsson  <simon@josefsson.org>
40935         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
40936         before using it, in code that ends up in config.h.
40938 2011-11-20  Bruno Haible  <bruno@clisp.org>
40940         getcwd: Work around getcwd bug on AIX 5..7.
40941         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
40942         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
40943         Use a different value for gl_cv_func_getcwd_path_max. Move the
40944         definition of HAVE_PARTLY_WORKING_GETCWD from here...
40945         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
40946         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
40947         Define HAVE_MINIMALLY_WORKING_GETCWD.
40948         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
40949         where it is not even minimally working, that is, on AIX.
40950         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
40951         m4/getcwd-path-max.m4.
40952         (main): Update exit code computation.
40953         * doc/posix-functions/getcwd.texi: Mention list of platforms where
40954         getcwd does not handle long file names.
40956 2011-11-20  Bruno Haible  <bruno@clisp.org>
40958         getcwd: Fix bug from 2009-09-10.
40959         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
40960         like "no".
40962 2011-11-20  Simon Josefsson  <simon@josefsson.org>
40964         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
40966 2011-11-20  Bruno Haible  <bruno@clisp.org>
40968         fma tests: Avoid shadowing local variables.
40969         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
40970         expected.
40972 2011-11-20  Bruno Haible  <bruno@clisp.org>
40974         copysignf tests: Fix.
40975         * tests/test-copysignf.c: Fix signature check.
40977 2011-11-20  Bruno Haible  <bruno@clisp.org>
40979         fma: Remove unused code.
40980         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
40981         unused macros.
40983 2011-11-20  Bruno Haible  <bruno@clisp.org>
40985         sethostname: Fix doc about AIX.
40986         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
40987         sethostname; it has it.
40989         sethostname: Mention more portability problems.
40990         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
40991         problem.
40992         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
40994 2011-11-19  Bruno Haible  <bruno@clisp.org>
40996         Depend on module fcntl-h when AT_FDCWD is used.
40997         * modules/utimens (Depends-on): Add fcntl-h.
40998         * modules/areadlinkat (Depends-on): Likewise.
40999         * modules/areadlinkat-with-size (Depends-on): Likewise.
41000         * modules/faccessat (Depends-on): Likewise.
41001         * modules/fchmodat (Depends-on): Likewise.
41002         * modules/fchownat (Depends-on): Likewise.
41003         * modules/getcwd (Depends-on): Likewise.
41004         * modules/mkdirat (Depends-on): Likewise.
41005         * modules/mkfifoat (Depends-on): Likewise.
41006         * modules/readlinkat (Depends-on): Likewise.
41007         * modules/symlinkat (Depends-on): Likewise.
41008         * modules/dup2-tests (Depends-on): Likewise.
41009         * modules/fdutimensat-tests (Depends-on): Likewise.
41010         * modules/futimens-tests (Depends-on): Likewise.
41012 2011-11-19  Bruno Haible  <bruno@clisp.org>
41014         euidaccess: Update a comment.
41015         * lib/euidaccess.c: Update comment about platforms with faccessat.
41017 2011-11-19  Bruno Haible  <bruno@clisp.org>
41019         openat: Fix file list.
41020         * modules/openat (Files): Remove lib/at-func.c.
41022 2011-11-19  Bruno Haible  <bruno@clisp.org>
41024         fstatat: Simplify.
41025         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
41026         gnulib should define rpl_fstatat, there is a
41027         "#define fstatat rpl_fstatat" in <sys/stat.h>.
41029 2011-11-19  Bruno Haible  <bruno@clisp.org>
41031         Ensure 'inline' can be used in tests/test-utimens-common.h.
41032         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
41033         * modules/futimens-tests (configure.ac): Likewise.
41034         * modules/utimens-tests (configure.ac): Likewise.
41035         * modules/utimensat-tests (configure.ac): Likewise.
41037 2011-11-19  Simon Josefsson  <simon@josefsson.org>
41039         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
41040         not hash_insert0.
41041         (hash_insert_if_absent): Doc fix.
41043 2011-11-19  Simon Josefsson  <simon@josefsson.org>
41045         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
41047 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
41049         test-getcwd: disambiguate exit status
41050         * tests/test-getcwd.c (test_long_name): Return 0..7.
41051         (main): Exit with an unambiguous exit status.  The old
41052         code yielded a mysterious mixture of two failure codes.
41054         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
41055         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
41056         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
41057         rpl_fstatat or fstatat.  This should fix the other problem
41058         reported by Kai Habel in
41059         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
41060         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
41061         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
41062         and I reproduced it on a Solaris 8 host we still have in production.
41064 2011-11-18  Jim Meyering  <meyering@redhat.com>
41066         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
41067         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
41068         Add a sentence to the comment.
41069         (hash_insert0): New function that simply calls hash_insert_if_absent.
41070         * lib/hash.h (hash_insert_if_absent): Declare it.
41071         (hash_insert0): Add deprecation attribute.
41072         (_GL_ATTRIBUTE_DEPRECATED): Define.
41073         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
41074         not hash_insert0.
41075         * NEWS: Mention it, even though it's not really an incompatible change.
41077 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
41079         openat: avoid compilation failure due to lack of <errno.h> inclusion
41080         * lib/openat.c: Include <errno.h>.
41082 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41084         * modules/getcwd (Depends-on): Add fdopendir.
41085         This fixes one of the two problems reported by Kai Habel in
41086         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
41088         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
41089         stdalign problem reported by Ian Beckwith in
41090         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
41091         * modules/crypto/gc-arcfour (Depends-on):
41092         Depend conditionally on crypto/arcfour.
41093         * modules/crypto/gc-arctwo (Depends-on):
41094         Depend conditionally on crypto/arctwo.
41095         * modules/crypto/gc-des (Depends-on):
41096         Depend conditionally on crypto/des.
41097         * modules/crypto/gc-hmac-md5 (Depends-on):
41098         Depend conditionally on crypto/hmac-md5.
41099         * modules/crypto/gc-hmac-sha1 (Depends-on):
41100         Depend conditionally on crypto/hmac-sha1.
41101         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
41102         * modules/crypto/gc-md4 (Depends-on):
41103         Depend conditionally on crypto/md4.
41104         * modules/crypto/gc-md5 (Depends-on):
41105         Depend conditionally on crypto/md5.
41106         * modules/crypto/gc-rijndael (Depends-on):
41107         Depend conditionally on crypto/rijndael.
41108         * modules/crypto/gc-sha1 (Depends-on):
41109         Depend conditionally on crypto/sha1.
41110         * modules/crypto/gc-arcfour:
41111         * modules/crypto/gc-arctwo:
41112         * modules/crypto/gc-des:
41113         * modules/crypto/gc-hmac-md5:
41114         * modules/crypto/gc-hmac-sha1:
41115         * modules/crypto/gc-md2:
41116         * modules/crypto/gc-md4:
41117         * modules/crypto/gc-md5:
41118         * modules/crypto/gc-rijndael:
41119         * modules/crypto/gc-sha1:
41120         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
41121         now that the conditional dependencies do the work for us.
41123 2011-11-17  Jim Meyering  <meyering@redhat.com>
41125         tests: factor st_ctime-comparison out of two headers
41126         * tests/test-utimens-common.h (ctime_compare): Define.
41127         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
41128         * tests/test-lutimens.h (test_lutimens): Likewise.
41129         * tests/test-utimens.h (test_utimens): Likewise.
41131         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
41132         Invoke the test program via an init.sh-using wrapper.
41133         * tests/test-getcwd.sh: New file.
41134         * modules/getcwd-tests (Files): Add it.
41135         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
41137 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
41139         gitlog-to-changelog: support multi-author commits.
41140         The FSF cares about keeping track of all authors of patches to its
41141         projects, but Git doesn't provide obvious support for multi-author
41142         changesets. Consensus seems to be forming around the use of extra
41143         Signed-off-by inspired lines in the log message formatted as
41144         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
41145         multi-author commits between version control systems.
41146         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
41147         log message and output in standard ChangeLog multi-author format.
41148         Reported by Peter Rosin <peda@lysator.liu.se>
41150 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
41151             Bruno Haible  <bruno@clisp.org>
41153         Fix some modules' file list.
41154         * modules/fstatat (Files): Add m4/lstat.m4.
41155         * modules/openat (Files): Likewise.
41156         * modules/unlinkat (Files): Likewise.
41158 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
41160         maint.mk: fix tight-scope.mk generation in VPATH builds.
41161         * top/maint.mk (tight-scope.mk): Make sure to prefix file
41162         reference with $(srcdir) so that the file is found correctly even
41163         when running `make syntax-check' in a VPATH build.
41165 2011-11-13  Bruno Haible  <bruno@clisp.org>
41166             Jim Meyering  <meyering@redhat.com>
41168         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
41169         * tests/init.sh (compare): Remove "No differences encountered" or
41170         synonymous output from the 'diff' program.
41172 2011-11-13  Bruno Haible  <bruno@clisp.org>
41174         Makefile: Tweak indentation.
41175         * Makefile: Use tab as first character in every line that contains rule
41176         commands.
41178 2011-11-13  Bruno Haible  <bruno@clisp.org>
41180         Syntax check for copyright statements.
41181         * check-copyright: New file.
41182         * Makefile (sc_check_copyright): New rule.
41184 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41186         * build-aux/git-version-gen: Add --prefix to configure the tag
41187         match string.
41189 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41191         * build-aux/git-version-gen: Add --help and --version.
41193 2011-11-12  Jim Meyering  <meyering@redhat.com>
41195         revamp the other test-exclude?.sh scripts to use init.sh, too
41196         * tests/test-exclude1.sh: Use init.sh.
41197         * tests/test-exclude2.sh: Likewise.
41198         * tests/test-exclude3.sh: Likewise.
41199         * tests/test-exclude4.sh: Likewise.
41200         * tests/test-exclude5.sh: Likewise.
41201         * tests/test-exclude6.sh: Likewise.
41202         * tests/test-exclude7.sh: Likewise.
41203         * tests/test-exclude8.sh: Likewise.
41204         * modules/exclude-tests (Files): List init.sh.
41206         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
41207         These shell scripts ignored failure of the binary test-exclude,
41208         so making the latter return 77 didn't cause them to be skipped.
41209         * tests/test-exclude5.sh: Exit with test-exclude's error status
41210         when that program fails.  Revamp to use init.sh.
41211         * tests/test-exclude2.sh: Likewise.
41213         test-exclude: fix a typo
41214         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
41216 2011-11-11  Bruno Haible  <bruno@clisp.org>
41218         obstack: Fix compilation error on MSVC 9.
41219         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
41221 2011-11-11  Jim Meyering  <meyering@redhat.com>
41223         test-exclude: skip tests rather than failing on deficient systems
41224         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
41225         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
41226         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
41227         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
41229 2011-11-10  Bruno Haible  <bruno@clisp.org>
41231         ptsname_r test: Avoid gcc warning on glibc systems.
41232         * tests/test-ptsname_r.c (null_ptr): New function.
41233         (test_errors): Use it.
41235 2011-11-10  Bruno Haible  <bruno@clisp.org>
41237         ptsname_r: Avoid compilation error on OSF/1 5.1.
41238         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
41239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
41240         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
41241         function is not declared or incompatibly declared.
41242         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
41243         * modules/ptsname_r (Depends-on, configure.ac): Update.
41244         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
41246 2011-11-10  Bruno Haible  <bruno@clisp.org>
41248         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
41249         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
41250         When cross-compiling, guess yes on all platforms except AIX.
41251         Reported by Ludovic Courtès <ludo@gnu.org>.
41253 2011-11-09  Bruno Haible  <bruno@clisp.org>
41255         ptsname_r tests: Fix bugs.
41256         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
41257         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
41259 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41261         fstatat: work with cross-compilation
41262         Problem reported by Ludovic Courtès in
41263         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
41264         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
41265         "cross-compiling" and assume the bug is present.  Replace
41266         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
41267         an inverted sense, to be more conservative about our assumptions.
41268         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
41270 2011-11-09  Bruno Haible  <bruno@clisp.org>
41272         Improve MODULES.html output.
41273         * modules/mkfifoat (Description): Use the word "function".
41274         * modules/readlinkat (Description): Likewise.
41275         * modules/symlinkat (Description): Likewise.
41277 2011-11-09  Eric Blake  <eblake@redhat.com>
41279         ptsname_r-tests: new test module
41280         * modules/ptsname_r-tests: New module.
41281         * tests/test-ptsname_r.c: New file.
41283         ptsname_r: new module
41284         * modules/ptsname_r: New module.
41285         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
41286         * lib/ptsname.c (__ptsname_r): Split...
41287         * lib/ptsname_r.c: ...into new file.
41288         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
41289         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
41290         * modules/stdlib (Makefile.am): Substitute witnesses.
41291         * lib/stdlib.in.h (ptsname_r): Declare it.
41292         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
41293         * MODULES.html.sh (Misc): Likewise.
41294         * modules/ptsname (Depends-on): Alter dependency.
41295         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
41297 2011-11-09  Jim Meyering  <meyering@redhat.com>
41299         announce-gen: be more concise when there's only one URL+tarball
41300         * build-aux/announce-gen (get_tool_versions): When you distribute
41301         only one type of tarball, combine the first two "Here are..."
41302         sections and make the key-checking grammar independent of
41303         how many tarballs there are.
41305 2011-11-09  Eric Blake  <eblake@redhat.com>
41307         openpty: provide a stub on mingw
41308         * lib/pty.in.h (includes): Provide forward declarations.
41309         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
41311         raise: fix mingw handling of SIGPIPE
41312         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
41314 2011-11-08  Bruno Haible  <bruno@clisp.org>
41316         More conditional dependencies.
41317         * modules/faccessat (Depends-on): Add conditions.
41318         * modules/fchmodat (Depends-on): Likewise.
41319         * modules/fchownat (Depends-on): Likewise.
41320         * modules/fstatat (Depends-on): Likewise.
41321         * modules/mkfifoat (Depends-on): Likewise.
41322         * modules/readlinkat (Depends-on): Likewise.
41323         * modules/symlinkat (Depends-on): Likewise.
41324         * modules/unlinkat (Depends-on): Likewise.
41325         * modules/utimensat (Depends-on): Likewise.
41326         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
41327         * modules/linkat (Depends-on): Refine the conditions.
41328         * modules/renameat (Depends-on): Likewise.
41330 2011-11-08  Bruno Haible  <bruno@clisp.org>
41332         faccessat: Move AC_LIBOBJ invocation to module description.
41333         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
41334         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
41335         invocation from here...
41336         * modules/faccessat (configure.ac): ... to here. Invoke
41337         gl_PREREQ_FACCESSAT.
41339 2011-11-08  Bruno Haible  <bruno@clisp.org>
41341         faccessat: Simplify autoconf macro.
41342         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
41343         gl_FUNC_EUIDACCESS.
41345 2011-11-08  Bruno Haible  <bruno@clisp.org>
41347         renameat: Fix dependencies.
41348         * modules/renameat (Depends-on): Add stdbool.
41350 2011-11-08  Bruno Haible  <bruno@clisp.org>
41352         mkfifoat: Fix module description.
41353         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
41354         not gl_UNISTD_MODULE_INDICATOR.
41356 2011-11-08  Bruno Haible  <bruno@clisp.org>
41358         fstatat: Remove unused dependency.
41359         * modules/fstatat (Depends-on): Remove fstat.
41361 2011-11-08  Simon Josefsson  <simon@josefsson.org>
41363         GNUmakefile: behave when Makefile is missing.
41364         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
41366 2011-11-08  Bruno Haible  <bruno@clisp.org>
41368         openat: Conditionalize dependencies.
41369         * lib/openat.c: Reduce the scope of some #includes.
41370         * modules/openat (Depends-on): Add conditions.
41372 2011-11-07  Jim Meyering  <meyering@redhat.com>
41374         maint.mk: extract GPG key ID without using a temporary file
41375         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
41376         without using a temporary file.  Based on a suggestion from Werner Koch
41377         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
41379 2011-11-07  Eric Blake  <eblake@redhat.com>
41381         grantpt: fix typo
41382         * lib/stdlib.in.h (grantpt): Check correct function.
41384         maint.mk: silence new syntax check
41385         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
41387 2011-11-06  Bruno Haible  <bruno@clisp.org>
41389         Doc about floating-point and math API.
41390         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
41391         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
41393 2011-11-06  Bruno Haible  <bruno@clisp.org>
41395         stdalign tests: Skip the test when compiled by Sun C.
41396         * tests/test-stdalign.c (main): Skip the test on Sun C.
41398 2011-11-06  Bruno Haible  <bruno@clisp.org>
41400         ansi-c++-opt: Complete the 2011-06-05 change.
41401         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
41402         does not support namespaces, set the variable to "no", not to ":".
41404 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41406         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
41408 2011-11-06  Bruno Haible  <bruno@clisp.org>
41410         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
41411         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
41412         (minus_zerol) [HP-UX]: New macro.
41413         (unary_minus) [HP-UX]: New function.
41414         (copysignl) [HP-UX]: Use unary_minus function.
41416 2011-11-06  Bruno Haible  <bruno@clisp.org>
41418         ldexp, ldexpf, ldexpl: Enhance tests.
41419         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
41420         and tests/test-ldexpl.c.
41421         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
41422         LDEXP, MIN_EXP, MAX_EXP): New macros.
41423         Include test-ldexp.h.
41424         (main): Just call test_function.
41425         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
41426         infinity.h, nan.h.
41427         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41428         MAX_EXP): New macros.
41429         Include test-ldexp.h.
41430         (x, y): Remove variables.
41431         (main): Just call test_function.
41432         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
41433         infinity.h, nan.h.
41434         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41435         MAX_EXP): New macros.
41436         Include test-ldexp.h.
41437         (x, y): Remove variables.
41438         (main): Just call test_function.
41439         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
41440         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
41441         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
41442         (Depends-on): Add isnand-nolibm, signbit, float.
41443         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
41444         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
41445         (Depends-on): Add isnanf-nolibm, signbit, float.
41447 2011-11-06  Bruno Haible  <bruno@clisp.org>
41449         math tests: Cosmetics.
41450         * tests/test-math-c++.cc: Reorder declarations.
41452 2011-11-05  Bruno Haible  <bruno@clisp.org>
41454         fma*: Simplify test.
41455         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
41456         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
41458         Tests for module 'fmal'.
41459         * modules/fmal-tests: New file.
41460         * tests/test-fmal1.c: New file.
41461         * tests/test-fmal2.c: New file.
41463         New module 'fmal'.
41464         * lib/math.in.h (fmal): New declaration.
41465         * lib/fmal.c: New file.
41466         * m4/fmal.m4: New file.
41467         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
41468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
41469         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
41470         REPLACE_FMAL.
41471         * modules/fmal: New file.
41472         * doc/posix-functions/fmal.texi: Mention the new module and the various
41473         bugs.
41475         Tests for module 'fmaf'.
41476         * modules/fmaf-tests: New file.
41477         * tests/test-fmaf1.c: New file.
41478         * tests/test-fmaf2.c: New file.
41480         New module 'fmaf'.
41481         * lib/math.in.h (fmaf): New declaration.
41482         * lib/fmaf.c: New file.
41483         * m4/fmaf.m4: New file.
41484         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
41485         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
41486         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
41487         REPLACE_FMAF.
41488         * modules/fmaf: New file.
41489         * doc/posix-functions/fmaf.texi: Mention the new module and the various
41490         bugs.
41492         Tests for module 'fma'.
41493         * modules/fma-tests: New file.
41494         * tests/test-fma1.c: New file.
41495         * tests/test-fma1.h: New file.
41496         * tests/test-fma2.c: New file.
41497         * tests/test-fma2.h: New file.
41499         New module 'fma'.
41500         * lib/math.in.h (fma): New declaration.
41501         * lib/fma.c: New file.
41502         * m4/fma.m4: New file.
41503         * m4/fegetround.m4: New file.
41504         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
41505         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
41506         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
41507         REPLACE_FMA.
41508         * modules/fma: New file.
41509         * doc/posix-functions/fma.texi: Mention the new module and the various
41510         bugs.
41512         Extend gl_MATHFUNC.
41513         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
41514         Support 'void' as argument type.
41515         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
41517 2011-11-05  Jim Meyering  <meyering@redhat.com>
41519         maint.mk: also prohibit inclusion of dirent.h without use
41520         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
41522 2011-11-05  Bruno Haible  <bruno@clisp.org>
41524         ldexpl tests: Avoid test failure on MSVC 9.
41525         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
41526         value. Needed in order to enforce the conversion from a value greater
41527         than LDBL_MAX to Infinity.
41529 2011-11-05  Bruno Haible  <bruno@clisp.org>
41531         New modules 'at-internal', 'openat-h', split off from module 'openat'.
41532         * modules/at-internal: New file, extracted from modules/openat.
41533         * modules/openat-h: New file.
41534         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
41535         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
41536         * modules/openat (Description): Add reference to POSIX function.
41537         (Files): Remove lib/openat.h, lib/openat-proc.c.
41538         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
41539         intprops, unistd.
41540         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
41541         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
41542         gl_FCNTL_MODULE_INDICATOR.
41543         (Include): Remove unistd.h, openat.h.
41544         * modules/areadlinkat (Files): Add lib/at-func.c.
41545         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41546         openat-die, openat-h, save-cwd.
41547         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
41548         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41549         openat-die, openat-h, save-cwd, unistd.
41550         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
41551         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41552         openat-h, save-cwd. Remove fcntl-h, openat.
41553         * modules/fchmodat (Files): Remove lib/openat.h.
41554         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41555         openat, stdbool, unistd.
41556         * modules/fchownat (Files): Remove lib/openat.h.
41557         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41558         openat, stdbool, sys_stat.
41559         * modules/fdopendir (Files): Remove lib/openat-priv.h,
41560         lib/openat-proc.c.
41561         (Depends-on): Add at-internal.
41562         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
41563         * modules/fstatat (Files): Remove lib/openat.h.
41564         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
41565         stdbool, unistd.
41566         * modules/fts (Depends-on): Add openat-h.
41567         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
41568         openat.
41569         * modules/mkdirat (Files): Remove lib/openat.h.
41570         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41571         openat, stdbool, sys_stat.
41572         * modules/mkfifoat (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/openat-die (Depends-on): Add openat-h. Remove openat.
41576         * modules/readlinkat (Files): Add lib/at-func.c.
41577         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41578         openat-h, save-cwd. Remove fcntl-h, openat.
41579         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
41580         openat.
41581         * modules/selinux-at (Files): Add lib/at-func.c.
41582         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41583         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
41584         * modules/symlinkat (Files): Add lib/at-func.c.
41585         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41586         openat-h, save-cwd. Remove fcntl-h, openat.
41587         * modules/unlinkat (Files): Remove lib/openat.h.
41588         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
41589         stdbool.
41590         * modules/utimensat (Files): Add lib/at-func.c.
41591         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
41592         openat-die, openat-h, save-cwd.
41593         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
41594         * modules/fdutimensat-tests (Depends-on): Add openat.
41595         * modules/fstatat-tests (Depends-on): Add openat-h.
41596         * modules/readlinkat-tests (Depends-on): Add openat.
41597         * modules/symlinkat-tests (Depends-on): Add openat.
41599 2011-11-05  Bruno Haible  <bruno@clisp.org>
41601         openat: Include <stdbool.h>.
41602         * lib/openat.c: Include <stdbool.h>.
41604 2011-11-04  Bruno Haible  <bruno@clisp.org>
41606         fchownat, renameat, unlinkat: Fix dependencies.
41607         * modules/fchownat (Depends-on): Add fstatat.
41608         * modules/renameat (Depends-on): Likewise.
41609         * modules/unlinkat (Depends-on): Likewise.
41611 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
41613         openat: remove direct dependency on dirent
41614         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
41615         and hasn't been needed ever since fdopendir was split into its own
41616         module on 2009-08-31.
41617         * modules/openat (Depends-on): Remove dirent.
41619 2011-11-04  Bruno Haible  <bruno@clisp.org>
41621         renameat: Optimize code size.
41622         * modules/renameat (configure.ac): Don't compile at-func2.c if
41623         REPLACE_RENAMEAT is 1.
41625 2011-11-04  Bruno Haible  <bruno@clisp.org>
41627         openat tests: Fix file list.
41628         * modules/openat-tests (Files): Add tests/test-open.h.
41630 2011-11-04  Bruno Haible  <bruno@clisp.org>
41632         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
41633         * modules/fchmodat (Depends-on): Add openat-die.
41634         * modules/fchownat (Depends-on): Likewise.
41635         * modules/linkat (Depends-on): Likewise.
41636         * modules/renameat (Depends-on): Likewise.
41637         * modules/openat (Depends-on): Add dirent.
41639 2011-11-04  Jim Meyering  <meyering@redhat.com>
41641         at-func*.c: fix comments
41642         * lib/at-func2.c: Correct/improve first-line comment.
41643         * lib/at-func.c: Correct grammar in first-line comment.
41645 2011-11-04  Bruno Haible  <bruno@clisp.org>
41647         New module 'mkdirat', split off from module 'openat'.
41648         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
41649         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
41650         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
41651         * modules/mkdirat: New file, extracted from modules/openat.
41652         * modules/openat (Files): Remove lib/mkdirat.c.
41653         (Depends-on): Remove mkdir.
41654         (configure.ac): Remove AC_LIBOBJ of mkdirat.
41655         (Include): Remove <sys/stat.h>.
41656         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
41657         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
41658         tests/test-mkdir.h.
41659         (Depends-on): Remove ignore-value.
41660         (Makefile.am): Remove rules for test-mkdirat.
41661         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
41662         of module 'openat'.
41663         * NEWS: Mention the change.
41665 2011-11-04  Bruno Haible  <bruno@clisp.org>
41667         closedir: Avoid warning on mingw.
41668         * lib/closedir.c: Include <unistd.h>.
41670 2011-11-04  Bruno Haible  <bruno@clisp.org>
41672         New module 'fstatat', split off from module 'openat'.
41673         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
41674         defined.
41675         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
41676         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
41677         gl_FUNC_FSTATAT.
41678         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
41679         * modules/fstatat: New file, extracted from modules/openat.
41680         * modules/openat (Files): Remove lib/fstatat.c.
41681         (Depends-on): Remove lstat.
41682         (configure.ac): Remove AC_LIBOBJ of fstatat.
41683         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
41684         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
41685         tests/test-lstat.h, tests/test-stat.h.
41686         (Depends-on): Remove getcwd-lgpl.
41687         (Makefile.am): Remove rules for test-fstatat.
41688         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
41689         of module 'openat'.
41690         * NEWS: Mention the change.
41691         * modules/getcwd (Depends-on): Add fstatat.
41692         * modules/linkat (Depends-on): Likewise.
41693         * modules/mkfifoat-tests (Depends-on): Likewise.
41694         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
41696 2011-11-03  Bruno Haible  <bruno@clisp.org>
41698         New module 'unlinkat', split off from module 'openat'.
41699         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
41700         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
41701         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
41702         * modules/unlinkat: New file, extracted from modules/openat. Correct
41703         the dependency conditions.
41704         * modules/openat (Files): Remove lib/unlinkat.c.
41705         (Depends-on): Remove rmdir, unlink.
41706         (configure.ac): Remove AC_LIBOBJ of unlinkat.
41707         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
41708         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
41709         tests/test-rmdir.h, tests/test-unlink.h.
41710         (Depends-on): Remove unlinkdir.
41711         (Makefile.am): Remove rules for test-unlinkat.
41712         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
41713         of module 'openat'.
41714         * NEWS: Mention the change.
41715         * modules/linkat-tests (Depends-on): Add unlinkat.
41716         * modules/mkfifoat-tests (Depends-on): Likewise.
41717         * modules/readlinkat-tests (Depends-on): Likewise.
41719 2011-11-02  Bruno Haible  <bruno@clisp.org>
41721         New module 'fchmodat', split off from module 'openat'.
41722         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
41723         defined.
41724         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
41725         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
41726         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
41727         * modules/fchmodat: New file, extracted from modules/openat.
41728         * modules/openat (Files): Remove lib/fchmodat.c.
41729         (configure.ac): Remove AC_LIBOBJ of fchmodat.
41730         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
41731         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
41732         (Makefile.am): Remove rules for test-fchmodat.
41733         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
41734         of module 'openat'.
41735         * NEWS: Mention the change.
41737 2011-11-02  Jim Meyering  <meyering@redhat.com>
41739         putenv: indent #definition of "environ" to placate cppi
41740         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
41742         gitlog-to-changelog: provide a ChangeLog-repair mechanism
41743         Git logs are often treated as immutable, because editing them
41744         changes the SHA1 checksums of all descendants.  Thus, errors in
41745         git logs tend to stay there forever.  However, when we generate
41746         a ChangeLog file -- typically for distribution -- from that git log,
41747         we can actually make corrections in the generated file.  The key
41748         lies in recording in machine-readable/applicable form the desired
41749         corrections.  See --help for description and an example.
41750         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
41751         (usage): Describe it; alphabetize option descriptions.
41752         (main): Honor the new option, carefully.
41754 2011-11-01  Jim Meyering  <meyering@redhat.com>
41756         gitlog-to-changelog: avoid an infloop
41757         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
41758         that ends up being empty.
41760 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41762         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
41763         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
41764         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
41765         contains (possibly-quoted) backslashes.  This should avoid
41766         all-too-common shell bugs if COMPLICATED contains backslashes in
41767         the "wrong" places.  Reported by David Evans in
41768         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
41769         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
41770         because we want ASCII ranges.  Is there some reason we don't use
41771         the C locale everywhere in this script?
41772         (func_module, top level): Avoid unwanted pathname expansion when
41773         $repo_url_prefix or $repo_url_suffix_repl contain shell
41774         metacharacters like '?' and '*'.
41776 2011-11-01  Bruno Haible  <bruno@clisp.org>
41778         fchownat: Improve description.
41779         * modules/fchownat (Description): Add link to function.
41781 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41783         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
41784         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
41785         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
41786         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
41788 2011-11-01  Bruno Haible  <bruno@clisp.org>
41790         alignof: Avoid collision with stdalign module.
41791         * lib/alignof.h (alignof): Remove macro.
41792         * NEWS: Mention the change.
41793         Reported by Paul Eggert.
41795 2011-11-01  Bruno Haible  <bruno@clisp.org>
41797         New module 'fchownat', split off from module 'openat'.
41798         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
41799         defined.
41800         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
41801         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
41802         invoke gl_FUNC_FCHOWNAT.
41803         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
41804         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
41805         * modules/fchownat: New file, extracted from modules/openat.
41806         * modules/openat (Files): Remove lib/fchownat.c.
41807         (Depends-on): Remove lchown.
41808         (configure.ac): Remove AC_LIBOBJ of fchownat.
41809         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
41810         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
41811         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
41812         (Depends-on): Remove mgetgroups, usleep, stat-time.
41813         (configure.ac): Remove test for getegid.
41814         (Makefile.am): Remove rules for test-fchownat.
41815         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
41816         of module 'openat'.
41817         * NEWS: Mention the change.
41819 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41821         stdalign: port better to MSVC and to Sun C 5.11
41822         This fixes some of the problems reported by Bruno Haible in
41823         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
41824         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
41825         shortcomings of MSVC and of Sun C 5.11.
41826         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
41827         around __declspec arg.
41828         * modules/stdalign-tests (Files): Add tests/macros.h.
41829         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
41830         Include macros.h, for ASSERT.
41831         (DECLARE_ALIGNED): Remove.
41832         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
41833         to catch bug), and to 1 if not (simplifies the rest of the code).
41834         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
41835         (CHECK_AUTO): Remove.
41836         (CHECK_ALIGNED): Check only the alignment of the static vars,
41837         since auto var alignment isn't supported by Sun C 5.11.
41838         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
41839         ASSERT failures are easier to diagnose.
41841 2011-10-31  Bruno Haible  <bruno@clisp.org>
41843         doc about some IRIX 5.3 problems.
41844         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
41845         on IRIX 5.3.
41846         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
41847         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
41848         5.3.
41849         * doc/posix-functions/grantpt.texi: Likewise.
41850         * doc/posix-functions/unlockpt.texi: Likewise.
41851         * doc/posix-functions/lgamma.texi: Likewise.
41852         * doc/posix-functions/nextafter.texi: Likewise.
41853         * doc/posix-functions/remainder.texi: Likewise.
41854         * doc/posix-functions/select.texi: Mention misplaced declaration on
41855         IRIX 5.3.
41856         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41858 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
41860         gitlog-to-changelog: fix git-log invocation.
41861         git-log mishandles date strings before 1970-01-01 UTC, and there is
41862         no use to specify --since=1970-01-01 by default anyway.
41863         * build-aux/gitlog-to-changelog: By default, when no --since option
41864         was given, do not specify explicit --since option to git-log.
41866 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
41868         gitlog-to-changelog: new option --append-dot.
41869         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
41870         first non-blank line of each commit message terminated with a dot.
41872 2011-10-30  Bruno Haible  <bruno@clisp.org>
41874         ffsl, ffsll: Avoid compilation error due to 'restrict'.
41875         * lib/ffsl.h: Include <config.h>.
41876         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
41878 2011-10-30  Jim Meyering  <meyering@redhat.com>
41880         GNUmakefile: reenable "make syntax-check" for most projects
41881         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
41882         build-aux variable", "syntax-check" would do nothing but succeed with
41883         the "No version control files detected..." diagnostic (unless you
41884         happened to override _build-aux via cfg.mk).
41885         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
41886         to precede inclusion of maint.mk.  Otherwise, these variables would
41887         be used undefined in any project that does not override the default.
41889 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
41891         gitlog-to-changelog: treat a message with only blank lines as empty.
41892         * build-aux/gitlog-to-changelog: Move the code that removes leading and
41893         trailing blank lines before the code that issues a warning about an
41894         empty commit message.
41896 2011-10-30  Jim Meyering  <meyering@redhat.com>
41898         test-parse-datetime.c: avoid new DST-related false positive test failure
41899         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
41900         based on the time/date we'll convert, not the current time.
41901         Otherwise, the moment we cross a DST boundary like today's in
41902         Europe, (CEST to CET), that offset ends up being one hour off.
41904 2011-10-27  Bruno Haible  <bruno@clisp.org>
41906         fstat: Tweak documentation.
41907         * modules/fstat (Description): More precise description.
41909 2011-10-27  Bruno Haible  <bruno@clisp.org>
41911         Update documentation regarding 'largefile' module.
41912         * doc/posix-functions/fstat.texi: Tweak wording.
41913         * doc/posix-functions/opendir.texi: Mention that the module fixes the
41914         problems with huge directories and/or small ino_t types.
41915         * doc/posix-functions/readdir.texi: Likewise.
41916         * doc/posix-functions/rewinddir.texi: Likewise.
41918 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
41920         maint.mk: don't maintain a second build-aux variable.
41921         * maint.mk (build_aux): Removed.  The maintainer-makefile module
41922         depends on GNUmakefile, which already maintains a cfg.mk
41923         overridable $(_build-aux) for projects with a non-standard
41924         build-aux directory location, although without the $(srcdir)
41925         prefix.  Use that variable consistently instead of introducing a
41926         second one.  Adjust all call sites.
41928 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41930         Add stdalign module and use it in other modules.
41931         This is based on a previous proposal by Bruno Haible
41932         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
41934         stdalign: new module
41935         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
41936         * modules/stdalign: New files.
41937         * MODULES.html.sh (c1x_core_properties): Add stdalign.
41938         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
41940         stdalign-tests: new module
41941         * modules/stdalign-tests, tests/test-stdalign.c: New files.
41943         argp: use stdalign
41944         * lib/argp-parse.c: Include <stdalign.h>.
41945         (alignof): Remove.
41946         * modules/argp (Depends-on): Add stdalign.
41948         crypto libraries: use stdalign
41949         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
41950         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
41951         Do not include <stdlib.h> twice, in md4.c.
41952         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
41953         because we are accessing a pointer's bit-pattern, not a size.
41954         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
41955         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
41956         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
41957         * modules/crypto/sha512: Likewise.
41959         sys_socket: use stdalign, not alignof
41960         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
41961         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
41963 2011-10-27  Bruno Haible  <bruno@clisp.org>
41965         raise test: Avoid a test failure on Linux/MIPS.
41966         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
41967         because 99 is a valid signal on Linux/MIPS.
41969 2011-10-27  Bruno Haible  <bruno@clisp.org>
41971         nonblocking tests: Fix test failure on Linux/MIPS.
41972         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
41973         Set to 270000.
41975 2011-10-27  Bruno Haible  <bruno@clisp.org>
41977         utimensat: Work around problem on Linux/hppa.
41978         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
41979         values.
41980         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
41982 2011-10-25  Jim Meyering  <meyering@redhat.com>
41984         maint.mk: fix a bug in sc_prohibit_stddef_without_use
41985         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
41986         after symbols like NULL, size_t, etc.
41987         Reported by Alfred M. Szmidt.
41989         maint.mk: exempt ENODATA from a syntax-check rule
41990         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
41991         from the sc_prohibit_always-defined_macros syntax-check rule.
41992         Add a comment.  See this for more details:
41993         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
41995 2011-10-23  Jim Meyering  <meyering@redhat.com>
41997         fts: close parent dir FD before returning from post-traversal fts_read
41998         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
41999         unlink A, even though an FD open on A remained.  This is suboptimal
42000         (holding a file descriptor open longer than needed), but otherwise not
42001         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
42002         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
42003         that represents a real problem: it causes the removal of A to fail
42004         with e.g., "rm: cannot remove `A': Device or resource busy"
42006         fts visits each directory twice and keeps a cache (fts_fd_ring) of
42007         directory file descriptors.  After completing the final, FTS_DP,
42008         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
42009         cache, but then proceeded to add a new FD to it via the subsequent
42010         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
42011         final file descriptor would be closed only via fts_close's call to
42012         fd_ring_clear.  Now, it is usually closed earlier, via the final
42013         FTS_DP-returning fts_read call.
42014         * lib/fts.c (restore_initial_cwd): New function, converted from
42015         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
42016         Update callers.
42017         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
42018         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
42020 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
42021             Bruno Haible  <bruno@clisp.org>
42022             Jim Meyering  <jim@meyering.net>
42024         readme-release: improve safety of release prep instructions.
42025         * README-release: Don't git pull all branches when only master
42026         is needed for the release process.
42027         Run make maintainer-clean before changing trees and merging.
42028         Don't try to run ./configure right after git pull in case files
42029         that influence the bootstrap process have changed, move the
42030         ./configure step to after running ./bootstrap.
42031         Don't bootstrap "one last time"... it's the first time!
42033 2011-10-22  Bruno Haible  <bruno@clisp.org>
42035         errno, strerror-override: Support for MSVC 10.
42036         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
42037         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
42038         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
42039         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
42040         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
42041         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
42042         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
42043         Assign values compatible with MSVC 10.
42044         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
42045         New macros.
42046         (GNULIB_defined_EWINSOCK): New macro.
42047         * lib/strerror-override.c (strerror_override): Update accordingly.
42048         * lib/strerror-override.h: Likewise.
42049         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
42050         longer equal to the corresponding errno value.
42051         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42053 2011-10-22  Bruno Haible  <bruno@clisp.org>
42055         perror: Recognize when test program crashes.
42056         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
42057         strerror, set gl_cv_func_perror_works to no.
42058         Reported by Daniel Richard G. <skunk@iskunk.org>.
42060         perror: Fix indentation.
42061         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
42063 2011-10-22  Bruno Haible  <bruno@clisp.org>
42065         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
42066         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
42067         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
42068         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
42069         functions, not as a macro.
42070         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
42071         macros.
42072         (isfinite, isinf, isnan, signbit): Check overloaded functions and
42073         absence of macro.
42074         Suggested by Eric Blake.
42075         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42077 2011-10-21  Bruno Haible  <bruno@clisp.org>
42079         relocatable-prog-wrapper: Don't leave object files behind.
42080         * build-aux/install-reloc: Re-synchronize list of .o files to be
42081         removed with list of compilation units.
42083 2011-10-20  Bruno Haible  <bruno@clisp.org>
42085         openpty, posix_openpt: Remove code duplication.
42086         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
42087         * lib/openpty.c: Include <stdlib.h>.
42088         (openpty): Use posix_openpt on all platforms except IRIX.
42089         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
42091 2011-10-20  Bruno Haible  <bruno@clisp.org>
42093         unlockpt: Detect invalid argument.
42094         * lib/unlockpt.c: Include <fcntl.h>.
42095         (unlockpt): Check whether fd is valid, using fcntl().
42096         * modules/unlockpt (Depends-on): Add fcntl-h.
42098 2011-10-20  Bruno Haible  <bruno@clisp.org>
42100         openpty: Avoid compilation error on AIX 6.1.
42101         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
42103 2011-10-20  Bruno Haible  <bruno@clisp.org>
42105         posix_openpt: Support for OpenBSD.
42106         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
42107         (posix_openpt) [OpenBSD]: New code.
42108         * lib/grantpt.c: Include <fcntl.h>.
42109         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
42110         * modules/grantpt (Depends-on): Add fcntl-h.
42112 2011-10-20  Bruno Haible  <bruno@clisp.org>
42114         posix_openpt test: Coding style.
42115         * tests/test-posix_openpt.c: Use GNU coding style.
42117 2011-10-20  Bruno Haible  <bruno@clisp.org>
42119         grantpt: Support --avoid=pt_chown.
42120         * modules/grantpt (Files): Add lib/pty-private.h.
42122 2011-10-20  Bruno Haible  <bruno@clisp.org>
42124         posix_openpt: Fix autoconf macro.
42125         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
42126         unneeded check for _getpty.
42128 2011-10-20  Bruno Haible  <bruno@clisp.org>
42130         openpty: Update comments.
42131         * lib/openpty.c: Add comments about Minix.
42133 2011-10-19  Eric Blake  <eblake@redhat.com>
42135         openpty: relax license
42136         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
42138         pt_chown: use configmake to simplify build
42139         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
42141         ptsname and others: relax license
42142         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
42143         * modules/unlockpt (License): Likewise.
42144         * modules/pt_chown (License): Likewise.
42145         * modules/ptsname (License): Likewise.
42146         * modules/ttyname_r (License): Likewise.
42148 2011-10-19  Jim Meyering  <meyering@redhat.com>
42150         posix_openpt: remove spurious #endif
42151         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
42153 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
42155         maint.mk: Respect $(build_aux) in web-manual rule.
42156         * top/maint.mk (web-manual): Find gen-announce script in user's
42157         $(build_aux) directory instead of hard-coding 'build-aux'.
42159 2011-10-19  Bruno Haible  <bruno@clisp.org>
42161         posix_openpt: Fix compilation error.
42162         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
42163         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
42164         Mention the openpty module as an alternative.
42166 2011-10-19  Bruno Haible  <bruno@clisp.org>
42168         Support for old NeXTstep 3.3 frexp().
42169         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
42170         execution time of the test to 5 seconds.
42171         Reported by Daniel Richard G. <skunk@iskunk.org>.
42173 2011-10-19  Bruno Haible  <bruno@clisp.org>
42175         Support for old NeXTstep 3.3 sed.
42176         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
42177         part, use /.../, not \|...|. Escape periods in the header file name.
42178         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
42179         Reported by Daniel Richard G. <skunk@iskunk.org>.
42181 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42183         Support for old NeXTstep 3.3 gcc.
42184         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
42185         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
42186         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
42187         * lib/spawn.in.h (_Restrict_arr_): Likewise.
42188         * lib/regex.h (_Restrict_arr_): Likewise.
42189         * lib/regex_internal.h (re_token_t): Likewise.
42190         * lib/regexec.c (check_node_accept_bytes): Likewise.
42191         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
42193 2011-10-18  Eric Blake  <eblake@redhat.com>
42195         posix_openpt: new module
42196         * modules/posix_openpt: New module.
42197         * m4/posix_openpt.m4: New file.
42198         * lib/posix_openpt.c: Likewise.
42199         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
42200         (gl_STDLIB_H_DEFAULTS): Set defaults.
42201         * modules/stdlib (Makefile.am): Substitute macros.
42202         * lib/stdlib.in.h (posix_openpt): Declare.
42203         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
42204         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
42205         * modules/posix_openpt-tests: New test module.
42206         * tests/test-posix_openpt.c: New test.
42208 2011-10-15  Bruno Haible  <bruno@clisp.org>
42210         xstrtoll: Fix compilation failure.
42211         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
42212         from lib/strtol.c.
42213         * doc/posix-headers/limits.texi: Mention missing numerical limits on
42214         some platforms.
42215         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42217 2011-10-15  Bruno Haible  <bruno@clisp.org>
42219         vasnprintf: Optimize bit search operation.
42220         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
42221         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
42222         gl_DOUBLE_EXPONENT_LOCATION.
42223         * modules/vasnprintf (Files): Add m4/exponentd.m4.
42224         * modules/unistdio/u8-vasnprintf (Files): Likewise.
42225         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
42226         * modules/unistdio/u16-vasnprintf (Files): Likewise.
42227         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
42228         * modules/unistdio/u32-vasnprintf (Files): Likewise.
42229         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
42230         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
42231         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
42233 2011-10-15  Bruno Haible  <bruno@clisp.org>
42235         vasnprintf: Fix comments.
42236         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
42238 2011-10-14  Bruno Haible  <bruno@clisp.org>
42240         Tests for module 'integer_length_ll'.
42241         * modules/integer_length_ll-tests: New file.
42242         * tests/test-integer_length_ll.c: New file.
42244         New module 'integer_length_ll'.
42245         * lib/integer_length_ll.c: New file.
42246         * modules/integer_length_ll: New file.
42248 2011-10-14  Bruno Haible  <bruno@clisp.org>
42250         Tests for module 'integer_length_l'.
42251         * modules/integer_length_l-tests: New file.
42252         * tests/test-integer_length_l.c: New file.
42254         New module 'integer_length_l'.
42255         * lib/integer_length_l.c: New file.
42256         * modules/integer_length_l: New file.
42258 2011-10-14  Bruno Haible  <bruno@clisp.org>
42260         Tests for module 'integer_length'.
42261         * modules/integer_length-tests: New file.
42262         * tests/test-integer_length.c: New file.
42264         New module 'integer_length'.
42265         * lib/integer_length.h: New file.
42266         * lib/integer_length.c: New file.
42267         * modules/integer_length: New file.
42269 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42271         popen: Fix dependency conditions.
42272         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
42274 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42276         perror: Fix autoconf test.
42277         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
42278         <stdlib.h> and <string.h>.
42280 2011-10-14  Bruno Haible  <bruno@clisp.org>
42282         ffsl: Optimize on 64-bit platforms.
42283         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
42284         unrolling.
42286 2011-10-13  Bruno Haible  <bruno@clisp.org>
42288         ffsl: Optimize on 32-bit platforms.
42289         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
42290         use ffs() without a loop.
42292         ffsl, ffsll: Optimize for GCC.
42293         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
42294         * lib/ffsl.c (GCC_BUILTIN): New macro.
42295         * lib/ffsll.c (GCC_BUILTIN): Likewise.
42297 2011-10-13  Bruno Haible  <bruno@clisp.org>
42299         ffs, bcopy, memset: Support symbol renaming via config.h.
42300         * lib/ffs.c: Include <config.h>.
42301         * lib/bcopy.c: Likewise.
42302         * lib/memset.c: Likewise.
42304 2011-10-10  Bruno Haible  <bruno@clisp.org>
42306         atanl: Simplify for platforms where 'long double' == 'double'.
42307         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42308         alternative implementation.
42309         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42310         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42311         * modules/atanl (Depends-on): Add atan. Update conditions.
42313 2011-10-10  Bruno Haible  <bruno@clisp.org>
42315         acosl: Simplify for platforms where 'long double' == 'double'.
42316         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42317         alternative implementation.
42318         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42319         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42320         * modules/acosl (Depends-on): Add acos. Update conditions.
42322 2011-10-10  Bruno Haible  <bruno@clisp.org>
42324         asinl: Simplify for platforms where 'long double' == 'double'.
42325         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42326         alternative implementation.
42327         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42328         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42329         * modules/asinl (Depends-on): Add asin. Update conditions.
42331 2011-10-10  Bruno Haible  <bruno@clisp.org>
42333         tanl: Simplify for platforms where 'long double' == 'double'.
42334         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42335         implementation.
42336         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42337         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42338         * modules/tanl (Depends-on): Add tan. Update conditions.
42339         (configure.ac): Don't compile trigl.c if
42340         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42342 2011-10-10  Bruno Haible  <bruno@clisp.org>
42344         cosl: Simplify for platforms where 'long double' == 'double'.
42345         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42346         implementation.
42347         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42348         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42349         * modules/cosl (Depends-on): Add cos. Update conditions.
42350         (configure.ac): Don't compile sincosl.c and trigl.c if
42351         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42353 2011-10-10  Bruno Haible  <bruno@clisp.org>
42355         sinl: Simplify for platforms where 'long double' == 'double'.
42356         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42357         implementation.
42358         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42359         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42360         * modules/sinl (Depends-on): Add sin. Update conditions.
42361         (configure.ac): Don't compile sincosl.c and trigl.c if
42362         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42364 2011-10-10  Bruno Haible  <bruno@clisp.org>
42366         logl: Simplify for platforms where 'long double' == 'double'.
42367         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42368         implementation.
42369         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42370         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42371         * modules/logl (Depends-on): Add log. Update conditions.
42373 2011-10-10  Bruno Haible  <bruno@clisp.org>
42375         expl: Simplify for platforms where 'long double' == 'double'.
42376         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42377         implementation.
42378         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42379         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42380         * modules/expl (Depends-on): Add exp. Update conditions.
42382 2011-10-10  Bruno Haible  <bruno@clisp.org>
42384         sqrtl: Simplify for platforms where 'long double' == 'double'.
42385         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42386         alternative implementation.
42387         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42388         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42389         * modules/sqrtl (Depends-on): Update conditions.
42391 2011-10-10  Bruno Haible  <bruno@clisp.org>
42393         ldexpl: Simplify for platforms where 'long double' == 'double'.
42394         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42395         alternative implementation.
42396         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42397         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42398         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
42400 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
42402         ffsll: set correct witness
42403         * modules/ffsll (configure.ac): Fix typo.
42405 2011-10-10  Bruno Haible  <bruno@clisp.org>
42407         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
42408         * lib/printf-frexpl.c: Include <config.h>.
42409         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42410         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
42411         second time.
42412         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
42413         gl_LONG_DOUBLE_VS_DOUBLE.
42414         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
42415         conditions.
42417 2011-10-10  Bruno Haible  <bruno@clisp.org>
42419         frexpl: Simplify for platforms where 'long double' == 'double'.
42420         * lib/frexpl.c: Include <config.h>.
42421         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42422         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42423         time.
42424         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42425         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42426         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
42427         * modules/frexpl (Depends-on): Add frexp. Update conditions.
42428         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
42429         conditions.
42431 2011-10-10  Jim Meyering  <meyering@redhat.com>
42433         test-renameat: don't leave behind a temporary file
42434         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
42435           ERROR: files left in build directory after distclean:
42436           ./gltests/test-renameat.too
42437           make[1]: *** [distcleancheck] Error 1
42438         Reported by Tom G. Christensen.
42440 2011-10-09  Bruno Haible  <bruno@clisp.org>
42442         rint: Determine RINT_LIBM correctly on AIX 7.
42443         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
42444         directly, not only through a function pointer. Also accept an optional
42445         4th argument with extra code.
42446         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
42447         rintf() call by gcc when optimizing.
42449         mathfunc.m4: Refactor.
42450         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
42451         m4 variable.
42453 2011-10-09  Bruno Haible  <bruno@clisp.org>
42455         rintl: Simplify for platforms where 'long double' == 'double'.
42456         * lib/rintl.c: Include <config.h>.
42457         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42458         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42459         time.
42460         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42461         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42462         * modules/rintl (Depends-on): Add rint. Update conditions.
42464 2011-10-09  Bruno Haible  <bruno@clisp.org>
42466         roundl: Simplify for platforms where 'long double' == 'double'.
42467         * lib/roundl.c: Include <config.h>.
42468         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42469         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42470         time.
42471         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42472         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42473         * modules/roundl (Depends-on): Add round. Update conditions.
42475 2011-10-09  Bruno Haible  <bruno@clisp.org>
42477         truncl: Simplify for platforms where 'long double' == 'double'.
42478         * lib/truncl.c: Include <config.h>.
42479         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42480         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42481         time.
42482         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42483         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42484         * modules/truncl (Depends-on): Add trunc. Update conditions.
42486 2011-10-09  Bruno Haible  <bruno@clisp.org>
42488         ceill: Simplify for platforms where 'long double' == 'double'.
42489         * lib/ceill.c: Include <config.h>.
42490         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42491         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42492         time.
42493         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42494         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42495         * modules/ceill (Depends-on): Add ceil. Update conditions.
42497 2011-10-09  Bruno Haible  <bruno@clisp.org>
42499         floorl: Simplify for platforms where 'long double' == 'double'.
42500         * lib/floorl.c: Include <config.h>.
42501         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42502         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42503         time.
42504         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42505         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42506         * modules/floorl (Depends-on): Add floor. Update conditions.
42508 2011-10-09  Bruno Haible  <bruno@clisp.org>
42510         rint: Fix ordering constraints.
42511         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
42512         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
42513         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
42515 2011-10-09  Bruno Haible  <bruno@clisp.org>
42517         copysignl: Simplify for platforms where 'long double' == 'double'.
42518         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42519         alternative.
42520         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42521         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42522         * modules/copysignl (Depends-on): Add copysign. Update conditions.
42524 2011-10-09  Bruno Haible  <bruno@clisp.org>
42526         Tests for module 'rintl'.
42527         * modules/rintl-tests: New file.
42528         * tests/test-rintl.c: New file.
42530         New module 'rintl'.
42531         * lib/math.in.h (rintl): New declaration.
42532         * lib/rintl.c: New file.
42533         * m4/rintl.m4: New file.
42534         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
42535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
42536         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
42537         * modules/rintl: New file.
42538         * tests/test-math-c++.cc: Check the declaration of rintl.
42539         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42540         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
42541         * doc/posix-functions/rintl.texi: Mention the new module.
42543 2011-10-09  Bruno Haible  <bruno@clisp.org>
42545         Tests for module 'rintf'.
42546         * modules/rintf-tests: New file.
42547         * tests/test-rintf.c: New file.
42549         New module 'rintf'.
42550         * lib/math.in.h (rintf): New declaration.
42551         * lib/rintf.c: New file.
42552         * m4/rintf.m4: New file.
42553         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
42554         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
42555         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
42556         * modules/rintf: New file.
42557         * tests/test-math-c++.cc: Check the declaration of rintf.
42558         * doc/posix-functions/rintf.texi: Mention the new module.
42560 2011-10-09  Bruno Haible  <bruno@clisp.org>
42562         rint: Support for MSVC.
42563         * lib/math.in.h (rint): New declaration.
42564         * lib/rint.c: New file.
42565         * m4/rint.m4: New file.
42566         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
42567         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
42568         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
42569         * modules/rint (Description): Fix.
42570         (Files): Add lib/rint.c, m4/rint.m4.
42571         (Depends-on): Add math.
42572         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
42573         gl_MATH_MODULE_INDICATOR.
42574         * tests/test-math-c++.cc: Check the declaration of rint.
42575         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42576         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
42577         * doc/posix-functions/rint.texi: Mention the replacement provided by
42578         the module.
42580         rint tests: More tests.
42581         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
42582         minus-zero.h, infinity.h, nan.h.
42583         (main): Skip the test if the current rounding mode is not standard. Add
42584         tests for negative numbers, minus zero, infinity, NaN.
42585         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
42586         tests/nan.h.
42587         (Depends-on): Add isnand-nolibm.
42589 2011-10-09  Bruno Haible  <bruno@clisp.org>
42591         Tests for module 'copysignl'.
42592         * modules/copysignl-tests: New file.
42593         * tests/test-copysignl.c: New file.
42595         New module 'copysignl'.
42596         * lib/math.in.h (copysignl): New declaration.
42597         * lib/copysignl.c: New file.
42598         * m4/copysignl.m4: New file.
42599         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
42600         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
42601         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
42602         HAVE_COPYSIGNL.
42603         * modules/copysignl: New file.
42604         * tests/test-math-c++.cc: Check the declaration of copysignl.
42605         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42606         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
42607         * doc/posix-functions/copysignl.texi: Mention the new module.
42609 2011-10-09  Bruno Haible  <bruno@clisp.org>
42611         Tests for module 'copysignf'.
42612         * modules/copysignf-tests: New file.
42613         * tests/test-copysignf.c: New file.
42615         New module 'copysignf'.
42616         * lib/math.in.h (copysignf): New declaration.
42617         * lib/copysignf.c: New file.
42618         * m4/copysignf.m4: New file.
42619         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
42620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
42621         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
42622         HAVE_COPYSIGNF.
42623         * modules/copysignf: New file.
42624         * tests/test-math-c++.cc: Check the declaration of copysignf.
42625         * doc/posix-functions/copysignf.texi: Mention the new module.
42627 2011-10-09  Bruno Haible  <bruno@clisp.org>
42629         Ensure that HAVE_* variables are set to 1 before they are set to 0.
42630         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
42631         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
42632         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
42633         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
42634         gl_SIGNAL_H_DEFAULTS.
42636 2011-10-09  Bruno Haible  <bruno@clisp.org>
42638         poll: Make macro safer.
42639         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
42640         ac_cv_header_poll_h is not set.
42642 2011-10-09  Bruno Haible  <bruno@clisp.org>
42644         copysign: Provide replacement.
42645         * lib/math.in.h (copysign): New declaration.
42646         * lib/copysign.c: New file.
42647         * m4/copysign.m4: New file.
42648         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
42649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
42650         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
42651         HAVE_COPYSIGN.
42652         * modules/copysign (Description): Clarify.
42653         (Files): Add lib/copysign.c, m4/copysign.m4.
42654         (Depends-on): Add math, signbit.
42655         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
42656         gl_MATH_MODULE_INDICATOR.
42657         * tests/test-math-c++.cc: Check the declaration of copysign.
42658         * doc/posix-functions/copysign.texi: Mention the effects of the module
42659         on Minix and MSVC.
42661 2011-10-09  Bruno Haible  <bruno@clisp.org>
42663         isinf: Ensure macro on AIX 5.1.
42664         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
42665         macro.
42666         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
42668 2011-10-09  Bruno Haible  <bruno@clisp.org>
42670         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
42671         * modules/snprintf-posix-tests (configure.ac): Require
42672         gl_LONG_DOUBLE_VS_DOUBLE.
42673         * modules/sprintf-posix-tests (configure.ac): Likewise.
42674         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
42675         * modules/vasprintf-posix-tests (configure.ac): Likewise.
42676         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
42677         * modules/vsprintf-posix-tests (configure.ac): Likewise.
42678         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
42679         tests on platforms where 'long double' is the same as 'double'.
42680         * tests/test-sprintf-posix.h (test_function): Likewise.
42681         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42682         * tests/test-vasprintf-posix.c (test_function): Likewise.
42684         *printf: Fix for platforms where 'long double' == 'double'.
42685         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
42686         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
42687         * modules/dprintf-posix (Files): Add m4/math_h.m4.
42688         * modules/fprintf-posix (Files): Likewise.
42689         * modules/obstack-printf-posix (Files): Likewise.
42690         * modules/snprintf-posix (Files): Likewise.
42691         * modules/sprintf-posix (Files): Likewise.
42692         * modules/vasnprintf (Files): Likewise.
42693         * modules/vasnprintf-posix (Files): Likewise.
42694         * modules/vasprintf-posix (Files): Likewise.
42695         * modules/vdprintf-posix (Files): Likewise.
42696         * modules/vfprintf-posix (Files): Likewise.
42697         * modules/vsnprintf-posix (Files): Likewise.
42698         * modules/vsprintf-posix (Files): Likewise.
42699         * modules/unistdio/u8-vasnprintf (Files): Likewise.
42700         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
42701         * modules/unistdio/u16-vasnprintf (Files): Likewise.
42702         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
42703         * modules/unistdio/u32-vasnprintf (Files): Likewise.
42704         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
42705         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
42707         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
42708         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
42709         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42710         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
42711         'long double'.
42712         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
42714         isinf: Fix for platforms where 'long double' == 'double'.
42715         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
42716         Don't blindly assume 80-bit 'long double'.
42718         isfinite: Fix for platforms where 'long double' == 'double'.
42719         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
42720         Don't blindly assume 80-bit 'long double'.
42722         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
42723         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
42724         * modules/isfinite-tests (configure.ac): Require
42725         gl_LONG_DOUBLE_VS_DOUBLE.
42726         * modules/isinf-tests (configure.ac): Likewise.
42727         * modules/isnan-tests (configure.ac): Likewise.
42728         * modules/isnanl-tests (configure.ac): Likewise.
42729         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
42730         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
42731         tests on platforms where 'long double' is the same as 'double'.
42732         * tests/test-isinf.c (test_isinfl): Likewise.
42733         * tests/test-isnan.c (test_long_double): Likewise.
42734         * tests/test-isnanl.h (main): Likewise.
42736 2011-10-08  Bruno Haible  <bruno@clisp.org>
42738         Tests for module 'tanhf'.
42739         * modules/tanhf-tests: New file.
42740         * tests/test-tanhf.c: New file.
42742         New module 'tanhf'.
42743         * lib/math.in.h (tanhf): New declaration.
42744         * lib/tanhf.c: New file.
42745         * m4/tanhf.m4: New file.
42746         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
42747         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
42748         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
42749         * modules/tanhf: New file.
42750         * tests/test-math-c++.cc: Check the declaration of tanhf.
42751         * doc/posix-functions/tanhf.texi: Mention the new module.
42753         tanh: Use a .m4 file.
42754         * m4/tanh.m4: New file.
42755         * modules/tanh (Files): Add it.
42756         (configure.ac): Just invoke gl_FUNC_TANH.
42758 2011-10-08  Bruno Haible  <bruno@clisp.org>
42760         Tests for module 'coshf'.
42761         * modules/coshf-tests: New file.
42762         * tests/test-coshf.c: New file.
42764         New module 'coshf'.
42765         * lib/math.in.h (coshf): New declaration.
42766         * lib/coshf.c: New file.
42767         * m4/coshf.m4: New file.
42768         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
42769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
42770         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
42771         * modules/coshf: New file.
42772         * tests/test-math-c++.cc: Check the declaration of coshf.
42773         * doc/posix-functions/coshf.texi: Mention the new module.
42775         cosh: Use a .m4 file.
42776         * m4/cosh.m4: New file.
42777         * modules/cosh (Files): Add it.
42778         (configure.ac): Just invoke gl_FUNC_COSH.
42780 2011-10-08  Bruno Haible  <bruno@clisp.org>
42782         Tests for module 'sinhf'.
42783         * modules/sinhf-tests: New file.
42784         * tests/test-sinhf.c: New file.
42786         New module 'sinhf'.
42787         * lib/math.in.h (sinhf): New declaration.
42788         * lib/sinhf.c: New file.
42789         * m4/sinhf.m4: New file.
42790         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
42791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
42792         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
42793         * modules/sinhf: New file.
42794         * tests/test-math-c++.cc: Check the declaration of sinhf.
42795         * doc/posix-functions/sinhf.texi: Mention the new module.
42797         sinh: Use a .m4 file.
42798         * m4/sinh.m4: New file.
42799         * modules/sinh (Files): Add it.
42800         (configure.ac): Just invoke gl_FUNC_SINH.
42802 2011-10-08  Bruno Haible  <bruno@clisp.org>
42804         Tests for module 'atan2f'.
42805         * modules/atan2f-tests: New file.
42806         * tests/test-atan2f.c: New file.
42808         New module 'atan2f'.
42809         * lib/math.in.h (atan2f): New declaration.
42810         * lib/atan2f.c: New file.
42811         * m4/atan2f.m4: New file.
42812         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
42813         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
42814         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
42815         * modules/atan2f: New file.
42816         * tests/test-math-c++.cc: Check the declaration of atan2f.
42817         * doc/posix-functions/atan2f.texi: Mention the new module.
42819         atan2: Use a .m4 file.
42820         * m4/atan2.m4: New file.
42821         * modules/atan2 (Files): Add it.
42822         (configure.ac): Just invoke gl_FUNC_ATAN2.
42824 2011-10-08  Bruno Haible  <bruno@clisp.org>
42826         Tests for module 'atanf'.
42827         * modules/atanf-tests: New file.
42828         * tests/test-atanf.c: New file.
42830         New module 'atanf'.
42831         * lib/math.in.h (atanf): New declaration.
42832         * lib/atanf.c: New file.
42833         * m4/atanf.m4: New file.
42834         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
42835         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
42836         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
42837         * modules/atanf: New file.
42838         * tests/test-math-c++.cc: Check the declaration of atanf.
42839         * doc/posix-functions/atanf.texi: Mention the new module.
42841         atan: Use a .m4 file.
42842         * m4/atan.m4: New file.
42843         * modules/atan (Files): Add it.
42844         (configure.ac): Just invoke gl_FUNC_ATAN.
42846 2011-10-08  Bruno Haible  <bruno@clisp.org>
42848         Tests for module 'acosf'.
42849         * modules/acosf-tests: New file.
42850         * tests/test-acosf.c: New file.
42852         New module 'acosf'.
42853         * lib/math.in.h (acosf): New declaration.
42854         * lib/acosf.c: New file.
42855         * m4/acosf.m4: New file.
42856         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
42857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
42858         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
42859         * modules/acosf: New file.
42860         * tests/test-math-c++.cc: Check the declaration of acosf.
42861         * doc/posix-functions/acosf.texi: Mention the new module.
42863         acos: Use a .m4 file.
42864         * m4/acos.m4: New file.
42865         * modules/acos (Files): Add it.
42866         (configure.ac): Just invoke gl_FUNC_ACOS.
42868 2011-10-08  Bruno Haible  <bruno@clisp.org>
42870         Tests for module 'asinf'.
42871         * modules/asinf-tests: New file.
42872         * tests/test-asinf.c: New file.
42874         New module 'asinf'.
42875         * lib/math.in.h (asinf): New declaration.
42876         * lib/asinf.c: New file.
42877         * m4/asinf.m4: New file.
42878         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
42879         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
42880         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
42881         * modules/asinf: New file.
42882         * tests/test-math-c++.cc: Check the declaration of asinf.
42883         * doc/posix-functions/asinf.texi: Mention the new module.
42885         asin: Use a .m4 file.
42886         * m4/asin.m4: New file.
42887         * modules/asin (Files): Add it.
42888         (configure.ac): Just invoke gl_FUNC_ASIN.
42890 2011-10-08  Bruno Haible  <bruno@clisp.org>
42892         Tests for module 'tanf'.
42893         * modules/tanf-tests: New file.
42894         * tests/test-tanf.c: New file.
42896         New module 'tanf'.
42897         * lib/math.in.h (tanf): New declaration.
42898         * lib/tanf.c: New file.
42899         * m4/tanf.m4: New file.
42900         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
42901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
42902         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
42903         * modules/tanf: New file.
42904         * tests/test-math-c++.cc: Check the declaration of tanf.
42905         * doc/posix-functions/tanf.texi: Mention the new module.
42907         tan: Use a .m4 file.
42908         * m4/tan.m4: New file.
42909         * modules/tan (Files): Add it.
42910         (configure.ac): Just invoke gl_FUNC_TAN.
42912 2011-10-08  Bruno Haible  <bruno@clisp.org>
42914         Tests for module 'cosf'.
42915         * modules/cosf-tests: New file.
42916         * tests/test-cosf.c: New file.
42918         New module 'cosf'.
42919         * lib/math.in.h (cosf): New declaration.
42920         * lib/cosf.c: New file.
42921         * m4/cosf.m4: New file.
42922         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
42923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
42924         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
42925         * modules/cosf: New file.
42926         * tests/test-math-c++.cc: Check the declaration of cosf.
42927         * doc/posix-functions/cosf.texi: Mention the new module.
42929         cos: Use a .m4 file.
42930         * m4/cos.m4: New file.
42931         * modules/cos (Files): Add it.
42932         (configure.ac): Just invoke gl_FUNC_COS.
42934 2011-10-08  Bruno Haible  <bruno@clisp.org>
42936         Tests for module 'sinf'.
42937         * modules/sinf-tests: New file.
42938         * tests/test-sinf.c: New file.
42940         New module 'sinf'.
42941         * lib/math.in.h (sinf): New declaration.
42942         * lib/sinf.c: New file.
42943         * m4/sinf.m4: New file.
42944         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
42945         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
42946         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
42947         * modules/sinf: New file.
42948         * tests/test-math-c++.cc: Check the declaration of sinf.
42949         * doc/posix-functions/sinf.texi: Mention the new module.
42951         sin: Use a .m4 file.
42952         * m4/sin.m4: New file.
42953         * modules/sin (Files): Add it.
42954         (configure.ac): Just invoke gl_FUNC_SIN.
42956 2011-10-08  Bruno Haible  <bruno@clisp.org>
42958         Tests for module 'powf'.
42959         * modules/powf-tests: New file.
42960         * tests/test-powf.c: New file.
42962         New module 'powf'.
42963         * lib/math.in.h (powf): New declaration.
42964         * lib/powf.c: New file.
42965         * m4/powf.m4: New file.
42966         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
42967         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
42968         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
42969         * modules/powf: New file.
42970         * tests/test-math-c++.cc: Check the declaration of powf.
42971         * doc/posix-functions/powf.texi: Mention the new module.
42973         pow: Use a .m4 file.
42974         * m4/pow.m4: New file.
42975         * modules/pow (Files): Add it.
42976         (configure.ac): Just invoke gl_FUNC_POW.
42978 2011-10-08  Bruno Haible  <bruno@clisp.org>
42980         Tests for module 'log10f'.
42981         * modules/log10f-tests: New file.
42982         * tests/test-log10f.c: New file.
42984         New module 'log10f'.
42985         * lib/math.in.h (log10f): New declaration.
42986         * lib/log10f.c: New file.
42987         * m4/log10f.m4: New file.
42988         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
42989         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
42990         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
42991         * modules/log10f: New file.
42992         * tests/test-math-c++.cc: Check the declaration of log10f.
42993         * doc/posix-functions/log10f.texi: Mention the new module.
42995         log10: Use a .m4 file.
42996         * m4/log10.m4: New file.
42997         * modules/log10 (Files): Add it.
42998         (configure.ac): Just invoke gl_FUNC_LOG10.
43000 2011-10-08  Bruno Haible  <bruno@clisp.org>
43002         Tests for module 'logf'.
43003         * modules/logf-tests: New file.
43004         * tests/test-logf.c: New file.
43006         New module 'logf'.
43007         * lib/math.in.h (logf): New declaration.
43008         * lib/logf.c: New file.
43009         * m4/logf.m4: New file.
43010         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
43011         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
43012         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
43013         * modules/logf: New file.
43014         * tests/test-math-c++.cc: Check the declaration of logf.
43015         * doc/posix-functions/logf.texi: Mention the new module.
43017         log: Use a .m4 file.
43018         * m4/log.m4: New file.
43019         * modules/log (Files): Add it.
43020         (configure.ac): Just invoke gl_FUNC_LOG.
43022 2011-10-08  Bruno Haible  <bruno@clisp.org>
43024         Tests for module 'expf'.
43025         * modules/expf-tests: New file.
43026         * tests/test-expf.c: New file.
43028         New module 'expf'.
43029         * lib/math.in.h (expf): New declaration.
43030         * lib/expf.c: New file.
43031         * m4/expf.m4: New file.
43032         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
43033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
43034         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
43035         * modules/expf: New file.
43036         * tests/test-math-c++.cc: Check the declaration of expf.
43037         * doc/posix-functions/expf.texi: Mention the new module.
43039         exp: Use a .m4 file.
43040         * m4/exp.m4: New file.
43041         * modules/exp (Files): Add it.
43042         (configure.ac): Just invoke gl_FUNC_EXP.
43044 2011-10-08  Bruno Haible  <bruno@clisp.org>
43046         Tests for module 'sqrtf'.
43047         * modules/sqrtf-tests: New file.
43048         * tests/test-sqrtf.c: New file.
43050         New module 'sqrtf'.
43051         * lib/math.in.h (sqrtf): New declaration.
43052         * lib/sqrtf.c: New file.
43053         * m4/sqrtf.m4: New file.
43054         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
43055         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
43056         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
43057         * modules/sqrtf: New file.
43058         * tests/test-math-c++.cc: Check the declaration of sqrtf.
43059         * doc/posix-functions/sqrtf.texi: Mention the new module.
43061 2011-10-08  Bruno Haible  <bruno@clisp.org>
43063         Tests: Avoid link failures w.r.t. libintl.
43064         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
43065         $(LIBINTL).
43066         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
43067         $(LIBINTL).
43068         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
43069         against $(LIBINTL).
43070         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
43071         $(LIBINTL).
43072         * modules/openat-tests (Makefile.am): Link test-fchmodat against
43073         $(LIBINTL).
43074         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
43076 2011-10-08  Bruno Haible  <bruno@clisp.org>
43078         pow tests: Defeat compiler optimizations.
43079         * tests/test-pow.c (main): Assign arguments to x and y before use.
43081 2011-10-08  Bruno Haible  <bruno@clisp.org>
43083         gnulib-tool: Improve last commit.
43084         * gnulib-tool (func_modules_transitive_closure): Simplify code.
43085         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
43086         ignore dependencies that are not among the modules list.
43088 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
43090         gnulib-tool: don't follow dependencies to avoided modules
43091         This fixes a bug that is related to the previous one.
43092         * gnulib-tool (func_modules_transitive_closure)
43093         (func_emit_autoconf_snippets):
43094         Check whether a dependency is acceptable before using it.
43095         (--extract-dependencies): Report an error if --avoid is also used,
43096         since this combination of options is not yet supported.
43098         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
43099         Problem reported by Peter Dyballa in
43100         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
43101         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
43102         when echoing "$condition".
43104 2011-10-07  Bruno Haible  <bruno@clisp.org>
43106         Fix documentation about math functions on MacOS X.
43107         * doc/posix-functions/exp2.texi: Don't say the function is missing on
43108         MacOS X 10.5.
43109         * doc/posix-functions/fdim.texi: Likewise.
43110         * doc/posix-functions/feclearexcept.texi: Likewise.
43111         * doc/posix-functions/fegetenv.texi: Likewise.
43112         * doc/posix-functions/fegetround.texi: Likewise.
43113         * doc/posix-functions/feholdexcept.texi: Likewise.
43114         * doc/posix-functions/feraiseexcept.texi: Likewise.
43115         * doc/posix-functions/fesetenv.texi: Likewise.
43116         * doc/posix-functions/fesetround.texi: Likewise.
43117         * doc/posix-functions/fetestexcept.texi: Likewise.
43118         * doc/posix-functions/feupdateenv.texi: Likewise.
43119         * doc/posix-functions/fmax.texi: Likewise.
43120         * doc/posix-functions/fmin.texi: Likewise.
43121         * doc/posix-functions/log2.texi: Likewise.
43122         * doc/posix-functions/modff.texi: Likewise.
43123         * doc/posix-functions/nan.texi: Likewise.
43124         * doc/posix-functions/nanf.texi: Likewise.
43125         * doc/posix-functions/nextafterf.texi: Likewise.
43126         * doc/posix-functions/remquo.texi: Likewise.
43128 2011-10-07  Bruno Haible  <bruno@clisp.org>
43130         modff: Drop assumption about library that defines modff.
43131         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
43132         AC_CHECK_FUNCS.
43133         * modules/modff (Files): Add m4/mathfunc.m4.
43135 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
43137         raise tests: Avoid a GCC warning.
43138         * tests/test-raise.c (handler): Use _Noreturn.
43140 2011-10-07  Bruno Haible  <bruno@clisp.org>
43142         Tests for module 'ldexpf'.
43143         * modules/ldexpf-tests: New file.
43144         * tests/test-ldexpf.c: New file.
43146         New module 'ldexpf'.
43147         * lib/math.in.h (ldexpf): New declaration.
43148         * lib/ldexpf.c: New file.
43149         * m4/ldexpf.m4: New file.
43150         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
43151         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
43152         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
43153         * modules/ldexpf: New file.
43154         * tests/test-math-c++.cc: Check the declaration of ldexpf.
43155         * doc/posix-functions/ldexpf.texi: Mention the new module.
43157 2011-10-06  Bruno Haible  <bruno@clisp.org>
43159         frexpf: Work around problems on IRIX and mingw.
43160         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
43161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
43162         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
43163         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
43164         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
43165         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
43166         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
43168 2011-10-06  Bruno Haible  <bruno@clisp.org>
43170         fabsf: Drop assumption about library that defines fabsf.
43171         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
43172         AC_CHECK_FUNCS.
43173         * modules/fabsf (Files): Add m4/mathfunc.m4.
43175 2011-10-06  Bruno Haible  <bruno@clisp.org>
43177         frexpf: Drop assumption about library that defines frexpf.
43178         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
43179         'int *', 'float *', 'long double *', 'float', 'long double'.
43180         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
43181         AC_CHECK_FUNCS.
43182         * modules/frexpf (Files): Add m4/mathfunc.m4.
43184         Tests for module 'frexpf'.
43185         * modules/frexpf-tests: New file.
43186         * tests/test-frexpf.c: New file.
43188         New module 'frexpf'.
43189         * lib/math.in.h (frexpf): New declaration.
43190         * lib/frexpf.c: New file.
43191         * m4/frexpf.m4: New file.
43192         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
43193         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
43194         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
43195         * modules/frexpf: New file.
43196         * tests/test-math-c++.cc: Check the declaration of frexpf.
43197         * doc/posix-functions/frexpf.texi: Mention the new module.
43199 2011-10-06  Bruno Haible  <bruno@clisp.org>
43201         math: Sort function declarations of math.in.h.
43202         * lib/math.in.h (frexp, logb): Move declarations.
43204 2011-10-05  Bruno Haible  <bruno@clisp.org>
43206         Tests for module 'modff'.
43207         * modules/modff-tests: New file.
43208         * tests/test-modff.c: New file.
43210         New module 'modff'.
43211         * lib/math.in.h (modff): New declaration.
43212         * lib/modff.c: New file.
43213         * m4/modff.m4: New file.
43214         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
43215         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
43216         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
43217         * modules/modff: New file.
43218         * tests/test-math-c++.cc: Check the declaration of modff.
43219         * doc/posix-functions/modff.texi: Mention the new module.
43221         modf tests: Make test sharper.
43222         * tests/test-modf.c (main): Strengthen upper bound.
43224         modf: Use a .m4 file.
43225         * m4/modf.m4: New file.
43226         * modules/modf (Files): Add it.
43227         (configure.ac): Just invoke gl_FUNC_MODF.
43229 2011-10-05  Bruno Haible  <bruno@clisp.org>
43231         Tests for module 'fmodf'.
43232         * modules/fmodf-tests: New file.
43233         * tests/test-fmodf.c: New file.
43235         New module 'fmodf'.
43236         * lib/math.in.h (fmodf): New declaration.
43237         * lib/fmodf.c: New file.
43238         * m4/fmodf.m4: New file.
43239         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
43240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
43241         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
43242         * modules/fmodf: New file.
43243         * tests/test-math-c++.cc: Check the declaration of fmodf.
43244         * doc/posix-functions/fmodf.texi: Mention the new module.
43246         fmod: Use a .m4 file.
43247         * m4/fmod.m4: New file.
43248         * modules/fmod (Files): Add it.
43249         (configure.ac): Just invoke gl_FUNC_FMOD.
43251 2011-10-05  Bruno Haible  <bruno@clisp.org>
43253         Tests for module 'fabsf'.
43254         * modules/fabsf-tests: New file.
43255         * tests/test-fabsf.c: New file.
43257         New module 'fabsf'.
43258         * lib/math.in.h (fabsf): New declaration.
43259         * lib/fabsf.c: New file.
43260         * m4/fabsf.m4: New file.
43261         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
43262         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
43263         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
43264         * modules/fabsf: New file.
43265         * tests/test-math-c++.cc: Check the declaration of fabsf.
43266         * doc/posix-functions/fabsf.texi: Mention the new module.
43268         fabs: Use a .m4 file.
43269         * m4/fabs.m4: New file.
43270         * modules/fabs (Files): Add it.
43271         (configure.ac): Just invoke gl_FUNC_FABS.
43273 2011-10-05  Jim Meyering  <meyering@redhat.com>
43275         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
43276         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
43277         ls -lL regression introduced in coreutils-8.12, it does so at the
43278         cost of an additional stat call in the common case.  Besides, now
43279         that the kernel change that prompted commit 95f7c57f has been reverted
43280         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
43281         we have no use for commit 95f7c57f, "file-has-acl: use
43282         acl_extended_file_nofollow if available".
43284 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
43286         file-has-acl: revert unintended change in behavior of ls -L
43287         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
43288         derived from...
43289         (file_has_acl): ...code here.  Call it.
43290         This problem was introduced with 2011-07-22 commit 95f7c57f,
43291         "file-has-acl: use acl_extended_file_nofollow if available".
43292         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
43294 2011-10-03  Bruno Haible  <bruno@clisp.org>
43296         poll: Avoid link errors on MSVC.
43297         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
43298         * modules/poll (Depends-on): Add sockets.
43299         (Link): New section.
43300         * NEWS: Mention the change.
43301         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
43302         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
43303         $(LIB_POLL) instead of $(LIBSOCKET).
43305 2011-10-03  Bruno Haible  <bruno@clisp.org>
43307         sys_select tests: Fix link error on MSVC 9.
43308         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
43309         with $(LIB_SELECT) instead of $(LIBSOCKET).
43311 2011-10-03  Bruno Haible  <bruno@clisp.org>
43313         sys_select: Fix compilation error on mingw.
43314         * lib/sys_select.in.h: On native Windows, include <io.h>.
43316 2011-10-03  Bruno Haible  <bruno@clisp.org>
43318         wmemset: Support for MSVC.
43319         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
43320         whether wmemset() exists.
43322 2011-10-03  Bruno Haible  <bruno@clisp.org>
43324         wmemmove: Support for MSVC.
43325         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
43326         whether wmemmove() exists.
43328 2011-10-03  Bruno Haible  <bruno@clisp.org>
43330         wmemcpy: Support for MSVC.
43331         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
43332         whether wmemcpy() exists.
43334 2011-10-03  Bruno Haible  <bruno@clisp.org>
43336         wmemcmp: Support for MSVC.
43337         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
43338         whether wmemcmp() exists.
43340 2011-10-03  Bruno Haible  <bruno@clisp.org>
43342         wmemchr: Support for MSVC.
43343         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
43344         whether wmemchr() exists.
43346 2011-10-03  Bruno Haible  <bruno@clisp.org>
43348         glthread/*, strsignal: Support for MSVC.
43349         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
43350         including <winsock.h> on MSVC 9.
43351         * lib/glthread/lock.h: Likewise.
43352         * lib/glthread/thread.h: Likewise.
43353         * lib/glthread/tls.h: Likewise.
43354         * lib/glthread/yield.h: Likewise.
43355         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
43356         if HAVE_UNISTD_H is false.
43357         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
43359 2011-10-03  Bruno Haible  <bruno@clisp.org>
43361         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
43362         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
43363         Set to 100000.
43365 2011-10-03  Bruno Haible  <bruno@clisp.org>
43367         acl: Fix specification.
43368         * lib/file-has-acl.c (file_has_acl): Fix specification.
43370 2011-10-03  Bruno Haible  <bruno@clisp.org>
43372         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
43373         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
43374         (compute_curr_prefix, shared_library_fullname,
43375         find_shared_library_fullname, get_shared_library_fullname, relocate):
43376         Use it together with PIC && INSTALLDIR.
43377         Reported by <jojelino@gmail.com>
43378         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
43380 2011-10-01  Jim Meyering  <meyering@redhat.com>
43382         maint.mk: adjust a release-related rule not to require use of gzip
43383         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
43384         Instead, check each file in $(DIST_ARCHIVES).  This is better for
43385         projects that build only .tar.xz files.  Also fix an erroneous test.
43387         test-linkat: don't leave behind a temporary file
43388         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
43389         Otherwise, coreutils' "make distcheck" would fail with this:
43390           Only in /c/cu/tests/torture/coreutils/test/\
43391             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
43392           make[2]: *** [my-distcheck] Error 1
43394         float, math: add omitted file
43395         * lib/itold.c: Add file, required for yesterday's float change.
43397 2011-10-01  Bruno Haible  <bruno@clisp.org>
43399         isinf: Fix for OpenBSD/x86.
43400         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
43401         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
43402         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
43404 2011-10-01  Bruno Haible  <bruno@clisp.org>
43406         isfinite: Fix syntax error in configure test.
43407         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
43409         isfinite: Fix typo.
43410         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
43411         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
43413 2011-10-01  Bruno Haible  <bruno@clisp.org>
43415         nonblocking tests: Fix test failure on Linux/IA-64.
43416         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
43417         Set to 270000.
43419 2011-10-01  Bruno Haible  <bruno@clisp.org>
43421         mkfifoat tests: Fix a test failure on mingw.
43422         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
43423         with error ENOSYS.
43425 2011-09-30  Bruno Haible  <bruno@clisp.org>
43427         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
43428         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
43429         'long double'. Set REPLACE_ITOLD.
43430         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
43431         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
43432         * lib/itold.c: New file.
43433         * modules/float (Files): Add lib/itold.c.
43434         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
43435         (Makefile.am): Substitute REPLACE_ITOLD.
43436         * modules/math (Depends-on): Add float.
43437         (Makefile.am): Substitute REPLACE_ITOLD.
43438         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
43439         * doc/posix-headers/math.texi: Likewise.
43440         * doc/posix-functions/logl.texi: Likewise.
43442 2011-09-30  Bruno Haible  <bruno@clisp.org>
43444         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
43445         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
43446         Set to 140000.
43448 2011-09-30  Bruno Haible  <bruno@clisp.org>
43450         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
43451         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
43452         invocation, say "right after AC_PROG_CC_STDC", not "right after
43453         AC_PROG_CC".
43454         Reported by Gary V. Vaughan <gary@gnu.org>.
43456 2011-09-30  Bruno Haible  <bruno@clisp.org>
43458         Centralize C99 requirement.
43459         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
43460         * modules/stdarg (configure.ac-early): Invoke it instead of
43461         AC_PROG_CC_STDC.
43462         Reported by Gary V. Vaughan and Paul Eggert.
43464 2011-09-29  Bruno Haible  <bruno@clisp.org>
43466         float: Fix LDBL_MAX value on Linux/PowerPC.
43467         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
43468         on Linux/PowerPC.
43469         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
43470         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
43471         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
43472         platform.
43473         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
43475 2011-09-29  Bruno Haible  <bruno@clisp.org>
43477         doc: Improve doc about gl_EARLY.
43478         * doc/gnulib-tool.texi (Initial import): Mention where to place an
43479         AC_PROG_CC_STDC invocation.
43480         Reported by Gary V. Vaughan <gary@gnu.org>.
43482 2011-09-28  Bruno Haible  <bruno@clisp.org>
43484         fgetc, fputc, fread, fwrite tests: Fix link error.
43485         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
43486         on non-MSVC platforms.
43487         * tests/test-fputc.c (main): Likewise.
43488         * tests/test-fread.c (main): Likewise.
43489         * tests/test-fwrite.c (main): Likewise.
43490         Reported by Jim Meyering.
43492 2011-09-27  Bruno Haible  <bruno@clisp.org>
43494         fputc, fwrite tests: Avoid test failure on MSVC.
43495         * tests/test-fgetc.c: Include msvc-inval.h.
43496         (main): Invoke gl_msvc_inval_ensure_handler.
43497         * tests/test-fputc.c: Include msvc-inval.h.
43498         (main): Invoke gl_msvc_inval_ensure_handler.
43499         * tests/test-fread.c: Include msvc-inval.h.
43500         (main): Invoke gl_msvc_inval_ensure_handler.
43501         * tests/test-fwrite.c: Include msvc-inval.h.
43502         (main): Invoke gl_msvc_inval_ensure_handler.
43503         * modules/fgetc-tests (Depends-on): Add msvc-inval.
43504         * modules/fputc-tests (Depends-on): Likewise.
43505         * modules/fread-tests (Depends-on): Likewise.
43506         * modules/fwrite-tests (Depends-on): Likewise.
43508 2011-09-27  Bruno Haible  <bruno@clisp.org>
43510         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
43511         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
43512         (raise): Remove older, duplicated declaration.
43513         (_gl_raise_SIGPIPE): New declaration.
43514         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
43515         (rpl_raise): Remove function.
43516         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
43517         a gnulib-defined SIGPIPE here.
43518         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
43519         'sigprocmask' has detected missing signal-blocking and the module
43520         'sigpipe' is enabled.
43521         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
43523 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
43525         base64-tests: avoid memory leak
43526         * tests/test-base64.c (main): Plug memory leak.
43528         base32: new module
43529         * modules/base32: New module.
43530         * lib/base32.c: New file.
43531         * lib/base32.h: Likewise.
43532         * m4/base32.m4: Likewise.
43533         * modules/base32-tests: New test.
43534         * tests/test-base32.c: Likewise.
43535         * MODULES.html.sh (Misc): Mention it.
43537 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43539         gnulib: use more-standard license notice wording
43540         * gnulib-tool (func_emit_copyright_notice): When emitting a
43541         license notice into a file, use the standard wording as suggested
43542         by the current information for GNU maintainers, except say "file"
43543         rather than "program".  The new wording gives a license version
43544         number, which addresses an issue raised by Glenn Morris in
43545         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
43546         * m4/onceonly.m4: Use that same wording here, too.
43548         dup2: minor simplification
43549         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
43550         as lib/dup2.c no longer uses 'inline'.
43552 2011-09-25  Bruno Haible  <bruno@clisp.org>
43554         strings: Fix compilation error on MSVC.
43555         * lib/strings.in.h: Include <stddef.h> for size_t.
43557 2011-09-25  Bruno Haible  <bruno@clisp.org>
43559         fflush et al.: Document limitation on MSVC.
43560         * doc/posix-functions/fflush.texi: Document possible crash in handling
43561         mode other than DEFAULT_HANDLING.
43562         * doc/posix-functions/fgetc.texi: Likewise.
43563         * doc/posix-functions/fputc.texi: Likewise.
43564         * doc/posix-functions/fread.texi: Likewise.
43565         * doc/posix-functions/fwrite.texi: Likewise.
43567 2011-09-25  Bruno Haible  <bruno@clisp.org>
43569         msvc-inval: Allow three invalid parameter handling modes.
43570         * lib/msvc-inval.h: Don't include <stdlib.h> here.
43571         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
43572         macros.
43573         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
43574         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
43575         SANE_LIBRARY_HANDLING as a no-op.
43576         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
43577         <stdlib.h>.
43578         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
43580 2011-09-25  Bruno Haible  <bruno@clisp.org>
43582         msvc-inval: Make handler multithread-safe.
43583         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
43584         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
43585         declarations.
43586         (gl_msvc_inval_current): New declaration.
43587         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
43588         Operate on the structure returned by gl_msvc_inval_current().
43589         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
43590         Remove varaiables.
43591         (tls_index, tls_initialized): New variables.
43592         (not_per_thread): New variable.
43593         (gl_msvc_inval_current): New function.
43594         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
43595         returned by gl_msvc_inval_current().
43597 2011-09-25  Bruno Haible  <bruno@clisp.org>
43599         msvc-inval: Install handler globally.
43600         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
43601         !_MSC_VER.
43602         (gl_msvc_invalid_parameter_handler): Remove declaration.
43603         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
43604         declarations.
43605         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
43606         Install the handler globally, don't uninstall it.
43607         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
43608         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
43609         currently valid, call RaiseException instead.
43610         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
43611         for !_MSC_VER.
43613 2011-09-25  Bruno Haible  <bruno@clisp.org>
43615         strerror_r-posix: Fix for MSVC 9.
43616         * lib/strerror_r.c (local_snprintf): New function.
43617         (snprintf): Define to local_snprintf, not to _snprintf.
43619 2011-09-25  Bruno Haible  <bruno@clisp.org>
43621         ftruncate: Support for MSVC 9.
43622         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
43623         (chsize_nothrow): New function.
43624         (chsize): Redefine as a macro.
43625         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
43626         * modules/ftruncate (Depends-on): Add msvc-inval.
43628 2011-09-25  Bruno Haible  <bruno@clisp.org>
43630         New module 'fstat'.
43631         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
43632         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
43633         * lib/fchdir.c (rpl_fstat): Remove function.
43634         * m4/fstat.m4: New file.
43635         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
43636         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
43637         declared.
43638         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
43639         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
43640         * modules/fstat: New file.
43641         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
43642         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
43643         is set.
43644         * doc/posix-functions/fstat.texi: Mention the new module and the
43645         problem on MSVC.
43646         * NEWS: Mention the change.
43647         * modules/acl (Depends-on): Add fstat.
43648         * modules/chdir-safer (Depends-on): Likewise.
43649         * modules/chown (Depends-on): Likewise.
43650         * modules/copy-file (Depends-on): Likewise.
43651         * modules/fchdir (Depends-on): Likewise.
43652         * modules/fdopendir (Depends-on): Likewise.
43653         * modules/fopen (Depends-on): Likewise.
43654         * modules/fts (Depends-on): Likewise.
43655         * modules/getcwd (Depends-on): Likewise.
43656         * modules/isapipe (Depends-on): Likewise.
43657         * modules/linkat (Depends-on): Likewise.
43658         * modules/lseek (Depends-on): Likewise.
43659         * modules/mkdir-p (Depends-on): Likewise.
43660         * modules/open (Depends-on): Likewise.
43661         * modules/openat (Depends-on): Likewise.
43662         * modules/read-file (Depends-on): Likewise.
43663         * modules/renameat (Depends-on): Likewise.
43664         * modules/utimens (Depends-on): Likewise.
43666 2011-09-25  Bruno Haible  <bruno@clisp.org>
43668         linkat: Fix compilation on MSVC 9.
43669         * lib/linkat.c: Don't include <stdint.h>.
43671 2011-09-25  Bruno Haible  <bruno@clisp.org>
43673         fclose: Support for MSVC 9.
43674         * lib/fclose.c: Include msvc-inval.h.
43675         (fclose_nothrow): New function.
43676         (rpl_fclose): Use it.
43677         * modules/fclose (Depends-on): Add msvc-inval.
43678         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
43680 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
43682         dup2: minor simplifications
43683         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
43684         that it's a performance win.
43685         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
43686         ! defined __CYGWIN__)" to "ifdef F_GETFL".
43688 2011-09-24  Jim Meyering  <meyering@redhat.com>
43690         test-futimens: avoid a warning from gcc -Wshadow
43691         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
43692         to avoid a shadowing warning.
43694 2011-09-24  Bruno Haible  <bruno@clisp.org>
43696         fdopen: Support for MSVC 9.
43697         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
43698         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
43699         * lib/fdopen.c: Include msvc-inval.h.
43700         (fdopen_nothrow): New function.
43701         (rpl_fdopen): Use it.
43702         * modules/fdopen (Depends-on): Add msvc-inval.
43703         * modules/fclose-tests (Depends-on): Add fdopen.
43704         * modules/fflush-tests (Depends-on): Likewise.
43705         * modules/fgetc-tests (Depends-on): Likewise.
43706         * modules/fputc-tests (Depends-on): Likewise.
43707         * modules/fread-tests (Depends-on): Likewise.
43708         * modules/freopen-tests (Depends-on): Likewise.
43709         * modules/fseeko-tests (Depends-on): Likewise.
43710         * modules/ftello-tests (Depends-on): Likewise.
43711         * modules/fwrite-tests  (Depends-on): Likewise.
43712         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
43714 2011-09-24  Bruno Haible  <bruno@clisp.org>
43716         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
43717         * modules/fgetc-tests (Depends-on): Add unistd.
43718         * modules/fputc-tests (Depends-on): Likewise.
43719         * modules/fread-tests (Depends-on): Likewise.
43720         * modules/fwrite-tests (Depends-on): Likewise.
43722 2011-09-24  Bruno Haible  <bruno@clisp.org>
43724         dup: Simplify autoconf test.
43725         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
43726         on gl_MSVC_INVAL's result.
43728 2011-09-24  Bruno Haible  <bruno@clisp.org>
43730         Tests for function fwrite().
43731         * modules/fwrite-tests: New file.
43732         * tests/test-fwrite.c: New file.
43733         * modules/stdio-tests (Depends-on): Add fwrite-tests.
43735         Tests for function fread().
43736         * modules/fread-tests: New file.
43737         * tests/test-fread.c: New file.
43738         * modules/stdio-tests (Depends-on): Add fread-tests.
43740         Activate fputc tests.
43741         * modules/stdio-tests (Depends-on): Add fputc-tests.
43743         Enhance fgetc, fputc tests.
43744         * tests/test-fgetc.c (main): Also test the stream's error indicator.
43745         * tests/test-fputc.c (main): Likewise.
43747 2011-09-24  Bruno Haible  <bruno@clisp.org>
43749         write: Support for MSVC 9.
43750         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
43751         is not 1.
43752         * lib/write.c (write_nothrow): New function.
43753         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
43754         not 1. Use write_nothrow.
43755         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
43756         invalid parameter handler.
43757         (gl_PREREQ_WRITE): New macro.
43758         * modules/write (Depends-on): Add msvc-inval.
43759         (configure.ac): Invoke gl_PREREQ_WRITE.
43760         * doc/posix-functions/write.texi: Mention the problem on MSVC.
43762 2011-09-24  Bruno Haible  <bruno@clisp.org>
43764         read: Fix last commit.
43765         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
43767 2011-09-24  Bruno Haible  <bruno@clisp.org>
43769         dup2: Fix last commit.
43770         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
43771         (rpl_dup2): Disable fcntl workaround on native Windows.
43773         sigprocmask: Make code safer.
43774         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
43775         section that changes macro definitions for this compilation unit.
43777 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
43779         dup2: clarify by coalescing Windows-specific material
43780         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
43781         "msvc-nothrow.h"' to the Windows-specific section, so that the
43782         Emacs source need not contain these include files.
43783         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
43784         Windows-specific fixes into this function rather than just the
43785         nothrow fix, as this shortens and clarifies the code.  Always
43786         define as a function, as that's a bit cleaner than having it be
43787         sometimes a function and sometimes a macro.
43788         (rpl_dup2): Move the Windows-specific stuff out of here and into
43789         ms_windows_dup2.  Don't protect the Haiku-related fix with
43790         "#if !defined __linux__", as the same code also works around
43791         a Linux kernel bug, and it doesn't add any system calls on any
43792         platform.  Add comment about FreeBSD 6.1.
43794         sigprocmask: move #include directive
43795         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
43796         Windows-specific section, so that the Emacs source need not
43797         contain msvc-inval.h.
43799 2011-09-23  Bruno Haible  <bruno@clisp.org>
43801         read: Support for MSVC 9.
43802         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
43803         is not 1.
43804         * lib/read.c (read_nothrow): New function.
43805         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
43806         read_nothrow.
43807         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
43808         invalid parameter handler.
43809         (gl_PREREQ_READ): New macro.
43810         * modules/read (Depends-on): Add msvc-inval.
43811         (configure.ac): Invoke gl_PREREQ_READ.
43812         * doc/posix-functions/read.texi: Mention the problem on MSVC.
43814 2011-09-23  Bruno Haible  <bruno@clisp.org>
43816         close: Support for MSVC 9.
43817         * lib/close.c: Include <errno.h>, msvc-inval.h.
43818         (close_nothrow): New function.
43819         (rpl_close): Use it.
43820         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
43821         invalid parameter handler.
43822         * modules/close (Depends-on): Add msvc-inval.
43823         * modules/dup2-tests (Depends-on): Add close.
43824         * modules/dup3-tests (Depends-on): Likewise.
43825         * modules/fcntl-tests (Depends-on): Likewise.
43826         * modules/spawn-pipe-tests (Depends-on): Likewise.
43827         * modules/unistd-safer-tests (Depends-on): Likewise.
43828         * doc/posix-functions/close.texi: Mention the problem on MSVC.
43830 2011-09-23  Bruno Haible  <bruno@clisp.org>
43832         New module 'dup'.
43833         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
43834         Allow replacement.
43835         * lib/dup.c: New file.
43836         * lib/fchdir.c (rpl_dup): Remove function.
43837         * m4/dup.m4: New file.
43838         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
43839         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
43840         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
43841         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
43842         * modules/dup: New file.
43843         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
43844         'dup' module is in use.
43845         * modules/fdopendir (Depends-on): Add dup.
43846         * modules/fdutimensat-tests (Depends-on): Likewise.
43847         * modules/fts (Depends-on): Likewise.
43848         * modules/futimens-tests (Depends-on): Likewise.
43849         * modules/posix_spawnp-tests (Depends-on): Likewise.
43850         * modules/unistd-safer-tests (Depends-on): Likewise.
43851         * modules/utimens-tests (Depends-on): Likewise.
43852         * doc/posix-functions/dup.texi: Mention the new module and the problem
43853         on MSVC.
43855 2011-09-23  Bruno Haible  <bruno@clisp.org>
43857         getdtablesize: Support for MSVC 9.
43858         * lib/getdtablesize.c: Include msvc-inval.h.
43859         (_setmaxstdio_nothrow): New function.
43860         (_setmaxstdio): Redefine it.
43861         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
43862         * modules/getdtablesize (Depends-on): Add msvc-inval.
43863         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
43865 2011-09-23  Bruno Haible  <bruno@clisp.org>
43867         signal-h: Rename from signal.
43868         * modules/signal-h: Renamed from modules/signal.
43869         * modules/pthread_sigmask (Depends-on): Update.
43870         * modules/raise (Depends-on): Likewise.
43871         * modules/sigaction (Depends-on): Likewise.
43872         * modules/sigpipe (Depends-on): Likewise.
43873         * modules/sigprocmask (Depends-on): Likewise.
43874         * modules/sys_select (Depends-on): Likewise.
43875         * modules/signal-h-tests: Renamed from modules/signal-tests.
43876         (Files, Depends-on, Makefile.am): Update.
43877         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
43878         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
43879         (Files, Makefile.am): Update.
43880         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
43881         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
43882         * modules/signal: New placeholder file.
43883         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
43884         * doc/posix-headers/signal.texi: Update.
43885         * NEWS: Mention the change.
43887 2011-09-23  Bruno Haible  <bruno@clisp.org>
43889         sigprocmask: Avoid crashes through signal() on MSVC 9.
43890         * lib/sigprocmask.c: Include msvc-inval.h.
43891         (signal_nothrow): New function.
43892         (signal): Redefine it.
43893         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
43894         * modules/sigprocmask (Depends-on): Add msvc-inval.
43895         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
43897 2011-09-23  Bruno Haible  <bruno@clisp.org>
43899         Tests for module 'raise'.
43900         * modules/raise-tests: New file.
43901         * tests/test-raise.c: New file.
43903         raise: Support for MSVC.
43904         * lib/signal.in.h (raise): New declaration.
43905         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
43906         for native Windows platforms.
43907         * m4/raise.m4: New file.
43908         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
43909         HAVE_RAISE, REPLACE_RAISE.
43910         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
43911         REPLACE_RAISE.
43912         * modules/raise (Status, Notice): Remove fields.
43913         (Files): Add m4/raise.m4.
43914         (Depends-on): Add signal, msvc-inval.
43915         (configure.ac): Use the common idioms.
43916         (Maintainer): Add me.
43917         * tests/test-signal-c++.cc: Check the signature of raise.
43918         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
43920 2011-09-23  Bruno Haible  <bruno@clisp.org>
43922         pipe2: Fix compilation on pre-C99 compilers.
43923         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
43925 2011-09-23  Bruno Haible  <bruno@clisp.org>
43927         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
43928         * lib/msvc-nothrow.h: New file.
43929         * lib/msvc-nothrow.c: New file.
43930         * m4/msvc-nothrow.m4: New file.
43931         * modules/msvc-nothrow: New file.
43932         * lib/dup2.c: Include msvc-nothrow.h.
43933         (rpl_dup2): No need to protect _get_osfhandle call here.
43934         * lib/accept4.c: Include msvc-nothrow.h.
43935         * lib/error.c: Likewise.
43936         * lib/fcntl.c: Likewise.
43937         * lib/lseek.c: Likewise.
43938         * lib/nonblocking.c: Likewise.
43939         * lib/poll.c: Likewise.
43940         * lib/read.c: Likewise.
43941         * lib/select.c: Likewise.
43942         * lib/sockets.h: Likewise.
43943         * lib/sockets.c: Likewise.
43944         * lib/stdio-read.c: Likewise.
43945         * lib/stdio-write.c: Likewise.
43946         * lib/write.c: Likewise.
43947         * lib/w32sock.h: Likewise.
43948         * lib/w32spawn.h: Likewise.
43949         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
43950         * lib/fsync.c: Likewise.
43951         * lib/isapipe.c: Likewise.
43952         * modules/dup2 (Depends-on): Add msvc-nothrow.
43953         * modules/accept4 (Depends-on): Likewise.
43954         * modules/error (Depends-on): Likewise.
43955         * modules/fcntl (Depends-on): Likewise.
43956         * modules/lseek (Depends-on): Likewise.
43957         * modules/nonblocking (Depends-on): Likewise.
43958         * modules/poll (Depends-on): Likewise.
43959         * modules/read (Depends-on): Likewise.
43960         * modules/select (Depends-on): Likewise.
43961         * modules/sockets (Depends-on): Likewise.
43962         * modules/sigpipe (Depends-on): Likewise.
43963         * modules/write (Depends-on): Likewise.
43964         * modules/accept (Depends-on): Likewise.
43965         * modules/bind (Depends-on): Likewise.
43966         * modules/connect (Depends-on): Likewise.
43967         * modules/gethostname (Depends-on): Likewise.
43968         * modules/getpeername (Depends-on): Likewise.
43969         * modules/getsockname (Depends-on): Likewise.
43970         * modules/getsockopt (Depends-on): Likewise.
43971         * modules/ioctl (Depends-on): Likewise.
43972         * modules/listen (Depends-on): Likewise.
43973         * modules/recv (Depends-on): Likewise.
43974         * modules/recvfrom (Depends-on): Likewise.
43975         * modules/send (Depends-on): Likewise.
43976         * modules/sendto (Depends-on): Likewise.
43977         * modules/setsockopt (Depends-on): Likewise.
43978         * modules/shutdown (Depends-on): Likewise.
43979         * modules/socket (Depends-on): Likewise.
43980         * modules/execute (Depends-on): Likewise.
43981         * modules/spawn-pipe (Depends-on): Likewise.
43982         * modules/flock (Depends-on): Likewise.
43983         * modules/fsync (Depends-on): Likewise.
43984         * modules/isapipe (Depends-on): Likewise.
43985         * tests/test-cloexec.c: Include msvc-nothrow.h.
43986         * tests/test-dup-safer.c: Likewise.
43987         * tests/test-dup2.c: Likewise.
43988         * tests/test-dup3.c: Likewise.
43989         * tests/test-fcntl.c: Likewise.
43990         * tests/test-pipe.c: Likewise.
43991         * tests/test-pipe2.c: Likewise.
43992         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
43993         * modules/unistd-safer-tests (Depends-on): Likewise.
43994         * modules/dup2-tests (Depends-on): Likewise.
43995         * modules/dup3-tests (Depends-on): Likewise.
43996         * modules/fcntl-tests (Depends-on): Likewise.
43997         * modules/pipe-posix-tests (Depends-on): Likewise.
43998         * modules/pipe2-tests (Depends-on): Likewise.
44000 2011-09-23  Bruno Haible  <bruno@clisp.org>
44002         dup2: Make code more maintainable.
44003         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
44004         (rpl_dup2): Use it.
44005         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
44006         * modules/dup2 (configure.ac): Invoke it.
44007         Reported by Paul Eggert.
44009 2011-09-23  Bruno Haible  <bruno@clisp.org>
44011         msvc-inval: Fix compilation error.
44012         * lib/msvc-inval.h: Include <excpt.h>.
44014 2011-09-23  Bruno Haible  <bruno@clisp.org>
44016         mkdir: Tweak for MSVC 9.
44017         * lib/sys_stat.in.h: Update comments.
44018         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
44020         Tests for module 'chdir'.
44021         * modules/chdir-tests: New file.
44022         * tests/test-chdir.c: New file.
44024         New module 'chdir'.
44025         * modules/chdir: New file.
44026         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
44027         (chdir): New declaration.
44028         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
44029         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
44030         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
44031         * tests/test-unistd-c++.cc: Check signature of chdir.
44032         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
44033         * modules/chdir-long (Depends-on): Add chdir.
44034         * modules/fchdir (Depends-on): Likewise.
44035         * modules/rename (Depends-on): Likewise.
44036         * modules/savewd (Depends-on): Likewise.
44038         rmdir: Support for mingw, MSVC 9.
44039         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
44040         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
44042         getcwd: Tweak for MSVC 9.
44043         * lib/unistd.in.h: Update comments.
44044         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
44046 2011-09-22  Bruno Haible  <bruno@clisp.org>
44048         strerror_r-posix: Avoid a link error on MSVC.
44049         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
44050         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
44052 2011-09-22  Bruno Haible  <bruno@clisp.org>
44054         select: Avoid link errors on MSVC.
44055         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
44056         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
44057         * modules/pselect (Link): Likewise.
44058         * NEWS: Mention the change.
44059         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
44060         test-select-stdin against $(LIB_SELECT).
44061         * modules/pselect-tests (Makefile.am): Link test-pselect against
44062         $(LIB_SELECT).
44064 2011-09-22  Bruno Haible  <bruno@clisp.org>
44066         select: Avoid compilation error on MSVC.
44067         * lib/select.c: Don't include <stdbool.h>.
44069 2011-09-21  Bruno Haible  <bruno@clisp.org>
44071         Consolidate all uses of PATH_MAX in *.m4 files.
44072         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
44073         macros.
44074         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
44075         and gl_PATHMAX_SNIPPET.
44076         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
44077         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44078         * modules/chdir-long (Files): Add m4/pathmax.m4.
44079         * modules/getcwd (Files): Likewise.
44081 2011-09-21  Bruno Haible  <bruno@clisp.org>
44083         ftruncate: Un-deprecate, concentrate on Win32 support.
44084         * modules/ftruncate (Status, Notice): Remove sections.
44085         (Depends-on): Add largefile.
44086         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
44087         non-mingw platforms.
44088         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
44089         include <io.h>.
44090         * modules/perror-tests (Depends-on): Add ftruncate.
44091         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
44092         'ftruncate' module.
44094 2011-09-21  Bruno Haible  <bruno@clisp.org>
44096         Add dependencies to new dirent related modules.
44097         * modules/opendir (Depends-on): Add closedir.
44098         * modules/getcwd (Depends-on): Add opendir, closedir.
44099         * modules/dirent-safer-tests (Depends-on): Likewise.
44100         * modules/fdopendir-tests (Depends-on): Likewise.
44101         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
44102         * modules/renameat-tests (Depends-on): Likewise.
44104 2011-09-21  Bruno Haible  <bruno@clisp.org>
44106         opendir: Avoid compilation error on mingw.
44107         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
44108         * modules/opendir (Depends-on): Add unistd.
44110 2011-09-21  Bruno Haible  <bruno@clisp.org>
44112         ftruncate tests: Avoid a test failure on mingw.
44113         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
44115 2011-09-21  Bruno Haible  <bruno@clisp.org>
44117         select tests: Avoid test failures on OSF/1 5.1 and mingw.
44118         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
44119         native Windows.
44121 2011-09-21  Bruno Haible  <bruno@clisp.org>
44123         New module 'fdopen'.
44124         * lib/stdio.in.h (fdopen): New declaration.
44125         * lib/fdopen.c: New file.
44126         * m4/fdopen.m4: New file.
44127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
44128         REPLACE_FDOPEN.
44129         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
44130         REPLACE_FDOPEN.
44131         * modules/fdopen: New file.
44132         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
44133         * tests/test-stdio-c++.cc: Check signature of fdopen.
44134         * doc/posix-functions/fdopen.texi: Mention the new module.
44136 2011-09-21  Bruno Haible  <bruno@clisp.org>
44138         unlockpt tests: Avoid test failure on NetBSD 5.1.
44139         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
44140         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
44142 2011-09-21  Bruno Haible  <bruno@clisp.org>
44144         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
44145         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
44146         * tests/test-getlogin_r.c (main): Likewise.
44148 2011-09-20  Bruno Haible  <bruno@clisp.org>
44150         time tests: Don't require pid_t.
44151         * doc/posix-headers/time.texi: Revert last change.
44152         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
44153         * tests/test-time.c: Comment out the check for pid_t.
44155 2011-09-20  Bruno Haible  <bruno@clisp.org>
44157         fsync tests: Avoid a test failure on mingw.
44158         * tests/test-fsync.c (main): Allow a failure with EIO.
44160 2011-09-20  Bruno Haible  <bruno@clisp.org>
44162         euidaccess: Update comments.
44163         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
44165 2011-09-20  Bruno Haible  <bruno@clisp.org>
44167         Ensure EBADF returns for socket functions on mingw.
44168         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
44169         descriptor is invalid.
44170         * lib/bind.c (rpl_bind): Likewise.
44171         * lib/connect.c (rpl_connect): Likewise.
44172         * lib/getpeername.c (rpl_getpeername): Likewise.
44173         * lib/getsockname.c (rpl_getsockname): Likewise.
44174         * lib/getsockopt.c (rpl_getsockopt): Likewise.
44175         * lib/listen.c (rpl_listen): Likewise.
44176         * lib/recv.c (rpl_recv): Likewise.
44177         * lib/recvfrom.c (rpl_recvfrom): Likewise.
44178         * lib/send.c (rpl_send): Likewise.
44179         * lib/sendto.c (rpl_sendto): Likewise.
44180         * lib/setsockopt.c (rpl_setsockopt): Likewise.
44181         * lib/shutdown.c (rpl_shutdown): Likewise.
44183 2011-09-20  Bruno Haible  <bruno@clisp.org>
44185         select tests: EBADF tests.
44186         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
44187         test_bad_fd): New functions.
44188         (test_function): Invoke also test_bad_fd.
44190 2011-09-20  Bruno Haible  <bruno@clisp.org>
44192         Tests for module 'posix_spawn_file_actions_addopen.
44193         * modules/posix_spawn_file_actions_addopen-tests: New file.
44194         * tests/test-posix_spawn_file_actions_addopen.c: New file.
44196         Tests for module 'posix_spawn_file_actions_adddup2'.
44197         * modules/posix_spawn_file_actions_adddup2-tests: New file.
44198         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
44200         Tests for module 'posix_spawn_file_actions_addclose'.
44201         * modules/posix_spawn_file_actions_addclose-tests: New file.
44202         * tests/test-posix_spawn_file_actions_addclose.c: New file.
44204 2011-09-20  Bruno Haible  <bruno@clisp.org>
44206         Tests for module 'unlockpt'.
44207         * modules/unlockpt-tests: New file.
44208         * tests/test-unlockpt.c: New file.
44209         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
44211         Tests for module 'grantpt'.
44212         * modules/grantpt-tests: New file.
44213         * tests/test-grantpt.c: New file.
44214         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
44216 2011-09-20  Bruno Haible  <bruno@clisp.org>
44218         freopen tests: EBADF tests.
44219         * tests/test-freopen.c: Include errno.h, unistd.h.
44220         (main): Add tests for EBADF, commented out for the moment.
44222         fclose tests: EBADF tests.
44223         * tests/test-fclose.c (main): Add tests for EBADF.
44225         fflush tests: EBADF tests.
44226         * tests/test-fflush.c: Include errno.h, macros.h.
44227         (main): Add tests for EBADF.
44229         ftello tests: EBADF tests.
44230         * tests/test-ftello4.sh: New file.
44231         * tests/test-ftello4.c: New file.
44232         * modules/ftello-tests (Files): Add them.
44233         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
44235         fseeko tests: EBADF tests.
44236         * tests/test-fseeko4.sh: New file.
44237         * tests/test-fseeko4.c: New file.
44238         * modules/fseeko-tests (Files): Add them.
44239         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
44241         Tests for function fputc().
44242         * modules/fputc-tests: New file.
44243         * tests/test-fputc.c: New file.
44244         * modules/stdio-tests (Depends-on): Add fputc-tests.
44246         Tests for function fgetc().
44247         * modules/fgetc-tests: New file.
44248         * tests/test-fgetc.c: New file.
44249         * modules/stdio-tests (Depends-on): Add fgetc-tests.
44251         Tests for function fdopen().
44252         * modules/fdopen-tests: New file.
44253         * tests/test-fdopen.c: New file.
44254         * modules/stdio-tests (Depends-on): Add fdopen-tests.
44256         Tests for module 'vdprintf'.
44257         * modules/vdprintf-tests: New file.
44258         * tests/test-vdprintf.c: New file.
44260         Tests for module 'dprintf'.
44261         * modules/dprintf-tests: New file.
44262         * tests/test-dprintf.c: New file.
44264 2011-09-20  Bruno Haible  <bruno@clisp.org>
44266         Tests for module 'ioctl'.
44267         * modules/ioctl-tests: New file.
44268         * tests/test-ioctl.c: New file.
44270 2011-09-20  Bruno Haible  <bruno@clisp.org>
44272         fcntl tests: EBADF tests.
44273         * tests/test-fcntl.c (main): Add more tests for EBADF.
44275 2011-09-20  Bruno Haible  <bruno@clisp.org>
44277         utimensat tests: EBADF tests.
44278         * tests/test-utimensat.c (main): Add tests for EBADF.
44280         renameat tests: EBADF tests.
44281         * tests/test-renameat.c (main): Add tests for EBADF.
44283         mkfifoat tests: EBADF tests.
44284         * tests/test-mkfifoat.c (main): Add tests for EBADF.
44286         readlinkat tests: EBADF tests.
44287         * tests/test-readlinkat.c (main): Add tests for EBADF.
44289         symlinkat tests: EBADF tests.
44290         * tests/test-symlinkat.c (main): Add tests for EBADF.
44292         linkat tests: EBADF tests.
44293         * tests/test-linkat.c (main): Add tests for EBADF.
44295         Tests for module 'faccessat'.
44296         * modules/faccessat-tests: New file.
44297         * tests/test-faccessat.c: New file.
44299         fdopendir tests: EBADF tests.
44300         * tests/test-fdopendir.c (main): Add more tests for EBADF.
44302         openat tests: EBADF tests.
44303         * tests/test-fchownat.c (main): Add tests for EBADF.
44304         * tests/test-fstatat.c (main): Likewise.
44305         * tests/test-mkdirat.c (main): Likewise.
44306         * tests/test-openat.c (main): Likewise.
44307         * tests/test-unlinkat.c (main): Likewise.
44308         * tests/test-fchmodat.c: New file.
44309         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
44310         (Makefile.am): Also run 'test-fchmodat'.
44312 2011-09-20  Bruno Haible  <bruno@clisp.org>
44314         utimens, futimens, fdutimensat tests: EBADF tests.
44315         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
44317         Tests for function fstat().
44318         * modules/fstat-tests: New file.
44319         * tests/test-fstat.c: New file.
44320         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
44322 2011-09-20  Bruno Haible  <bruno@clisp.org>
44324         test-ttyname_r tests: EBADF tests.
44325         * tests/test-ttyname_r.c (main): Add tests for EBADF.
44327         Tests for module 'isatty'.
44328         * modules/isatty-tests: New file.
44329         * tests/test-isatty.c: New file.
44331         Tests for module 'write'.
44332         * modules/write-tests: New file.
44333         * tests/test-write.c: New file.
44335         Tests for module 'read'.
44336         * modules/read-tests: New file.
44337         * tests/test-read.c: New file.
44339         pwrite tests: EBADF tests.
44340         * tests/test-pwrite.c (main): Add tests for EBADF.
44342         pread tests: EBADF tests.
44343         * tests/test-pread.c (main): Add tests for EBADF.
44345         lseek tests: EBADF tests.
44346         * tests/test-lseek.c (main): Add more tests for EBADF.
44348         Tests for module 'ftruncate'.
44349         * modules/ftruncate-tests: New file.
44350         * tests/test-ftruncate.sh: New file.
44351         * tests/test-ftruncate.c: New file.
44353         fsync tests: EBADF tests.
44354         * tests/test-fsync.c (main): Add more tests for EBADF.
44356         fdatasync tests: EBADF tests.
44357         * tests/test-fdatasync.c (main): Add more tests for EBADF.
44359         Tests for module 'fchown'.
44360         * modules/fchown-tests: New file.
44361         * tests/test-fchown.c: New file.
44363         Tests for module 'fchmod'.
44364         * modules/fchmod-tests: New file.
44365         * tests/test-fchmod.c: New file.
44367         fchdir tests: EBADF tests.
44368         * tests/test-fchdir.c (main): Add more tests for EBADF.
44370         dup2 tests: EBADF tests.
44371         * tests/test-dup2.c (main): Add more tests for EBADF.
44373         Tests for module 'dup'.
44374         * modules/dup-tests: New file.
44375         * tests/test-dup.c: New file.
44377         Tests for module 'close'.
44378         * modules/close-tests: New file.
44379         * tests/test-close.c: New file.
44381 2011-09-20  Bruno Haible  <bruno@clisp.org>
44383         Tests for module 'shutdown'.
44384         * modules/shutdown-tests: New file.
44385         * tests/test-shutdown.c: New file.
44387         Tests for module 'setsockopt'.
44388         * modules/setsockopt-tests: New file.
44389         * tests/test-setsockopt.c: New file.
44391         Tests for module 'sendto'.
44392         * modules/sendto-tests: New file.
44393         * tests/test-sendto.c: New file.
44395         Tests for module 'send'.
44396         * modules/send-tests: New file.
44397         * tests/test-send.c: New file.
44399         Tests for module 'recvfrom'.
44400         * modules/recvfrom-tests: New file.
44401         * tests/test-recvfrom.c: New file.
44403         Tests for module 'recv'.
44404         * modules/recv-tests: New file.
44405         * tests/test-recv.c: New file.
44407         Tests for module 'listen'.
44408         * modules/listen-tests: New file.
44409         * tests/test-listen.c: New file.
44411         Tests for module 'getsockopt'.
44412         * modules/getsockopt-tests: New file.
44413         * tests/test-getsockopt.c: New file.
44415         Tests for module 'getsockname'.
44416         * modules/getsockname-tests: New file.
44417         * tests/test-getsockname.c: New file.
44419         Tests for module 'getpeername'.
44420         * modules/getpeername-tests: New file.
44421         * tests/test-getpeername.c: New file.
44423         Tests for module 'connect'.
44424         * modules/connect-tests: New file.
44425         * tests/test-connect.c: New file.
44427         Tests for module 'bind'.
44428         * modules/bind-tests: New file.
44429         * tests/test-bind.c: New file.
44431         accept4 tests: Fix for native Windows.
44432         * tests/test-accept4.c: Include sockets.h.
44433         (main): Invoke gl_sockets_startup.
44434         * modules/accept4-tests (Depends-on): Add sockets.
44436         accept tests: Fix for native Windows.
44437         * tests/test-accept.c: Include sockets.h.
44438         (main): Invoke gl_sockets_startup.
44439         * modules/accept-tests (Depends-on): Add sockets.
44441 2011-09-19  Bruno Haible  <bruno@clisp.org>
44443         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
44444         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
44445         do...while(0).
44446         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
44447         Suggested by Paul Eggert.
44449 2011-09-19  Bruno Haible  <bruno@clisp.org>
44451         sched: Ensure pid_t is defined.
44452         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
44453         not define pid_t.
44454         * lib/sched.in.h: Include <sys/types.h>.
44455         * doc/posix-headers/sched.texi: Mention the pid_t problem.
44456         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44458 2011-09-19  Bruno Haible  <bruno@clisp.org>
44460         msvc-inval: Ensure the entire expansion is a single statement.
44461         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
44462         of braces.
44464 2011-09-19  Jim Meyering  <meyering@redhat.com>
44466         tests: use printf, not echo in init.sh's warn_ function
44467         * tests/init.sh (warn_): Use printf, not echo.  The latter would
44468         misbehave when given strings containing a backslash or starting
44469         with e.g., -n.  James Youngman suggested setting IFS.
44471 2011-09-19  Eric Blake  <eblake@redhat.com>
44473         futimens: enhance test
44474         * tests/test-futimens.h (test_futimens): Also check for EBADF on
44475         closed non-negative fd.
44477         date: accept 'hence' as opposite of 'ago'
44478         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
44479         * tests/test-parse-datetime.c (main): Enhance test.
44480         Suggested by Jesse Wilson.
44482 2011-09-19  Jim Meyering  <meyering@redhat.com>
44484         getcwd: don't fail in a deep directory on a system without openat
44485         Before this change, getcwd would fail when called from a directory
44486         of depth PATH_MAX / 3 or greater.  That was due to the fact that
44487         the non-openat implementation used "..", "../..", "../../..", etc.
44488         to access ancestor directories.  With too many, that string would
44489         be longer than PATH_MAX.
44490         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
44491         using gnulib's openat replacement.
44492         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
44493         we're using the replacement function.
44495 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
44497         maint.mk: avoid warnings from perl about missing files
44498         * top/maint.mk (def_sym_regex): Ignore files listed in
44499         $(gl_other_headers_) that do not exist, say because a project
44500         does not use a corresponding module.
44502 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
44504         stat: use pathmax.h only if needed
44505         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
44506         This is better for Emacs, which does not have a mingw port and
44507         therefore can avoid the pathmax module.
44509         utimens: remove dependency on dup2
44510         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
44511         to work around the Linux kernel bug.
44512         * modules/utimens (Depends-on): Remove dup2.
44514 2011-09-18  Bruno Haible  <bruno@clisp.org>
44516         inet_ntop, inet_pton: Look for it also in libresolv.
44517         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
44518         libnsl, search for it in libresolv.
44519         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
44520         Needed on Solaris 7.
44522 2011-09-18  Bruno Haible  <bruno@clisp.org>
44524         accept, accept4 tests: Avoid link error on Solaris.
44525         * modules/accept-tests (Makefile.am): Link test-accept against
44526         $(LIBSOCKET).
44527         * modules/accept4-tests (Makefile.am): Link test-accept4 against
44528         $(LIBSOCKET).
44530         accept4: Avoid link error on Solaris.
44531         * modules/accept4 (Link): New section.
44533         socket functions: Avoid link errors on Solaris.
44534         * modules/accept (Depends-on): Add socketlib.
44535         (Link): New section.
44536         * modules/bind (Depends-on): Add socketlib.
44537         (Link): New section.
44538         * modules/connect (Depends-on): Add socketlib.
44539         (Link): New section.
44540         * modules/getpeername (Depends-on): Add socketlib.
44541         (Link): New section.
44542         * modules/getsockname (Depends-on): Add socketlib.
44543         (Link): New section.
44544         * modules/getsockopt (Depends-on): Add socketlib.
44545         (Link): New section.
44546         * modules/listen (Depends-on): Add socketlib.
44547         (Link): New section.
44548         * modules/recv (Depends-on): Add socketlib.
44549         (Link): New section.
44550         * modules/recvfrom (Depends-on): Add socketlib.
44551         (Link): New section.
44552         * modules/send (Depends-on): Add socketlib.
44553         (Link): New section.
44554         * modules/sendto (Depends-on): Add socketlib.
44555         (Link): New section.
44556         * modules/setsockopt (Depends-on): Add socketlib.
44557         (Link): New section.
44558         * modules/shutdown (Depends-on): Add socketlib.
44559         (Link): New section.
44560         * modules/socket (Depends-on): Add socketlib.
44561         (Link): New section.
44563 2011-09-18  Bruno Haible  <bruno@clisp.org>
44565         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
44566         * tests/test-ptsname.c (main): Terminate the test if it takes longer
44567         than 5 seconds.
44568         * modules/ptsname-tests (configure.ac): Test for alarm.
44570 2011-09-18  Bruno Haible  <bruno@clisp.org>
44572         posix_spawn_file_actions_add*: Fix module dependencies.
44573         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
44574         posix_spawn_file_actions_init.
44575         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
44576         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
44578 2011-09-18  Bruno Haible  <bruno@clisp.org>
44580         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
44581         * tests/test-rename.h (test_rename): Allow error code EEXIST.
44582         * tests/test-renameat.c (main): Likewise.
44584 2011-09-18  Bruno Haible  <bruno@clisp.org>
44586         Tests for module 'accept4'.
44587         * modules/accept4-tests: New file.
44588         * tests/test-accept4.c: New file.
44590 2011-09-18  Bruno Haible  <bruno@clisp.org>
44592         Tests for module 'accept'.
44593         * modules/accept-tests: New file.
44594         * tests/test-accept.c: New file.
44596 2011-09-18  Bruno Haible  <bruno@clisp.org>
44598         dup2: Support for MSVC.
44599         * lib/dup2.c: Include msvc-inval.h.
44600         (rpl_dup2): Handle invalid parameter notifications during dup2 and
44601         _get_osfhandle calls.
44602         * modules/dup2 (Depends-on): Add msvc-inval.
44603         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
44605         New module 'msvc-inval'.
44606         * lib/msvc-inval.h: New file.
44607         * lib/msvc-inval.c: New file.
44608         * m4/msvc-inval.m4: New file.
44609         * modules/msvc-inval: New file.
44611 2011-09-17  Bruno Haible  <bruno@clisp.org>
44613         Tests for module 'pclose'.
44614         * modules/pclose-tests: New file.
44616         New module 'pclose'.
44617         * lib/stdio.in.h (pclose): New declaration.
44618         * lib/pclose.c: New file.
44619         * m4/pclose.m4: New file.
44620         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
44621         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
44622         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
44623         * modules/pclose: New file.
44624         * modules/popen-tests (Depends-on): Add pclose.
44625         * modules/popen-safer-tests (Depends-on): Likewise.
44626         * doc/posix-functions/pclose.texi: Mention the new module.
44628 2011-09-17  Bruno Haible  <bruno@clisp.org>
44630         popen: Support for MSVC.
44631         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
44632         * lib/popen.c (popen): Provide alternate definition for native Windows.
44633         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
44634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
44635         * modules/popen (Depends-on, configure.ac): Update condition.
44636         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
44637         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
44638         fixed.
44640 2011-09-17  Bruno Haible  <bruno@clisp.org>
44642         isnanl, isnand, isnanf: Work around MSVC bug.
44643         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
44645 2011-09-17  Bruno Haible  <bruno@clisp.org>
44647         sys_socket tests: Fix recent mistake.
44648         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
44650 2011-09-17  Bruno Haible  <bruno@clisp.org>
44652         putenv: Support for MSVC.
44653         * modules/putenv (Depends-on): Add environ.
44654         * lib/putenv.c (environ): Disable declaration.
44655         * lib/unistd.in.h: Update comment.
44657 2011-09-17  Bruno Haible  <bruno@clisp.org>
44659         math: Avoid macro redefinition warnings on MSVC.
44660         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
44661         Undefine before redefining.
44663 2011-09-17  Bruno Haible  <bruno@clisp.org>
44665         doc: Mention functions which are declared as macros.
44666         * doc/posix-functions/*[fl].texi: Mention that some functions are
44667         defined as macros with arguments only.
44669 2011-09-17  Bruno Haible  <bruno@clisp.org>
44671         Add dependencies to new dirent related modules.
44672         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
44673         * modules/fts (Depends-on): Likewise.
44674         * modules/glob (Depends-on): Likewise.
44675         * modules/savedir (Depends-on): Likewise.
44676         * modules/scandir (Depends-on): Likewise.
44677         * modules/dirent-safer (Depends-on): Add opendir, closedir.
44678         * modules/fdopendir (Depends-on): Add opendir.
44680 2011-09-17  Bruno Haible  <bruno@clisp.org>
44682         inet_pton: Support for MSVC on Windows Vista or newer.
44683         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
44684         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
44685         HAVE_DECL_INET_PTON is defined.
44686         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
44687         On platforms with <winsock2.h>, test whether inet_pton is declared in
44688         <ws2tcpip.h>. If so, arrange to replace it.
44689         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
44690         REPLACE_INET_PTON.
44691         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
44692         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
44693         (Depends-on, configure.ac): Update condition.
44694         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
44696 2011-09-17  Bruno Haible  <bruno@clisp.org>
44698         inet_ntop: Support for MSVC on Windows Vista or newer.
44699         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
44700         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
44701         HAVE_DECL_INET_NTOP is defined.
44702         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
44703         On platforms with <winsock2.h>, test whether inet_ntop is declared in
44704         <ws2tcpip.h>. If so, arrange to replace it.
44705         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
44706         REPLACE_INET_NTOP.
44707         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
44708         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
44709         (Depends-on, configure.ac): Update condition.
44710         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
44712 2011-09-16  Eric Blake  <eblake@redhat.com>
44714         test-fsync: yet another enhancement
44715         * tests/test-fsync.c (main): Also test behavior on read-only text
44716         file.
44718 2011-09-16  Bruno Haible  <bruno@clisp.org>
44720         Enhance fsync, fdatasync tests.
44721         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
44722         * tests/test-fdatasync.c (main): Likewise.
44724 2011-09-16  Bruno Haible  <bruno@clisp.org>
44726         Support for MSVC compiler: Ensure mode_t gets defined.
44727         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
44728         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44729         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
44730         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
44731         * tests/test-fcntl-h.c: Check that mode_t is defined.
44732         * tests/test-sys_stat.c: Likewise.
44733         * tests/test-sys_types.c: Likewise.
44734         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
44735         * doc/posix-headers/sys_stat.texi: Likewise.
44736         * doc/posix-headers/sys_types.texi: Likewise.
44738 2011-09-16  Bruno Haible  <bruno@clisp.org>
44740         sys_stat: Support for MSVC.
44741         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
44742         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
44743         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
44744         MSVC.
44746 2011-09-16  Bruno Haible  <bruno@clisp.org>
44748         Support for MSVC compiler: Ensure off_t gets defined.
44749         * lib/unistd.in.h: Include <sys/types.h>.
44750         * tests/test-fcntl-h.c: Check that off_t is defined.
44751         * tests/test-sys_stat.c: Likewise.
44752         * tests/test-sys_types.c: Likewise.
44754 2011-09-16  Eric Blake  <eblake@redhat.com>
44756         fdatasync: port to Solaris
44757         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
44758         * modules/fdatasync (Link): Document it.
44759         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
44761         fdatasync: port to MacOS X 10.7
44762         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
44763         declared.
44764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
44765         * modules/unistd (Makefile.am): Substitute it.
44766         * lib/unistd.in.h (fdatasync): Declare on MacOS.
44767         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
44769         fdatasync: minor improvements
44770         * modules/fdatasync (Depends-on): Add condition for fsync.
44771         * lib/fdatasync.c (fdatasync): Add comment.
44772         * tests/test-unistd-c++.cc: Test fdatasync.
44774         unistd: update refs to newer POSIX
44775         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
44776         Suggested by Bruno Haible.
44778         fdatasync: new module
44779         * modules/fsync (Description): Document difference to fdatasync.
44780         * modules/fdatasync: New module.
44781         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
44782         * lib/fdatasync.c (fdatasync): Likewise.
44783         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
44784         defaults.
44785         * modules/unistd (Makefile.am): Set witnesses.
44786         * lib/unistd.in.h (fdatasync): Declare.
44787         * MODULES.html.sh: Document it.
44788         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
44789         * modules/fdatasync-tests: New test.
44790         * tests/test-fdatasync.c: Likewise.
44792 2011-09-16  Eric Blake  <eblake@redhat.com>
44794         test-fsync: enhance tests
44795         * modules/fsync-tests (Depends-on): Add errno, for mingw.
44796         * tests/test-fsync.c (main): Enhance test.
44798 2011-09-15  Bruno Haible  <bruno@clisp.org>
44800         Support for MSVC compiler: Ensure ssize_t gets defined.
44801         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
44802         * doc/posix-headers/stdio.texi: Likewise.
44803         * modules/stdio (Depends-on): Add ssize_t.
44804         * modules/sys_socket (Depends-on): Likewise.
44805         * modules/sys_types (Depends-on): Likewise.
44806         * modules/sys_uio (Depends-on): Likewise.
44807         * modules/unistd (Depends-on): Likewise.
44808         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
44809         * tests/test-sys_types.c: Check that ssize_t is defined.
44811 2011-09-14  Bruno Haible  <bruno@clisp.org>
44813         Avoid using #, the m4 comment starter character, near brackets.
44814         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
44815         delimiter character in sed expressions.
44816         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
44817         Suggested by Eric Blake.
44819         Properly quote AC_CHECK_DECLS' 4th argument.
44820         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
44821         argument.
44822         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44823         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
44824         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44825         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
44826         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44827         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
44828         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
44829         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
44830         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
44831         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44832         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
44833         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
44834         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44835         * m4/isinf.m4 (gl_ISINF): Likewise.
44836         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
44837         * m4/readutmp.m4 (gl_READUTMP): Likewise.
44838         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44839         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44840         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44841         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
44842         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
44843         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
44844         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
44845         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
44846         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
44847         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
44848         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
44849         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44850         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44851         Reported by Eric Blake.
44853         Properly quote AC_CHECK_DECL's 4th argument.
44854         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
44855         argument.
44856         * m4/argp.m4 (gl_ARGP): Likewise.
44857         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
44858         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
44859         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
44860         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
44861         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
44862         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
44863         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
44864         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
44865         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44866         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
44867         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
44868         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
44869         Reported by Eric Blake.
44871 2011-09-14  Eric Blake  <eblake@redhat.com>
44873         opendir: avoid compile warning
44874         * lib/opendir.c (includes): Always include errno.h.
44875         Reported by Tatsuro MATSUOKA.
44877 2011-09-14  Jim Meyering  <meyering@redhat.com>
44879         maint.mk: sc_tight_scope: propagate failure from sub-make
44880         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
44881         Reported by Martin von Gagern.
44883 2011-09-13  Bruno Haible  <bruno@clisp.org>
44885         tempname: Support for MSVC.
44886         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
44887         MSVC.
44888         * modules/tempname (Depends-on): Add fcntl-h.
44890 2011-09-13  Bruno Haible  <bruno@clisp.org>
44892         sys_time: Support for MSVC.
44893         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
44894         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
44895         include <winsock2.h>.
44896         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
44897         function declarations that collide with POSIX.
44898         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
44899         (Makefile.am): Substitute HAVE_WINSOCK2_H.
44901 2011-09-13  Bruno Haible  <bruno@clisp.org>
44903         stat: Support for MSVC.
44904         * lib/stat.c: Include pathmax.h.
44905         * modules/stat (Depends-on): Add pathmax.
44907         pathmax: Support for native Windows.
44908         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
44910 2011-09-12  Bruno Haible  <bruno@clisp.org>
44912         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
44913         * lib/dirent.in.h (struct dirent): New type.
44914         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
44915         DT_WHT): New macros.
44916         (DIR): New type.
44917         (opendir, closedir): Declare only if the module 'opendir' is enabled.
44918         (readdir, rewinddir): New declarations.
44919         * lib/dirent-private.h: New file.
44920         * lib/opendir.c: New file.
44921         * lib/readdir.c: New file.
44922         * lib/rewinddir.c: New file.
44923         * lib/closedir.c: New file.
44924         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
44925         * m4/opendir.m4: New file.
44926         * m4/readdir.m4: New file.
44927         * m4/rewinddir.m4: New file.
44928         * m4/closedir.m4: New file.
44929         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
44930         REPLACE_CLOSEDIR here.
44931         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
44932         readdir, rewinddir are declared.
44933         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
44934         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
44935         HAVE_REWINDDIR, HAVE_CLOSEDIR.
44936         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
44937         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
44938         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
44939         * modules/opendir: New file.
44940         * modules/readdir: New file.
44941         * modules/rewinddir: New file.
44942         * modules/closedir: New file.
44943         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
44944         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
44945         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
44946         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
44947         * NEWS: Mention the 'fchdir' change.
44949 2011-09-11  Bruno Haible  <bruno@clisp.org>
44951         asm-underscore.m4: Support for MSVC.
44952         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
44953         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
44955 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
44957         Doc about crypt functions.
44958         * doc/posix-functions/crypt.texi: Expand range of glibc versions
44959         needing for _GNU_SOURCE to get crypt.
44960         * doc/posix-functions/encrypt.texi: Likewise.
44961         * doc/posix-functions/setkey.texi: Likewise.
44963 2011-09-11  Bruno Haible  <bruno@clisp.org>
44965         doc: Update regarding MSVC 9.
44966         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
44967         tested".
44968         * doc/posix-functions/*.texi: Update with info about MSVC 9.
44969         * doc/posix-headers/*.texi: Likewise.
44970         * doc/pastposix-functions/*.texi: Likewise.
44971         * doc/glibc-functions/*.texi: Likewise.
44972         * doc/glibc-headers/*.texi: Likewise.
44974 2011-09-11  Bruno Haible  <bruno@clisp.org>
44976         unistd et al.: Don't assume <unistd.h> exists.
44977         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
44978         does not exist.
44979         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
44980         exist. But include <stdlib.h>.
44981         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
44982         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
44983         symlink() does not exist.
44984         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
44985         include <io.h> instead.
44986         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
44987         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
44988         include <direct.h> instead.
44989         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
44990         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44991         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
44992         <io.h> instead.
44993         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
44994         correctly if the system does not have hard links.
44995         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
44996         <direct.h> instead.
44997         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
44998         it when looking for function declarations.
44999         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
45000         <direct.h> and <io.h> instead.
45001         * doc/posix-headers/unistd.texi: More details about MSVC problem.
45003 2011-09-11  Bruno Haible  <bruno@clisp.org>
45005         strcase: Support for MSVC.
45006         * modules/strcase (Status, Notice): Remove obsoletion mark.
45007         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
45008         * doc/posix-functions/strncasecmp.texi: Likewise.
45010         strings: Don't assume <strings.h> exists.
45011         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
45012         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
45013         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
45014         * doc/posix-headers/strings.texi: Mention the MSVC problem.
45016 2011-09-11  Bruno Haible  <bruno@clisp.org>
45018         dirent: Don't assume <dirent.h> exists.
45019         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
45020         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
45021         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
45022         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
45024 2011-09-11  Bruno Haible  <bruno@clisp.org>
45026         Fix wint_t on MSVC.
45027         * lib/wchar.in.h (wint_t): On MSVC, override it.
45028         * lib/wctype.in.h (wint_t): Likewise.
45029         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
45030         MSVC.
45031         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
45032         * doc/posix-headers/wctype.texi: Likewise.
45034 2011-09-11  Bruno Haible  <bruno@clisp.org>
45036         sys_types: Fix typo.
45037         * lib/sys_types.in.h: Fix typo in comment.
45038         Reported by Paul Eggert.
45040         Support for MSVC compiler: Ensure size_t gets defined.
45041         * modules/strings (Depends-on): Add 'sys_types'.
45042         * modules/sys_uio (Depends-on): Likewise.
45043         * lib/sys_uio.in.h: Update comment.
45045         C++ tests for module 'sys_types'.
45046         * modules/sys_types-c++-tests: New file.
45047         * tests/test-sys_types-c++.cc: New file.
45049         Tests for module 'sys_types'.
45050         * modules/sys_types-tests: New file.
45051         * tests/test-sys_types.c: New file.
45053         New module 'sys_types'.
45054         * lib/sys_types.in.h: New file.
45055         * m4/sys_types_h.m4: New file.
45056         * modules/sys_types: New file.
45057         * doc/posix-headers/sys_types.texi: Mention the new module and the
45058         size_t problem on MSVC 9.
45060 2011-09-11  Bruno Haible  <bruno@clisp.org>
45062         Support for MSVC compiler: Avoid division by a literal 0.
45063         * lib/math.in.h (NAN): Define through a function call also on MSVC.
45064         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
45065         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
45066         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
45067         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
45068         * tests/infinity.h: New file.
45069         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
45070         on MSVC.
45071         * tests/test-ceilf1.c: Include infinity.h.
45072         (main): Use Infinityf.
45073         * tests/test-ceil1.c: Include infinity.h.
45074         (main): Use Infinityd.
45075         * tests/test-ceill.c: Include infinity.h.
45076         (main): Use Infinityl.
45077         * tests/test-dprintf-posix.c: Include infinity.h.
45078         (test_function): Use Infinityd.
45079         * tests/test-floorf1.c: Include infinity.h.
45080         (main): Use Infinityf.
45081         * tests/test-floor1.c: Include infinity.h.
45082         (main): Use Infinityd.
45083         * tests/test-floorl.c: Include infinity.h.
45084         (main): Use Infinityl.
45085         * tests/test-fprintf-posix.c: Include infinity.h.
45086         (test_function): Use Infinityd.
45087         * tests/test-frexp.c: Include infinity.h.
45088         (main): Use Infinityd.
45089         * tests/test-frexpl.c: Include infinity.h.
45090         (main): Use Infinityl.
45091         * tests/test-isfinite.c: Include infinity.h.
45092         (test_isfinitef): Use Infinityf.
45093         (test_isfinited): Use Infinityd.
45094         (test_isfinitel): Use Infinityl.
45095         * tests/test-isinf.c: Include infinity.h.
45096         (test_isinff): Use Infinityf.
45097         (test_isinfd): Use Infinityd.
45098         (test_isinfl): Use Infinityl.
45099         * tests/test-isnan.c: Include infinity.h.
45100         (test_float): Use Infinityf.
45101         (test_double): Use Infinityd.
45102         (test_long_double): Use Infinityl.
45103         * tests/test-isnanf.h: Include infinity.h.
45104         (main): Use Infinityf.
45105         * tests/test-isnand.h: Include infinity.h.
45106         (main): Use Infinityd.
45107         * tests/test-isnanl.h: Include infinity.h.
45108         (main): Use Infinityl.
45109         * tests/test-ldexpl.c: Include infinity.h.
45110         (main): Use Infinityl.
45111         * tests/test-printf-posix.h: Include infinity.h.
45112         (test_function): Use Infinityd.
45113         * tests/test-roundf1.c: Include infinity.h.
45114         (main): Use Infinityf.
45115         * tests/test-round1.c: Include infinity.h.
45116         (main): Use Infinityd.
45117         * tests/test-roundl.c: Include infinity.h.
45118         (main): Use Infinityl.
45119         * tests/test-signbit.c: Include infinity.h.
45120         (test_signbitf): Use Infinityf.
45121         (test_signbitd): Use Infinityd.
45122         (test_signbitl): Use Infinityl.
45123         * tests/test-snprintf-posix.h: Include infinity.h.
45124         (test_function): Use Infinityd, Infinityl.
45125         * tests/test-sprintf-posix.h: Include infinity.h.
45126         (test_function): Use Infinityd, Infinityl.
45127         * tests/test-truncf1.c: Include infinity.h.
45128         (main): Use Infinityf.
45129         * tests/test-trunc1.c: Include infinity.h.
45130         (main): Use Infinityd.
45131         * tests/test-truncl.c: Include infinity.h.
45132         (main): Use Infinityl.
45133         * tests/test-vasnprintf-posix.c: Include infinity.h.
45134         (test_function): Use Infinityd, Infinityl.
45135         * tests/test-vasprintf-posix.c: Include infinity.h.
45136         (test_function): Use Infinityd, Infinityl.
45137         * modules/ceilf-tests (Files): Add tests/infinity.h.
45138         * modules/ceil-tests (Files): Likewise.
45139         * modules/ceill-tests (Files): Likewise.
45140         * modules/dprintf-posix-tests (Files): Likewise.
45141         * modules/floorf-tests (Files): Likewise.
45142         * modules/floor-tests (Files): Likewise.
45143         * modules/floorl-tests (Files): Likewise.
45144         * modules/fprintf-posix-tests (Files): Likewise.
45145         * modules/frexp-tests (Files): Likewise.
45146         * modules/frexp-nolibm-tests (Files): Likewise.
45147         * modules/frexpl-tests (Files): Likewise.
45148         * modules/frexpl-nolibm-tests (Files): Likewise.
45149         * modules/isfinite-tests (Files): Likewise.
45150         * modules/isinf-tests (Files): Likewise.
45151         * modules/isnan-tests (Files): Likewise.
45152         * modules/isnanf-tests (Files): Likewise.
45153         * modules/isnanf-nolibm-tests (Files): Likewise.
45154         * modules/isnand-tests (Files): Likewise.
45155         * modules/isnand-nolibm-tests (Files): Likewise.
45156         * modules/isnanl-tests (Files): Likewise.
45157         * modules/isnanl-nolibm-tests (Files): Likewise.
45158         * modules/ldexpl-tests (Files): Likewise.
45159         * modules/printf-posix-tests (Files): Likewise.
45160         * modules/roundf-tests (Files): Likewise.
45161         * modules/round-tests (Files): Likewise.
45162         * modules/roundl-tests (Files): Likewise.
45163         * modules/signbit-tests (Files): Likewise.
45164         * modules/snprintf-posix-tests (Files): Likewise.
45165         * modules/sprintf-posix-tests (Files): Likewise.
45166         * modules/truncf-tests (Files): Likewise.
45167         * modules/trunc-tests (Files): Likewise.
45168         * modules/truncl-tests (Files): Likewise.
45169         * modules/vasnprintf-posix-tests (Files): Likewise.
45170         * modules/vasprintf-posix-tests (Files): Likewise.
45171         * modules/vdprintf-posix-tests (Files): Likewise.
45172         * modules/vfprintf-posix-tests (Files): Likewise.
45173         * modules/vprintf-posix-tests (Files): Likewise.
45174         * modules/vsnprintf-posix-tests (Files): Likewise.
45175         * modules/vsprintf-posix-tests (Files): Likewise.
45176         * modules/xprintf-posix-tests (Files): Likewise.
45178 2011-09-11  Bruno Haible  <bruno@clisp.org>
45180         Ensure pid_t gets defined.
45181         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
45182         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
45183         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
45184         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
45185         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
45186         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
45187         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
45188         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45189         * tests/test-fcntl-h.c: Check that pid_t is defined.
45190         * tests/test-sched.c: Likewise.
45191         * tests/test-termios.c: Likewise.
45192         * tests/test-time.c: Likewise.
45193         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
45194         * doc/posix-headers/signal.texi: Likewise.
45195         * doc/posix-headers/sys_types.texi: Likewise.
45196         * doc/posix-headers/time.texi: Likewise.
45198 2011-09-11  Bruno Haible  <bruno@clisp.org>
45200         acl: Fix compilation on Solaris 10 (older version).
45201         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
45202         of ACE_EVERYONE.
45203         * lib/set-mode-acl.c (qset_acl): Likewise.
45204         Reported by Christian Jullien <eligis@orange.fr>.
45206 2011-09-10  Bruno Haible  <bruno@clisp.org>
45208         iconv, unsetenv: Add support for MSVC compiler.
45209         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
45210         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
45212 2011-09-10  Bruno Haible  <bruno@clisp.org>
45214         *printf: Add support for MSVC compiler.
45215         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
45216         handles the exception caused by the %n directive. When cross-compiling,
45217         guess no on native Windows.
45218         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
45219         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
45220         emulate it through vsnprintf.
45221         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
45222         * doc/posix-functions/dprintf.texi: Update documentation regarding
45223         MSVC 9.
45224         * doc/posix-functions/fprintf.texi: Likewise.
45225         * doc/posix-functions/printf.texi: Likewise.
45226         * doc/posix-functions/snprintf.texi: Likewise.
45227         * doc/posix-functions/sprintf.texi: Likewise.
45228         * doc/posix-functions/swprintf.texi: Likewise.
45229         * doc/posix-functions/vdprintf.texi: Likewise.
45230         * doc/posix-functions/vfprintf.texi: Likewise.
45231         * doc/posix-functions/vprintf.texi: Likewise.
45232         * doc/posix-functions/vsnprintf.texi: Likewise.
45233         * doc/posix-functions/vsprintf.texi: Likewise.
45234         * doc/glibc-functions/asprintf.texi: Likewise.
45235         * doc/glibc-functions/obstack_printf.texi: Likewise.
45236         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45237         * doc/glibc-functions/vasprintf.texi: Likewise.
45239 2011-09-10  Bruno Haible  <bruno@clisp.org>
45241         nocrash: Add support for native Windows.
45242         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
45244 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
45245             Bruno Haible  <bruno@clisp.org>
45247         absolute-header, include-next: Add support for MSVC compiler.
45248         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
45249         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
45250         directory separator in #line directives.
45251         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
45252         recognize also backslash as directory separator in #line directives.
45254 2011-09-08  Jim Meyering  <meyering@redhat.com>
45256         maint.mk: mark the post-release commit log with "maint: " prefix
45257         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
45258         one-line commit-log summary.
45260 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
45261             Bruno Haible  <bruno@clisp.org>
45263         Doc about crypt functions.
45264         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
45265         systems.
45266         * doc/posix-functions/encrypt.texi: Likewise.
45267         * doc/posix-functions/setkey.texi: Likewise.
45269 2011-09-08  Simon Josefsson  <simon@josefsson.org>
45271         * lib/gc.h: Fix copyright header.
45273 2011-09-07  Bruno Haible  <bruno@clisp.org>
45275         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
45276         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
45277         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
45279 2011-09-07  Bruno Haible  <bruno@clisp.org>
45281         openat: Work around compilation error with OSF/1 5.1 DTK cc.
45282         * lib/fopen.c: Use different syntax for include of <stdio.h>.
45283         * lib/freopen.c: Likewise.
45284         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
45285         * lib/lstat.c: Likewise.
45286         * lib/stat.c: Likewise.
45287         * lib/open.c: Use different syntax for include of <fcntl.h>.
45288         * lib/openat.c: Include fcntl.h again, explicitly.
45290 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
45292         parse-datetime: document the newly accepted format
45293         * doc/parse-datetime.texi (Combined date and time of day items):
45294         New section.
45296 2011-09-06  Bruno Haible  <bruno@clisp.org>
45298         acl: Fix a test failure on newer Solaris 10 with ZFS.
45299         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
45300         ENOSYS as no ACL.
45301         Reported by Jim Meyering.
45303 2011-09-06  Bruno Haible  <bruno@clisp.org>
45305         acl: Update for AIX >= 5.3 with NFS.
45306         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
45307         ENOSYS as no ACL.
45309         acl: Fix a test failure on AIX >= 5.3 with NFS.
45310         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
45311         as no ACL.
45313 2011-09-06  Bruno Haible  <bruno@clisp.org>
45315         acl: Fix a test failure on IRIX 6.5 with NFS.
45316         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
45317         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
45318         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
45319         * lib/copy-acl.c (qcopy_acl): Likewise.
45321 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
45323         openat: port to AIX 7.1 with large files
45324         AIX 7.1 does a "#define openat open64at" if large files are in use,
45325         so we can't simply #undef openat.  Use the orig_openat trick (similar
45326         to orig_open in lib/open.c) to work around the problem.  Problem
45327         reported by Kevin Brott for GNU tar, in the thread containing
45328         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
45329         * lib/openat.c (__need_system_fcntl_h): Define first.
45330         Include <fcntl.h> and <sys/types.h> before undefining.
45331         (orig_openat) [HAVE_OPENAT]: New inline function.
45332         (openat) [HAVE_OPENAT]: Do not undef.
45333         (rpl_openat): Use orig_openat, not openat.
45335 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
45336             Bruno Haible  <bruno@clisp.org>
45338         acl: Avoid errors on NonStop Kernel.
45339         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
45340         ENOTSUP errors.
45342 2011-09-05  Bruno Haible  <bruno@clisp.org>
45344         acl: Clean up Solaris code.
45345         * lib/acl-internal.h: Remove no-op #if.
45346         * lib/file-has-acl.c: Likewise.
45347         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
45348         * lib/copy-acl.c (qcopy_acl): Likewise.
45350 2011-09-05  Bruno Haible  <bruno@clisp.org>
45352         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
45353         binaries built on the original Solaris 10.
45354         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
45355         trivial.
45357 2011-09-05  Bruno Haible  <bruno@clisp.org>
45359         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45360         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
45361         10.
45362         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
45363         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
45364         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
45365         instead of acl_get, facl_get, acl_set, facl_set.
45367 2011-09-05  Bruno Haible  <bruno@clisp.org>
45369         copy-file: Try unit tests on more file systems.
45370         * tests/test-copy-file-1.sh: New file.
45371         * tests/test-copy-file-2.sh: New file.
45372         * modules/copy-file-tests (Files): Add them.
45373         (Makefile.am): Add them to TESTS.
45375         acl: Try unit tests on more file systems.
45376         * tests/test-file-has-acl-1.sh: New file.
45377         * tests/test-file-has-acl-2.sh: New file.
45378         * tests/test-set-mode-acl-1.sh: New file.
45379         * tests/test-set-mode-acl-2.sh: New file.
45380         * tests/test-copy-acl-1.sh: New file.
45381         * tests/test-copy-acl-2.sh: New file.
45382         * modules/acl-tests (Files): Add them.
45383         (Makefile.am): Add them to TESTS.
45385 2011-09-04  Bruno Haible  <bruno@clisp.org>
45387         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45388         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
45389         10.
45390         (OLD_ALLOW, OLD_DENY): New macros.
45391         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
45392         ACE_ACCESS_ALLOWED_ACE_TYPE.
45393         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
45394         ACE_ACCESS_DENIED_ACE_TYPE.
45395         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
45396         (NEW_ACE_EXECUTE): Fix value.
45397         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
45398         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
45399         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
45400         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
45401         NEW_ACE_SYNCHRONIZE): New macros.
45402         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
45403         instead of acl_fromtext, acl_set, facl_set.
45404         Fixes a coreutils/tests/cp/perm failure.
45406 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
45408         openat: test for fstatat (..., 0) bug
45409         Further testing with tar suggests that fstatat (..., 0)
45410         does not work in general, on AIX 7.1; see
45411         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
45412         So, give up entirely on AIX 7.1's fstatat, and fall back on our
45413         replacement fstatat (which is what older AIX releases were using
45414         anyway).
45415         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
45416         use is now changed to orig_fstatat.  This was probably the right
45417         thing to do anyway.
45418         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
45419         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
45420         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
45421         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
45422         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
45423         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
45424         if the bug is found.
45426         openat: test for fstatat (AT_FDCWD, ..., 0) bug
45427         This tests for another fstatat bug on AIX 7.1:
45428         fstatat (AT_FDCWD, ..., 0) does not work.  See
45429         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
45430         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
45431         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
45432         (rpl_fstatat): Adjust so that it works around either (or both)
45433         bugs if present.
45434         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
45436 2011-09-03  Karl Berry  <karl@gnu.org>
45438         * doc/regex.texi (Character Class Operators): Avoid literal ":"
45439         in index entries.
45441 2011-09-02  Bruno Haible  <bruno@clisp.org>
45443         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
45444         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
45445         values of AR, ARFLAGS, RANLIB.
45446         Reported by John W. Eaton <jwe@gnu.org> for Octave.
45448 2011-09-02  Bruno Haible  <bruno@clisp.org>
45450         Find 'ar' program that fits with --host argument.
45451         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
45453 2011-09-02  Bruno Haible  <bruno@clisp.org>
45455         tests: init.sh: Support any non-GNU diff.
45456         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
45457         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
45458         Solaris 8.
45460 2011-09-02  Bruno Haible  <bruno@clisp.org>
45462         tests: init.sh: work also with any non-GNU diff that supports -u
45463         * tests/init.sh: Relax check for diff -u support.
45464         Rather than checking for GNU diff via --version, simply check
45465         for support for -u itself.  Useful at least on OpenBSD 4.9,
45466         AIX 7.1, IRIX 6.5, and Solaris 10.
45468 2011-09-01  Bruno Haible  <bruno@clisp.org>
45470         strtoimax, strtoumax: Document problem on HP-UX 11.
45471         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
45472         * doc/posix-functions/strtoumax.texi: Likewise.
45474 2011-09-01  Bruno Haible  <bruno@clisp.org>
45476         strtoumax: Avoid link error on OSF/1 with DTK cc.
45477         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
45478         defined as a function.
45479         * modules/strtoumax (Depends-on, configure.ac): Test only whether
45480         strtoumax is defined, not whether it is declared.
45482 2011-09-01  Bruno Haible  <bruno@clisp.org>
45484         strtoimax: Avoid link error on OSF/1 with DTK cc.
45485         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
45486         defined as a function.
45487         * modules/strtoimax (Depends-on, configure.ac): Test only whether
45488         strtoimax is defined, not whether it is declared.
45490 2011-09-01  Bruno Haible  <bruno@clisp.org>
45492         imaxdiv: Avoid link error on OSF/1 with DTK cc.
45493         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
45494         as a function.
45495         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
45496         whether it is declared.
45498 2011-09-01  Bruno Haible  <bruno@clisp.org>
45500         imaxabs: Avoid link error on OSF/1 with DTK cc.
45501         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
45502         as a function.
45503         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
45504         whether it is declared.
45506 2011-09-01  Bruno Haible  <bruno@clisp.org>
45508         Tests for module 'strtoumax'.
45509         * modules/strtoumax-tests: New file.
45510         * tests/test-strtoumax.c: New file.
45512         Tests for module 'strtoimax'.
45513         * modules/strtoimax-tests: New file.
45514         * tests/test-strtoimax.c: New file.
45516         Tests for module 'imaxdiv'.
45517         * modules/imaxdiv-tests: New file.
45518         * tests/test-imaxdiv.c: New file.
45520         Tests for module 'imaxabs'.
45521         * modules/imaxabs-tests: New file.
45522         * tests/test-imaxabs.c: New file.
45524 2011-09-01  Bruno Haible  <bruno@clisp.org>
45526         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
45527         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
45528         pthread_create.
45530 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
45532         openat: work around AIX 7.1 fstatat issue
45533         This should fix the problem that was not properly fixed
45534         in the previous change, dated 2011-08-30.
45535         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
45536         __need_system_stat_h defined.
45537         (orig_fstatat) [HAVE_FSTATAT]: New function.
45538         (rpl_fstatat): Go back to the old way of doing things,
45539         except call orig_fstatat instead of fstatat.
45540         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
45541         Remove unnecessary check whether fstatat fills in st_size etc.
45543 2011-09-01  Bruno Haible  <bruno@clisp.org>
45545         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
45546         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
45547         just include the system's header.
45549 2011-08-31  Jim Meyering  <meyering@redhat.com>
45551         tests: avoid spurious assertion failure in test-float.c on ppc64
45552         * tests/test-float.c (test_long_double): Comment out an assertion,
45553         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
45554         with gcc-4.4.4.
45556         maint: indent with spaces, not TABs
45557         I need to get in the habit of running gnulib's "make check".
45558         Both of these would have been caught.
45559         * m4/largefile.m4: Indent with spaces, not TABs.
45560         * lib/parse-datetime.y (iso_8601_time): Likewise.
45561         Spotted by Pádraig Brady.
45563         test-parse-datetime.c: accommodate a relatively strict gcc warning
45564         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
45565         to avoid a warning from gcc's -Werror=missing-declarations.
45566         Insert a few spaces-before-funcall-parenthesis.
45568 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
45570         parse-datetime: accept ISO 8601 date and time rep with "T" separator
45571         The parser now accepts ISO 8601 date-time strings with "T" as the
45572         separator.  It has long parsed dates like "2004-02-29 16:21:42"
45573         with a space between the date and time strings.  Now it also parses
45574         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
45575         variants like "2004-02-29T16:21:42.333-07:00"
45576         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
45577         of day representation using the 'T' separator character.
45578         * doc/parse-datetime.texi (General date syntax): replace use of
45579         deprecated --iso-8601 option with --rfc-3339 in example of date
45580         command output formats that can be parsed.
45581         * tests/test-parse-datetime.c (tm_diff): New function, taken from
45582         lib/parse-datetime.y.
45583         (gmt_offset): New function.
45584         (main): Add additional test cases to validate ISO8601 extended
45585         date and time of day parsing.
45587 2011-08-31  Bruno Haible  <bruno@clisp.org>
45589         freopen: Documentation.
45590         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
45591         name.
45592         Reported by Claudio Bley <claudio.bley@gmail.com>.
45594 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
45596         freopen: Don't crash if the filename argument is NULL.
45597         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
45598         NULL.
45600 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
45602         openat: work around AIX 7.1 fstatat bug
45603         Problem reported by Kevin Brott for GNU tar, in the thread containing
45604         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
45605         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
45606         FSTATAT_ST_SIZE_ETC_BROKEN.
45607         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
45608         rpl_fstatat.
45609         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
45610         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
45611         AC_CHECK_FUNCS_ONCE for fstatat.
45612         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
45613         fchmodat, mkdirat, openat and unlinkat.
45615 2011-08-30  Bruno Haible  <bruno@clisp.org>
45617         Avoid endless recursions if config.h includes some header files.
45618         * lib/fopen.c (__need_FILE): Define already before including config.h.
45619         * lib/freopen.c (__need_FILE): Likewise.
45620         * lib/open.c (__need_system_fcntl_h): Likewise.
45621         * lib/stat.c (__need_system_sys_stat_h): Likewise.
45622         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
45623         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45625 2011-08-25  Karl Berry  <karl@gnu.org>
45627         * config/srclist.txt (ylwrap): new try.
45628         * build-aux/ylwrap: new file.
45630 2011-08-23  Bruno Haible  <bruno@clisp.org>
45632         tmpdir: Use a good default directory on native Windows.
45633         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
45634         (P_tmpdir): Default to _P_tmpdir on native Windows.
45635         (path_search): On native Windows, try the value returned by GetTempPath
45636         before trying P_tmpdir.
45637         * modules/tmpdir (Depends-on): Add pathmax.
45638         Suggested by John Darrington <john@darrington.wattle.id.au>.
45640 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
45642         doc: fix typo in README-release
45643         * top/README-release: Capitalize first word of a sentence.
45645 2011-08-19  Jim Meyering  <meyering@redhat.com>
45647         fts: do not exhaust memory when processing million-entry directories
45648         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
45649         directory would require about 256*N bytes of memory.  Thus, it was
45650         easy to construct a directory too large to be processed by any of
45651         those tools.  With this change, fts' maximum memory utilization is
45652         now limited to around 30MB.
45653         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
45654         (fts_read): When we've processed the final entry (i.e., when
45655         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
45656         using the parent entry to read any remaining entries.  Dispatch
45657         depending on what fts_build returns:
45658         - NULL+stop, aka failure: stop
45659         - NULL otherwise: move up in the dir hierarchy
45660         - non-NULL: handle this new entry
45661         (fts_build): Declare and use new local, continue_readdir.
45662         Prepare to be called from fts_read, when the entries
45663         from a partially-read directory have just been exhausted.
45664         In that case, we'll skip the opendir and instead use the parent's
45665         fts_dirp and derive dir_fd from that.
45666         Finally, in the readdir loop, if we read max_entries entries,
45667         exit the loop ensuring *not* to call closedir.  This is required
45668         so that fts_dirp can be reused on a subsequent call.
45669         Prompted by Ben England's report of memory exhaustion in find
45670         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
45672         maint: fts: move decl of `dp' down into while loop; split a long line
45673         * lib/fts.c (fts_build): No semantic change.
45675         fts: add/use new struct member, fts_dirp
45676         We are about to use this to manage any directory with
45677         too many entries to read all of them into memory at once.
45678         To do that, we'll need to save the DIR* pointer in each
45679         affected FTSENT struct.
45680         * lib/fts_.h: Include <dirent.h>.
45681         (struct FTSENT) [fts_dirp]: New member.
45682         * lib/fts.c (closedir_and_clear): Define.
45683         Use it in place of closedir so that we are sure to
45684         clear the new fts_dirp member when done with it.
45685         (fts_alloc): Initialize the new member.
45686         (fts_lfree): Free, if needed.
45688         maint: fts: give __opendir2 a new parameter and rename
45689         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
45690         than surreptitiously using sole caller's "dir_fd".
45691         (fts_opendir): Rename from __opendir2.
45693         maint: fts.c: remove __opendir2's now-unused parameter, oflag
45694         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
45696         maint: fts.c: correct off-by-one indentation
45697         * lib/fts.c (fts_build): Correct indentation, change style
45698         of a couple of block comments, and bracing style.
45700         maint: fts.c: move __opendir2 #define "up" out of function body
45701         * lib/fts.c (__opendir2): Move "up".  No semantic change.
45703         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
45704         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
45705         out for a long time and besides was useful only on BSD systems.
45707 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45709         regex: port to Stratus OpenVOS
45710         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
45711         define to empty, rather than attempting nonportable optimizations.
45712         Problem reported by Paul Green in:
45713         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
45714         and fix suggested by Eric Blake in:
45715         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
45717 2011-08-17  Eric Blake  <eblake@redhat.com>
45719         getcwd: fix test failures on mingw
45720         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
45721         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
45722         test if long directory cannot be created, and allow mingw errno.
45724         getcwd-lgpl: fix m4 to match relaxed test for BSD
45725         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
45726         (gl_FUNC_GETCWD_SIGNATURE): New macro.
45727         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
45728         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
45729         signature problem.
45731         getcwd: fix compilation on mingw64
45732         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
45733         getcwd.
45734         Reported by Marc-André Lureau.
45736         pipe2: silence compiler warning
45737         * lib/pipe2.c (pipe2): Hide label if it is not used.
45739 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
45741         relocatable-prog: fix link error
45742         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
45743         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
45744         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
45745         into modules/relocatable-lib without noticing that
45746         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
45747         also needs to build relocatable.c.
45749 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
45751         getaddrinfo: fix sh typo in gai_strerrorA decl checking
45752         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
45753         shell code: it contained a 'break' that was not in a loop.
45754         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
45755         via a shell-language loop; this may have been true in old Autoconf
45756         versions, but it's not true in Autoconf 2.68.  I found this bug
45757         when testing coreutils git on Solaris 8, whose shell complains
45758         about the syntax error.
45760 2011-08-12  Simon Josefsson  <simon@josefsson.org>
45762         * lib/base64.c: Fix comment to reference RFC 4648.
45763         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
45764         <gvtulder@gmail.com>.
45766 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45768         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
45770         po/Makefile.in.in: fix make -q problem
45771         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
45772         rule, since there's no file named 'check-macro-version' and its
45773         use as a file breaks make -q.
45774         (all): Don't depend on check-macro-version.
45775         (CHECK_MACRO_VERSION): New macro.
45776         (stamp-po): Use it.
45778         configmake: fix make -q problem
45779         * modules/configmake (configmake.h): Update configmake.h's time stamp
45780         even if the file does not change.  Otherwise, 'make -q' fails.
45781         Problem reported by Simon Josefsson in
45782         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
45784 2011-08-11  Jim Meyering  <meyering@redhat.com>
45786         git-version-gen: correct the advice in a comment
45787         * build-aux/git-version-gen: Correct comment.
45788         Don't recommend to list .tarball-version in .gitignore.
45790 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45792         base64: fix off-by-one buffer size bug
45793         Problem and (trivial) fix reported by Gijs van Tulder in
45794         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
45795         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
45796         * tests/test-base64.c (main): Catch the bug.
45798 2011-08-10  Eric Blake  <eblake@redhat.com>
45800         closein: correct comments
45801         * lib/closein.c (close_stdin): Improve comments.
45803 2011-08-09  Bruno Haible  <bruno@clisp.org>
45805         More tests for 'fseeko'.
45806         * tests/test-fseeko3.c: New file, from Eric Blake.
45807         * tests/test-fseeko3.sh: New file.
45808         * modules/fseeko-tests (Files): Add them.
45809         (TESTS): Add test-fseeko3.sh.
45810         (check_PROGRAMS): Add test-fseeko3.
45812 2011-08-09  Eric Blake  <eblake@redhat.com>
45814         fseeko: remove unneeded hack
45815         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
45817         fseeko: fix bug on glibc
45818         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
45819         Reported by John W. Eaton.
45821 2011-08-08  Bruno Haible  <bruno@clisp.org>
45823         unictype/base: Fix interoperability with preinstalled libunistring.
45824         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
45825         Reported by Simon Josefsson.
45827 2011-08-08  Bruno Haible  <bruno@clisp.org>
45829         iswblank: Detect declaration correctly.
45830         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
45831         AC_CHECK_DECLS invocation.
45833 2011-08-08  Bruno Haible  <bruno@clisp.org>
45835         tcgetsid: Detect declaration correctly.
45836         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
45837         AC_CHECK_DECLS invocation.
45838         Reported by Simon Josefsson.
45840 2011-08-08  Eric Blake  <eblake@redhat.com>
45842         largefile: fix typo that regressed large file support
45843         * modules/largefile (configure.ac-early): Fix section name.
45845 2011-08-06  Karl Berry  <karl@gnu.org>
45847         * MODULES.html.sh (func_all_files): _Noreturn is no longer
45848         a separate module.
45850 2011-08-05  Simon Josefsson  <simon@josefsson.org>
45852         openat: Fix warnings and commens when building unlinkat.c on Hurd.
45853         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
45854         get prototype for free.
45856 2011-08-04  Bruno Haible  <bruno@clisp.org>
45858         Tests for module 'pathmax'.
45859         * modules/pathmax-tests: New file.
45860         * tests/test-pathmax.c: New file.
45862         canonicalize-lgpl: Support larger filenames on the Hurd.
45863         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
45864         Reported by Paul Eggert.
45866         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
45867         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
45868         * lib/chdir-long.h: Include pathmax.h.
45869         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
45870         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
45871         (PATH_MAX): Remove code that is done by pathmax.h.
45872         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
45873         * lib/tmpfile.c: Add a comment.
45874         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
45875         * modules/chdir-long (Depends-on): Add pathmax.
45876         * modules/getcwd (Depends-on): Add pathmax.
45877         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
45878         is not defined.
45879         * doc/posix-headers/limits.texi: Mention the pathmax module.
45880         * NEWS: Mention the change.
45882 2011-08-02  Bruno Haible  <bruno@clisp.org>
45884         pthread_sigmask: Actually use results of gl_THREADLIB.
45885         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
45886         gl_THREADLIB, not gl_[]THREADLIB.
45887         Reported by Eric Blake.
45889 2011-08-02  Jim Meyering  <meyering@redhat.com>
45891         maint.mk: relax the default _gl_TS_function_match regexp
45892         * top/maint.mk (_gl_TS_function_match): Don't require at least one
45893         space between function name and "(" in an "extern" declaration.
45894         That would fail to match a decl with no space there: extern void foo();
45896 2011-07-31  Iain Nicol  <iain@thenicols.net>
45898         git-version-gen: document that EXTRA_DIST must include .version
45899         * build-aux/git-version-gen: In the how-to-use comment, document
45900         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
45901         will fail when run from an unpacked distribution tarball.
45903 2011-08-01  Bruno Haible  <bruno@clisp.org>
45905         wctype-h: Fix last change.
45906         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
45907         REPLACE_TOWLOWER to 0.
45908         Reported by Sam Steingold <sds@gnu.org>.
45910 2011-07-31  Bruno Haible  <bruno@clisp.org>
45912         frexpl: Update autoconf test.
45913         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
45914         according to changes of 2011-06-20.
45916 2011-07-31  Bruno Haible  <bruno@clisp.org>
45918         sys_utsname: Add support for Minix.
45919         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
45920         <sys/utsname.h>.
45921         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
45922         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
45924 2011-07-31  Bruno Haible  <bruno@clisp.org>
45926         strings: Add support for Minix.
45927         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
45928         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
45929         * doc/posix-headers/strings.texi: Document the Minix problem.
45931 2011-07-31  Bruno Haible  <bruno@clisp.org>
45933         wctype-h: Add support for Minix.
45934         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
45935         REPLACE_TOWLOWER.
45936         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
45937         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
45938         REPLACE_ISWCNTRL.
45940 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
45942         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
45943         This is a performance improvement for 64-bit hosts: it causes the
45944         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
45946 2011-07-31  Bruno Haible  <bruno@clisp.org>
45948         stdioext: Add support for Minix.
45949         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
45950         * lib/fpurge.c (fpurge): Likewise.
45951         * lib/freadahead.c (freadahead): Likewise.
45952         * lib/freadable.c (freadable): Likewise.
45953         * lib/freading.c (freading): Likewise.
45954         * lib/freadptr.c (freadptr): Likewise.
45955         * lib/freadseek.c (freadptrinc): Likewise.
45956         * lib/fseeko.c (rpl_fseeko): Likewise.
45957         * lib/fseterr.c (fseterr): Likewise.
45958         * lib/fwritable.c (fwritable): Likewise.
45959         * lib/fwriting.c (fwriting): Likewise.
45960         * lib/fflush.c (clear_ungetc_buffer): Update comment.
45961         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
45963 2011-07-31  Bruno Haible  <bruno@clisp.org>
45965         errno: Port to Minix.
45966         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
45967         ECONNABORTED are defined.
45968         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
45969         GNULIB_defined_ECONNABORTED): New macros.
45970         * lib/strerror-override.h (strerror_override): Test also
45971         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
45972         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
45973         ECONNABORTED.
45974         * doc/posix-headers/errno.texi: Mention the Minix problem.
45976 2011-07-31  Bruno Haible  <bruno@clisp.org>
45978         Work around declaration collisions on Minix.
45979         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
45980         defined, set REPLACE_MBSINIT.
45981         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
45982         defined, set REPLACE_MBRTOWC.
45983         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
45984         set REPLACE_MBRLEN.
45985         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
45986         defined, set REPLACE_MBSRTOWCS.
45987         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
45988         defined, set REPLACE_WCRTOMB.
45989         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
45990         defined, set REPLACE_WCSRTOMBS.
45992 2011-07-31  Bruno Haible  <bruno@clisp.org>
45994         Add support for Minix with ACK compiler.
45995         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
45996         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
45997         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
45999 2011-07-31  Bruno Haible  <bruno@clisp.org>
46001         Documentation about Minix.
46002         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
46003         * doc/glibc-headers/*.texi: Likewise.
46004         * doc/posix-functions/*.texi: Likewise.
46005         * doc/glibc-functions/*.texi: Likewise.
46007 2011-07-31  Bruno Haible  <bruno@clisp.org>
46009         snippet/warn-on-use: Fix indentation.
46010         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
46012 2011-07-25  Jim Meyering  <meyering@redhat.com>
46014         tests: test-update-copyright.sh: remove unnecessary "rm" commands
46015         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
46016         commands.
46018 2011-07-27  Jim Meyering  <meyering@redhat.com>
46020         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
46021         * top/maint.mk (gl_extract_significant_defines_): Now that
46022         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
46023         gnulib/lib/signal.in.h, and now that we recommend to
46024         define-if-undefined those two symbols in application code,
46025         we must filter them out of the "significant" list.
46026         This avoids a "make syntax-check" failure in coreutils.
46028 2011-07-26  Eric Blake  <eblake@redhat.com>
46030         warnings: add comments about previous patch
46031         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
46032         * m4/include_next.m4: Likewise.
46033         * m4/warn-on-use.m4: Likewise.
46034         * m4/warnings.m4: Likewise, and simplify use.
46035         Suggested by Stefano Lattarini.
46037         include-next, warnings: support older autoconf
46038         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
46039         AS_VAR_PUSHDEF in a way that works with older autoconf.
46040         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
46041         Reported by Daniel P. Berrange.
46043 2011-07-25  Bruno Haible  <bruno@clisp.org>
46045         fseek, ftell: Fix doc.
46046         * doc/posix-functions/fseek.texi: Reword statement about
46047         AC_SYS_LARGEFILE.
46048         * doc/posix-functions/ftell.texi: Likewise.
46050 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
46051             Bruno Haible  <bruno@clisp.org>
46053         Add dependencies to the 'largefile' module.
46054         * modules/fopen (Depends-on): Add 'largefile'.
46055         * modules/freopen (Depends-on): Likewise.
46056         * modules/fseeko (Depends-on): Likewise.
46057         * modules/ftello (Depends-on): Likewise.
46058         * modules/glob (Depends-on): Likewise.
46059         * modules/lseek (Depends-on): Likewise.
46060         * modules/lstat (Depends-on): Likewise.
46061         * modules/mkostemp (Depends-on): Likewise.
46062         * modules/mkostemps (Depends-on): Likewise.
46063         * modules/mkstemp (Depends-on): Likewise.
46064         * modules/mkstemps (Depends-on): Likewise.
46065         * modules/open (Depends-on): Likewise.
46066         * modules/openat (Depends-on): Likewise.
46067         * modules/pread (Depends-on): Likewise.
46068         * modules/pwrite (Depends-on): Likewise.
46069         * modules/scandir (Depends-on): Likewise.
46070         * modules/stat (Depends-on): Likewise.
46071         * modules/tmpfile (Depends-on): Likewise.
46072         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
46073         since the containing module now depends on the largefile module.
46074         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
46075         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
46076         off_t is fixed by gnulib.
46077         * doc/posix-functions/freopen.texi: Likewise.
46078         * doc/posix-functions/fseeko.texi: Likewise.
46079         * doc/posix-functions/fstatat.texi: Likewise.
46080         * doc/posix-functions/ftello.texi: Likewise.
46081         * doc/posix-functions/glob.texi: Likewise.
46082         * doc/posix-functions/lseek.texi: Likewise.
46083         * doc/posix-functions/lstat.texi: Likewise.
46084         * doc/posix-functions/mkstemp.texi: Likewise.
46085         * doc/posix-functions/open.texi: Likewise.
46086         * doc/posix-functions/openat.texi: Likewise.
46087         * doc/posix-functions/pread.texi: Likewise.
46088         * doc/posix-functions/pwrite.texi: Likewise.
46089         * doc/posix-functions/scandir.texi: Likewise.
46090         * doc/posix-functions/stat.texi: Likewise.
46091         * doc/posix-functions/tmpfile.texi: Likewise.
46092         * doc/glibc-functions/mkostemp.texi: Likewise.
46093         * doc/glibc-functions/mkostemps.texi: Likewise.
46094         * doc/glibc-functions/mkstemps.texi: Likewise.
46096 2011-07-25  Bruno Haible  <bruno@clisp.org>
46098         fcntl: Move AC_LIBOBJ invocation to module description.
46099         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
46100         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
46102         fcntl: Remove call-in from fchdir.m4.
46103         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
46104         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
46106         dup3: Remove potential call-in from fchdir.m4.
46107         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
46108         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
46110         dup2: Move AC_LIBOBJ invocation to module description.
46111         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
46112         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
46113         Don't invoke AC_LIBOBJ.
46114         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
46116         dup2: Remove call-in from fchdir.m4.
46117         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
46118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
46120         fclose: Move AC_LIBOBJ invocation to module description.
46121         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
46122         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
46123         to 1.
46124         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
46126         fclose: Remove call-in from close.m4.
46127         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
46128         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
46130         close: Move AC_LIBOBJ invocation to module description.
46131         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
46132         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
46133         1.
46134         * modules/close (configure.ac): Invoke AC_LIBOBJ.
46136         close: Remove call-in from fchdir.m4.
46137         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
46138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
46140         open: Move AC_LIBOBJ invocation to module description.
46141         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
46142         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
46143         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
46145         open: Remove call-in from fchdir.m4.
46146         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
46147         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
46149         fchdir: Start to remove gl_REPLACE_* idiom.
46150         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
46151         (gl_FUNC_FCHDIR): Invoke it.
46153 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
46155         * lib/ftell.c (ftell): Comment out cast.
46157         close: use gl_REPLACE_FCLOSE only if defined
46158         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
46159         is defined.  The close module doesn't depend on the fclose module
46160         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
46161         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
46162         I reproduced the problem with "./gnulib-tool --test close sys_socket".
46164 2011-07-24  Jim Meyering  <meyering@redhat.com>
46166         test-select.h: avoid warning when using gcc's -Wmissing-declarations
46167         * tests/test-select.h (test_function): Declare as "static".
46169 2011-07-24  Bruno Haible  <bruno@clisp.org>
46171         doc: Mention the effects of AC_SYS_LARGEFILE.
46172         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
46173         on this function.
46174         * doc/posix-functions/aio_error.texi: Likewise.
46175         * doc/posix-functions/aio_fsync.texi: Likewise.
46176         * doc/posix-functions/aio_read.texi: Likewise.
46177         * doc/posix-functions/aio_return.texi: Likewise.
46178         * doc/posix-functions/aio_suspend.texi: Likewise.
46179         * doc/posix-functions/aio_write.texi: Likewise.
46180         * doc/posix-functions/fgetpos.texi: Likewise.
46181         * doc/posix-functions/fopen.texi: Likewise.
46182         * doc/posix-functions/freopen.texi: Likewise.
46183         * doc/posix-functions/fsetpos.texi: Likewise.
46184         * doc/posix-functions/fstatvfs.texi: Likewise.
46185         * doc/posix-functions/ftruncate.texi: Likewise.
46186         * doc/posix-functions/ftw.texi: Likewise.
46187         * doc/posix-functions/getrlimit.texi: Likewise.
46188         * doc/posix-functions/glob.texi: Likewise.
46189         * doc/posix-functions/lio_listio.texi: Likewise.
46190         * doc/posix-functions/lockf.texi: Likewise.
46191         * doc/posix-functions/mkstemp.texi: Likewise.
46192         * doc/posix-functions/mmap.texi: Likewise.
46193         * doc/posix-functions/nftw.texi: Likewise.
46194         * doc/posix-functions/openat.texi: Likewise.
46195         * doc/posix-functions/opendir.texi: Likewise.
46196         * doc/posix-functions/posix_fadvise.texi: Likewise.
46197         * doc/posix-functions/posix_fallocate.texi: Likewise.
46198         * doc/posix-functions/pread.texi: Likewise.
46199         * doc/posix-functions/pwrite.texi: Likewise.
46200         * doc/posix-functions/readdir.texi: Likewise.
46201         * doc/posix-functions/readdir_r.texi: Likewise.
46202         * doc/posix-functions/rewinddir.texi: Likewise.
46203         * doc/posix-functions/scandir.texi: Likewise.
46204         * doc/posix-functions/seekdir.texi: Likewise.
46205         * doc/posix-functions/setrlimit.texi: Likewise.
46206         * doc/posix-functions/statvfs.texi: Likewise.
46207         * doc/posix-functions/telldir.texi: Likewise.
46208         * doc/posix-functions/tmpfile.texi: Likewise.
46209         * doc/posix-functions/truncate.texi: Likewise.
46210         * doc/glibc-functions/fallocate.texi: Likewise.
46211         * doc/glibc-functions/fstatfs.texi: Likewise.
46212         * doc/glibc-functions/fts_children.texi: Likewise.
46213         * doc/glibc-functions/fts_read.texi: Likewise.
46214         * doc/glibc-functions/getdirentries.texi: Likewise.
46215         * doc/glibc-functions/mkostemp.texi: Likewise.
46216         * doc/glibc-functions/mkostemps.texi: Likewise.
46217         * doc/glibc-functions/mkstemps.texi: Likewise.
46218         * doc/glibc-functions/preadv.texi: Likewise.
46219         * doc/glibc-functions/pwritev.texi: Likewise.
46220         * doc/glibc-functions/sendfile.texi: Likewise.
46221         * doc/glibc-functions/statfs.texi: Likewise.
46223 2011-07-24  Bruno Haible  <bruno@clisp.org>
46225         doc: Fix typo.
46226         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
46228 2011-07-24  Bruno Haible  <bruno@clisp.org>
46230         doc: Mention fsusage.
46231         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
46233 2011-07-24  Bruno Haible  <bruno@clisp.org>
46235         doc: Mention new glibc headers and functions.
46236         * doc/glibc-headers/gshadow.texi: New file.
46237         * doc/glibc-functions/endsgent.texi: New file.
46238         * doc/glibc-functions/fgetsgent.texi: New file.
46239         * doc/glibc-functions/fgetsgent_r.texi: New file.
46240         * doc/glibc-functions/getsgent.texi: New file.
46241         * doc/glibc-functions/getsgent_r.texi: New file.
46242         * doc/glibc-functions/getsgnam.texi: New file.
46243         * doc/glibc-functions/getsgnam_r.texi: New file.
46244         * doc/glibc-functions/putsgent.texi: New file.
46245         * doc/glibc-functions/setsgent.texi: New file.
46246         * doc/glibc-functions/sgetsgent.texi: New file.
46247         * doc/glibc-functions/sgetsgent_r.texi: New file.
46248         * doc/glibc-functions/malloc_info.texi: New file.
46249         * doc/glibc-functions/preadv.texi: New file.
46250         * doc/glibc-functions/pwritev.texi: New file.
46251         * doc/glibc-functions/register_printf_modifier.texi: New file.
46252         * doc/glibc-functions/register_printf_specifier.texi: New file.
46253         * doc/glibc-functions/register_printf_type.texi: New file.
46254         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
46255         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
46256         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
46257         * doc/glibc-functions/pthread_getname_np.texi: New file.
46258         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
46259         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
46260         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
46261         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
46262         * doc/glibc-functions/pthread_setname_np.texi: New file.
46263         * doc/glibc-functions/pthread_sigqueue.texi: New file.
46264         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
46265         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
46266         * doc/glibc-functions/qsort_r.texi: New file.
46267         * doc/glibc-functions/quick_exit.texi: New file.
46268         * doc/glibc-functions/syncfs.texi: New file.
46269         * doc/gnulib.texi: Include them.
46270         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
46271         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
46272         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
46273         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
46274         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
46275         * doc/glibc-functions/execvpe.texi: Likewise.
46277 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46279         ftell: don't include <unistd.h>
46280         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
46281         guaranteed to define off_t, and the ftell module depends on the
46282         stdio module.
46284         ftell: do not assume wraparound signed arithmetic
46285         * lib/ftell.c: Include <limits.h>.
46286         (ftell): Don't assume wraparound signed arithmetic.
46288 2011-07-24  Bruno Haible  <bruno@clisp.org>
46290         close: No longer depend on module 'fclose'.
46291         * modules/close (Depends-on): Remove fclose.
46292         * NEWS: Mention the change.
46293         Suggested by Sam Steingold <sds@gnu.org>.
46295 2011-07-24  Bruno Haible  <bruno@clisp.org>
46297         fsusage: Enable large volume support on AIX >= 5.2.
46298         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
46299         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
46300         instead of STAT_STATVFS.
46301         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
46303         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
46304         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
46305         f_blocks field only on MacOS X.
46307         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
46308         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
46309         * modules/fsusage (Depends-on): Add largefile.
46311 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46313         * README: Modernize discussion of signed integers.
46314         Assuming overflow wraparound is no longer safe.
46315         Mention ones' complement and signed magnitude.
46317 2011-07-22  Bruno Haible  <bruno@clisp.org>
46319         select tests, pselect tests: Refactor.
46320         * tests/test-select.h: New file, extracted from tests/test-select.c.
46321         (select_fn): New type.
46322         (test, do_select, do_select_nowait, do_select_wait, test_tty,
46323         test_connect_first, test_accept_first, test_pair, test_socket_pair,
46324         test_pipe): Add my_select argument.
46325         (test_function): Renamed from main. Add my_select argument.
46326         * tests/test-select.c: Move most code to tests/test-select.h. Include
46327         test-select.h.
46328         * modules/select-tests (Files): Add tests/test-select.h.
46329         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
46330         (my_select, main): New functions.
46331         * modules/pselect-tests (Files): Add tests/test-select.h,
46332         tests/macros.h, tests/signature.h.
46333         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
46334         (configure.ac): Check for <sys/wait.h>.
46336 2011-07-22  Bruno Haible  <bruno@clisp.org>
46338         sys_select tests: Check the signature of FD_*.
46339         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
46340         signature tests from here...
46341         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
46342         here.
46343         * modules/sys_select-tests (Files): Add tests/signature.h.
46345 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46347         largefile: new module, replacing large-inode
46348         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
46349         * MODULES.html.sh: Add largefile, remove large-inode.
46350         * modules/largefile, m4/largefile.m4: New files.
46351         * modules/large-inode, m4/large-inode.m4: Remove.
46353         fsusage: port to MacOS X 10.7 with 4 TiB file systems
46354         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
46355         implementations that use only 32 bits to count blocks.
46356         On typical hosts with 1024-byte blocks, this fails with file
46357         systems as small as 4 TiB.  Problem reported by Herb Wartens
46358         <http://debbugs.gnu.org/9140> and this should also fix a similar
46359         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
46361         large-inode: New module
46362         * MODULES.html.sh: Add it.
46363         * modules/large-inode, m4/large-inode.m4: New files.
46365         extensions: Enable extensions on MacOS X 10.5 and later.
46366         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
46368 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
46370         file-has-acl: use acl_extended_file_nofollow if available
46371         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
46372         (acl_extended_file): New macro.
46373         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
46374         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
46376 2011-07-21  Bruno Haible  <bruno@clisp.org>
46378         Declare system functions in a way that works with C++.
46379         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
46380         declare fdopendir as extern "C".
46381         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
46382         declare frexpl as extern "C".
46383         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
46384         declare gai_strerror as extern "C".
46385         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
46386         programs, declare gai_strerror as extern "C".
46387         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
46388         declare getlogin_r as extern "C".
46389         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
46390         as extern "C".
46391         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
46392         declare ldexpl as extern "C".
46393         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
46394         as extern "C".
46395         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
46396         program, declare getmntinfo as extern "C".
46397         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
46398         stpncpy as extern "C".
46399         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
46400         program, declare __xpg_strerror_r as extern "C".
46401         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
46402         strndup as extern "C".
46403         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
46404         declare memset and bzero as extern "C".
46405         Reported by Sam Steingold <sds@gnu.org>.
46407 2011-07-12  Jim Meyering  <meyering@redhat.com>
46409         maint.mk: prohibit inclusion of "verify.h" without use
46410         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
46412 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46414         timer-time: A new module to check for timer_settime()
46415         * m4/timer_time.m4: Check for the posix function.
46416         * modules/timer-time: Add the new module.
46417         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
46418         Mention it.
46420 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
46421             Bruno Haible  <bruno@clisp.org>
46423         pthread_sigmask: assume POSIX threads if --avoid=threadlib
46424         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
46425         not defined, assume POSIX threads and look for pthread_sigmask in
46426         $LIBS, without changing $CPPFLAGS.
46428 2011-07-19  Bruno Haible  <bruno@clisp.org>
46430         strstr: Update cross-compilation guess.
46431         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
46432         CPUs, guess no, in view of glibc
46433         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
46434         Suggested by Eric Blake. Reported by Reuben Thomas.
46436 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46438         getopt-gnu: suppress core dumps from detection code
46439         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
46440         to suppress core dumps that may well occur on glibc systems.
46441         * modules/getopt-gnu: Depend on nocrash.
46443 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46445         pthread_sigmask: ensure usleep is declared
46446         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
46447         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
46449 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
46451         doc: Document NonStop portability issues.
46452         * doc/posix-functions/sigaction.texi (sigaction):
46453         * doc/posix-headers/signal.texi (signal.h):
46454         Document NonStop.  See Joachim Schmitz in
46455         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
46457 2011-07-15  Bruno Haible  <bruno@clisp.org>
46459         ffsl, ffsll: Avoid unportable behaviour.
46460         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
46462 2011-07-15  Bruno Haible  <bruno@clisp.org>
46464         ffs: More tests.
46465         * tests/test-ffs.c (NBITS): New macro.
46466         (main): Add more tests.
46467         * tests/test-ffsl.c (NBITS): New macro.
46468         (main): Add more tests.
46469         * tests/test-ffsll.c (NBITS): New macro.
46470         (main): Add more tests.
46472 2011-07-15  Eric Blake  <eblake@redhat.com>
46474         ffsl, ffsll: new modules
46475         * modules/ffsl: New file.
46476         * modules/ffsll: Likewise.
46477         * m4/ffsl.m4: Likewise.
46478         * m4/ffsll.m4: Likewise.
46479         * lib/ffsl.c: Likewise.
46480         * lib/ffsl.h: Likewise.
46481         * lib/ffsll.c: Likewise.
46482         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
46483         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
46484         * modules/string (Makefile.am): Substitute witnesses.
46485         * lib/strings.in.h (ffsl, ffsll): Declare.
46486         * modules/ffsl-tests: New test file.
46487         * modules/ffsll-tests: Likewise.
46488         * tests/test-ffsl.c: Likewise.
46489         * tests/test-ffsll.c: Likewise.
46490         * MODULES.html.sh (Integer arithmetic functions): Mention it.
46491         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
46492         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
46494         ffs: fix m4 prerequisite
46495         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
46497         ffs: avoid undefined behavior
46498         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
46499         * tests/test-ffs.c (naive, main): Avoid signed shifts.
46500         Reported by Bruno Haible.
46502 2011-07-12  Bruno Haible  <bruno@clisp.org>
46504         pthread_sigmask: Rely on module 'threadlib'.
46505         * modules/pthread_sigmask (Depends-on): Add threadlib.
46506         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
46507         is defined.
46509 2011-07-12  Bruno Haible  <bruno@clisp.org>
46511         regex: Depend on module 'strcase'.
46512         * modules/regex (Depends-on): Add strcase, for strcasecmp().
46514 2011-07-12  Jim Meyering  <meyering@redhat.com>
46516         warn-on-use: fix typo in file name
46517         * modules/snippet/warn-on-use (Files): Correct file name:
46518         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
46520 2011-07-12  Bruno Haible  <bruno@clisp.org>
46522         strings: Document module.
46523         * doc/posix-headers/strings.texi: Mention module 'strings'.
46525 2011-07-12  Bruno Haible  <bruno@clisp.org>
46527         Rename module '_Noreturn' to 'snippet/_Noreturn'.
46528         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
46529         (Files, Makefile.am): Update.
46530         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
46531         * modules/stdlib (Depends-on): Update.
46533 2011-07-12  Bruno Haible  <bruno@clisp.org>
46535         * NEWS: Mention the changes.
46537         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
46538         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
46539         (Files, Makefile.am): Update.
46540         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
46541         * modules/arpa_inet (Depends-on): Update.
46542         * modules/ctype (Depends-on): Update.
46543         * modules/dirent (Depends-on): Update.
46544         * modules/fcntl-h (Depends-on): Update.
46545         * modules/glob (Depends-on): Update.
46546         * modules/iconv-h (Depends-on): Update.
46547         * modules/inttypes-incomplete (Depends-on): Update.
46548         * modules/langinfo (Depends-on): Update.
46549         * modules/locale (Depends-on): Update.
46550         * modules/math (Depends-on): Update.
46551         * modules/netdb (Depends-on): Update.
46552         * modules/poll-h (Depends-on): Update.
46553         * modules/pty (Depends-on): Update.
46554         * modules/search (Depends-on): Update.
46555         * modules/signal (Depends-on): Update.
46556         * modules/spawn (Depends-on): Update.
46557         * modules/stdio (Depends-on): Update.
46558         * modules/stdlib (Depends-on): Update.
46559         * modules/string (Depends-on): Update.
46560         * modules/strings (Depends-on): Update.
46561         * modules/sys_file (Depends-on): Update.
46562         * modules/sys_ioctl (Depends-on): Update.
46563         * modules/sys_select (Depends-on): Update.
46564         * modules/sys_socket (Depends-on): Update.
46565         * modules/sys_stat (Depends-on): Update.
46566         * modules/sys_time (Depends-on): Update.
46567         * modules/sys_times (Depends-on): Update.
46568         * modules/sys_utsname (Depends-on): Update.
46569         * modules/sys_wait (Depends-on): Update.
46570         * modules/termios (Depends-on): Update.
46571         * modules/time (Depends-on): Update.
46572         * modules/unistd (Depends-on): Update.
46573         * modules/wchar (Depends-on): Update.
46574         * modules/wctype-h (Depends-on): Update.
46575         * MODULES.html.sh (Support for building libraries and executables):
46576         Update.
46578         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
46579         * modules/snippet/unused-parameter: Renamed from
46580         modules/unused-parameter.
46581         (Files, Makefile.am): Update.
46582         * build-aux/snippet/unused-parameter.h: Renamed from
46583         build-aux/unused-parameter.h.
46584         * modules/selinux-h (Depends-on): Update.
46585         * modules/unistr/base (Depends-on): Update.
46586         * MODULES.html.sh (Core language properties): Update.
46588         Rename module 'link-warning' to 'snippet/link-warning'.
46589         * modules/snippet/link-warning: Renamed from modules/link-warning.
46590         (Files, Makefile.am): Update.
46591         * build-aux/snippet/link-warning.h: Renamed from
46592         build-aux/link-warning.h.
46593         * MODULES.html.sh (Support for building libraries and executables):
46594         Update.
46596         Rename module 'c++defs' to 'snippet/c++defs'.
46597         * modules/snippet/c++defs: Renamed from modules/c++defs.
46598         (Files, Makefile.am): Update.
46599         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
46600         * modules/arpa_inet (Depends-on): Update.
46601         * modules/ctype (Depends-on): Update.
46602         * modules/dirent (Depends-on): Update.
46603         * modules/fcntl-h (Depends-on): Update.
46604         * modules/glob (Depends-on): Update.
46605         * modules/iconv-h (Depends-on): Update.
46606         * modules/langinfo (Depends-on): Update.
46607         * modules/locale (Depends-on): Update.
46608         * modules/math (Depends-on): Update.
46609         * modules/netdb (Depends-on): Update.
46610         * modules/poll-h (Depends-on): Update.
46611         * modules/pty (Depends-on): Update.
46612         * modules/search (Depends-on): Update.
46613         * modules/signal (Depends-on): Update.
46614         * modules/spawn (Depends-on): Update.
46615         * modules/stdio (Depends-on): Update.
46616         * modules/stdlib (Depends-on): Update.
46617         * modules/string (Depends-on): Update.
46618         * modules/strings (Depends-on): Update.
46619         * modules/sys_ioctl (Depends-on): Update.
46620         * modules/sys_select (Depends-on): Update.
46621         * modules/sys_socket (Depends-on): Update.
46622         * modules/sys_stat (Depends-on): Update.
46623         * modules/sys_time (Depends-on): Update.
46624         * modules/sys_wait (Depends-on): Update.
46625         * modules/termios (Depends-on): Update.
46626         * modules/time (Depends-on): Update.
46627         * modules/unistd (Depends-on): Update.
46628         * modules/wchar (Depends-on): Update.
46629         * modules/wctype-h (Depends-on): Update.
46631         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
46632         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
46633         (Files, Makefile.am): Update.
46634         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
46635         * modules/argv-iter (Depends-on): Update.
46636         * modules/arpa_inet (Depends-on): Update.
46637         * modules/dirent (Depends-on): Update.
46638         * modules/fcntl-h (Depends-on): Update.
46639         * modules/fnmatch (Depends-on): Update.
46640         * modules/getopt-posix (Depends-on): Update.
46641         * modules/glob (Depends-on): Update.
46642         * modules/iconv-h (Depends-on): Update.
46643         * modules/inttypes-incomplete (Depends-on): Update.
46644         * modules/locale (Depends-on): Update.
46645         * modules/math (Depends-on): Update.
46646         * modules/netdb (Depends-on): Update.
46647         * modules/search (Depends-on): Update.
46648         * modules/signal (Depends-on): Update.
46649         * modules/spawn (Depends-on): Update.
46650         * modules/stdio (Depends-on): Update.
46651         * modules/stdlib (Depends-on): Update.
46652         * modules/string (Depends-on): Update.
46653         * modules/strings (Depends-on): Update.
46654         * modules/sys_socket (Depends-on): Update.
46655         * modules/sys_stat (Depends-on): Update.
46656         * modules/sys_time (Depends-on): Update.
46657         * modules/sys_times (Depends-on): Update.
46658         * modules/sys_utsname (Depends-on): Update.
46659         * modules/time (Depends-on): Update.
46660         * modules/unistd (Depends-on): Update.
46661         * modules/wchar (Depends-on): Update.
46662         * MODULES.html.sh (Support for building libraries and executables):
46663         Update.
46665 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
46667         Improvements on _Noreturn and related modules.
46669         modules/_Exit-tests: test _Noreturn too
46670         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
46671         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
46672         (main): Use them.
46674         stdnoreturn, stdnoreturn-tests: remove modules
46675         They're not needed here and a bit premature for use elsewhere.  See
46676         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
46677         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
46678         * tests/test-stdnoreturn.c: Remove files.
46679         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
46680         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
46681         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
46682         and using noreturn.
46683         * modules/openat, modules/sigpipe-die, modules/xalloc:
46684         * modules/xmemdup0, modules/xstrtol:
46685         Remove dependency on stdnoreturn.
46687         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
46688         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
46689         Reparenthesize to avoid GCC warning.
46690         Support Microsoft's syntax.
46691         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
46693         _Noreturn-tests: remove module
46694         * modules/_Noreturn-tests: Remove.
46695         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
46696         * tests/test-_Noreturn.c: Remove.
46697         * tests/test-stdnoreturn.c: Merge from the old
46698         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
46700 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
46702         _Noreturn, stdnoreturn, and related modules.
46704         * top/maint.mk: Adjust to new noreturn support.
46705         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
46706         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
46708         xalloc: use stdnoreturn.h
46709         * lib/xalloc.h: Include <stdnoreturn.h>.
46710         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46711         * modules/xalloc (Depends-on): Add stdnoreturn.
46713         xstrtol: use stdnoreturn.h
46714         * lib/xstrtol.h: Include <stdnoreturn.h>.
46715         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46716         * modules/xstrtol (Depends-on): Add stdnoreturn.
46718         xmemdup0: use stdnoreturn.h
46719         * lib/xmemdup0.h: Include <stdnoreturn.h>.
46720         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46721         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
46723         sigpipe-die: use stdnoreturn.h
46724         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
46725         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46726         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
46728         openat: use stdnoreturn.h
46729         * lib/openat.h: Include <stdnoreturn.h>.
46730         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46731         * modules/openat (Depends-on): Add stdnoreturn.
46733         * lib/openat-die.c (openat_save_fail): Modernize comment.
46735         * lib/xalloc-die.c (xalloc_die): Modernize comment.
46737         * lib/glthread/thread.h: Modernize comment.
46739         obstack: use _Noreturn
46740         * lib/obstack.c (__attribute__): Remove macro.
46741         (print_and_abort): Use _Noreturn.
46743         c-stack: use _Noreturn
46744         * lib/c-stack.c (die, overflow_handler, segv_handler):
46745         Use _Noreturn rather than __attribute__((noreturn)).
46747         argmatch-tests, exclude_tests: use _Noreturn
46748         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
46749         Remove.
46750         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
46752         stdlib: use _Noreturn
46753         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
46754         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
46755         * modules/stdlib (Depends-on): Add _Noreturn.
46756         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
46758         stdnoreturn-tests: new module
46759         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
46761         stdnoreturn: new module
46762         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
46763         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
46765         _Noreturn-tests: new module
46766         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
46768         _Noreturn: new module
46769         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
46770         New section, mentioning it.
46771         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
46773         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
46775 2011-07-11  Eric Blake  <eblake@redhat.com>
46777         ffs: new module
46778         * modules/ffs: New file.
46779         * m4/ffs.m4: Likewise.
46780         * lib/ffs.c: Likewise.
46781         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
46782         * modules/strings (Makefile.am): Substitute witness.
46783         (Depends-on): Add c++defs.
46784         * lib/strings.in.h (ffs): Declare.
46785         * modules/ffs-tests: New test file.
46786         * tests/test-ffs.c: Test new module.
46787         * MODULES.html.sh (Integer arithmetic functions): Mention it.
46788         * doc/posix-functions/ffs.texi (ffs): Likewise.
46790         regex: avoid compiler warning
46791         * lib/regex.c (includes): Include <strings.h>, for use of
46792         strcasecmp in regcomp.c.
46793         Reported by Joachim Schmitz.
46795 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46797         stdint: respect system's intmax_t if INTMAX_MAX
46798         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
46799         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
46800         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
46801         long but int64_t is long long, and where we will clash with the
46802         system intmax_t if we override it.  See
46803         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
46804         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
46805         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
46806         similarly for UINTMAX_C.
46808 2011-07-08  Bruno Haible  <bruno@clisp.org>
46810         pthread_sigmask tests: Avoid a compiler warning.
46811         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
46812         non-zero.
46814         sigprocmask tests: A better way to avoid a compiler warning.
46815         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
46816         (main): Complain if system() returns non-zero.
46817         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
46819 2011-07-08  Bruno Haible  <bruno@clisp.org>
46821         pthread_sigmask: Work around IRIX bug.
46822         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
46823         bug.
46824         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
46825         there may be unblocked pending signals.
46826         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
46828 2011-07-08  Bruno Haible  <bruno@clisp.org>
46830         pthread_sigmask: Work around Cygwin bug.
46831         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
46832         bug.
46833         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
46834         the system's pthread_sigmask function.
46835         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
46837 2011-07-08  Bruno Haible  <bruno@clisp.org>
46839         pthread_sigmask: Work around bug in single-threaded implementation.
46840         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
46841         FreeBSD, HP-UX, Solaris bug.
46842         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
46843         * lib/pthread_sigmask.c: Include <stddef.h>.
46844         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
46845         the system's pthread_sigmask function.
46846         * modules/pthread_sigmask (configure.ac): Invoke
46847         gl_PREREQ_PTHREAD_SIGMASK.
46848         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
46849         HP-UX, Solaris.
46851 2011-07-08  Eric Blake  <eblake@redhat.com>
46853         test-sigprocmask: avoid compiler warning
46854         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
46855         * tests/test-sigprocmask.c (main): Use it to silence warning.
46856         Reported by Jim Meyering.
46858         test-snprintf: avoid compiler warning
46859         * tests/test-snprintf.c (main): Avoid shadowed declaration.
46860         * tests/test-vsnprintf.c (main): Likewise.
46861         Reported by Jim Meyering.
46863 2011-07-08  Bruno Haible  <bruno@clisp.org>
46865         Tests for module 'pthread_sigmask'.
46866         * modules/pthread_sigmask-tests: New file.
46867         * tests/test-pthread_sigmask1.c: New file, based on
46868         tests/test-sigprocmask.c.
46869         * tests/test-pthread_sigmask2.c: New file.
46871 2011-07-08  Jim Meyering  <meyering@redhat.com>
46873         test-getopt.h: avoid warning about an unused variable
46874         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
46876 2011-07-07  Jim Meyering  <meyering@redhat.com>
46878         maint: reduce list of files exempt from sc_prohibit_leading_TABs
46879         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
46880         now that it no longer contains leading TABs.
46881         Remove unused "url=FIXME" statement.
46883 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46885         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
46886         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
46887         When gl_THREADLIB is not in use, assume that the POSIX sematics
46888         are desired.  This is better for Emacs, which uses POSIX semantics
46889         on GNUish and/or POSIXish platforms, and does not use threads at
46890         all otherwise.
46892         pthread_sigmask: fix typo when testing for libraries
46893         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
46894         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
46896 2011-07-08  Eric Blake  <eblake@redhat.com>
46898         fts: introduce FTS_NOATIME
46899         * lib/fts_.h (FTS_NOATIME): New bit flag.
46900         (FTS_OPTIONMASK): Adjust.
46901         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
46902         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
46904 2011-07-08  Bruno Haible  <bruno@clisp.org>
46906         Tests for module 'thread'.
46907         * modules/thread-tests: New file.
46908         * tests/test-thread_self.c: New file.
46909         * tests/test-thread_create.cc: New file.
46911 2011-07-08  Bruno Haible  <bruno@clisp.org>
46913         thread: Avoid gcc warnings when using gl_thread_self().
46914         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
46915         'void *'.
46916         (gl_thread_self_pointer): Update.
46918 2011-07-07  Bruno Haible  <bruno@clisp.org>
46920         signal-c++-tests: Check declaration of pthread_sigmask.
46921         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
46922         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
46923         $(LIB_PTHREAD_SIGMASK).
46925 2011-07-07  Bruno Haible  <bruno@clisp.org>
46927         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
46928         * lib/signal.in.h (pthread_sigmask): Override if
46929         REPLACE_PTHREAD_SIGMASK is 1.
46930         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46931         REPLACE_PTHREAD_SIGMASK.
46932         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
46933         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
46934         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
46935         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
46936         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
46938 2011-07-07  Bruno Haible  <bruno@clisp.org>
46940         pthread_sigmask: Ensure declaration in <signal.h>.
46941         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
46942         include <pthread.h>.
46943         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
46944         problem.
46946 2011-07-07  Bruno Haible  <bruno@clisp.org>
46948         pthread_sigmask: Document the module.
46949         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
46951 2011-07-07  Bruno Haible  <bruno@clisp.org>
46953         pthread_sigmask: Follow gnulib conventions.
46954         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
46955         gl_PTHREAD_SIGMASK.
46956         * modules/pthread_sigmask (configure.ac): Update.
46958 2011-07-07  Bruno Haible  <bruno@clisp.org>
46960         pthread_sigmask: Make declaration C++ safe.
46961         * lib/signal.in.h: In two special conditions, just do an #include_next.
46962         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
46963         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
46964         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46965         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
46966         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
46967         not REPLACE_PTHREAD_MASK.
46968         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
46969         not REPLACE_PTHREAD_MASK.
46970         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
46972 2011-07-07  Bruno Haible  <bruno@clisp.org>
46974         pthread_sigmask: Fix return value.
46975         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
46976         * lib/pthread_sigmask.c: New file.
46977         * modules/pthread_sigmask (Files): Add it.
46978         (configure.ac): Invoke AC_LIBOBJ.
46980 2011-07-07  Eric Blake  <eblake@redhat.com>
46982         getopt: more portable argv creation
46983         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
46984         const, use char arrays rather than strings.
46985         Suggested by Paul Eggert.
46987 2011-07-07  Bruno Haible  <bruno@clisp.org>
46989         Tests for module 'sigprocmask'.
46990         * modules/sigprocmask-tests: New file.
46991         * tests/test-sigprocmask.c: New file.
46993 2011-07-07  Bruno Haible  <bruno@clisp.org>
46995         float tests: Tweak.
46996         * tests/test-float.c (main): Tweak skip message.
46998 2011-07-07  Eric Blake  <eblake@redhat.com>
47000         getopt: avoid compiler warning during configure
47001         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
47002         assigning string literals to non-const pointer.
47004         getopt-gnu: avoid crash in glibc getopt
47005         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
47006         * tests/test-getopt.h (test_getopt): Enhance test.
47007         * tests/test-getopt_long.h (test_getopt_long): Likewise.
47008         * doc/posix-functions/getopt.texi (getopt): Document it.
47009         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
47010         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
47011         Likewise.
47013 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
47015         getopt: handle W; without long options in getopt [BZ #12922]
47016         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
47017         but no long options are defined, just return 'W'.
47019 2011-07-07  Bruno Haible  <bruno@clisp.org>
47021         Avoid literal tabs.
47022         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
47023         variable containing a tab instead of a literal tab.
47024         Reported by Jim Meyering.
47026 2011-07-07  Bruno Haible  <bruno@clisp.org>
47028         Comments.
47029         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
47031 2011-07-06  Bruno Haible  <bruno@clisp.org>
47033         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
47034         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
47035         <winsock2.h>.
47036         (rpl_fd_isset, FD_ISSET): New definitions, copied from
47037         lib/sys_socket.in.h.
47038         (close, gethostname): Hide declarations from <winsock2.h>.
47039         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47040         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
47041         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
47042         (select): Don't override if gnulib's <sys/select.h> was already
47043         included.
47044         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
47045         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
47046         setsockopt, shutdown, select): Tweak indentation.
47048 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47050         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
47051         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
47052         in an application that does not use the sys_select module.
47054 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
47056         poll: do not return 0 on timeout=-1
47057         * lib/poll.c: Loop with yield if no events occurred.
47059 2011-07-06  Eric Blake  <eblake@redhat.com>
47061         pthread_sigmask: always replace when not using pthread
47062         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
47063         replacement when using some threading other than pthread.  Fix
47064         logic bug.
47066 2011-07-06  Bruno Haible  <bruno@clisp.org>
47068         Comments.
47069         * m4/printf.m4: Update comments about mingw.
47071 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47073         sys_select: define sigset_t more portably
47074         * lib/sys_select.in.h: Always include <sys/types.h>, since
47075         we now need sigset_t and mingw defines it there.
47076         Include <signal.h> before split inclusion guard, to avoid
47077         mishaps on Solaris, whose <signal.h> eventually includes us.
47078         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
47079         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
47080         which come from ...
47081         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
47082         gl_CHECK_TYPE_SIGSET_T.
47083         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
47084         does the real work.
47085         * modules/sys_select (Depends-on): Add 'signal'.
47087         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
47088         Suggested by Bruno Haible.
47090         pselect: Use pthread_sigmask, not sigprocmask.
47091         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
47092         multithreaded apps better than sigprocmask does.
47093         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
47094         sigprocmask directly.
47096 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
47098         * lib/pselect.c (pselect): Use plain name, without "rpl_".
47099         Don't #undef,  since we don't need any underlying pselect.
47100         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
47101         (Depends-on): Add select.
47102         (Link): Add $(LIBSOCKET).
47103         These changes suggested by Bruno Haible.
47105         pselect: document better
47106         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
47107         * doc/posix-functions/pselect.texi (pselect): Document new module.
47109         pthread_sigmask: new module
47110         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
47111         * doc/posix-functions/pthread_sigmask.texi: Document new module.
47112         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
47113         This is done only as a macro; I don't know how well that'll
47114         work for C++.  Move <sys/types.h> include before the include_next,
47115         to avoid mishap on Solaris.
47116         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
47117         * modules/signal (Makefile.am): Substitute the check's results.
47118         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
47120         test-pselect: new module
47121         * modules/pselect-tests, tests/test-pselect.c: New files.
47122         * tests/test-select.c, tests/test-sys_select-c++.cc:
47123         If TEST_PSELECT is defined, test pselect instead of testing select.
47125         * tests/test-sys_select.c (sigset_t): Test for it, too.
47126         Suggested by Bruno Haible.
47128 2011-07-05  Eric Blake  <eblake@redhat.com>
47130         snprintf: guarantee %1$d, for libintl
47131         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
47132         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47133         * doc/posix-functions/snprintf.texi (snprintf): Update.
47134         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47135         * tests/test-snprintf.c (main): Enhance test.
47136         * tests/test-vsnprintf.c (main): Likewise.
47138 2011-07-05  Jim Meyering  <meyering@redhat.com>
47140         maint: exempt stdio-read.c and stdio-write.c from the cppi check
47141         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
47142         per Bruno's request, to accommodate this idiom (no space after "#")
47143         even when the function is inside an #if block:
47144         char *
47145         gets (char *s)
47146         #undef gets
47147         {
47148           ...
47149         }
47151 2011-07-04  Jim Meyering  <meyering@redhat.com>
47153         maint: indent with spaces, not TABs, and add a rule to check this
47154         * tests/test-userspec.c: Indent with spaces, not TABs.
47155         * tests/test-argp.c: Likewise.
47156         * tests/test-c-stack2.sh: Likewise.
47157         * tests/test-parse-duration.sh: Likewise
47158         * m4/strtod.m4: Likewise.
47159         * m4/alloca.m4: Likewise.
47160         * m4/pselect.m4: Likewise.
47161         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
47163 2011-07-03  Jim Meyering  <meyering@redhat.com>
47165         maint.mk: correct omissions in prohibit_argmatch_without_use check
47166         This rule would mistakenly report that argmatch.h is included without
47167         use even when both the argmatch and invalid_arg macro were used.
47168         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
47169         of argmatch and invalid_arg.
47171 2011-07-03  Bruno Haible  <bruno@clisp.org>
47173         Comments about EINTR.
47174         * lib/safe-read.h: Explain the purpose of this module.
47175         * lib/safe-write.h: Likewise.
47176         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
47177         module.
47178         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
47179         module.
47180         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47182 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
47184         xnanosleep: Rewrite to use new dtotimespec module.
47185         It has the conversion code that used to be in xnanosleep.
47186         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
47187         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
47188         (TIME_T_MAX): Remove.
47189         (xnanosleep): Rewrite in terms of dtotimespec.
47190         * modules/xnanosleep (Depends-on): Add dtotimespec.
47191         Remove intprops, stdbool.
47193         timespec-add, timespec-sub: new modules
47194         * lib/timespec.h (timespec_add, timespec_sub): New decls.
47195         * lib/timespec-add.c, lib/timespec-sub.c:
47196         * modules/timespec-add, modules/timespec-sub: New files.
47198         dtotimespec: new module
47199         * lib/timespec.h (dtotimespec): New decl.
47200         * lib/dtotimespec.c, modules/dtotimespec: New files.
47202         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
47204         pselect: new module
47205         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
47206         (pselect): New decls.
47207         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
47208         since the standard pselect decl uses 'restrict'.
47209         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
47210         HAVE_PSELECT, REPLACE_PSELECT.
47211         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
47212         HAVE_PSELECT, REPLACE_PSELECT.
47213         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
47215         sys_select: don't depend on sys_socket
47216         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
47217         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
47218         This fix works on GNU and GNU-like platforms, but has not been tested
47219         on native Windows.
47220         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
47221         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
47222         gl_HEADER_SYS_SOCKET.
47223         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
47224         gl_PREREQ_SYS_H_WINSOCK2.
47226 2011-06-29  Eric Blake  <eblake@redhat.com>
47228         pipe2: fix C89 compile problem
47229         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
47230         Reported by Bruno Haible.
47232         pipe, pipe2: don't corrupt fd on error
47233         * lib/pipe.c (pipe): Leave fd unchanged on error.
47234         * lib/pipe2.c (pipe2): Likewise.
47235         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
47236         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
47238 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
47240         mmap-anon: do not use regular expressions inadvertently
47241         * m4/mmap-anon.m4: Remove trailing period from strings sought
47242         in the output.
47244 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
47246         nanosleep: fix integer overflow problem
47247         * lib/nanosleep.c (my_usleep): Don't assume signed integer
47248         arithmetic wraps around on overflow.
47250         nanosleep: simplify carrying
47251         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
47252         first call to the underyling nanosleep, not for the last one.
47253         This doesn't fix any bugs, but it simplifies the computation of
47254         the remaining delay.  Found while auditing integer overflow issues.
47256         dup2: remove test for existence of fcntl
47257         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
47258         "#if HAVE_FCNTL", in the configure-time test program.
47259         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
47260         and therefore speeds up "configure" a bit.  Found while
47261         adding the dup2 module to Emacs.
47263 2011-06-24  Eric Blake  <eblake@redhat.com>
47265         maint.mk: enhance useless header checks
47266         * top/maint.mk (_sc_header_without_use): Check both include
47267         styles.
47268         (sc_prohibit_assert_without_use)
47269         (sc_prohibit_close_stream_without_use)
47270         (sc_prohibit_getopt_without_use)
47271         (sc_prohibit_quotearg_without_use)
47272         (sc_prohibit_quote_without_use)
47273         (sc_prohibit_long_options_without_use)
47274         (sc_prohibit_inttostr_without_use)
47275         (sc_prohibit_ignore_value_without_use)
47276         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
47277         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
47278         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
47279         (sc_prohibit_hash_pjw_without_use)
47280         (sc_prohibit_safe_read_without_use)
47281         (sc_prohibit_argmatch_without_use)
47282         (sc_prohibit_canonicalize_without_use)
47283         (sc_prohibit_root_dev_ino_without_use)
47284         (sc_prohibit_openat_without_use)
47285         (sc_prohibit_c_ctype_without_use)
47286         (sc_prohibit_signal_without_use)
47287         (sc_prohibit_stdio--_without_use)
47288         (sc_prohibit_stdio-safer_without_use)
47289         (sc_prohibit_strings_without_use)
47290         (sc_prohibit_intprops_without_use)
47291         (sc_prohibit_stddef_without_use)
47292         (sc_prohibit_xfreopen_without_use): Update clients.
47294 2011-06-24  Jim Meyering  <meyering@redhat.com>
47296         syntax-check: keep one maint.mk rule in sync with its header
47297         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
47298         of the bug Eric has just fixed, with today's commit 25e4c2ec.
47299         I prefer to avoid temporary files here, so use <(...), but that
47300         is not supported by /bin/sh, so...
47301         (SHELL): Define to /bin/bash.
47303 2011-06-24  Eric Blake  <eblake@redhat.com>
47305         maint.mk: update sc_prohibit_intprops_without_use
47306         * top/maint.mk (_intprops_names): Match recent changes.
47308 2011-06-24  Bruno Haible  <bruno@clisp.org>
47310         strerror-override: No-op tweak.
47311         * lib/strerror-override.h (strerror_override): Reorder conditions,
47312         for consistency with lib/strerror-override.c.
47314 2011-06-23  Eric Blake  <eblake@redhat.com>
47316         maint.mk: test further PATH_MAX issues
47317         * top/maint.mk (sc_prohibit_path_max_array): Rename...
47318         (sc_prohibit_path_max_allocation): ...and also test alloca.
47319         Suggested by Jim Meyering.
47321 2011-06-22  Eric Blake  <eblake@redhat.com>
47323         maint.mk: add syntax-check to avoid char[PATH_MAX]
47324         * top/maint.mk (sc_prohibit_path_max_array): New rule.
47326         stat: be robust to PATH_MAX definition
47327         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
47328         * modules/stat (Depends-on): Add verify.
47330         link: work around IRIX bug
47331         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
47332         * lib/link.c (rpl_link): Work around it.
47333         * tests/test-link.h (test_link): Enhance test.
47334         * doc/posix-functions/link.texi (link): Document the bug.
47336         getopt: silence clang warning
47337         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
47338         dereference.
47339         Reported by Gustavo Martin Domato.
47341 2011-06-22  Jim Meyering  <meyering@redhat.com>
47343         bootstrap: do not insert a blank line into each .gitignore file
47344         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
47346 2011-06-21  Eric Blake  <eblake@redhat.com>
47348         perror: test for output mismatch
47349         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
47350         perror on IRIX.
47352         strerror_r: fix OpenBSD behavior on out-of-range
47353         * lib/strerror_r.c (strerror_r): Always use maximal string.
47354         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
47356         strerror_r: fix OpenBSD behavior on 0
47357         * lib/strerror-override.c (strerror_override): Also override 0
47358         when needed.
47359         * lib/strerror-override.h (strerror_override): Likewise.
47360         * lib/strerror.c (strerror): Simplify, now that 0 override is done
47361         earlier.
47362         * lib/strerror_r.c (strerror_r): Likewise.
47363         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
47364         behavior...
47365         (gl_FUNC_STRERROR_0): ...into new macro.
47366         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
47367         is overridden.
47368         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
47369         * modules/strerror-override (Files): Add strerror.m4.
47370         (configure.ac): Also provide override for 0 when needed.
47371         * doc/posix-functions/strerror.texi (strerror): Document this.
47372         * doc/posix-functions/perror.texi (perror): Likewise.
47374         perror: adjust array size
47375         * modules/perror (Depends-on): Add strerror-override.
47376         * lib/perror.c (perror): Use it to avoid magic number.
47378         strerror-override: reduce size
47379         * lib/strerror-override.c (strerror_override): Use fewer lines.
47381 2011-06-20  Bruno Haible  <bruno@clisp.org>
47383         pathmax: Ensure correct value for PATH_MAX on HP-UX.
47384         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
47386 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47388         alloca: port to compilers that can optimize like GCC 4.6.0
47389         * lib/alloca.c (find_stack_direction): New signature, taken from
47390         Autoconf git.  This works with GCC 4.6.0.  This code should never
47391         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
47392         be used with other compilers that optimize as well as GCC 4.6.0 does.
47393         (alloca): Adjust to new signature.
47394         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
47395         New macro, which patches Autoconf in a similar way.
47397         c-stack: stop worrying about stack direction
47398         * lib/c-stack.c (find_stack_direction): Remove.
47399         (segv_handler): Don't worry about stack direction growth, as it's
47400         too much of a pain to configure this correctly, given how compilers
47401         are optimizing-away our stack-growth detection code.  Instead, assume
47402         that any access to just before or just after the stack is OK.
47403         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47404         Don't require AC_FUNC_ALLOCA; no longer needed.
47406 2011-06-20  Eric Blake  <eblake@redhat.com>
47408         test-stat: don't allocate PATH_MAX bytes
47409         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
47410         PATH_MAX-sized buffer.
47411         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
47412         * modules/stat-tests (Depends-on): Likewise.
47413         * tests/test-fstatat.c (includes): Drop pathmax.h.
47414         * tests/test-stat.c (includes): Likewise.
47415         Reported by Bruno Haible.
47417 2011-06-20  Bruno Haible  <bruno@clisp.org>
47419         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
47420         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
47421         * lib/float.c: New file.
47422         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
47423         REPLACE_FLOAT_LDBL.
47424         * modules/float (Files): Add lib/float.c.
47425         (configure.ac): Invoke AC_LIBOBJ.
47426         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
47428 2011-06-20  Bruno Haible  <bruno@clisp.org>
47430         Tests for module 'float'.
47431         * modules/float-tests: New file.
47432         * tests/test-float.c: New file.
47434 2011-06-19  Bruno Haible  <bruno@clisp.org>
47436         isinf: Coding style.
47437         * lib/isinf.c: Use GNU coding style.
47439 2011-06-19  Bruno Haible  <bruno@clisp.org>
47441         linkat test: Avoid test failure on AIX 7.1.
47442         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
47443         * tests/test-link.h (test_link): Likewise.
47445 2011-06-19  Bruno Haible  <bruno@clisp.org>
47447         pread test: Avoid test failure on OpenBSD 4.9.
47448         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
47450 2011-06-19  Bruno Haible  <bruno@clisp.org>
47452         sprintf-posix: Fix test failure on AIX 7.1.
47453         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
47454         * doc/posix-functions/dprintf.texi: Mention limited precision problem
47455         on AIX.
47456         * doc/posix-functions/fprintf.texi: Likewise.
47457         * doc/posix-functions/printf.texi: Likewise.
47458         * doc/posix-functions/snprintf.texi: Likewise.
47459         * doc/posix-functions/sprintf.texi: Likewise.
47460         * doc/posix-functions/vdprintf.texi: Likewise.
47461         * doc/posix-functions/vfprintf.texi: Likewise.
47462         * doc/posix-functions/vprintf.texi: Likewise.
47463         * doc/posix-functions/vsnprintf.texi: Likewise.
47464         * doc/posix-functions/vsprintf.texi: Likewise.
47466 2011-06-19  Bruno Haible  <bruno@clisp.org>
47468         roundl-ieee: Fix test failure on AIX 7.1.
47469         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
47470         * doc/posix-functions/roundl.texi: Mention problem with negative
47471         arguments.
47473 2011-06-19  Bruno Haible  <bruno@clisp.org>
47475         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
47476         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
47477         * doc/posix-functions/round.texi: Mention problem with negative
47478         arguments.
47479         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
47481 2011-06-19  Bruno Haible  <bruno@clisp.org>
47483         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
47484         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
47485         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
47486         * doc/posix-functions/roundf.texi: Mention problem with negative
47487         arguments.
47488         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
47490 2011-06-19  Bruno Haible  <bruno@clisp.org>
47492         ceilf-ieee: Work around bug on MacOS X 10.5.
47493         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
47495         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
47496         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
47497         IEEE compliant, avoid compiler optimizations.
47498         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
47499         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47500         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
47501         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
47502         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47503         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47504         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47505         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
47506         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
47507         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
47509 2011-06-19  Bruno Haible  <bruno@clisp.org>
47511         ceilf-ieee: Work around bug on AIX 7.1.
47512         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
47513         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
47515 2011-06-19  Bruno Haible  <bruno@clisp.org>
47517         ceil-ieee: Work around bug on AIX 7.1.
47518         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
47519         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
47521 2011-06-18  Bruno Haible  <bruno@clisp.org>
47523         fsync test: Avoid test failure on MacOS X and AIX.
47524         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
47525         EINVAL.
47527 2011-06-18  Bruno Haible  <bruno@clisp.org>
47529         openat, fdopendir tests: Fix link errors.
47530         * modules/openat-tests (Depends-on): Add progname.
47531         * modules/fdopendir-tests (Depends-on): Likewise.
47532         * tests/test-fchownat.c: Include progname.h.
47533         (main): Call set_program_name.
47534         * tests/test-fstatat.c: Include progname.h.
47535         (main): Call set_program_name.
47536         * tests/test-mkdirat.c: Include progname.h.
47537         (main): Call set_program_name.
47538         * tests/test-openat.c: Include progname.h.
47539         (main): Call set_program_name.
47540         * tests/test-unlinkat.c: Include progname.h.
47541         (main): Call set_program_name.
47542         * tests/test-fdopendir.c: Include progname.h.
47543         (main): Call set_program_name.
47545 2011-06-18  Bruno Haible  <bruno@clisp.org>
47547         Doc update.
47548         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
47549         HP-UX.
47550         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
47552 2011-06-18  Bruno Haible  <bruno@clisp.org>
47554         getcwd tests: Avoid compilation error on HP-UX 11.31.
47555         * modules/getcwd-tests (Depends-on): Add pathmax.
47556         * tests/test-getcwd.c: Include pathmax.h.
47558 2011-06-18  Bruno Haible  <bruno@clisp.org>
47560         isfinite, isinf: Fix link error on AIX 6 and 7.
47561         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
47562         needed, also test the macro with a 'float' argument.
47563         * m4/isinf.m4 (gl_ISINF): Likewise.
47565 2011-06-18  Bruno Haible  <bruno@clisp.org>
47567         getloadavg: Don't clobber LIBS. Regression from previous commit.
47568         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
47569         AC_CHECK_LIB from here...
47570         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
47571         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
47572         gl_func_getloadavg_done.
47573         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47575 2011-06-18  Bruno Haible  <bruno@clisp.org>
47577         clean-temp: Improve documentation.
47578         * lib/clean-temp.h: Explain better how to use this module.
47579         Reported by John Darrington <john@darrington.wattle.id.au>.
47581 2011-06-17  Bruno Haible  <bruno@clisp.org>
47583         pread, pwrite: Avoid cc warning on AIX.
47584         * lib/unistd.in.h (pread): Undefine before defining as a macro.
47585         (pwrite): Likewise.
47587 2011-06-17  Bruno Haible  <bruno@clisp.org>
47589         spawn-pipe tests: Fix link error.
47590         * tests/test-spawn-pipe-child.c: Undefine fprintf.
47591         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47593 2011-06-17  Bruno Haible  <bruno@clisp.org>
47595         Tests: Remove unnecessary dependency.
47596         * modules/canonicalize-tests (Depends-on): Remove progname.
47597         * modules/chown-tests (Depends-on): Likewise.
47598         * modules/dirname-tests (Depends-on): Likewise.
47599         * modules/fdopendir-tests (Depends-on): Likewise.
47600         * modules/fdutimensat-tests (Depends-on): Likewise.
47601         * modules/hash-tests (Depends-on): Likewise.
47602         * modules/lchown-tests (Depends-on): Likewise.
47603         * modules/linkat-tests (Depends-on): Likewise.
47604         * modules/renameat-tests (Depends-on): Likewise.
47605         * modules/spawn-pipe-tests (Depends-on): Likewise.
47606         * modules/utimensat-tests (Depends-on): Likewise.
47608 2011-06-17  Bruno Haible  <bruno@clisp.org>
47610         spawn-pipe tests: Fix link error.
47611         * tests/test-spawn-pipe-child.c: Undefine fflush.
47613 2011-06-17  Bruno Haible  <bruno@clisp.org>
47615         Fix tests link errors.
47616         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
47617         * modules/chown-tests (Makefile.am): Don't link test-chown with
47618         LIBINTL.
47619         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
47620         LIBINTL.
47621         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
47622         LIBINTL.
47623         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
47624         LIBINTL.
47626 2011-06-16  Bruno Haible  <bruno@clisp.org>
47628         crypto/gc-sha1: Fix recent regression.
47629         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
47630         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
47632         crypto/gc-md5: Fix recent regression.
47633         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
47635         crypto/gc-md4: Fix recent regression.
47636         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
47637         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
47639         crypto/gc-arctwo: Fix recent regression.
47640         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
47641         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
47643         crypto/gc-rijndael: Fix recent regression.
47644         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
47645         (configure.ac): Invoke AC_LIBOBJ here.
47646         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
47647         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47649         crypto/gc-hmac-sha1: Fix recent regression.
47650         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
47651         (configure.ac): Invoke AC_LIBOBJ here.
47652         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
47653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47655         crypto/gc-hmac-md5: Fix recent regression.
47656         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
47657         (configure.ac): Invoke AC_LIBOBJ here.
47658         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
47659         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47661         crypto/gc-des: Fix recent regression.
47662         * modules/crypto/gc-des (Files): Remove m4/des.m4.
47663         (configure.ac): Invoke AC_LIBOBJ here.
47664         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
47665         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47667         crypto/gc-arcfour: Fix recent regression.
47668         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
47669         (configure.ac): Invoke AC_LIBOBJ here.
47670         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
47671         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47673 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
47675         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
47676         After the 2011-05-21 change, this macro requires
47677         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
47678         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47680 2011-06-16  Bruno Haible  <bruno@clisp.org>
47682         fprintftime: Move AC_LIBOBJ invocations to module description.
47683         * m4/fprintftime.m4: Remove file.
47684         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
47685         (configure.ac): Remove gl_FPRINTFTIME call.
47686         (Makefile.am): Augment lib_SOURCES.
47687         Reported by Jim Meyering.
47689 2011-06-16  Bruno Haible  <bruno@clisp.org>
47691         tmpfile-safer: Finish 2011-05-23 commit.
47692         * m4/stdio-safer.m4: Really remove file.
47693         Reported by Jim Meyering.
47695 2011-06-16  Bruno Haible  <bruno@clisp.org>
47697         syntax-check: Fix typo.
47698         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
47699         printf-posix.m4.
47700         Reported by Jim Meyering.
47702 2011-06-13  Jim Meyering  <meyering@redhat.com>
47704         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
47705         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
47707 2011-05-23  Bruno Haible  <bruno@clisp.org>
47709         yesno: Move AC_LIBOBJ invocations to module description.
47710         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
47711         * modules/yesno (Makefile.am): Augment lib_SOURCES.
47713 2011-05-23  Bruno Haible  <bruno@clisp.org>
47715         xstrtol: Move AC_LIBOBJ invocations to module description.
47716         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
47717         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
47719 2011-05-23  Bruno Haible  <bruno@clisp.org>
47721         xstrtold: Move AC_LIBOBJ invocations to module description.
47722         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
47723         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
47725 2011-05-23  Bruno Haible  <bruno@clisp.org>
47727         xstrtod: Move AC_LIBOBJ invocations to module description.
47728         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
47729         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
47731 2011-05-23  Bruno Haible  <bruno@clisp.org>
47733         xnanosleep: Move AC_LIBOBJ invocations to module description.
47734         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
47735         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
47737 2011-05-23  Bruno Haible  <bruno@clisp.org>
47739         xgetcwd: Move AC_LIBOBJ invocations to module description.
47740         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
47741         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
47743 2011-05-23  Bruno Haible  <bruno@clisp.org>
47745         xalloc: Move AC_LIBOBJ invocations to module description.
47746         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
47747         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
47749 2011-05-23  Bruno Haible  <bruno@clisp.org>
47751         write-any-file: Move AC_LIBOBJ invocations to module description.
47752         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
47753         invocation.
47754         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
47756 2011-05-23  Bruno Haible  <bruno@clisp.org>
47758         utimens: Move AC_LIBOBJ invocations to module description.
47759         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
47760         * modules/utimens (Makefile.am): Augment lib_SOURCES.
47762 2011-05-23  Bruno Haible  <bruno@clisp.org>
47764         utimecmp: Move AC_LIBOBJ invocations to module description.
47765         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
47766         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
47768 2011-05-23  Bruno Haible  <bruno@clisp.org>
47770         userspec: Move AC_LIBOBJ invocations to module description.
47771         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
47772         * modules/userspec (Makefile.am): Augment lib_SOURCES.
47774 2011-05-23  Bruno Haible  <bruno@clisp.org>
47776         unlinkdir: Move AC_LIBOBJ invocations to module description.
47777         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
47778         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
47780 2011-05-23  Bruno Haible  <bruno@clisp.org>
47782         unistd-safer: Move AC_LIBOBJ invocations to module description.
47783         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
47784         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
47786 2011-05-23  Bruno Haible  <bruno@clisp.org>
47788         tempname: Move AC_LIBOBJ invocations to module description.
47789         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
47790         * modules/tempname (Makefile.am): Augment lib_SOURCES.
47792 2011-05-23  Bruno Haible  <bruno@clisp.org>
47794         strftime: Move AC_LIBOBJ invocations to module description.
47795         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
47796         * modules/strftime (Makefile.am): Augment lib_SOURCES.
47798 2011-05-23  Bruno Haible  <bruno@clisp.org>
47800         stdlib-safer: Move AC_LIBOBJ invocations to module description.
47801         * m4/stdlib-safer.m4: Remove file.
47802         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
47803         (configure.ac): Remove gl_STDLIB_SAFER call.
47804         (Makefile.am): Augment lib_SOURCES.
47806 2011-05-23  Bruno Haible  <bruno@clisp.org>
47808         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
47809         * m4/stdio-safer.m4: Remove file.
47810         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
47811         (configure.ac): Remove gl_TMPFILE_SAFER call.
47812         (Makefile.am): Augment lib_SOURCES.
47814 2011-05-23  Bruno Haible  <bruno@clisp.org>
47816         popen-safer: Move AC_LIBOBJ invocations to module description.
47817         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
47818         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
47819         (configure.ac): Remove gl_POPEN_SAFER call.
47820         (Makefile.am): Augment lib_SOURCES.
47822 2011-05-23  Bruno Haible  <bruno@clisp.org>
47824         freopen-safer: Move AC_LIBOBJ invocations to module description.
47825         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
47826         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
47827         (configure.ac): Remove gl_FREOPEN_SAFER call.
47828         (Makefile.am): Augment lib_SOURCES.
47830 2011-05-23  Bruno Haible  <bruno@clisp.org>
47832         fopen-safer: Move AC_LIBOBJ invocations to module description.
47833         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
47834         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
47835         (configure.ac): Remove gl_FOPEN_SAFER call.
47836         (Makefile.am): Augment lib_SOURCES.
47838 2011-05-23  Bruno Haible  <bruno@clisp.org>
47840         crypto/sha512: Move AC_LIBOBJ invocations to module description.
47841         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
47842         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
47844 2011-05-23  Bruno Haible  <bruno@clisp.org>
47846         crypto/sha256: Move AC_LIBOBJ invocations to module description.
47847         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
47848         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
47850 2011-05-23  Bruno Haible  <bruno@clisp.org>
47852         crypto/sha1: Move AC_LIBOBJ invocations to module description.
47853         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
47854         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
47856 2011-05-23  Bruno Haible  <bruno@clisp.org>
47858         settime: Move AC_LIBOBJ invocations to module description.
47859         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
47860         * modules/settime (Makefile.am): Augment lib_SOURCES.
47862 2011-05-23  Bruno Haible  <bruno@clisp.org>
47864         savedir: Move AC_LIBOBJ invocations to module description.
47865         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
47866         * modules/savedir (Makefile.am): Augment lib_SOURCES.
47868 2011-05-23  Bruno Haible  <bruno@clisp.org>
47870         save-cwd: Move AC_LIBOBJ invocations to module description.
47871         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
47872         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
47874 2011-05-23  Bruno Haible  <bruno@clisp.org>
47876         same: Move AC_LIBOBJ invocations to module description.
47877         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
47878         * modules/same (Makefile.am): Augment lib_SOURCES.
47880 2011-05-23  Bruno Haible  <bruno@clisp.org>
47882         safe-write: Move AC_LIBOBJ invocations to module description.
47883         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
47884         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
47885         instead of gl_SAFE_WRITE.
47886         (Makefile.am): Augment lib_SOURCES.
47888 2011-05-23  Bruno Haible  <bruno@clisp.org>
47890         safe-read: Move AC_LIBOBJ invocations to module description.
47891         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
47892         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
47893         of gl_SAFE_READ.
47894         (Makefile.am): Augment lib_SOURCES.
47896 2011-05-23  Bruno Haible  <bruno@clisp.org>
47898         safe-alloc: Move AC_LIBOBJ invocations to module description.
47899         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
47900         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
47902 2011-05-23  Bruno Haible  <bruno@clisp.org>
47904         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
47905         * m4/rijndael.m4: Remove file.
47906         * modules/crypto/rijndael (Files): Remove it.
47907         (configure.ac): Remove gl_RIJNDAEL call.
47908         (Makefile.am): Augment lib_SOURCES.
47910 2011-05-23  Bruno Haible  <bruno@clisp.org>
47912         readtokens: Move AC_LIBOBJ invocations to module description.
47913         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
47914         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
47916 2011-05-23  Bruno Haible  <bruno@clisp.org>
47918         read-file: Move AC_LIBOBJ invocations to module description.
47919         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
47920         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
47921         of gl_FUNC_READ_FILE.
47922         (Makefile.am): Augment lib_SOURCES.
47924 2011-05-23  Bruno Haible  <bruno@clisp.org>
47926         quotearg: Move AC_LIBOBJ invocations to module description.
47927         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
47928         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
47930 2011-05-23  Bruno Haible  <bruno@clisp.org>
47932         quote: Move AC_LIBOBJ invocations to module description.
47933         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
47934         * modules/quote (Makefile.am): Augment lib_SOURCES.
47936 2011-05-23  Bruno Haible  <bruno@clisp.org>
47938         posixver: Move AC_LIBOBJ invocations to module description.
47939         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
47940         * modules/posixver (Makefile.am): Augment lib_SOURCES.
47942 2011-05-23  Bruno Haible  <bruno@clisp.org>
47944         posixtm: Move AC_LIBOBJ invocations to module description.
47945         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
47946         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
47948 2011-05-23  Bruno Haible  <bruno@clisp.org>
47950         physmem: Move AC_LIBOBJ invocations to module description.
47951         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
47952         * modules/physmem (Makefile.am): Augment lib_SOURCES.
47954 2011-05-23  Bruno Haible  <bruno@clisp.org>
47956         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
47957         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
47958         invocation.
47959         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
47961 2011-05-23  Bruno Haible  <bruno@clisp.org>
47963         mpsort: Move AC_LIBOBJ invocations to module description.
47964         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
47965         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
47967 2011-05-23  Bruno Haible  <bruno@clisp.org>
47969         modechange: Move AC_LIBOBJ invocations to module description.
47970         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
47971         * modules/modechange (Makefile.am): Augment lib_SOURCES.
47973 2011-05-23  Bruno Haible  <bruno@clisp.org>
47975         mkdir-p: Move AC_LIBOBJ invocations to module description.
47976         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
47977         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
47979 2011-05-23  Bruno Haible  <bruno@clisp.org>
47981         mkancesdirs: Move AC_LIBOBJ invocations to module description.
47982         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
47983         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
47985 2011-05-23  Bruno Haible  <bruno@clisp.org>
47987         mgetgroups: Move AC_LIBOBJ invocations to module description.
47988         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
47989         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
47991 2011-05-23  Bruno Haible  <bruno@clisp.org>
47993         memxor: Move AC_LIBOBJ invocations to module description.
47994         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
47995         * modules/memxor (Makefile.am): Augment lib_SOURCES.
47997 2011-05-23  Bruno Haible  <bruno@clisp.org>
47999         memcoll: Move AC_LIBOBJ invocations to module description.
48000         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
48001         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
48003 2011-05-23  Bruno Haible  <bruno@clisp.org>
48005         memcasecmp: Move AC_LIBOBJ invocations to module description.
48006         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
48007         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
48009 2011-05-23  Bruno Haible  <bruno@clisp.org>
48011         crypto/md5: Move AC_LIBOBJ invocations to module description.
48012         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
48013         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
48015 2011-05-23  Bruno Haible  <bruno@clisp.org>
48017         crypto/md4: Move AC_LIBOBJ invocations to module description.
48018         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
48019         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
48021 2011-05-23  Bruno Haible  <bruno@clisp.org>
48023         crypto/md2: Move AC_LIBOBJ invocations to module description.
48024         * m4/md2.m4: Remove file.
48025         * modules/crypto/md2 (Files): Remove it.
48026         (configure.ac): Remove gl_MD2 call.
48027         (Makefile.am): Augment lib_SOURCES.
48029 2011-05-23  Bruno Haible  <bruno@clisp.org>
48031         long-options: Move AC_LIBOBJ invocations to module description.
48032         * m4/long-options.m4: Remove file.
48033         * modules/long-options (Files): Remove it.
48034         (configure.ac): Remove gl_LONG_OPTIONS call.
48035         (Makefile.am): Augment lib_SOURCES.
48037 2011-05-23  Bruno Haible  <bruno@clisp.org>
48039         i-ring: Move AC_LIBOBJ invocations to module description.
48040         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
48041         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
48043 2011-05-23  Bruno Haible  <bruno@clisp.org>
48045         idcache: Move AC_LIBOBJ invocations to module description.
48046         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
48047         * modules/idcache (Makefile.am): Augment lib_SOURCES.
48049 2011-05-23  Bruno Haible  <bruno@clisp.org>
48051         human: Move AC_LIBOBJ invocations to module description.
48052         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
48053         * modules/human (Makefile.am): Augment lib_SOURCES.
48055 2011-05-23  Bruno Haible  <bruno@clisp.org>
48057         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
48058         * m4/hmac-sha1.m4: Remove file.
48059         * modules/crypto/hmac-sha1 (Files): Remove it.
48060         (configure.ac): Remove gl_HMAC_SHA1 call.
48061         (Makefile.am): Augment lib_SOURCES.
48063 2011-05-23  Bruno Haible  <bruno@clisp.org>
48065         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
48066         * m4/hmac-md5.m4: Remove file.
48067         * modules/crypto/hmac-md5 (Files): Remove it.
48068         (configure.ac): Remove gl_HMAC_MD5 call.
48069         (Makefile.am): Augment lib_SOURCES.
48071 2011-05-23  Bruno Haible  <bruno@clisp.org>
48073         hash: Move AC_LIBOBJ invocations to module description.
48074         * m4/hash.m4: Remove file.
48075         * modules/hash (Files): Remove it.
48076         (configure.ac): Remove gl_HASH call.
48077         (Makefile.am): Augment lib_SOURCES.
48079 2011-05-23  Bruno Haible  <bruno@clisp.org>
48081         hard-locale: Move AC_LIBOBJ invocations to module description.
48082         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
48083         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
48085 2011-05-23  Bruno Haible  <bruno@clisp.org>
48087         getugroups: Move AC_LIBOBJ invocations to module description.
48088         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
48089         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
48091 2011-05-23  Bruno Haible  <bruno@clisp.org>
48093         gettime: Move AC_LIBOBJ invocations to module description.
48094         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
48095         * modules/gettime (Makefile.am): Augment lib_SOURCES.
48097 2011-05-23  Bruno Haible  <bruno@clisp.org>
48099         getndelim2: Move AC_LIBOBJ invocations to module description.
48100         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
48101         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
48103 2011-05-23  Bruno Haible  <bruno@clisp.org>
48105         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
48106         * m4/gc-pbkdf2-sha1.m4: Remove file.
48107         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
48108         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
48109         (Makefile.am): Augment lib_SOURCES.
48111 2011-05-23  Bruno Haible  <bruno@clisp.org>
48113         fts: Move AC_LIBOBJ invocations to module description.
48114         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
48115         * modules/fts (configure.ac): ... to here.
48117 2011-05-23  Bruno Haible  <bruno@clisp.org>
48119         file-type: Move AC_LIBOBJ invocations to module description.
48120         * m4/file-type.m4: Remove file.
48121         * modules/file-type (Files): Remove it.
48122         (configure.ac): Remove gl_FILE_TYPE call.
48123         (Makefile.am): Augment lib_SOURCES.
48125 2011-05-23  Bruno Haible  <bruno@clisp.org>
48127         filenamecat*: Respect rules for use of AC_LIBOBJ.
48128         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
48129         Remove AC_LIBOBJ invocation.
48130         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
48131         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
48133 2011-05-23  Bruno Haible  <bruno@clisp.org>
48135         filemode: Move AC_LIBOBJ invocations to module description.
48136         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
48137         * modules/filemode (Makefile.am): Augment lib_SOURCES.
48139 2011-05-23  Bruno Haible  <bruno@clisp.org>
48141         openat-safer: Move AC_LIBOBJ invocations to module description.
48142         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
48143         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
48145 2011-05-23  Bruno Haible  <bruno@clisp.org>
48147         fcntl-safer: Move AC_LIBOBJ invocations to module description.
48148         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
48149         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
48151 2011-05-23  Bruno Haible  <bruno@clisp.org>
48153         exclude: Move AC_LIBOBJ invocations to module description.
48154         * m4/exclude.m4: Remove file.
48155         * modules/exclude (Files): Remove it.
48156         (configure.ac): Remove gl_EXCLUDE call.
48157         (Makefile.am): Augment lib_SOURCES.
48159 2011-05-23  Bruno Haible  <bruno@clisp.org>
48161         dirname*: Respect rules for use of AC_LIBOBJ.
48162         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
48163         invocations.
48164         * modules/dirname (Makefile.am): Augment lib_SOURCES.
48165         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
48167 2011-05-23  Bruno Haible  <bruno@clisp.org>
48169         dirent-safer: Move AC_LIBOBJ invocations to module description.
48170         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
48171         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
48173 2011-05-23  Bruno Haible  <bruno@clisp.org>
48175         crypto/des: Move AC_LIBOBJ invocations to module description.
48176         * m4/des.m4: Remove file.
48177         * modules/crypto/des (Files): Remove it.
48178         (configure.ac): Remove gl_DES call.
48179         (Makefile.am): Augment lib_SOURCES.
48181 2011-05-23  Bruno Haible  <bruno@clisp.org>
48183         cycle-check: Move AC_LIBOBJ invocations to module description.
48184         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
48185         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
48187 2011-05-23  Bruno Haible  <bruno@clisp.org>
48189         c-strtold: Move AC_LIBOBJ invocations to module description.
48190         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
48191         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
48193 2011-05-23  Bruno Haible  <bruno@clisp.org>
48195         c-strtod: Move AC_LIBOBJ invocations to module description.
48196         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
48197         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
48199 2011-05-23  Bruno Haible  <bruno@clisp.org>
48201         crc: Move AC_LIBOBJ invocations to module description.
48202         * m4/crc.m4: Remove file.
48203         * modules/crc (Files): Remove it.
48204         (configure.ac): Remove gl_CRC call.
48205         (Makefile.am): Augment lib_SOURCES.
48207 2011-05-23  Bruno Haible  <bruno@clisp.org>
48209         close-stream: Move AC_LIBOBJ invocations to module description.
48210         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
48211         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
48213 2011-05-23  Bruno Haible  <bruno@clisp.org>
48215         closeout: Move AC_LIBOBJ invocations to module description.
48216         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
48217         * modules/closeout (Makefile.am): Augment lib_SOURCES.
48219 2011-05-23  Bruno Haible  <bruno@clisp.org>
48221         closein: Move AC_LIBOBJ invocations to module description.
48222         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
48223         * modules/closein (Makefile.am): Augment lib_SOURCES.
48225 2011-05-23  Bruno Haible  <bruno@clisp.org>
48227         cloexec: Move AC_LIBOBJ invocations to module description.
48228         * m4/cloexec.m4: Remove file.
48229         * modules/cloexec (Files): Remove it.
48230         (configure.ac): Remove gl_CLOEXEC call.
48231         (Makefile.am): Augment lib_SOURCES.
48233 2011-05-23  Bruno Haible  <bruno@clisp.org>
48235         check-version: Move AC_LIBOBJ invocations to module description.
48236         * m4/check-version.m4: Remove file.
48237         * modules/check-version (Files): Remove it.
48238         (configure.ac): Remove gl_CHECK_VERSION call.
48239         (Makefile.am): Augment lib_SOURCES.
48241 2011-05-23  Bruno Haible  <bruno@clisp.org>
48243         chdir-safer: Move AC_LIBOBJ invocations to module description.
48244         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
48245         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
48247 2011-05-23  Bruno Haible  <bruno@clisp.org>
48249         canonicalize: Move AC_LIBOBJ invocations to module description.
48250         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
48251         AC_LIBOBJ invocation.
48252         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
48254 2011-05-23  Bruno Haible  <bruno@clisp.org>
48256         canon-host: Move AC_LIBOBJ invocations to module description.
48257         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
48258         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
48259         instead of gl_CANON_HOST.
48260         (Makefile.am): Augment lib_SOURCES.
48262 2011-05-23  Bruno Haible  <bruno@clisp.org>
48264         backupfile: Move AC_LIBOBJ invocations to module description.
48265         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
48266         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
48268 2011-05-23  Bruno Haible  <bruno@clisp.org>
48270         argmatch: Move AC_LIBOBJ invocations to module description.
48271         * m4/argmatch.m4: Remove file.
48272         * modules/argmatch (Files): Remove it.
48273         (configure.ac): Remove gl_ARGMATCH call.
48274         (Makefile.am): Augment lib_SOURCES.
48276 2011-05-23  Bruno Haible  <bruno@clisp.org>
48278         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
48279         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
48280         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
48282 2011-05-23  Bruno Haible  <bruno@clisp.org>
48284         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
48285         * m4/arcfour.m4: Remove file.
48286         * modules/crypto/arcfour (Files): Remove it.
48287         (configure.ac): Remove gl_ARCFOUR call.
48288         (Makefile.am): Augment lib_SOURCES.
48290 2011-05-22  Bruno Haible  <bruno@clisp.org>
48292         write: Move AC_LIBOBJ invocations to module description.
48293         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
48294         * modules/write (configure.ac): ... to here.
48296 2011-05-22  Bruno Haible  <bruno@clisp.org>
48298         wmemset: Move AC_LIBOBJ invocations to module description.
48299         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
48300         here...
48301         * modules/wmemset (configure.ac): ... to here.
48303 2011-05-22  Bruno Haible  <bruno@clisp.org>
48305         wmemmove: Move AC_LIBOBJ invocations to module description.
48306         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
48307         here...
48308         * modules/wmemmove (configure.ac): ... to here.
48310 2011-05-22  Bruno Haible  <bruno@clisp.org>
48312         wmemcpy: Move AC_LIBOBJ invocations to module description.
48313         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
48314         here...
48315         * modules/wmemcpy (configure.ac): ... to here.
48317 2011-05-22  Bruno Haible  <bruno@clisp.org>
48319         wmemcmp: Move AC_LIBOBJ invocations to module description.
48320         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
48321         here...
48322         * modules/wmemcmp (configure.ac): ... to here.
48324 2011-05-22  Bruno Haible  <bruno@clisp.org>
48326         wmemchr: Move AC_LIBOBJ invocations to module description.
48327         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
48328         here...
48329         * modules/wmemchr (configure.ac): ... to here.
48331 2011-05-22  Bruno Haible  <bruno@clisp.org>
48333         wcswidth: Move AC_LIBOBJ invocations to module description.
48334         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
48335         here...
48336         * modules/wcswidth (configure.ac): ... to here.
48338 2011-05-22  Bruno Haible  <bruno@clisp.org>
48340         wcwidth: Respect rules for use of AC_LIBOBJ.
48341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
48342         invocation from here...
48343         * modules/wcwidth (configure.ac): ... to here.
48344         (Depends-on): Update conditions.
48346 2011-05-22  Bruno Haible  <bruno@clisp.org>
48348         wctype: Move AC_LIBOBJ invocations to module description.
48349         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
48350         invocation from here...
48351         * modules/wctype (configure.ac): ... to here.
48352         (Depends-on): Update conditions.
48354 2011-05-22  Bruno Haible  <bruno@clisp.org>
48356         wctrans: Move AC_LIBOBJ invocations to module description.
48357         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
48358         invocation from here...
48359         * modules/wctrans (configure.ac): ... to here.
48361 2011-05-22  Bruno Haible  <bruno@clisp.org>
48363         wctomb: Move AC_LIBOBJ invocations to module description.
48364         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
48365         invocations from here...
48366         * modules/wctomb (configure.ac): ... to here.
48368 2011-05-22  Bruno Haible  <bruno@clisp.org>
48370         wctob: Move AC_LIBOBJ invocations to module description.
48371         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
48372         gl_PREREQ_WCTOB invocations from here...
48373         * modules/wctob (configure.ac): ... to here.
48374         (Depends-on): Update conditions.
48376 2011-05-22  Bruno Haible  <bruno@clisp.org>
48378         wcsxfrm: Move AC_LIBOBJ invocations to module description.
48379         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
48380         here...
48381         * modules/wcsxfrm (configure.ac): ... to here.
48383 2011-05-22  Bruno Haible  <bruno@clisp.org>
48385         wcstok: Move AC_LIBOBJ invocations to module description.
48386         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
48387         * modules/wcstok (configure.ac): ... to here.
48389 2011-05-22  Bruno Haible  <bruno@clisp.org>
48391         wcsstr: Move AC_LIBOBJ invocations to module description.
48392         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
48393         * modules/wcsstr (configure.ac): ... to here.
48395 2011-05-22  Bruno Haible  <bruno@clisp.org>
48397         wcsspn: Move AC_LIBOBJ invocations to module description.
48398         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
48399         * modules/wcsspn (configure.ac): ... to here.
48401 2011-05-22  Bruno Haible  <bruno@clisp.org>
48403         wcsrtombs: Move AC_LIBOBJ invocations to module description.
48404         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
48405         gl_PREREQ_WCSRTOMBS invocations from here...
48406         * modules/wcsrtombs (configure.ac): ... to here.
48408 2011-05-22  Bruno Haible  <bruno@clisp.org>
48410         wcsrchr: Move AC_LIBOBJ invocations to module description.
48411         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
48412         here...
48413         * modules/wcsrchr (configure.ac): ... to here.
48415 2011-05-22  Bruno Haible  <bruno@clisp.org>
48417         wcspbrk: Move AC_LIBOBJ invocations to module description.
48418         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
48419         here...
48420         * modules/wcspbrk (configure.ac): ... to here.
48422 2011-05-22  Bruno Haible  <bruno@clisp.org>
48424         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
48425         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
48426         gl_PREREQ_WCSNRTOMBS invocations from here...
48427         * modules/wcsnrtombs (configure.ac): ... to here.
48429 2011-05-22  Bruno Haible  <bruno@clisp.org>
48431         wcsnlen: Move AC_LIBOBJ invocations to module description.
48432         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
48433         here...
48434         * modules/wcsnlen (configure.ac): ... to here.
48436 2011-05-22  Bruno Haible  <bruno@clisp.org>
48438         wcsncpy: Move AC_LIBOBJ invocations to module description.
48439         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
48440         here...
48441         * modules/wcsncpy (configure.ac): ... to here.
48443 2011-05-22  Bruno Haible  <bruno@clisp.org>
48445         wcsncmp: Move AC_LIBOBJ invocations to module description.
48446         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
48447         here...
48448         * modules/wcsncmp (configure.ac): ... to here.
48450 2011-05-22  Bruno Haible  <bruno@clisp.org>
48452         wcsncat: Move AC_LIBOBJ invocations to module description.
48453         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
48454         here...
48455         * modules/wcsncat (configure.ac): ... to here.
48457 2011-05-22  Bruno Haible  <bruno@clisp.org>
48459         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
48460         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
48461         from here...
48462         * modules/wcsncasecmp (configure.ac): ... to here.
48464 2011-05-22  Bruno Haible  <bruno@clisp.org>
48466         wcslen: Move AC_LIBOBJ invocations to module description.
48467         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
48468         * modules/wcslen (configure.ac): ... to here.
48470 2011-05-22  Bruno Haible  <bruno@clisp.org>
48472         wcsdup: Move AC_LIBOBJ invocations to module description.
48473         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
48474         * modules/wcsdup (configure.ac): ... to here.
48476 2011-05-22  Bruno Haible  <bruno@clisp.org>
48478         wcscspn: Move AC_LIBOBJ invocations to module description.
48479         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
48480         here...
48481         * modules/wcscspn (configure.ac): ... to here.
48483 2011-05-22  Bruno Haible  <bruno@clisp.org>
48485         wcscpy: Move AC_LIBOBJ invocations to module description.
48486         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
48487         * modules/wcscpy (configure.ac): ... to here.
48489 2011-05-22  Bruno Haible  <bruno@clisp.org>
48491         wcscoll: Move AC_LIBOBJ invocations to module description.
48492         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
48493         here...
48494         * modules/wcscoll (configure.ac): ... to here.
48496 2011-05-22  Bruno Haible  <bruno@clisp.org>
48498         wcscmp: Move AC_LIBOBJ invocations to module description.
48499         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
48500         * modules/wcscmp (configure.ac): ... to here.
48502 2011-05-22  Bruno Haible  <bruno@clisp.org>
48504         wcschr: Move AC_LIBOBJ invocations to module description.
48505         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
48506         * modules/wcschr (configure.ac): ... to here.
48508 2011-05-22  Bruno Haible  <bruno@clisp.org>
48510         wcscat: Move AC_LIBOBJ invocations to module description.
48511         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
48512         * modules/wcscat (configure.ac): ... to here.
48514 2011-05-22  Bruno Haible  <bruno@clisp.org>
48516         wcscasecmp: Move AC_LIBOBJ invocations to module description.
48517         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
48518         here...
48519         * modules/wcscasecmp (configure.ac): ... to here.
48521 2011-05-22  Bruno Haible  <bruno@clisp.org>
48523         wcrtomb: Move AC_LIBOBJ invocations to module description.
48524         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
48525         invocations from here...
48526         * modules/wcrtomb (configure.ac): ... to here.
48528 2011-05-22  Bruno Haible  <bruno@clisp.org>
48530         wcpncpy: Move AC_LIBOBJ invocations to module description.
48531         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
48532         here...
48533         * modules/wcpncpy (configure.ac): ... to here.
48535 2011-05-22  Bruno Haible  <bruno@clisp.org>
48537         wcpcpy: Move AC_LIBOBJ invocations to module description.
48538         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
48539         * modules/wcpcpy (configure.ac): ... to here.
48541 2011-05-22  Bruno Haible  <bruno@clisp.org>
48543         waitpid: Move AC_LIBOBJ invocations to module description.
48544         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
48545         invocation from here...
48546         * modules/waitpid (configure.ac): ... to here.
48548 2011-05-22  Bruno Haible  <bruno@clisp.org>
48550         utimensat: Move AC_LIBOBJ invocations to module description.
48551         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
48552         here...
48553         * modules/utimensat (configure.ac): ... to here.
48555 2011-05-22  Bruno Haible  <bruno@clisp.org>
48557         usleep: Move AC_LIBOBJ invocations to module description.
48558         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
48559         here...
48560         * modules/usleep (configure.ac): ... to here.
48562 2011-05-22  Bruno Haible  <bruno@clisp.org>
48564         unlockpt: Move AC_LIBOBJ invocations to module description.
48565         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
48566         gl_PREREQ_UNLOCKPT invocations from here...
48567         * modules/unlockpt (configure.ac): ... to here.
48569 2011-05-22  Bruno Haible  <bruno@clisp.org>
48571         unlink: Respect rules for use of AC_LIBOBJ.
48572         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
48573         * modules/unlink (configure.ac): ... to here.
48575 2011-05-22  Bruno Haible  <bruno@clisp.org>
48577         uname: Move AC_LIBOBJ invocations to module description.
48578         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
48579         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
48580         here...
48581         * modules/uname (configure.ac): ... to here.
48583 2011-05-22  Bruno Haible  <bruno@clisp.org>
48585         ttyname_r: Move AC_LIBOBJ invocations to module description.
48586         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
48587         gl_PREREQ_TTYNAME_R invocations from here...
48588         * modules/ttyname_r (configure.ac): ... to here.
48590 2011-05-22  Bruno Haible  <bruno@clisp.org>
48592         tsearch: Move AC_LIBOBJ invocations to module description.
48593         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
48594         invocations from here...
48595         * modules/tsearch (configure.ac): ... to here.
48597 2011-05-22  Bruno Haible  <bruno@clisp.org>
48599         towctrans: Move AC_LIBOBJ invocations to module description.
48600         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
48601         AC_LIBOBJ invocation from here...
48602         * modules/towctrans (configure.ac): ... to here.
48604 2011-05-22  Bruno Haible  <bruno@clisp.org>
48606         tmpfile: Move AC_LIBOBJ invocations to module description.
48607         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
48608         invocations from here...
48609         * modules/tmpfile (configure.ac): ... to here.
48611 2011-05-22  Bruno Haible  <bruno@clisp.org>
48613         times: Move AC_LIBOBJ invocations to module description.
48614         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
48615         * modules/times (configure.ac): ... to here.
48617 2011-05-22  Bruno Haible  <bruno@clisp.org>
48619         time_r: Move AC_LIBOBJ invocations to module description.
48620         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
48621         invocations from here...
48622         * modules/time_r (configure.ac): ... to here.
48624 2011-05-22  Bruno Haible  <bruno@clisp.org>
48626         timegm: Move AC_LIBOBJ invocations to module description.
48627         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
48628         invocations from here...
48629         * modules/timegm (configure.ac): ... to here.
48631 2011-05-22  Bruno Haible  <bruno@clisp.org>
48633         tcgetsid: Move AC_LIBOBJ invocations to module description.
48634         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
48635         and gl_PREREQ_TCGETSID invocations from here...
48636         * modules/tcgetsid (configure.ac): ... to here.
48637         (Depends-on): Update conditions.
48639 2011-05-22  Bruno Haible  <bruno@clisp.org>
48641         symlinkat: Move AC_LIBOBJ invocations to module description.
48642         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
48643         here...
48644         * modules/symlinkat (configure.ac): ... to here.
48646 2011-05-22  Bruno Haible  <bruno@clisp.org>
48648         symlink: Move AC_LIBOBJ invocations to module description.
48649         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
48650         here...
48651         * modules/symlink (configure.ac): ... to here.
48653 2011-05-22  Bruno Haible  <bruno@clisp.org>
48655         strverscmp: Move AC_LIBOBJ invocations to module description.
48656         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
48657         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
48658         from here...
48659         * modules/strverscmp (configure.ac): ... to here.
48661 2011-05-22  Bruno Haible  <bruno@clisp.org>
48663         strtok_r: Move AC_LIBOBJ invocations to module description.
48664         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
48665         and gl_PREREQ_STRTOK_R invocations from here...
48666         * modules/strtok_r (configure.ac): ... to here.
48667         (Depends-on): Update conditions.
48669 2011-05-22  Bruno Haible  <bruno@clisp.org>
48671         strtoumax: Move AC_LIBOBJ invocations to module description.
48672         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
48673         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
48674         from here...
48675         * modules/strtoumax (configure.ac): ... to here.
48677 2011-05-22  Bruno Haible  <bruno@clisp.org>
48679         strtoimax: Move AC_LIBOBJ invocations to module description.
48680         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
48681         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
48682         from here...
48683         * modules/strtoimax (configure.ac): ... to here.
48685 2011-05-22  Bruno Haible  <bruno@clisp.org>
48687         strtoull: Move AC_LIBOBJ invocations to module description.
48688         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
48689         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
48690         from here...
48691         * modules/strtoull (configure.ac): ... to here.
48693 2011-05-22  Bruno Haible  <bruno@clisp.org>
48695         strtoll: Move AC_LIBOBJ invocations to module description.
48696         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
48697         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
48698         here...
48699         * modules/strtoll (configure.ac): ... to here.
48701 2011-05-22  Bruno Haible  <bruno@clisp.org>
48703         strtoul: Move AC_LIBOBJ invocations to module description.
48704         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
48705         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
48706         * modules/strtoul (configure.ac): ... to here.
48708 2011-05-22  Bruno Haible  <bruno@clisp.org>
48710         strtol: Move AC_LIBOBJ invocations to module description.
48711         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
48712         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
48713         * modules/strtol (configure.ac): ... to here.
48715 2011-05-22  Bruno Haible  <bruno@clisp.org>
48717         strtod: Move AC_LIBOBJ invocations to module description.
48718         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
48719         invocations from here...
48720         * modules/strtod (configure.ac): ... to here.
48722 2011-05-22  Bruno Haible  <bruno@clisp.org>
48724         strstr*: Move AC_LIBOBJ invocations to module description.
48725         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
48726         invocations from here...
48727         * modules/strstr-simple (configure.ac): ... to here.
48728         * modules/strstr (configure.ac): ... and here.
48730 2011-05-22  Bruno Haible  <bruno@clisp.org>
48732         strsignal: Move AC_LIBOBJ invocations to module description.
48733         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
48734         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
48735         * modules/strsignal (configure.ac): ... to here.
48736         (Depends-on): Update conditions.
48738 2011-05-22  Bruno Haible  <bruno@clisp.org>
48740         strsep: Move AC_LIBOBJ invocations to module description.
48741         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
48742         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
48743         here...
48744         * modules/strsep (configure.ac): ... to here.
48746 2011-05-22  Bruno Haible  <bruno@clisp.org>
48748         strptime: Move AC_LIBOBJ invocations to module description.
48749         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
48750         gl_PREREQ_STRPTIME invocations from here...
48751         * modules/strptime (configure.ac): ... to here.
48753 2011-05-22  Bruno Haible  <bruno@clisp.org>
48755         strpbrk: Move AC_LIBOBJ invocations to module description.
48756         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
48757         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
48758         here...
48759         * modules/strpbrk (configure.ac): ... to here.
48761 2011-05-22  Bruno Haible  <bruno@clisp.org>
48763         strnlen: Move AC_LIBOBJ invocations to module description.
48764         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
48765         invocations from here...
48766         * modules/strnlen (configure.ac): ... to here.
48768 2011-05-22  Bruno Haible  <bruno@clisp.org>
48770         strndup: Move AC_LIBOBJ invocations to module description.
48771         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
48772         invocations from here...
48773         * modules/strndup (configure.ac): ... to here.
48774         (Depends-on): Update conditions.
48776 2011-05-22  Bruno Haible  <bruno@clisp.org>
48778         strncat: Move AC_LIBOBJ invocations to module description.
48779         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
48780         invocations from here...
48781         * modules/strncat (configure.ac): ... to here.
48783 2011-05-22  Bruno Haible  <bruno@clisp.org>
48785         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
48786         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
48787         invocations from here...
48788         * modules/strdup (configure.ac): ... to here.
48789         * modules/strdup-posix (configure.ac): ... and here.
48791 2011-05-22  Bruno Haible  <bruno@clisp.org>
48793         strcspn: Move AC_LIBOBJ invocations to module description.
48794         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
48795         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
48796         here...
48797         * modules/strcspn (configure.ac): ... to here.
48799 2011-05-22  Bruno Haible  <bruno@clisp.org>
48801         strchrnul: Move AC_LIBOBJ invocations to module description.
48802         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
48803         gl_PREREQ_STRCHRNUL invocations from here...
48804         * modules/strchrnul (configure.ac): ... to here.
48806 2011-05-22  Bruno Haible  <bruno@clisp.org>
48808         strcasestr*: Move AC_LIBOBJ invocations to module description.
48809         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
48810         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
48811         * modules/strcasestr-simple (configure.ac): ... to here.
48812         * modules/strcasestr (configure.ac): ... and here.
48814 2011-05-22  Bruno Haible  <bruno@clisp.org>
48816         strcase: Move AC_LIBOBJ invocations to module description.
48817         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
48818         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
48819         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
48820         gl_PREREQ_STRNCASECMP invocations from here...
48821         * modules/strcase (configure.ac): ... to here.
48823 2011-05-22  Bruno Haible  <bruno@clisp.org>
48825         stpncpy: Move AC_LIBOBJ invocations to module description.
48826         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
48827         here...
48828         * modules/stpncpy (configure.ac): ... to here.
48830 2011-05-22  Bruno Haible  <bruno@clisp.org>
48832         stpcpy: Move AC_LIBOBJ invocations to module description.
48833         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
48834         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
48835         here...
48836         * modules/stpcpy (configure.ac): ... to here.
48838 2011-05-21  Bruno Haible  <bruno@clisp.org>
48840         stat: Move AC_LIBOBJ invocations to module description.
48841         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
48842         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
48843         here...
48844         * modules/stat (configure.ac): ... to here.
48846 2011-05-21  Bruno Haible  <bruno@clisp.org>
48848         sleep: Move AC_LIBOBJ invocations to module description.
48849         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
48850         * modules/sleep (configure.ac): ... to here.
48852 2011-05-21  Bruno Haible  <bruno@clisp.org>
48854         signbit: Move AC_LIBOBJ invocations to module description.
48855         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
48856         * modules/signbit (configure.ac): ... to here.
48858 2011-05-21  Bruno Haible  <bruno@clisp.org>
48860         sigprocmask: Move AC_LIBOBJ invocations to module description.
48861         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
48862         gl_PREREQ_SIGPROMASK invocations from here...
48863         * modules/sigprocmask (configure.ac): ... to here.
48865 2011-05-21  Bruno Haible  <bruno@clisp.org>
48867         sigaction: Move AC_LIBOBJ invocations to module description.
48868         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
48869         gl_PREREQ_SIGACTION invocations from here...
48870         * modules/sigaction (configure.ac): ... to here.
48872 2011-05-21  Bruno Haible  <bruno@clisp.org>
48874         sig2str: Move AC_LIBOBJ invocations to module description.
48875         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
48876         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
48877         here...
48878         * modules/sig2str (configure.ac): ... to here.
48880 2011-05-21  Bruno Haible  <bruno@clisp.org>
48882         setlocale: Move AC_LIBOBJ invocations to module description.
48883         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
48884         gl_PREREQ_SETLOCALE invocations from here...
48885         * modules/setlocale (configure.ac): ... to here.
48887 2011-05-21  Bruno Haible  <bruno@clisp.org>
48889         unsetenv: Move AC_LIBOBJ invocations to module description.
48890         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
48891         and gl_PREREQ_UNSETENV invocations from here...
48892         * modules/unsetenv (configure.ac): ... to here.
48893         (Depends-on): Update.
48895 2011-05-21  Bruno Haible  <bruno@clisp.org>
48897         setenv: Move AC_LIBOBJ invocations to module description.
48898         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
48899         here...
48900         * modules/setenv (configure.ac): ... to here.
48902 2011-05-21  Bruno Haible  <bruno@clisp.org>
48904         selinux-h: Move AC_LIBOBJ invocations to module description.
48905         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
48906         AC_LIBOBJ invocation from here...
48907         * modules/selinux-h (configure.ac): ... to here.
48909 2011-05-21  Bruno Haible  <bruno@clisp.org>
48911         select: Respect rules for use of AC_LIBOBJ.
48912         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
48913         here...
48914         * modules/select (configure.ac): ... to here.
48916 2011-05-21  Bruno Haible  <bruno@clisp.org>
48918         scandir: Move AC_LIBOBJ invocations to module description.
48919         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
48920         invocations from here...
48921         * modules/scandir (configure.ac): ... to here.
48923 2011-05-21  Bruno Haible  <bruno@clisp.org>
48925         rpmatch: Move AC_LIBOBJ invocations to module description.
48926         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
48927         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
48928         here...
48929         * modules/rpmatch (configure.ac): ... to here.
48931 2011-05-21  Bruno Haible  <bruno@clisp.org>
48933         rmdir: Respect rules for use of AC_LIBOBJ.
48934         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
48935         * modules/rmdir (configure.ac): ... to here.
48937 2011-05-21  Bruno Haible  <bruno@clisp.org>
48939         renameat: Move AC_LIBOBJ invocations to module description.
48940         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
48941         here...
48942         * modules/renameat (configure.ac): ... to here.
48944 2011-05-21  Bruno Haible  <bruno@clisp.org>
48946         rename: Respect rules for use of AC_LIBOBJ.
48947         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
48948         here...
48949         * modules/rename (configure.ac): ... to here.
48951 2011-05-21  Bruno Haible  <bruno@clisp.org>
48953         remove: Move AC_LIBOBJ invocations to module description.
48954         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
48955         here...
48956         * modules/remove (configure.ac): ... to here.
48958 2011-05-21  Bruno Haible  <bruno@clisp.org>
48960         relocatable-lib: Move AC_LIBOBJ invocations to module description.
48961         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
48962         macro.
48963         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
48964         * modules/relocatable-lib (configure.ac): ... to here.
48965         * modules/relocatable-prog-wrapper (configure.ac): Invoke
48966         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
48968 2011-05-21  Bruno Haible  <bruno@clisp.org>
48970         relocatable-prog: Move AC_LIBOBJ invocations to module description.
48971         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
48972         here...
48973         * modules/relocatable-prog (configure.ac): ... to here.
48975 2011-05-21  Bruno Haible  <bruno@clisp.org>
48977         regex: Move AC_LIBOBJ invocations to module description.
48978         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
48979         invocations from here...
48980         * modules/regex (configure.ac): ... to here.
48982 2011-05-21  Bruno Haible  <bruno@clisp.org>
48984         realloc-*: Move AC_LIBOBJ invocations to module description.
48985         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
48986         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
48987         AC_LIBOBJ invocations from here...
48988         * modules/realloc-gnu (configure.ac): ... to here.
48989         * modules/realloc-posix (configure.ac): ... and here.
48991 2011-05-21  Bruno Haible  <bruno@clisp.org>
48993         readutmp: Move AC_LIBOBJ invocations to module description.
48994         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
48995         * modules/readutmp (configure.ac): ... to here.
48997 2011-05-21  Bruno Haible  <bruno@clisp.org>
48999         readlinkat: Move AC_LIBOBJ invocations to module description.
49000         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
49001         here...
49002         * modules/readlinkat (configure.ac): ... to here.
49004 2011-05-21  Bruno Haible  <bruno@clisp.org>
49006         readlink: Move AC_LIBOBJ invocations to module description.
49007         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
49008         gl_PREREQ_READLINK invocations from here...
49009         * modules/readlink (configure.ac): ... to here.
49011 2011-05-21  Bruno Haible  <bruno@clisp.org>
49013         readline: Move AC_LIBOBJ invocations to module description.
49014         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
49015         gl_PREREQ_READLINE invocations from here...
49016         * modules/readline (configure.ac): ... to here.
49018 2011-05-21  Bruno Haible  <bruno@clisp.org>
49020         read: Move AC_LIBOBJ invocations to module description.
49021         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
49022         * modules/read (configure.ac): ... to here.
49024 2011-05-21  Bruno Haible  <bruno@clisp.org>
49026         rawmemchr: Move AC_LIBOBJ invocations to module description.
49027         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
49028         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
49029         from here...
49030         * modules/rawmemchr (configure.ac): ... to here.
49032 2011-05-21  Bruno Haible  <bruno@clisp.org>
49034         random_r: Move AC_LIBOBJ invocations to module description.
49035         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
49036         gl_PREREQ_RANDOM_R invocations from here...
49037         * modules/random_r (configure.ac): ... to here.
49039 2011-05-21  Bruno Haible  <bruno@clisp.org>
49041         pwrite: Move AC_LIBOBJ invocations to module description.
49042         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
49043         * modules/pwrite (configure.ac): ... to here.
49045 2011-05-21  Bruno Haible  <bruno@clisp.org>
49047         putenv: Move AC_LIBOBJ invocations to module description.
49048         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
49049         * modules/putenv (configure.ac): ... to here.
49051 2011-05-21  Bruno Haible  <bruno@clisp.org>
49053         login_tty: Move AC_LIBOBJ invocations to module description.
49054         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
49055         * modules/login_tty (configure.ac): ... to here.
49057 2011-05-21  Bruno Haible  <bruno@clisp.org>
49059         openpty: Move AC_LIBOBJ invocations to module description.
49060         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
49061         * modules/openpty (configure.ac): ... to here.
49063 2011-05-21  Bruno Haible  <bruno@clisp.org>
49065         forkpty: Move AC_LIBOBJ invocations to module description.
49066         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
49067         * modules/forkpty (configure.ac): ... to here.
49069 2011-05-21  Bruno Haible  <bruno@clisp.org>
49071         ptsname: Move AC_LIBOBJ invocations to module description.
49072         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
49073         invocations from here...
49074         * modules/ptsname (configure.ac): ... to here.
49076 2011-05-21  Bruno Haible  <bruno@clisp.org>
49078         pread: Move AC_LIBOBJ invocations to module description.
49079         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
49080         * modules/pread (configure.ac): ... to here.
49082 2011-05-21  Bruno Haible  <bruno@clisp.org>
49084         posix_spawn*: Move AC_LIBOBJ invocations to module description.
49085         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
49086         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
49087         * modules/posix_spawn (configure.ac): ... to here.
49088         * modules/posix_spawnp (configure.ac): ... and here.
49090 2011-05-21  Bruno Haible  <bruno@clisp.org>
49092         popen: Move AC_LIBOBJ invocations to module description.
49093         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
49094         invocations from here...
49095         * modules/popen (configure.ac): ... to here.
49097 2011-05-21  Bruno Haible  <bruno@clisp.org>
49099         poll: Move AC_LIBOBJ invocations to module description.
49100         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
49101         invocations from here...
49102         * modules/poll (configure.ac): ... to here.
49104 2011-05-21  Bruno Haible  <bruno@clisp.org>
49106         pipe-posix: Move AC_LIBOBJ invocations to module description.
49107         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
49108         * modules/pipe-posix (configure.ac): ... to here.
49110 2011-05-21  Bruno Haible  <bruno@clisp.org>
49112         openat: Respect rules for use of AC_LIBOBJ.
49113         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
49114         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
49115         * modules/openat (configure.ac): ... to here.
49117 2011-05-21  Bruno Haible  <bruno@clisp.org>
49119         obstack-printf*: Move AC_LIBOBJ invocations to module description.
49120         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
49121         invocation from here...
49122         * modules/obstack-printf (configure.ac): ... to here.
49123         * modules/obstack-printf-posix (configure.ac): ... and here.
49125 2011-05-21  Bruno Haible  <bruno@clisp.org>
49127         nl_langinfo: Move AC_LIBOBJ invocations to module description.
49128         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
49129         from here...
49130         * modules/nl_langinfo (configure.ac): ... to here.
49132 2011-05-21  Bruno Haible  <bruno@clisp.org>
49134         nanosleep: Move AC_LIBOBJ invocations to module description.
49135         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
49136         gl_PREREQ_NANOSLEEP invocations from here...
49137         * modules/nanosleep (configure.ac): ... to here.
49139 2011-05-21  Bruno Haible  <bruno@clisp.org>
49141         mountlist: Move AC_LIBOBJ invocations to module description.
49142         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
49143         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
49144         * modules/mountlist (configure.ac): ... to here.
49146 2011-05-21  Bruno Haible  <bruno@clisp.org>
49148         mktime: Respect rules for use of AC_LIBOBJ.
49149         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
49150         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
49151         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
49152         (gl_FUNC_MKTIME_INTERNAL): ... and here...
49153         * modules/mktime (configure.ac): ... to here.
49154         * modules/mktime-internal (configure.ac): ... and here.
49155         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
49157 2011-05-21  Bruno Haible  <bruno@clisp.org>
49159         mkstemps: Move AC_LIBOBJ invocations to module description.
49160         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
49161         here...
49162         * modules/mkstemps (configure.ac): ... to here.
49164 2011-05-21  Bruno Haible  <bruno@clisp.org>
49166         mkstemp: Move AC_LIBOBJ invocations to module description.
49167         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
49168         gl_PREREQ_MKSTEMP invocations from here...
49169         * modules/mkstemp (configure.ac): ... to here.
49171 2011-05-21  Bruno Haible  <bruno@clisp.org>
49173         mkostemps: Move AC_LIBOBJ invocations to module description.
49174         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
49175         here...
49176         * modules/mkostemps (configure.ac): ... to here.
49178 2011-05-21  Bruno Haible  <bruno@clisp.org>
49180         mkostemp: Move AC_LIBOBJ invocations to module description.
49181         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
49182         gl_PREREQ_MKOSTEMP invocations from here...
49183         * modules/mkostemp (configure.ac): ... to here.
49185 2011-05-21  Bruno Haible  <bruno@clisp.org>
49187         mknod: Move AC_LIBOBJ invocations to module description.
49188         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
49189         * modules/mknod (configure.ac): ... to here.
49191 2011-05-21  Bruno Haible  <bruno@clisp.org>
49193         mkfifoat: Move AC_LIBOBJ invocations to module description.
49194         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
49195         here...
49196         * modules/mkfifoat (configure.ac): ... to here.
49198 2011-05-21  Bruno Haible  <bruno@clisp.org>
49200         mkfifo: Respect rules for use of AC_LIBOBJ.
49201         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
49202         here...
49203         * modules/mkfifo (configure.ac): ... to here.
49205 2011-05-21  Bruno Haible  <bruno@clisp.org>
49207         mkdtemp: Move AC_LIBOBJ invocations to module description.
49208         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
49209         invocations from here...
49210         * modules/mkdtemp (configure.ac): ... to here.
49212 2011-05-21  Bruno Haible  <bruno@clisp.org>
49214         mkdir: Move AC_LIBOBJ invocations to module description.
49215         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
49216         * modules/mkdir (configure.ac): ... to here.
49218 2011-05-21  Bruno Haible  <bruno@clisp.org>
49220         memset: Move AC_LIBOBJ invocations to module description.
49221         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
49222         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
49223         here...
49224         * modules/memset (configure.ac): ... to here.
49226 2011-05-21  Bruno Haible  <bruno@clisp.org>
49228         memrchr: Move AC_LIBOBJ invocations to module description.
49229         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
49230         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
49231         here...
49232         * modules/memrchr (configure.ac): ... to here.
49234 2011-05-21  Bruno Haible  <bruno@clisp.org>
49236         mempcpy: Move AC_LIBOBJ invocations to module description.
49237         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
49238         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
49239         here...
49240         * modules/mempcpy (configure.ac): ... to here.
49242 2011-05-21  Bruno Haible  <bruno@clisp.org>
49244         memmove: Move AC_LIBOBJ invocations to module description.
49245         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
49246         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
49247         here...
49248         * modules/memmove (configure.ac): ... to here.
49250 2011-05-21  Bruno Haible  <bruno@clisp.org>
49252         memmem*: Move AC_LIBOBJ invocations to module description.
49253         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
49254         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
49255         here...
49256         (gl_FUNC_MEMMEM): ... and here...
49257         * modules/memmem-simple (configure.ac): ... to here.
49258         * modules/memmem (configure.ac): ... and here.
49260 2011-05-21  Bruno Haible  <bruno@clisp.org>
49262         memcpy: Move AC_LIBOBJ invocations to module description.
49263         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
49264         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
49265         here...
49266         * modules/memcpy (configure.ac): ... to here.
49268 2011-05-21  Bruno Haible  <bruno@clisp.org>
49270         memcmp: Simplify autoconf macro.
49271         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
49272         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
49273         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
49275 2011-05-21  Bruno Haible  <bruno@clisp.org>
49277         memcmp: Move AC_LIBOBJ invocations to module description.
49278         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
49279         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
49280         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
49281         * modules/memcmp (configure.ac): ... to here.
49282         (Depends-on): Update conditions.
49284 2011-05-21  Bruno Haible  <bruno@clisp.org>
49286         memchr: Respect rules for use of AC_LIBOBJ.
49287         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
49288         invocations from here...
49289         * modules/memchr (configure.ac): ... to here.
49291 2011-05-21  Bruno Haible  <bruno@clisp.org>
49293         mbtowc: Move AC_LIBOBJ invocations to module description.
49294         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
49295         invocations from here...
49296         * modules/mbtowc (configure.ac): ... to here.
49298 2011-05-21  Bruno Haible  <bruno@clisp.org>
49300         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
49301         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
49302         gl_PREREQ_MBSRTOWCS invocations from here...
49303         * modules/mbsrtowcs (configure.ac): ... to here.
49305 2011-05-21  Bruno Haible  <bruno@clisp.org>
49307         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
49308         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
49309         gl_PREREQ_MBSNRTOWCS invocations from here...
49310         * modules/mbsnrtowcs (configure.ac): ... to here.
49312 2011-05-21  Bruno Haible  <bruno@clisp.org>
49314         mbsinit: Move AC_LIBOBJ invocations to module description.
49315         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
49316         invocations from here...
49317         * modules/mbsinit (configure.ac): ... to here.
49319 2011-05-21  Bruno Haible  <bruno@clisp.org>
49321         mbrlen: Move AC_LIBOBJ invocations to module description.
49322         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
49323         invocations from here...
49324         * modules/mbrlen (configure.ac): ... to here.
49326 2011-05-21  Bruno Haible  <bruno@clisp.org>
49328         mbrtowc: Respect rules for use of AC_LIBOBJ.
49329         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
49330         invocations from here...
49331         * modules/mbrtowc (configure.ac): ... to here.
49333 2011-05-21  Bruno Haible  <bruno@clisp.org>
49335         malloc-*: Move AC_LIBOBJ invocations to module description.
49336         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
49337         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
49338         AC_LIBOBJ invocations from here...
49339         * modules/malloc-gnu (configure.ac): ... to here.
49340         * modules/malloc-posix (configure.ac): ... and here.
49342 2011-05-21  Bruno Haible  <bruno@clisp.org>
49344         lstat, openat: Respect rules for use of AC_LIBOBJ.
49345         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
49346         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
49347         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
49348         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
49349         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
49350         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
49351         here.
49352         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
49354 2011-05-21  Bruno Haible  <bruno@clisp.org>
49356         lseek: Move AC_LIBOBJ invocations to module description.
49357         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
49358         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
49359         * modules/lseek (configure.ac): ... to here.
49361 2011-05-21  Bruno Haible  <bruno@clisp.org>
49363         linkat: Move AC_LIBOBJ invocations to module description.
49364         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
49365         here...
49366         * modules/linkat (configure.ac): ... to here.
49368 2011-05-21  Bruno Haible  <bruno@clisp.org>
49370         link: Respect rules for use of AC_LIBOBJ.
49371         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
49372         * modules/link (configure.ac): ... to here.
49374 2011-05-21  Bruno Haible  <bruno@clisp.org>
49376         lchown: Move AC_LIBOBJ invocations to module description.
49377         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
49378         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
49379         * modules/lchown (configure.ac): ... to here.
49381 2011-05-21  Bruno Haible  <bruno@clisp.org>
49383         iswctype: Move AC_LIBOBJ invocations to module description.
49384         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
49385         here...
49386         * modules/iswctype (configure.ac): ... to here.
49388 2011-05-21  Bruno Haible  <bruno@clisp.org>
49390         iswblank: Move AC_LIBOBJ invocations to module description.
49391         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
49392         here...
49393         * modules/iswblank (configure.ac): ... to here.
49395 2011-05-21  Bruno Haible  <bruno@clisp.org>
49397         atanl: Move AC_LIBOBJ invocations to module description.
49398         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
49399         * modules/atanl (configure.ac): ... to here.
49401 2011-05-21  Bruno Haible  <bruno@clisp.org>
49403         acosl: Move AC_LIBOBJ invocations to module description.
49404         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
49405         * modules/acosl (configure.ac): ... to here.
49407 2011-05-21  Bruno Haible  <bruno@clisp.org>
49409         asinl: Respect rules for use of AC_LIBOBJ.
49410         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
49411         * modules/asinl (configure.ac): ... to here.
49413 2011-05-21  Bruno Haible  <bruno@clisp.org>
49415         tanl: Move AC_LIBOBJ invocations to module description.
49416         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
49417         * modules/tanl (configure.ac): ... to here.
49419 2011-05-21  Bruno Haible  <bruno@clisp.org>
49421         cosl: Move AC_LIBOBJ invocations to module description.
49422         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
49423         * modules/cosl (configure.ac): ... to here.
49425 2011-05-21  Bruno Haible  <bruno@clisp.org>
49427         sinl: Move AC_LIBOBJ invocations to module description.
49428         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
49429         * modules/sinl (configure.ac): ... to here.
49431 2011-05-21  Bruno Haible  <bruno@clisp.org>
49433         logl: Move AC_LIBOBJ invocations to module description.
49434         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
49435         * modules/logl (configure.ac): ... to here.
49437 2011-05-21  Bruno Haible  <bruno@clisp.org>
49439         expl: Move AC_LIBOBJ invocations to module description.
49440         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
49441         * modules/expl (configure.ac): ... to here.
49443 2011-05-21  Bruno Haible  <bruno@clisp.org>
49445         roundl: Move AC_LIBOBJ invocations to module description.
49446         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
49447         * modules/roundl (configure.ac): ... to here.
49449 2011-05-21  Bruno Haible  <bruno@clisp.org>
49451         round: Move AC_LIBOBJ invocations to module description.
49452         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
49453         * modules/round (configure.ac): ... to here.
49455 2011-05-21  Bruno Haible  <bruno@clisp.org>
49457         roundf: Move AC_LIBOBJ invocations to module description.
49458         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
49459         * modules/roundf (configure.ac): ... to here.
49461 2011-05-21  Bruno Haible  <bruno@clisp.org>
49463         truncl: Move AC_LIBOBJ invocations to module description.
49464         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
49465         * modules/truncl (configure.ac): ... to here.
49467 2011-05-21  Bruno Haible  <bruno@clisp.org>
49469         trunc: Move AC_LIBOBJ invocations to module description.
49470         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
49471         * modules/trunc (configure.ac): ... to here.
49473 2011-05-21  Bruno Haible  <bruno@clisp.org>
49475         truncf: Move AC_LIBOBJ invocations to module description.
49476         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
49477         * modules/truncf (configure.ac): ... to here.
49479 2011-05-21  Bruno Haible  <bruno@clisp.org>
49481         ceill: Move AC_LIBOBJ invocations to module description.
49482         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
49483         * modules/ceill (configure.ac): ... to here.
49485 2011-05-21  Bruno Haible  <bruno@clisp.org>
49487         ceil: Move AC_LIBOBJ invocations to module description.
49488         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
49489         * modules/ceil (configure.ac): ... to here.
49491 2011-05-21  Bruno Haible  <bruno@clisp.org>
49493         ceilf: Move AC_LIBOBJ invocations to module description.
49494         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
49495         * modules/ceilf (configure.ac): ... to here.
49497 2011-05-21  Bruno Haible  <bruno@clisp.org>
49499         floorl: Respect rules for use of AC_LIBOBJ.
49500         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
49501         * modules/floorl (configure.ac): ... to here.
49503 2011-05-21  Bruno Haible  <bruno@clisp.org>
49505         floor: Respect rules for use of AC_LIBOBJ.
49506         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
49507         * modules/floor (configure.ac): ... to here.
49509 2011-05-21  Bruno Haible  <bruno@clisp.org>
49511         floorf: Move AC_LIBOBJ invocations to module description.
49512         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
49513         * modules/floorf (configure.ac): ... to here.
49515 2011-05-20  Bruno Haible  <bruno@clisp.org>
49517         sqrtl: Respect rules for use of AC_LIBOBJ.
49518         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
49519         * modules/sqrtl (configure.ac): ... to here.
49521 2011-05-20  Bruno Haible  <bruno@clisp.org>
49523         ldexpl: Respect rules for use of AC_LIBOBJ.
49524         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
49525         * modules/ldexpl (configure.ac): ... to here.
49527 2011-05-20  Bruno Haible  <bruno@clisp.org>
49529         frexpl*: Respect rules for use of AC_LIBOBJ.
49530         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
49531         invocation from here...
49532         * modules/frexpl (configure.ac): ... to here.
49533         * modules/frexpl-nolibm (configure.ac): ... and here.
49535 2011-05-20  Bruno Haible  <bruno@clisp.org>
49537         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
49538         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
49539         invocation from here...
49540         * modules/frexp (configure.ac): ... to here.
49541         * modules/frexp-nolibm (configure.ac): ... and here.
49543 2011-05-20  Bruno Haible  <bruno@clisp.org>
49545         isnan: Respect rules for use of AC_LIBOBJ.
49546         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
49547         invocations here.
49548         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
49549         REPLACE_ISNAN.
49550         * modules/isnand (configure.ac): Likewise.
49551         * modules/isnanl (configure.ac): Likewise.
49553 2011-05-20  Bruno Haible  <bruno@clisp.org>
49555         isnanl*: Respect rules for use of AC_LIBOBJ.
49556         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
49557         invocation from here...
49558         * modules/isnanl (configure.ac): ... to here.
49559         * modules/isnanl-nolibm (configure.ac): ... and here.
49561 2011-05-20  Bruno Haible  <bruno@clisp.org>
49563         isnand*: Move AC_LIBOBJ invocations to module description.
49564         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
49565         invocation from here...
49566         * modules/isnand (configure.ac): ... to here.
49567         * modules/isnand-nolibm (configure.ac): ... and here.
49569 2011-05-20  Bruno Haible  <bruno@clisp.org>
49571         isnanf*: Move AC_LIBOBJ invocations to module description.
49572         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
49573         invocation from here...
49574         * modules/isnanf (configure.ac): ... to here.
49575         * modules/isnanf-nolibm (configure.ac): ... and here.
49577 2011-05-20  Bruno Haible  <bruno@clisp.org>
49579         isnan*: Separate the AC_LIBOBJ invocations.
49580         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
49581         AC_LIBOBJ invocation.
49582         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
49583         here.
49584         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
49585         AC_LIBOBJ invocation.
49586         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
49587         here.
49588         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
49589         AC_LIBOBJ invocation.
49590         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
49591         here.
49592         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
49594 2011-05-08  Bruno Haible  <bruno@clisp.org>
49596         isinf: Move AC_LIBOBJ invocations to module description.
49597         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
49598         * modules/isinf (configure.ac): ... to here.
49600 2011-05-08  Bruno Haible  <bruno@clisp.org>
49602         isfinite: Move AC_LIBOBJ invocations to module description.
49603         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
49604         * modules/isfinite (configure.ac): ... to here.
49606 2011-05-08  Bruno Haible  <bruno@clisp.org>
49608         isblank: Move AC_LIBOBJ invocations to module description.
49609         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
49610         here...
49611         * modules/isblank (configure.ac): ... to here.
49613 2011-05-08  Bruno Haible  <bruno@clisp.org>
49615         isapipe: Move AC_LIBOBJ invocations to module description.
49616         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
49617         gl_PREREQ_ISAPIPE invocations from here...
49618         * modules/isapipe (configure.ac): ... to here.
49619         (Depends-on): Update condition.
49621 2011-05-08  Bruno Haible  <bruno@clisp.org>
49623         ioctl: Move AC_LIBOBJ invocations to module description.
49624         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
49625         invocations from here...
49626         * modules/ioctl (configure.ac): ... to here.
49627         (Depends-on): Update condition.
49629 2011-05-08  Bruno Haible  <bruno@clisp.org>
49631         imaxdiv: Move AC_LIBOBJ invocations to module description.
49632         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
49633         invocations from here...
49634         * modules/imaxdiv (configure.ac): ... to here.
49636 2011-05-08  Bruno Haible  <bruno@clisp.org>
49638         imaxabs: Move AC_LIBOBJ invocations to module description.
49639         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
49640         invocations from here...
49641         * modules/imaxabs (configure.ac): ... to here.
49643 2011-05-08  Bruno Haible  <bruno@clisp.org>
49645         getaddrinfo: Move AC_LIBOBJ invocations to module description.
49646         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
49647         AC_LIBOBJ invocations from here...
49648         * modules/getaddrinfo (configure.ac): ... to here.
49649         (Depends-on): Add conditions.
49651 2011-05-08  Bruno Haible  <bruno@clisp.org>
49653         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
49654         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
49655         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
49656         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
49657         (gl_PREREQ_INET_PTON): ... from here.
49658         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
49659         gl_PREREQ_INET_PTON here.
49660         (Depends-on): Update condition.
49662 2011-05-08  Bruno Haible  <bruno@clisp.org>
49664         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
49665         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
49666         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
49667         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
49668         (gl_PREREQ_INET_NTOP): ... from here.
49669         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
49670         gl_PREREQ_INET_NTOP here.
49671         (Depends-on): Update condition.
49673 2011-05-08  Bruno Haible  <bruno@clisp.org>
49675         iconv_open: Move AC_LIBOBJ invocations to module description.
49676         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
49677         AC_LIBOBJ invocations from here...
49678         * modules/iconv_open (configure.ac): ... to here.
49680 2011-05-08  Bruno Haible  <bruno@clisp.org>
49682         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
49683         If module 'iconv_open' is among the main modules and module
49684         'iconv_open-utf' is among the tests dependencies, then
49685         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
49686         return the special iconv_t values. Therefore iconv() and iconv_close()
49687         must support these special iconv_t values, already in lib, not only in
49688         tests.
49689         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
49690         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
49691         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
49692         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
49693         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
49694         (Depends-on): Add the dependencies of iconv_open-utf.
49695         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
49696         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
49697         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
49699 2011-05-08  Bruno Haible  <bruno@clisp.org>
49701         group-member: Move AC_LIBOBJ invocations to module description.
49702         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
49703         gl_PREREQ_GROUP_MEMBER invocations from here...
49704         * modules/group-member (configure.ac): ... to here.
49706 2011-05-08  Bruno Haible  <bruno@clisp.org>
49708         grantpt: Move AC_LIBOBJ invocations to module description.
49709         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
49710         invocations from here...
49711         * modules/grantpt (configure.ac): ... to here.
49713 2011-05-08  Bruno Haible  <bruno@clisp.org>
49715         glob: Move AC_LIBOBJ invocations to module description.
49716         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
49717         from here...
49718         * modules/glob (configure.ac): ... to here.
49720 2011-05-08  Bruno Haible  <bruno@clisp.org>
49722         getusershell: Move AC_LIBOBJ invocations to module description.
49723         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
49724         Move AC_LIBOBJ invocation from here...
49725         * modules/getusershell (configure.ac): ... to here.
49726         (Depends-on): Update condition.
49728 2011-05-08  Bruno Haible  <bruno@clisp.org>
49730         gettimeofday: Move AC_LIBOBJ invocations to module description.
49731         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49732         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
49733         gl_PREREQ_GETTIMEOFDAY invocations from here...
49734         * modules/gettimeofday (configure.ac): ... to here.
49736 2011-05-08  Bruno Haible  <bruno@clisp.org>
49738         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
49739         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
49740         just gl_FUNC_TZSET.
49741         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
49742         (gl_FUNC_TZSET_CLOBBER): Remove actions.
49743         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
49744         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
49746 2011-05-08  Bruno Haible  <bruno@clisp.org>
49748         getsubopt: Move AC_LIBOBJ invocations to module description.
49749         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
49750         gl_PREREQ_GETSUBOPT invocations from here...
49751         * modules/getsubopt (configure.ac): ... to here.
49753 2011-05-08  Bruno Haible  <bruno@clisp.org>
49755         getpass-gnu: Move AC_LIBOBJ invocations to module description.
49756         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
49757         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
49758         * modules/getpass-gnu (configure.ac): ... to here.
49760 2011-05-08  Bruno Haible  <bruno@clisp.org>
49762         getpass: Move AC_LIBOBJ invocations to module description.
49763         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
49764         gl_PREREQ_GETPASS invocations from here...
49765         * modules/getpass (configure.ac): ... to here.
49767 2011-05-08  Bruno Haible  <bruno@clisp.org>
49769         getpagesize: Move AC_LIBOBJ invocations to module description.
49770         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
49771         from here...
49772         * modules/getpagesize (configure.ac): ... to here.
49774 2011-05-08  Bruno Haible  <bruno@clisp.org>
49776         getopt: Move AC_LIBOBJ invocations to module description.
49777         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
49778         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
49779         invocations from here...
49780         * modules/getopt-gnu (configure.ac): ... to here.
49781         * modules/getopt-posix (configure.ac): ... and here.
49782         (Depends-on): Update condition.
49784 2011-05-08  Bruno Haible  <bruno@clisp.org>
49786         getopt, argp: Respect rules for use of AC_LIBOBJ.
49787         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
49788         (gl_REPLACE_GETOPT_ALWAYS): New macro.
49789         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
49790         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
49792 2011-05-08  Bruno Haible  <bruno@clisp.org>
49794         getlogin_r: Move AC_LIBOBJ invocations to module description.
49795         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
49796         gl_PREREQ_GETLOGIN_R invocations from here...
49797         * modules/getlogin_r (configure.ac): ... to here.
49799 2011-05-08  Bruno Haible  <bruno@clisp.org>
49801         getlogin: Move AC_LIBOBJ invocations to module description.
49802         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
49803         here...
49804         * modules/getlogin (configure.ac): ... to here.
49806 2011-05-08  Bruno Haible  <bruno@clisp.org>
49808         getloadavg: Move AC_LIBOBJ invocations to module description.
49809         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
49810         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
49811         * modules/getloadavg (configure.ac): ... to here.
49813 2011-05-08  Bruno Haible  <bruno@clisp.org>
49815         gethrxtime: Move AC_LIBOBJ invocations to module description.
49816         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
49817         LIB_GETHRXTIME from here...
49818         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
49819         invocations from here...
49820         * modules/gethrxtime (configure.ac): ... to here.
49822 2011-05-08  Bruno Haible  <bruno@clisp.org>
49824         gethostname: Move AC_LIBOBJ invocations to module description.
49825         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
49826         gl_PREREQ_GETHOSTNAME invocations from here...
49827         * modules/gethostname (configure.ac): ... to here.
49829 2011-05-08  Bruno Haible  <bruno@clisp.org>
49831         getgroups: Move AC_LIBOBJ invocations to module description.
49832         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
49833         here...
49834         * modules/getgroups (configure.ac): ... to here.
49836 2011-05-08  Bruno Haible  <bruno@clisp.org>
49838         getdtablesize: Move AC_LIBOBJ invocations to module description.
49839         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
49840         invocation from here...
49841         * modules/getdtablesize (configure.ac): ... to here.
49843 2011-05-08  Bruno Haible  <bruno@clisp.org>
49845         getdomainname: Move AC_LIBOBJ invocations to module description.
49846         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
49847         gl_PREREQ_GETDOMAINNAME invocations from here...
49848         * modules/getdomainname (configure.ac): ... to here.
49850 2011-05-08  Bruno Haible  <bruno@clisp.org>
49852         getline: Move AC_LIBOBJ invocations to module description.
49853         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
49854         invocations from here...
49855         * modules/getline (configure.ac): ... to here.
49857 2011-05-08  Bruno Haible  <bruno@clisp.org>
49859         getline: Simplify.
49860         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
49861         It's already handled through the module dependency.
49863 2011-05-08  Bruno Haible  <bruno@clisp.org>
49865         getdelim: Move AC_LIBOBJ invocations to module description.
49866         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
49867         and gl_PREREQ_GETDELIM invocations from here...
49868         * modules/getdelim (configure.ac): ... to here.
49869         (Depends-on): Fix condition.
49871 2011-05-08  Bruno Haible  <bruno@clisp.org>
49873         getcwd: Move AC_LIBOBJ invocations to module description.
49874         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
49875         invocations from here...
49876         * modules/getcwd (configure.ac): ... to here.
49878 2011-05-08  Bruno Haible  <bruno@clisp.org>
49880         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
49881         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
49882         here...
49883         * modules/getcwd-lgpl (configure.ac): ... to here.
49885 2011-05-07  Bruno Haible  <bruno@clisp.org>
49887         crypto/gc: Move AC_LIBOBJ invocations to module description.
49888         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
49889         * modules/crypto/gc (configure.ac): ... to here.
49891 2011-05-07  Bruno Haible  <bruno@clisp.org>
49893         fwriting: Move AC_LIBOBJ invocations to module description.
49894         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
49895         here...
49896         * modules/fwriting (configure.ac): ... to here.
49898 2011-05-07  Bruno Haible  <bruno@clisp.org>
49900         fwritable: Move AC_LIBOBJ invocations to module description.
49901         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
49902         here...
49903         * modules/fwritable (configure.ac): ... to here.
49905 2011-05-07  Bruno Haible  <bruno@clisp.org>
49907         futimens: Move AC_LIBOBJ invocations to module description.
49908         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
49909         here...
49910         * modules/futimens (configure.ac): ... to here.
49912 2011-05-07  Bruno Haible  <bruno@clisp.org>
49914         ftruncate: Move AC_LIBOBJ invocations to module description.
49915         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
49916         gl_PREREQ_FTRUNCATE invocations from here...
49917         * modules/ftruncate (configure.ac): ... to here.
49919 2011-05-07  Bruno Haible  <bruno@clisp.org>
49921         fsync: Move AC_LIBOBJ invocations to module description.
49922         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
49923         invocations from here...
49924         * modules/fsync (configure.ac): ... to here.
49926 2011-05-07  Bruno Haible  <bruno@clisp.org>
49928         fsusage: Move AC_LIBOBJ invocations to module description.
49929         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
49930         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
49931         * modules/fsusage (configure.ac): ... to here.
49933 2011-05-07  Bruno Haible  <bruno@clisp.org>
49935         freopen: Move AC_LIBOBJ invocations to module description.
49936         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
49937         invocations from here...
49938         * modules/freopen (configure.ac): ... to here.
49940 2011-05-07  Bruno Haible  <bruno@clisp.org>
49942         free: Move AC_LIBOBJ invocations to module description.
49943         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
49944         invocations from here...
49945         * modules/free (configure.ac): ... to here.
49947 2011-05-07  Bruno Haible  <bruno@clisp.org>
49949         freadable: Move AC_LIBOBJ invocations to module description.
49950         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
49951         here...
49952         * modules/freadable (configure.ac): ... to here.
49954 2011-05-07  Bruno Haible  <bruno@clisp.org>
49956         fpurge: Move AC_LIBOBJ invocations to module description.
49957         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
49958         invocations from here...
49959         * modules/fpurge (configure.ac): ... to here.
49961 2011-05-07  Bruno Haible  <bruno@clisp.org>
49963         fpending: Move AC_LIBOBJ invocations to module description.
49964         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
49965         gl_FUNC_FPENDING.
49966         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
49967         invocations from here...
49968         * modules/fpending (configure.ac): ... to here.
49970 2011-05-07  Bruno Haible  <bruno@clisp.org>
49972         fopen: Move AC_LIBOBJ invocations to module description.
49973         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
49974         invocations from here...
49975         * modules/fopen (configure.ac): ... to here.
49977 2011-05-07  Bruno Haible  <bruno@clisp.org>
49979         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
49980         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
49981         gl_FUNC_FNMATCH_POSIX.
49982         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
49983         invocations from here...
49984         * modules/fnmatch (configure.ac): ... to here.
49985         * modules/fnmatch-gnu (configure.ac): ... and here.
49987 2011-05-07  Bruno Haible  <bruno@clisp.org>
49989         flock: Move AC_LIBOBJ invocations to module description.
49990         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
49991         invocations from here...
49992         * modules/flock (configure.ac): ... to here.
49994 2011-05-07  Bruno Haible  <bruno@clisp.org>
49996         fileblocks: Move AC_LIBOBJ invocations to module description.
49997         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
49998         gl_PREREQ_FILEBLOCKS invocations from here...
49999         * modules/fileblocks (configure.ac): ... to here.
50001 2011-05-06  Bruno Haible  <bruno@clisp.org>
50003         fflush: Move AC_LIBOBJ invocations to module description.
50004         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
50005         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
50006         invocations from here...
50007         * modules/fflush (configure.ac): ... to here.
50009 2011-05-06  Bruno Haible  <bruno@clisp.org>
50011         fdopendir: Move AC_LIBOBJ invocations to module description.
50012         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
50013         here...
50014         * modules/fdopendir (configure.ac): ... to here.
50015         (Depends-on): Improve conditions.
50017 2011-05-06  Bruno Haible  <bruno@clisp.org>
50019         _Exit: Move AC_LIBOBJ invocations to module description.
50020         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
50021         invocations from here...
50022         * modules/_Exit (configure.ac): ... to here.
50024 2011-05-21  Bruno Haible  <bruno@clisp.org>
50026         euidaccess: Respect rules for use of AC_LIBOBJ.
50027         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
50028         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
50029         from here...
50030         * modules/euidaccess (configure.ac): ... to here.
50032 2011-05-06  Bruno Haible  <bruno@clisp.org>
50034         error: Move AC_LIBOBJ invocations to module description.
50035         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
50036         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
50037         invocations from here...
50038         * modules/error (configure.ac): ... to here.
50040 2011-05-06  Bruno Haible  <bruno@clisp.org>
50042         duplocale: Move AC_LIBOBJ invocations to module description.
50043         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
50044         gl_PREREQ_DUPLOCALE invocations from here...
50045         * modules/duplocale (configure.ac): ... to here.
50047 2011-05-05  Bruno Haible  <bruno@clisp.org>
50049         dirfd: Move AC_LIBOBJ invocations to module description.
50050         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
50051         gl_FUNC_DIRFD.
50052         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
50053         here...
50054         * modules/dirfd (configure.ac): ... to here.
50055         (Depends-on): Fix condition.
50057 2011-05-05  Bruno Haible  <bruno@clisp.org>
50059         chown: Respect rules for use of AC_LIBOBJ.
50060         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
50061         * modules/chown (configure.ac): ... to here.
50063 2011-05-05  Bruno Haible  <bruno@clisp.org>
50065         chdir-long: Move AC_LIBOBJ invocations to module description.
50066         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
50067         gl_PREREQ_CHDIR_LONG invocations from here...
50068         * modules/chdir-long (configure.ac): ... to here.
50070 2011-05-05  Bruno Haible  <bruno@clisp.org>
50072         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
50073         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
50074         from here...
50075         * modules/canonicalize-lgpl (configure.ac): ... to here.
50077 2011-05-05  Bruno Haible  <bruno@clisp.org>
50079         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
50080         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
50081         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
50082         REPLACE_CALLOC.
50083         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
50084         * modules/calloc-gnu (configure.ac): Likewise.
50086 2011-05-05  Bruno Haible  <bruno@clisp.org>
50088         btowc: Move AC_LIBOBJ invocations to module description.
50089         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
50090         invocations from here...
50091         * modules/btowc (configure.ac): ... to here.
50093 2011-05-21  Bruno Haible  <bruno@clisp.org>
50095         atexit: Move AC_LIBOBJ invocations to module description.
50096         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
50097         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
50098         here...
50099         * modules/atexit (configure.ac): ... to here.
50101 2011-05-05  Bruno Haible  <bruno@clisp.org>
50103         atoll: Move AC_LIBOBJ invocations to module description.
50104         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
50105         invocations from here...
50106         * modules/atoll (configure.ac): ... to here.
50108 2011-05-05  Bruno Haible  <bruno@clisp.org>
50110         argz: Move AC_LIBOBJ invocations to module description.
50111         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
50112         * modules/argz (configure.ac): ... to here.
50114 2011-05-05  Bruno Haible  <bruno@clisp.org>
50116         alphasort: Move AC_LIBOBJ invocations to module description.
50117         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
50118         gl_PREREQ_ALPHASORT invocations from here...
50119         * modules/alphasort (configure.ac): ... to here.
50121 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50123         verify: new macro verify_expr; verify_true deprecated
50124         * NEWS: Mention this.
50125         * doc/verify.texi (Compile-time Assertions): Document this.
50126         * lib/verify.h (verify_true): Deprecate.
50127         (verify_expr): New macro.
50128         * tests/test-verify.c (function): Test verify_expr.
50130 2011-06-14  Jim Meyering  <meyering@redhat.com>
50132         init.sh: give more portable redirection-related advice in a comment
50133         * tests/init.sh (stderr_fileno_): Update the advice in comments.
50134         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
50135         for lots of discussion.  Stefano Lattarini suggested the solution
50136         of putting "9>&2" after the command.  Reported by Bruno Haible.
50138 2011-06-13  Bruno Haible  <bruno@clisp.org>
50140         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
50141         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
50142         'none'.
50144 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
50146         ftoastr: use strtof only if HAVE_STRTOF
50147         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
50148         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
50149         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
50150         * modules/ftoastr (configure.ac): Check for strtof.
50152 2011-06-13  Bruno Haible  <bruno@clisp.org>
50154         gnulib-tool: Addendum to 2011-06-08 commit.
50155         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
50156         and --witness-c-macro have been given, augment AM_CPPFLAGS.
50158 2011-06-13  Bruno Haible  <bruno@clisp.org>
50160         fseeko: Provide a non-inline replacement of fseek().
50161         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
50162         * modules/fseeko (Depends-on): Add fseek.
50163         * modules/fseek (License): Change to LGPLv2+.
50165 2011-06-13  Bruno Haible  <bruno@clisp.org>
50167         ftello: Provide a non-inline replacement of ftell().
50168         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
50169         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
50170         not have ftello() (such as on mingw).
50171         * modules/ftello (Depends-on): Add ftell.
50172         * modules/ftell (License): Change to LGPLv2+.
50174 2011-05-07  Bruno Haible  <bruno@clisp.org>
50176         ftell: Move AC_LIBOBJ invocations to module description.
50177         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
50178         * modules/ftell (configure.ac): ... to here.
50180 2011-05-07  Bruno Haible  <bruno@clisp.org>
50182         ftello: Respect rules for use of AC_LIBOBJ.
50183         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
50184         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
50185         here...
50186         * modules/ftello (configure.ac): ... to here.
50188 2011-05-07  Bruno Haible  <bruno@clisp.org>
50190         fseeko: Simplify.
50191         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
50192         (gl_FUNC_FSEEKO): Inline it here.
50194 2011-05-07  Bruno Haible  <bruno@clisp.org>
50196         fseek: Move AC_LIBOBJ invocations to module description.
50197         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
50198         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
50199         * modules/fseek (configure.ac): ... to here.
50201 2011-05-07  Bruno Haible  <bruno@clisp.org>
50203         fseek: Respect rules for use of AC_LIBOBJ.
50204         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
50205         here...
50206         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
50208 2011-05-07  Bruno Haible  <bruno@clisp.org>
50210         fseeko: Respect rules for use of AC_LIBOBJ.
50211         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
50212         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
50213         here...
50214         * modules/fseeko (configure.ac): ... to here.
50216 2011-06-13  Bruno Haible  <bruno@clisp.org>
50218         gnulib-tool: Allow comments in the 'Depends-on' section.
50219         * doc/gnulib.texi (Module description): Mention comment syntax in the
50220         Depends-on section.
50221         * gnulib-tool (func_get_dependencies): Filter out comment lines.
50223 2011-06-13  Bruno Haible  <bruno@clisp.org>
50225         file-set.h: guard __attibute__ use, now that it's not always defined
50226         * lib/file-set.h (record_file): Use __attribute__ only with compiler
50227         versions that support it.  This fixes a coreutils build failure with
50228         the vendor cc on HP-UX 11.31.
50230 2011-06-12  Bruno Haible  <bruno@clisp.org>
50232         acl: Add support for HP-UX >= 11.11 JFS ACLs.
50233         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
50234         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
50235         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
50236         (acl, aclsort): New declarations.
50237         (aclv_nontrivial): New declaration.
50238         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
50239         (file_has_acl): Read also the second kind of HP-UX ACLs.
50240         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
50241         kind of HP-UX ACLs if the first kind fails.
50242         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
50243         second kind of HP-UX ACLs.
50244         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
50245         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
50246         agree.
50247         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
50248         hpuxjfs.
50249         Handle hpuxjfs.
50250         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
50251         hpuxjfs.
50252         Handle hpuxjfs.
50253         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
50254         (func_test_same_acls): Use both lsacl and getacl.
50255         Handle hpuxjfs.
50256         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
50257         (func_test_same_acls): Use both lsacl and getacl.
50258         Handle hpuxjfs.
50260 2011-06-12  Bruno Haible  <bruno@clisp.org>
50262         acl: Complete the 2010-08-10 fix.
50263         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
50264         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
50265         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
50266         explicitly.
50267         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
50268         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
50270 2011-06-12  Bruno Haible  <bruno@clisp.org>
50272         spawn-pipe tests: Comments.
50273         * tests/test-spawn-pipe-child.c (main): Update comment.
50274         Reported by James Youngman <jay@gnu.org>.
50276 2011-06-11  James Youngman  <jay@gnu.org>
50278         New module 'stat-size'.
50279         * modules/stat-size: New module.  Provides macros for accessing
50280         file size information in instances of struct stat.  Depends on the
50281         fileblocks module because it calls st_blocks.
50282         * lib/stat-size.h: New file, adapted from coreutils' system.h.
50283         * doc/gnulib.texi: Include stat-size.texi.
50284         * doc/stat-size.texi: Documentation for this module.
50285         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
50286         * m4/fileblocks.m4: Mention that stat-size depends on the call to
50287         AC_STRUCT_ST_BLOCKS.
50289 2011-06-09  Bruno Haible  <bruno@clisp.org>
50291         thread: Support pthreads-win32.
50292         * lib/glthread/thread.h (gl_thread_self): Define differently on
50293         pthreads-win32.
50294         (gl_null_thread): New declaration.
50295         (gl_thread_self_pointer): New macro.
50296         * lib/glthread/thread.c (gl_null_thread): New constant.
50297         * tests/test-lock.c: Use gl_thread_self_pointer instead of
50298         gl_thread_self.
50299         * tests/test-tls.c: Likewise.
50300         Suggested by Paul Eggert. Reported by Eric Blake.
50302 2011-06-09  Bruno Haible  <bruno@clisp.org>
50304         thread: Fix confusion between NULL and 0.
50305         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
50306         Reported by Paul Eggert.
50308 2011-06-09  Bruno Haible  <bruno@clisp.org>
50310         spawn-pipe tests: Avoid test failure on HP-UX 11.
50311         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
50312         is closed.
50314 2011-06-09  Bruno Haible  <bruno@clisp.org>
50316         acl tests: Fix compilation error on HP-UX 11.
50317         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
50319 2011-06-09  Bruno Haible  <bruno@clisp.org>
50321         rmdir: Avoid test failure on HP-UX 10.20.
50322         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
50323         EEXIST.
50325 2011-06-08  Eric Blake  <eblake@redhat.com>
50327         perror: fix test on mingw
50328         * modules/perror-tests (Depends-on): Add dup2.
50330         strerror_r-posix: fix on MacOS
50331         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
50332         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
50333         logic bug.
50334         * lib/strerror_r.c (strerror_r): Fix the bug.
50335         * lib/strerror.c (strerror): Likewise.
50336         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
50337         problem.
50338         * doc/posix-functions/strerror.texi (strerror): Likewise.
50339         * doc/posix-functions/perror.texi (perror): Likewise.
50340         * tests/test-strerror.c (main): Enhance test.
50341         * tests/test-strerror_r.c (main): Likewise.
50343 2011-06-08  Bruno Haible  <bruno@clisp.org>
50345         gnulib-tool: Better isolation between different gnulib-tool invocations.
50346         * gnulib-tool: New option --witness-c-macro.
50347         (witness_c_macro): New variable.
50348         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
50349         AM_CPPFLAGS define it as a C macro.
50350         (func_emit_tests_Makefile_am): Likewise.
50351         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
50352         read it from there.
50353         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
50354         m4_define, not AC_DEFUN.
50355         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
50356         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
50357         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
50358         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
50359         s|...|...|, to substitute the values of the GNULIB_* module indicator
50360         variables.
50361         * modules/dirent (Makefile.am): Likewise.
50362         * modules/fcntl-h (Makefile.am): Likewise.
50363         * modules/iconv-h (Makefile.am): Likewise.
50364         * modules/langinfo (Makefile.am): Likewise.
50365         * modules/locale (Makefile.am): Likewise.
50366         * modules/math (Makefile.am): Likewise.
50367         * modules/netdb (Makefile.am): Likewise.
50368         * modules/poll-h (Makefile.am): Likewise.
50369         * modules/pty (Makefile.am): Likewise.
50370         * modules/search (Makefile.am): Likewise.
50371         * modules/signal (Makefile.am): Likewise.
50372         * modules/spawn (Makefile.am): Likewise.
50373         * modules/stdio (Makefile.am): Likewise.
50374         * modules/stdlib (Makefile.am): Likewise.
50375         * modules/string (Makefile.am): Likewise.
50376         * modules/sys_ioctl (Makefile.am): Likewise.
50377         * modules/sys_select (Makefile.am): Likewise.
50378         * modules/sys_socket (Makefile.am): Likewise.
50379         * modules/sys_stat (Makefile.am): Likewise.
50380         * modules/sys_times (Makefile.am): Likewise.
50381         * modules/sys_utsname (Makefile.am): Likewise.
50382         * modules/sys_wait (Makefile.am): Likewise.
50383         * modules/termios (Makefile.am): Likewise.
50384         * modules/time (Makefile.am): Likewise.
50385         * modules/unistd (Makefile.am): Likewise.
50386         * modules/wchar (Makefile.am): Likewise.
50388 2011-06-08  Eric Blake  <eblake@redhat.com>
50390         strerror: simplify replacement
50391         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
50392         * modules/strerror (configure.ac): No prereqs needed here...
50393         * modules/strerror-override (configure.ac): ...but this needs it.
50394         (Files): Add file for needed prereq macro.
50396 2011-06-08  Bruno Haible  <bruno@clisp.org>
50398         strerror_r-posix: Tweaks.
50399         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
50400         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
50401         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
50402         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
50403         (gl_FUNC_STRERROR_R): ... to here.
50404         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
50406 2011-06-07  Eric Blake  <eblake@redhat.com>
50408         perror: document fixed bugs
50409         * doc/posix-functions/perror.texi (perror): Document recent
50410         patches.
50412 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
50414         stat-time: get_stat_birthtime failure is better-defined
50415         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
50416         return a timestamp whose tv_sec and tv_nsec values are both -1.
50417         Previously, the spec said only that the tv_nsec value was negative.
50418         This upward-compatible change simplifies GNU tar a bit.
50420 2011-06-07  Eric Blake  <eblake@redhat.com>
50422         strerror_r-posix: work around cygwin 1.7.9
50423         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
50424         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
50425         bug without replacing strerror_r.
50426         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
50427         strerror_r is buggy, but without requiring strerror_r compilation.
50428         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
50430         test-perror: relax test to ignore cygwin bug
50431         * tests/test-perror2.c (main): Relax test on requiring detection
50432         of stream errors, and use unbuffered stream.
50433         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
50434         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
50435         * doc/posix-functions/fputc.texi (fputc): Likewise.
50436         * doc/posix-functions/fputs.texi (fputs): Likewise.
50437         * doc/posix-functions/fputws.texi (fputws): Likewise.
50438         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
50439         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
50440         * doc/posix-functions/getopt.texi (getopt): Likewise.
50441         * doc/posix-functions/perror.texi (perror): Likewise.
50442         * doc/posix-functions/printf.texi (printf): Likewise.
50443         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
50444         * doc/posix-functions/psignal.texi (psignal): Likewise.
50445         * doc/posix-functions/putc.texi (putc): Likewise.
50446         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
50447         Likewise.
50448         * doc/posix-functions/putchar.texi (putchar): Likewise.
50449         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
50450         Likewise.
50451         * doc/posix-functions/puts.texi (puts): Likewise.
50452         * doc/posix-functions/putwc.texi (putwc): Likewise.
50453         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50454         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50455         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50456         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
50457         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50458         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50459         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
50460         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
50462 2011-05-22  Bruno Haible  <bruno@clisp.org>
50464         strerror: Move AC_LIBOBJ invocations to module description.
50465         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
50466         gl_PREREQ_STRERROR invocations from here...
50467         * modules/strerror (configure.ac): ... to here.
50469 2011-05-21  Bruno Haible  <bruno@clisp.org>
50471         perror: Use common idiom.
50472         * modules/perror (configure.ac): Reorder statements.
50474 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
50476         tests: fix usage message in 'mktempd_'
50477         * tests/init.sh (mktempd_): In the usage message, use literal
50478         'mktempd_', not '$ME' (which is even undefined), as the name of
50479         the subroutine.
50481 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
50483         tests init: new function 'fatal_', for hard errors
50484         Before this patch, the only way offered by tests/init.sh to
50485         properly signal a hard error was the `framework_failure_'
50486         function.  But the error message issued by that function,
50487         as its name would suggest, refers to a set-up failure in the
50488         testsuite, while hard errors can obviously also be due to
50489         other reasons.  The best way to fix this inconsistency is to
50490         introduce a new function with a more general error message.
50491         * tests/init.sh (fatal_): New function.
50493 2011-06-06  Eric Blake  <eblake@redhat.com>
50495         canonicalize-lgpl: use common idiom
50496         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
50497         over newer POSIX -Rf.
50498         Reported by Bruno Haible.
50500         canonicalize-lgpl: work around AIX realpath bug
50501         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
50502         * doc/posix-functions/realpath.texi (realpath): Document it.
50503         Reported by Bruno Haible.
50505         strerror: work around FreeBSD bug
50506         * lib/strerror.c (strerror): Special case 0.
50507         Reported by Bruno Haible.
50509         strerror-override: avoid bloating errno module
50510         * modules/errno (Files, configure.ac): Move replacement strings...
50511         * modules/strerror-override: ...to new module.
50512         * modules/strerror (Depends-on): Add strerror-override.
50513         * modules/strerror_r-posix (Depends-on): Likewise.
50514         * MODULES.html.sh: Document new module.
50515         Reported by Bruno Haible.
50517 2011-06-06  Bruno Haible  <bruno@clisp.org>
50519         spawn-pipe tests: Rename program.
50520         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
50521         * tests/test-spawn-pipe-child.c: Update comment.
50522         * tests/test-spawn-pipe.sh: Update.
50523         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
50525         spawn-pipe tests: Link the child program only against libc.
50526         * tests/test-spawn-pipe-child.c: New file, extracted from
50527         tests/test-spawn-pipe.c.
50528         (main): Expect only one argument.
50529         (is_open): New function, copied from tests/test-pipe.c.
50530         * tests/test-spawn-pipe.c: Don't include <errno.h>.
50531         (child_main): Remove function.
50532         (test_pipe): Pass only one argument to the child program.
50533         (main): Remove child process code. Expect the child program's name as
50534         first argument.
50535         * tests/test-spawn-pipe.sh: Pass the child program's name as first
50536         argument.
50537         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
50538         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
50539         test-spawn-pipe-child against no libraries.
50541 2011-06-06  Bruno Haible  <bruno@clisp.org>
50543         careadlinkat: Avoid mismatch between ssize_t and int.
50544         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
50545         * lib/careadlinkat.c (careadlinkatcwd): Define always.
50547 2011-06-06  Jim Meyering  <meyering@redhat.com>
50549         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
50550         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
50551         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
50553 2011-06-05  Bruno Haible  <bruno@clisp.org>
50555         ansi-c++-opt: Interoperability with libtool.
50556         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
50557         set the variable to "no", not to ":".
50558         * NEWS: Mention the change.
50560 2011-06-05  Bruno Haible  <bruno@clisp.org>
50562         acl: Fix test failure on AIX 7.
50563         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
50564         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
50566 2011-06-05  Bruno Haible  <bruno@clisp.org>
50568         pipe-filter-ii: Fix test failure on AIX and IRIX.
50569         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
50570         with EAGAIN, retry with a smaller buffer size.
50572 2011-06-05  Bruno Haible  <bruno@clisp.org>
50574         localename: Fix link dependencies.
50575         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
50576         * modules/localename-tests (Makefile.am): Link test-localename with
50577         $(LIBTHREAD).
50579 2011-06-05  Bruno Haible  <bruno@clisp.org>
50581         error: Avoid gcc warning.
50582         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
50584 2011-06-05  Bruno Haible  <bruno@clisp.org>
50586         unsetenv: Avoid gcc warning.
50587         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
50589 2011-06-05  Bruno Haible  <bruno@clisp.org>
50591         setenv: Avoid gcc warning.
50592         * lib/setenv.c (setenv): Provide declaration if system lacks it.
50594 2011-06-05  Bruno Haible  <bruno@clisp.org>
50596         sys_select: Ensure memset is declared also on AIX 7.
50597         * lib/sys_select.in.h: Include <string.h> also on AIX.
50598         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
50599         self-contained also on AIX 7.1.
50601 2011-06-04  Jim Meyering  <meyering@redhat.com>
50603         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
50604         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
50605         function name, "error".
50606         (_gl_translatable_diag_func_re): New configurable variable.
50608 2011-06-04  Bruno Haible  <bruno@clisp.org>
50610         getopt: Avoid gcc warning.
50611         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
50613 2011-06-04  Bruno Haible  <bruno@clisp.org>
50615         strerror_r: Fix comments.
50616         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
50617         commit.
50619 2011-06-04  Bruno Haible  <bruno@clisp.org>
50621         perror: Fix compilation error.
50622         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
50623         Undefine fprintf, not sprintf.
50624         * modules/perror (Depends-on): Remove intprops, verify.
50626 2011-06-04  Bruno Haible  <bruno@clisp.org>
50628         setlocale: Enable replacement on Cygwin 1.5.
50629         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
50630         Cygwin 1.5.x.
50631         * doc/posix-functions/setlocale.texi: Mention that the problem with the
50632         LC_CTYPE category also exists on Cygwin 1.5.x.
50634 2011-06-04  Bruno Haible  <bruno@clisp.org>
50636         strerror-override: Don't disable symbol renamings.
50637         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
50638         * lib/strerror-override.c: Include config.h.
50639         (strerror_override): Don't undefine.
50641 2011-06-03  Bruno Haible  <bruno@clisp.org>
50643         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
50644         * lib/localename.h: Update copyright header.
50645         * lib/localename.c: Likewise.
50646         * lib/relocatable.h: Likewise.
50647         * lib/relocatable.c: Likewise.
50649 2011-06-02  Bruno Haible  <bruno@clisp.org>
50651         doc: Fix a module name.
50652         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
50654 2011-06-02  Bruno Haible  <bruno@clisp.org>
50656         pipe2: Remove dependency on 'nonblocking' module.
50657         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
50658         O_NONBLOCK is defined by gnulib.
50659         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
50660         is zero.
50661         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
50662         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
50663         defined by gnulib.
50664         (get_nonblocking_flag): New function.
50665         (main): Test O_NONBLOCK flag only if it is nonzero.
50666         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
50668 2011-06-03  Jim Meyering  <meyering@redhat.com>
50670         maint: three new prohibit-header-without-use rules
50671         Prohibit use of cloexec.h, posixver.h, same.h without use.
50672         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
50673         (sc_prohibit_posixver_without_use): Likewise.
50674         (sc_prohibit_same_without_use): Likewise.
50676 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50678         allocator: 'die' routine is now given requested size
50679         * lib/allocator.h (struct allocator.die): New size arg.
50680         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
50681         If the actual problem is an ssize_t limitation, not a size_t or
50682         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
50684 2011-06-01  Eric Blake  <eblake@redhat.com>
50686         strerror: drop strerror_r dependency
50687         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
50688         * lib/strerror-override.c (strerror_override): ...to new file.
50689         * lib/strerror-override.h: Add prototype.
50690         * lib/strerror-impl.h: Delete.
50691         * lib/strerror.c (strerror): New implementation.
50692         * modules/errno (Files): Add new files.
50693         (configure.ac): Compile new file as appropriate.
50694         * modules/strerror (Files): Drop unused file.
50695         (Depends-on): Drop strerror_r-posix.
50696         * MODULES.html.sh: Document strerror_r-posix.
50697         Requested by Sam Steingold.
50699         perror: call strerror_r directly
50700         * modules/perror (Files): Drop strerror-impl.h.
50701         * lib/perror.c (perror): Use our own stack buffer, rather than
50702         calling a wrapper that uses static storage.
50703         * doc/posix-functions/perror.texi (perror): Document a limitation
50704         of our replacement.
50706         strerror_r: fix includes for FreeBSD
50707         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
50708         since we use abort on some platforms.
50709         Reported by Matthias Bolte.
50711 2011-05-31  Bruno Haible  <bruno@clisp.org>
50713         Fix link errors in tests: openat-die uses gettext-h.
50714         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
50715         against $(LIBINTL).
50716         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
50717         against $(LIBINTL).
50718         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
50719         $(LIBINTL).
50720         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
50721         against $(LIBINTL).
50722         * modules/linkat-tests (Makefile.am): Link test-linkat against
50723         $(LIBINTL).
50724         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
50725         $(LIBINTL).
50726         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
50727         against $(LIBINTL).
50728         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
50729         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
50730         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
50731         $(LIBINTL).
50732         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
50733         $(LIBINTL).
50734         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
50735         $(LIBINTL).
50736         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50738 2011-05-31  Bruno Haible  <bruno@clisp.org>
50740         Fix link errors in tests: wait-process uses gettext-h.
50741         * modules/nonblocking-pipe-tests (Makefile.am): Set
50742         test_nonblocking_pipe_main_LDADD.
50743         * modules/nonblocking-socket-tests (Makefile.am): Link
50744         test-nonblocking-socket-main against $(LIBINTL).
50745         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50747 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
50749         assert-h: work around 'verify' incompatibility
50750         * lib/verify.h: Use @...@ directives, not ifdef.
50751         * modules/assert-h (assert.h): Implement the directives.
50752         (assert.h): Substitute the symbol-prefix more consistently.
50754 2011-05-29  Jim Meyering  <meyering@redhat.com>
50756         trim: remove three superfluous assignments
50757         * lib/trim.c (trim2): Remove three superfluous assignments
50758         and correct brace positioning.
50760 2011-05-29  Bruno Haible  <bruno@clisp.org>
50762         wctype-h: Avoid namespace pollution on Solaris 2.6.
50763         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
50764         identifiers.
50765         * doc/posix-headers/wctype.texi: Mention the problem.
50766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50768 2011-05-28  Jim Meyering  <meyering@redhat.com>
50770         parse-datetime.y: accommodate -Wstrict-overflow
50771         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
50772         placate -Wstrict-overflow.
50774         trim: avoid a warning from -O2 -Wstrict-overflow
50775         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
50777 2011-05-29  Bruno Haible  <bruno@clisp.org>
50779         gnulib-tool: Fix bug in yesterday's commit.
50780         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
50781         twice.
50783 2011-05-29  Bruno Haible  <bruno@clisp.org>
50785         Allow multiple gnulib generated include files to be combined.
50786         * gnulib-tool (func_compute_include_guard_prefix): New function.
50787         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
50788         ${gl_include_guard_prefix} references.
50789         (func_import, func_create_testdir): Invoke
50790         func_compute_include_guard_prefix.
50791         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
50792         * lib/ctype.in.h: Likewise.
50793         * lib/dirent.in.h: Likewise.
50794         * lib/errno.in.h: Likewise.
50795         * lib/fcntl.in.h: Likewise.
50796         * lib/float.in.h: Likewise.
50797         * lib/getopt.in.h: Likewise.
50798         * lib/iconv.in.h: Likewise.
50799         * lib/langinfo.in.h: Likewise.
50800         * lib/locale.in.h: Likewise.
50801         * lib/math.in.h: Likewise.
50802         * lib/netdb.in.h: Likewise.
50803         * lib/netinet_in.in.h: Likewise.
50804         * lib/poll.in.h: Likewise.
50805         * lib/pthread.in.h: Likewise.
50806         * lib/pty.in.h: Likewise.
50807         * lib/sched.in.h: Likewise.
50808         * lib/se-selinux.in.h: Likewise.
50809         * lib/search.in.h: Likewise.
50810         * lib/signal.in.h: Likewise.
50811         * lib/spawn.in.h: Likewise.
50812         * lib/stdarg.in.h: Likewise.
50813         * lib/stddef.in.h: Likewise.
50814         * lib/stdint.in.h: Likewise.
50815         * lib/stdio.in.h: Likewise.
50816         * lib/stdlib.in.h: Likewise.
50817         * lib/string.in.h: Likewise.
50818         * lib/strings.in.h: Likewise.
50819         * lib/sys_file.in.h: Likewise.
50820         * lib/sys_ioctl.in.h: Likewise.
50821         * lib/sys_select.in.h: Likewise.
50822         * lib/sys_socket.in.h: Likewise.
50823         * lib/sys_stat.in.h: Likewise.
50824         * lib/sys_time.in.h: Likewise.
50825         * lib/sys_times.in.h: Likewise.
50826         * lib/sys_uio.in.h: Likewise.
50827         * lib/sys_utsname.in.h: Likewise.
50828         * lib/sys_wait.in.h: Likewise.
50829         * lib/sysexits.in.h: Likewise.
50830         * lib/termios.in.h: Likewise.
50831         * lib/time.in.h: Likewise.
50832         * lib/unistd.in.h: Likewise.
50833         * lib/wchar.in.h: Likewise.
50834         * lib/wctype.in.h: Likewise.
50835         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
50836         * modules/ctype (Makefile.am): Likewise.
50837         * modules/dirent (Makefile.am): Likewise.
50838         * modules/errno (Makefile.am): Likewise.
50839         * modules/fcntl-h (Makefile.am): Likewise.
50840         * modules/float (Makefile.am): Likewise.
50841         * modules/getopt-posix (Makefile.am): Likewise.
50842         * modules/iconv-h (Makefile.am): Likewise.
50843         * modules/langinfo (Makefile.am): Likewise.
50844         * modules/locale (Makefile.am): Likewise.
50845         * modules/math (Makefile.am): Likewise.
50846         * modules/netdb (Makefile.am): Likewise.
50847         * modules/netinet_in (Makefile.am): Likewise.
50848         * modules/poll-h (Makefile.am): Likewise.
50849         * modules/pthread (Makefile.am): Likewise.
50850         * modules/pty (Makefile.am): Likewise.
50851         * modules/sched (Makefile.am): Likewise.
50852         * modules/search (Makefile.am): Likewise.
50853         * modules/selinux-h (Makefile.am): Likewise.
50854         * modules/signal (Makefile.am): Likewise.
50855         * modules/spawn (Makefile.am): Likewise.
50856         * modules/stdarg (Makefile.am): Likewise.
50857         * modules/stddef (Makefile.am): Likewise.
50858         * modules/stdint (Makefile.am): Likewise.
50859         * modules/stdio (Makefile.am): Likewise.
50860         * modules/stdlib (Makefile.am): Likewise.
50861         * modules/string (Makefile.am): Likewise.
50862         * modules/strings (Makefile.am): Likewise.
50863         * modules/sys_file (Makefile.am): Likewise.
50864         * modules/sys_ioctl (Makefile.am): Likewise.
50865         * modules/sys_select (Makefile.am): Likewise.
50866         * modules/sys_socket (Makefile.am): Likewise.
50867         * modules/sys_stat (Makefile.am): Likewise.
50868         * modules/sys_time (Makefile.am): Likewise.
50869         * modules/sys_times (Makefile.am): Likewise.
50870         * modules/sys_uio (Makefile.am): Likewise.
50871         * modules/sys_utsname (Makefile.am): Likewise.
50872         * modules/sys_wait (Makefile.am): Likewise.
50873         * modules/sysexits (Makefile.am): Likewise.
50874         * modules/termios (Makefile.am): Likewise.
50875         * modules/time (Makefile.am): Likewise.
50876         * modules/unistd (Makefile.am): Likewise.
50877         * modules/wchar (Makefile.am): Likewise.
50878         * modules/wctype-h (Makefile.am): Likewise.
50879         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
50881 2011-05-29  Bruno Haible  <bruno@clisp.org>
50883         assert-h: Allow multiple gnulib generated replacements to coexist.
50884         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
50886 2011-05-29  Bruno Haible  <bruno@clisp.org>
50888         argp: Allow coexistence with strerror_r-posix module.
50889         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
50890         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
50891         by gnulib's <string.h> replacement), assume it has the POSIX signature,
50892         not the glibc signature.
50894 2011-05-28  Bruno Haible  <bruno@clisp.org>
50896         gnulib-tool: Alternative structure of testdirs, similar to --import.
50897         * gnulib-tool: New option --single-configure.
50898         (func_usage): Document it.
50899         (single_configure): New variable.
50900         (func_modules_transitive_closure_separately,
50901         func_modules_transitive_closure_separately,
50902         func_determine_use_libtests, func_modules_add_dummy_separately,
50903         func_modules_to_filelist_separately): New functions, extracted from
50904         func_import.
50905         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
50906         (func_import): Use the new functions.
50907         (func_create_testdir): Set final_modules. Handle $single_configure =
50908         true case.
50910 2011-05-28  Bruno Haible  <bruno@clisp.org>
50912         getloadavg: Remove an unreliable safety check.
50913         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
50914         getloadavg.c is in place.
50915         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
50916         Reported by Sam Steingold <sds@gnu.org>.
50918 2011-05-28  Bruno Haible  <bruno@clisp.org>
50920         doc: Cleanup yet another file produced by texinfo.tex.
50921         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
50923 2011-05-28  Bruno Haible  <bruno@clisp.org>
50925         Finish the conditional dependencies mechanism.
50926         * gnulib-tool: New option --no-conditional-dependencies.
50927         (func_usage): Document it. Don't mark --conditional-dependencies as
50928         experimental.
50929         (cond_dependencies): The possible values can now be true, false, empty.
50930         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
50931         (func_import): Store setting in gnulib-cache.m4 and read it from there.
50932         * doc/gnulib-tool.texi (Conditional dependencies): New section.
50934 2011-05-28  Bruno Haible  <bruno@clisp.org>
50936         doc: Use a recent texinfo.tex.
50937         * doc/Makefile (tex_opts): New variable.
50938         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
50940 2011-05-28  Jim Meyering  <meyering@redhat.com>
50942         intprops.h: adjust comment to match code change
50943         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
50944         only once, it *may* have side effects.  Also fix an unrelated typo.
50945         (_GL_INT_SIGNED): Likewise.
50947 2011-05-26  Simon Josefsson  <simon@josefsson.org>
50949         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
50951 2011-05-26  Bruno Haible  <bruno@clisp.org>
50953         mbsrchr: Avoid collision with system function on Interix.
50954         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
50955         Reported by Markus Duft <mduft@gentoo.org>.
50957 2011-05-15  James Youngman  <jay@gnu.org>
50959         getopt: for ambiguous options, enumerate the possibilities.
50960         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
50961         the ambiguous options when an ambiguous prefix is given. This was
50962         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
50963         glibc change was
50964         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
50966 2011-05-25  Eric Blake  <eblake@redhat.com>
50968         getcwd: work around mingw bug
50969         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
50970         * doc/posix-functions/getcwd.texi (getcwd): Document it.
50971         Reported by Matthias Bolte.
50973 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
50975         test-intprops: disable -Wtype-limits diagnostics
50976         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
50977         diagnostics.  Otherwise, the integer overflow macros generate many
50978         diagnostics.  Reported by Jim Meyering in
50979         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
50981         intprops: shorten, to pacify gcc -Woverlength-strings
50982         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
50983         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
50984         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
50985         likely to run afoul of C compiler limits for string constant lengths.
50986         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
50988 2011-05-24  Eric Blake  <eblake@redhat.com>
50990         docs: document recently fixed glibc printf bug
50991         * doc/posix-functions/fprintf.texi (fprintf): Document it.
50992         * doc/posix-functions/printf.texi (printf): Likewise.
50993         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50994         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50996         closein-tests: convert to init.sh
50997         * modules/closein-tests (Files): Add init.sh
50998         * tests/test-closein.sh Use it.
51000         yesno-tests: convert to init.sh
51001         * modules/yesno-tests (Files): Add init.sh.
51002         * tests/test-yesno.sh: Use it.
51004         atexit-tests: ensure reliable exit status
51005         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
51006         Reported by Bruno Haible.
51008 2011-05-24  Bruno Haible  <bruno@clisp.org>
51010         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
51011         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
51012         gl_PREREQ_STRERROR_R invocations from here...
51013         * modules/strerror_r-posix (configure.ac): ... to here.
51015 2011-05-24  Eric Blake  <eblake@redhat.com>
51017         strerror_r: fix missing header
51018         * lib/strerror_r.c: Avoid compiler warning about snprintf.
51020         strerror_r: fix AIX test failures
51021         * lib/strerror_r.c (strerror_r): Convert silent truncation to
51022         ERANGE failure.
51024         strerror_r: fix Solaris test failures
51025         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
51026         failures.
51027         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
51029         strerror_r: enforce POSIX recommendations
51030         * lib/strerror_r.c (safe_copy): New helper method.
51031         (strerror_r): Guarantee a non-empty string.
51032         * tests/test-strerror_r.c (main): Enhance tests to incorporate
51033         recent POSIX rulings and to match our strerror guarantees.
51034         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
51036 2011-05-24  Jim Meyering  <meyering@redhat.com>
51038         test-perror2.c: avoid warning about unused variable
51039         * tests/test-perror2.c (main): Remove declaration of unused "fp".
51041 2011-05-24  Eric Blake  <eblake@redhat.com>
51043         perror: avoid spurious test failure on HP-UX
51044         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
51046         tests: fix logic bug in init.sh
51047         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
51048         shell.
51050 2011-05-24  Jim Meyering  <meyering@redhat.com>
51052         utimensat: do not reference an out-of-scope buffer
51053         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
51054         declared in an inner scope, yet "times" would be dereferenced outside
51055         the scope in which "ts" was valid.
51056         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
51057         of ts[2] "out/up", so that the use of aliased "times" (via
51058         "times = ts;") does not end up referencing an out-of-scope "ts"
51060         opendir-safer.c: don't clobber errno; don't close negative FD
51061         * lib/opendir-safer.c (opendir_safer):
51062         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
51063         file descriptor, and more importantly, don't clobber the
51064         offending errno value with EINVAL.  Before, upon failure
51065         of dup_safer, we would pass the negative file descriptor to
51066         fdopendir, which would clobber errno.
51068 2011-05-23  Bruno Haible  <bruno@clisp.org>
51070         idcache: Fix module description.
51071         * modules/idcache (Include): Set to "idcache.h".
51073 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
51075         gnulib-tool: fix portability problem with MacOS sed
51076         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
51077         before the "}".  Problem reported by Leo in
51078         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
51079         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
51080         sed_extract_condition1, sed_extract_condition2.
51082 2011-05-23  Bruno Haible  <bruno@clisp.org>
51084         hash: Simplify autoconf macro.
51085         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
51087 2011-05-23  Bruno Haible  <bruno@clisp.org>
51089         getugroups: Fix module description.
51090         * modules/getugroups (Include): Set to "getugroups.h".
51092 2011-05-23  Bruno Haible  <bruno@clisp.org>
51094         linkat: Simplify autoconf macro.
51095         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
51097 2011-05-23  Bruno Haible  <bruno@clisp.org>
51098             Eric Blake  <eblake@redhat.com>
51100         linkat, renameat: Update dependencies.
51101         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
51102         * modules/linkat (Depends-on): Likewise. Remove also readlink,
51103         symlinkat.
51105 2011-05-23  Jim Meyering  <meyering@redhat.com>
51107         maint.mk: more tight_scope improvements
51108         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
51109         (_gl_TS_headers): Define only in if-0'd block.
51110         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
51111         sometimes we must *not* use it.  Adjust uses accordingly.
51112         (sc_tight_scope): Use much simpler grep-based test to determine
51113         whether we skip this rule.
51115         maint.mk: generalize/improve the tight-scope rule
51116         * top/maint.mk: Emit a warning when the test is skipped.
51117         (_gl_TS_dir): Add $(srcdir)/ prefix.
51118         (_gl_TS_function_match): Simplify, rather than trying
51119         to enumerate common types.  Otherwise, it would fail to match an
51120         "extern unsigned char const *" declaration in idutils.
51121         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
51122         a way to support use of that type of macro.
51123         (_gl_TS_var_match): Simplify regexp.
51124         (_gl_TS_obj_files): New configurable variable.
51125         (_gl_TS_headers): Likewise.
51127 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51129         verify: fix bug when gnulib <assert.h> is also included
51130         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
51131         is defined, not if _GL_STATIC_ASSERT_H is not defined.
51132         Perhaps there's a better way, but this fixes the immediate problem.
51133         Problem reported by Bruno Haible in
51134         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
51136 2011-05-22  Bruno Haible  <bruno@clisp.org>
51138         xgetcwd: Simplify autoconf macro.
51139         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
51141 2011-05-22  Bruno Haible  <bruno@clisp.org>
51143         New module 'mktime-internal'.
51144         * modules/mktime-internal: New file.
51145         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
51146         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
51147         mktime_internal as a C macro if libc has __mktime_internal.
51148         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
51149         conditions.
51150         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
51152 2011-05-22  Bruno Haible  <bruno@clisp.org>
51154         timegm: Correct mktime replacement statements.
51155         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
51156         defining mktime as a C macro. This completes a 2009-07-28 commit.
51158 2011-05-22  Bruno Haible  <bruno@clisp.org>
51160         timegm: Simplify autoconf macro.
51161         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
51163 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
51165         clock-time: change to LGPLv2+.
51166         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
51167         BSD-like but we have no mark for that; this is good enough for now.
51169 2011-05-21  Bruno Haible  <bruno@clisp.org>
51171         strerror_r: Fix comments.
51172         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
51174 2011-05-21  Bruno Haible  <bruno@clisp.org>
51176         relocatable-prog-wrapper: Fix possible link error.
51177         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
51178         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
51179         (gl_FUNC_SETENV): ... to here.
51180         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
51181         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
51183 2011-05-21  Bruno Haible  <bruno@clisp.org>
51185         relocatable-prog-wrapper: Assume strerror() exists.
51186         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
51187         m4/strerror.m4.
51188         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
51189         * lib/relocwrapper.c: Remove mention of strerror module.
51190         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
51191         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
51192         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
51193         C macro.
51195 2011-05-21  Bruno Haible  <bruno@clisp.org>
51197         select: Simplify replacement idiom.
51198         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
51199         Win32 platforms.
51200         * lib/sys_select.in.h (select): Simplify accordingly.
51201         * modules/select (Depends-on): Likewise.
51203 2011-05-21  Bruno Haible  <bruno@clisp.org>
51205         mkdir-p: Simplify autoconf macro.
51206         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
51207         gl_FUNC_LCHOWN.
51209 2011-05-21  Eric Blake  <eblake@redhat.com>
51211         strerror_r: avoid clobbering strerror on cygwin
51212         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
51213         fall back instead to sys_errlist.
51214         * modules/strerror (configure.ac): Add witness.
51215         * tests/test-strerror_r.c (main): Enhance test.
51216         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51217         * tests/test-perror2.c (main): Free memory before exit.
51219 2011-05-21  Bruno Haible  <bruno@clisp.org>
51221         mkdtemp: Use gnulib naming conventions.
51222         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
51223         * modules/mkdtemp (configure.ac): Update.
51225 2011-05-20  Eric Blake  <eblake@redhat.com>
51227         strerror_r: avoid corrupting errno on Solaris
51228         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
51229         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51231         strerror_r: avoid compiler warning
51232         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
51234         strerror_r: simplify AIX code
51235         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
51237         test-perror: avoid spurious failure on FreeBSD
51238         * modules/perror-tests (Depends-on): Add strerror, now that
51239         strerror_r no longer pulls it in.
51241 2011-05-20  Bruno Haible  <bruno@clisp.org>
51243         strerror_r-posix: Remove unused dependencies.
51244         * modules/strerror_r-posix (Depends-on): Remove strerror.
51245         Reported by Eric Blake.
51247 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51249         intprops: remove assumption about A|B representation
51250         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
51251         is a valid integer if both A and B are.  Although this is true for
51252         all known practical hosts, the C standard doesn't guarantee it,
51253         and the code need not assume it.  Also, this change may work around
51254         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
51255         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
51257 2011-05-20  Eric Blake  <eblake@redhat.com>
51259         perror: work around FreeBSD bug
51260         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
51261         is broken.  Move AC_LIBOBJ...
51262         * modules/perror (configure.ac): Here.
51263         * doc/posix-functions/perror.texi (perror): Document this.
51264         * tests/test-perror2.c (main): Enhance test.
51266         test-perror: check for strerror interactions
51267         * tests/macros.h (STREQ): Add macro.
51268         * modules/perror-tests (Files): Add second test.
51269         * tests/test-perror2.c (main): New file.
51270         * doc/posix-functions/perror.texi (perror): Document glibc bug.
51272         test-perror: rewrite to use init script
51273         * modules/perror-tests (Files): Add init.sh.
51274         * tests/test-perror.sh: Use temporary directory.
51276 2011-05-20  Jim Meyering  <meyering@redhat.com>
51278         maint: replace misused "a" with "an"
51279         * doc/intprops.texi: "a integer"
51280         * doc/regex.texi: "a explanation"
51281         * lib/alignof.h: "a object"
51282         * lib/argmatch.h: "a explanation"
51283         * lib/argp-help.c: "a option" and "a OPTION_DOC"
51284         * lib/stdint.in.h: "a integer"
51285         * lib/userspec.c: "a owner"
51286         * doc/gnulib.texi: Fix "a idea", and reword.
51288 2011-05-19  Jim Meyering  <meyering@redhat.com>
51290         maint: correct misuse of "a" and "an"
51291         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
51292         * lib/argp-help.c: "an docum...": s/an/a/
51293         * lib/argp-parse.c: "An vector": s/An/A/
51294         * lib/execute.c: "an native": s/an/a/
51295         * lib/spawn-pipe.c: Likewise.
51296         * lib/gc.h: "an Gc_rc": s/an/a/
51297         * lib/unigbrk.in.h: "an grapheme": s/an/a/
51298         * lib/fts.c: "an stat.st_dev": s/an/a/
51300 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51302         intprops-tests: work around HP-UX 11.23 cc bug with constants
51303         * tests/test-intprops.c (VERIFY): New macro.
51304         (main): Use it, instead of verify, to work around the compiler bug; see
51305         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51307         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
51308         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
51309         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
51310         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
51311         (_GL_REMAINDER_OVERFLOW): Use it.
51313         intprops-tests: revert unsigned part of previous change
51314         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
51315         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
51316         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
51317         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
51319 2011-05-19  Bruno Haible  <bruno@clisp.org>
51321         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
51322         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
51323         strerror_r() returned without filling the buffer.
51324         Reported by Eric Blake.
51326 2011-05-19  Eric Blake  <eblake@redhat.com>
51328         strerror_r: guarantee unchanged errno
51329         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
51330         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
51331         failure.
51332         * tests/test-strerror_r.c (main): Enhance test.
51334 2011-05-19  Bruno Haible  <bruno@clisp.org>
51336         strerror_r: Reorder #if blocks.
51337         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
51338         for consistency with the previous commit.
51340 2011-05-19  Bruno Haible  <bruno@clisp.org>
51342         perror: Avoid clobbering the strerror buffer when possible.
51343         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
51344         * lib/strerror.c: Include it.
51345         * modules/strerror (Files): Add lib/strerror-impl.h.
51346         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
51347         (my_strerror): New function, defined through lib/strerror-impl.h.
51348         (perror): Use it instead of strerror.
51349         * modules/perror (Files): Add lib/strerror-impl.h.
51350         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
51352 2011-05-19  Eric Blake  <eblake@redhat.com>
51354         strerror_r: fix on newer cygwin
51355         * lib/strerror_r.c (strerror_r): Cygwin now has
51356         __xpg_strerror_r, use it.
51358 2011-05-19  Bruno Haible  <bruno@clisp.org>
51360         strerror_r: Avoid clobbering the strerror buffer when possible.
51361         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
51362         (sys_nerr, sys_errlist): New declarations.
51363         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
51364         HP-UX, native Win32, IRIX, and 32-bit Solaris.
51365         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
51367 2011-05-19  Bruno Haible  <bruno@clisp.org>
51369         strerror_r: Fix test failure on mingw.
51370         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
51371         EXTEND_STRERROR_R.
51372         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
51373         macros from errno.in.h instead.
51375 2011-05-19  Eric Blake  <eblake@redhat.com>
51377         strerror: relax test for Solaris
51378         * tests/test-strerror.c (main): Permit Solaris behavior.
51379         * tests/test-strerror_r.c (main): Likewise.
51381         strerror: enforce POSIX ruling on strerror(0)
51382         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
51383         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
51384         * lib/strerror_r.c (rpl_strerror_r): Work around it.
51385         * doc/posix-functions/strerror.texi (strerror): Document it.
51386         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
51387         * tests/test-strerror.c (main): Strengthen test.
51388         * tests/test-strerror_r.c (main): Likewise.
51390 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51392         intprop-tests: port to older and more-pedantic compilers
51393         * modules/intprops-tests (Files): Add tests/macros.h.
51394         * tests/test-intprops.c: Include macros.h.
51395         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
51396         it's no longer documented to expand to an integer constant expression.
51397         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
51398         argument is floating point, as it's no longer documented to expand
51399         to an integer constant expression in that case.
51400         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
51401         compiler bugs reported by Bruno Haible.  See
51402         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51403         (U0, U1): New constants, to work around the same bugs.  Also,
51404         in tests, use e.g., "(unsigned int) 39" rather than "39u".
51406         intprops: work around C compiler bugs
51407         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
51408         bug in Sun C 5.11 2010/08/13 and other compilers; see
51409         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51411         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
51412         * doc/intprops.texi (Integer Type Determination): Fix
51413         documentation for TYPE_IS_INTEGER: it returns an constant
51414         expression, not an integer constant expression.  Fix doc for
51415         TYPE_SIGNED: it returns an integer constant expression only if its
51416         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
51417         hardly worth documented that way....)
51419 2011-05-18  Bruno Haible  <bruno@clisp.org>
51421         strerror_r: Avoid clobbering the strerror buffer when possible.
51422         * lib/strerror_r.c (strerror_r): Merge the three implementations.
51423         Handle gnulib defined errno values here. When strerror() returns NULL
51424         or an empty string, return EINVAL.
51425         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
51426         gnulib defined errno values here.
51427         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
51429 2011-05-18  Eric Blake  <eblake@redhat.com>
51431         fnmatch: avoid compiler warning
51432         * lib/fnmatch_loop.c (FCT): Use correct type.
51433         Reported by Matthias Bolte.
51435 2011-05-13  Jim Meyering  <meyering@redhat.com>
51437         maint.mk: three new prohibit_<HDR>_without_use rules
51438         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
51439         (sc_prohibit_stdio-safer_without_use): Likewise.
51440         (sc_prohibit_xfreopen_without_use): Likewise.
51442 2011-05-17  Jim Meyering  <meyering@redhat.com>
51444         announce-gen: fail if the NEWS delta is empty
51445         If there's nothing noteworthy in NEWS, then either you forgot
51446         or you shouldn't be releasing.
51447         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
51449 2011-05-17  Pádraig Brady  <P@draigBrady.com>
51451         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
51452         reserved symbols starting with double underscore from the check.
51454 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51456         intprops: add doc
51457         * doc/intprops.texi: New file, documenting intprops.
51458         * doc/gnulib.texi (Particular Modules): Include it.
51460         verify: add doc to gnulib manual and fix example
51461         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
51462         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
51463         (Compile-time Assertions): Fix example so it can't overflow.
51465 2011-05-17  Jim Meyering  <meyering@redhat.com>
51467         warnings.m4: don't usurp save_CPPFLAGS variable name
51468         * m4/warnings.m4: Prefix local temporary variable name with gl_.
51470         doc: fix typo
51471         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
51473 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51474             Bruno Haible  <bruno@clisp.org>
51476         doc: Tweak recent change.
51477         * README (Portability guidelines): Tweak new text.
51478         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
51479         Interix 6.1.
51481 2011-05-16  Eric Blake  <eblake@redhat.com>
51483         inttypes: avoid autoconf warning
51484         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
51485         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51487 2011-05-16  Sam Steingold  <sds@gnu.org>
51488         and Eric Blake  <eblake@redhat.com>
51490         vc-list-files: accept multiple directory operands
51491         * build-aux/vc-list-files: Iterate over all remaining operands.
51493 2011-05-16  Bruno Haible  <bruno@clisp.org>
51495         Fix confusion regarding deprecated modules.
51496         * modules/calloc (Status, Notice): Mark module as deprecated, not
51497         obsolete.
51498         * modules/fnmatch-posix (Status, Notice): Likewise.
51499         * modules/getdate (Status, Notice): Likewise.
51500         * modules/getopt (Status, Notice): Likewise.
51501         * modules/malloc (Status, Notice): Likewise.
51502         * modules/pipe (Status, Notice): Likewise.
51503         * modules/realloc (Status, Notice): Likewise.
51504         * modules/rename-dest-slash (Status, Notice): Likewise.
51505         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
51506         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
51507         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
51508         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
51509         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
51511 2011-05-16  Bruno Haible  <bruno@clisp.org>
51513         doc: List the target platforms.
51514         * doc/gnulib-intro.texi (Target Platforms): New section.
51515         * doc/gnulib.texi (Introduction): Update menu.
51516         * README (Portability guidelines): Refer to the new section. Update
51517         statement about oldest supported environment. Remove rationale why
51518         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
51519         unportable C89 function.
51520         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
51521         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
51523 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51525         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
51527 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51529         intprops-tests: new module
51530         * modules/intprops-tests, tests/test-intprops.c: New files.
51532         intprops: add safe, portable integer overflow checking
51533         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
51534         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
51535         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
51536         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
51537         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
51538         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
51539         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
51540         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
51541         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
51542         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
51543         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
51545 2011-05-12  James Youngman  <jay@gnu.org>
51547         Add a test for glibc's Bugzilla bug #12378.
51548         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
51549         doesn't allow the literal matching of a lone "[" (which is
51550         required by POSIX).
51551         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
51553 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
51555         Sync glibc change fixing Bugzilla bug #12378.
51556         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
51557         beginning and fall back to matching as normal character if the
51558         string ends before the matching ']' is found.  This is what POSIX
51559         requires.
51561 2011-05-13  Eric Blake  <eblake@redhat.com>
51563         getcwd-lgpl: relax test for FreeBSD
51564         * doc/posix-functions/getcwd.texi (getcwd): Document portability
51565         issue.
51566         * tests/test-getcwd-lgpl.c (main): Relax test.
51567         Reported by Matthias Bolte.
51569 2011-05-11  Eric Blake  <eblake@redhat.com>
51571         test-fflush: silence compiler warning
51572         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
51574 2011-05-11  Bruno Haible  <bruno@clisp.org>
51576         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
51577         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
51578         * modules/canonicalize (Depends-on): Add 'nocrash'.
51579         * modules/canonicalize-lgpl (Depends-on): Likewise.
51580         * doc/posix-functions/realpath.texi: Update platforms list.
51581         Reported by Ryan Schmidt <ryandesign@macports.org>.
51583 2011-05-11  Bruno Haible  <bruno@clisp.org>
51585         group-member: Declare function in <unistd.h>.
51586         * lib/unistd.in.h (group_member): New declaration.
51587         * lib/group-member.h: Remove file.
51588         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
51589         * tests/test-unistd-c++.cc: Check signature of group_member.
51590         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
51591         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
51592         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
51593         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
51594         HAVE_GROUP_MEMBER.
51595         * modules/group-member (Files): Remove lib/group-member.h.
51596         (Depends-on): Add unistd. Specify conditions.
51597         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51598         (Include): Change to <unistd.h>.
51599         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
51600         HAVE_GROUP_MEMBER.
51601         * NEWS: Mention the change.
51602         * lib/euidaccess.c: Don't include group-member.h.
51604 2011-05-11  Bruno Haible  <bruno@clisp.org>
51606         group-member: Document module.
51607         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
51608         module.
51610 2011-05-11  Bruno Haible  <bruno@clisp.org>
51612         fclose: Fix mistake earlier today.
51613         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
51615 2011-05-11  Eric Blake  <eblake@redhat.com>
51617         fclose: preserve fflush errors
51618         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
51619         Reported by Jim Meyering.
51621         bootstrap: support a prereq of 'rpcgen -' on RHEL5
51622         * build-aux/bootstrap (check_versions): When no specific version
51623         is required, merely check that the app produces an exit status
51624         that indicates its existence.
51626         maint.mk: drop redundant check
51627         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
51628         the same but better.
51630 2011-05-11  Bruno Haible  <bruno@clisp.org>
51632         fclose: Fix possible link error.
51633         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
51634         unregister_shadow_fd. Improve comments.
51635         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
51636         Eric Blake.
51638 2011-05-11  Jim Meyering  <meyering@redhat.com>
51640         maint.mk: improve "can not" detection and generalize rule name
51641         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
51642         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
51643         Use the same technique as in sc_prohibit_doubled_word, so that
51644         we recognize "can not" also when the words are separated by a newline.
51645         Suggested by Eric Blake.
51646         (perl_filename_lineno_text_): Define.  Factored out of...
51647         (prohibit_doubled_word_): ...here.  Use the new definition.
51648         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
51649         (prohibit_undesirable_word_seq_RE_): New overridable variable.
51650         (ignore_undesirable_word_sequence_RE_): New overridable variable.
51652 2011-05-10  Eric Blake  <eblake@redhat.com>
51654         fclose: avoid double close race when possible
51655         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
51656         all but WINDOWS_SOCKETS.
51658 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
51660         openat: correct new comment
51661         * lib/openat-proc.c (openat_proc_name): Correct the comment.
51663 2011-05-10  Jim Meyering  <meyering@redhat.com>
51665         openat: add comments
51666         * lib/openat-proc.c (openat_proc_name): Add comments,
51667         mostly from Eric Blake.
51669 2011-05-09  Eric Blake  <eblake@redhat.com>
51671         openat: reduce syscalls in first probe of /proc
51672         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
51673         be a directory.  Simplify the probe for .. bugs.
51674         * modules/openat (Depends-on): Drop same-inode.
51675         Reported by Bastien ROUCARIES.
51677 2011-05-09  Jim Meyering  <meyering@redhat.com>
51679         maint.mk: change semantics/name of tight_scope variables
51680         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
51681         Rename variables to align with semantics that make them more useful.
51683         maint.mk: tweak new rule's name not to impinge
51684         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
51685         (sc_tight_scope): Use new rule name rather than $@-0.
51687         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
51688         * top/maint.mk (sc_tight_scope): New rule.
51689         (sc_tight_scope-0): New rule, ifdef'd out.
51690         (_gl_TS_dir): Default.
51691         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
51692         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
51694 2011-05-09  Simon Josefsson  <simon@josefsson.org>
51696         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
51697         Haible <bruno@clisp.org>.
51699 2011-05-08  Bruno Haible  <bruno@clisp.org>
51701         Comments.
51702         * m4/isnanf.m4: Add comment.
51703         * m4/isnanl.m4: Likewise.
51705 2011-05-08  Bruno Haible  <bruno@clisp.org>
51707         glob: Remove obsolete macro.
51708         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
51710 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
51712         intprops: Sun C 5.11 supports __typeof__
51713         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
51714         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
51715         which is new.
51716         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
51718         intprops: switch to usual gnulib indenting and naming
51719         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
51720         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
51722         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
51724 2011-05-08  Jim Meyering  <meyering@redhat.com>
51726         maint.mk: suppress "Entering/Leaving directory" diag in announcement
51727         * top/maint.mk (release-prep): Use make's --no-print-directory
51728         option when generating the announcement.  This eliminates the
51729         pesky "make[2]: Entering/Leaving directory" diagnostics in the
51730         generated announcement template.
51732 2011-05-08  Bruno Haible  <bruno@clisp.org>
51734         tzset: Fix gettimeofday wrapper on Solaris 2.6.
51735         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
51736         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
51738 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
51740         ignore-value, verify: Omit include files from lib_SOURCES.
51741         * modules/ignore-value, modules/verify (Makefile.am):
51742         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
51743         that leads Automake to duplicate use of am__objects_... variables
51744         in Makefile.in.  See
51745         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
51747 2011-05-07  Bruno Haible  <bruno@clisp.org>
51749         fclose: Simplify autoconf macro.
51750         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
51751         defined.
51753 2011-05-07  Bruno Haible  <bruno@clisp.org>
51755         canonicalize-lgpl: Fix autoconf macro ordering bug.
51756         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
51757         gl_STDLIB_H_DEFAULTS.
51759 2011-05-06  Eric Blake  <eblake@redhat.com>
51761         maintainer-makefile: make sc_po_check easier to tune
51762         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
51763         to probe for strings, such as an alternate location for gnulib.
51765         fclose: guarantee behavior on seekable stdin
51766         * modules/fclose (Depends-on): Add fflush.
51767         * doc/posix-functions/fclose.texi (fclose): Document this.
51768         * tests/test-fclose.c (main): Make test for this unconditional.
51770 2011-05-06  Bruno Haible  <bruno@clisp.org>
51772         fflush, fpurge: Relicense under LGPLv2+.
51773         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
51774         * modules/fpurge (License): Likewise.
51775         With permission from Eric Blake and Jim Meyering.
51776         Suggested by Eric Blake.
51778 2011-05-06  Karl Berry  <karl@gnu.org>
51780         * MODULES.html.sh (func_all_modules): remove exit.
51782 2011-05-06  Jim Meyering  <meyering@redhat.com>
51784         maint.mk: use info-gnu@ as the default only for a stable release
51785         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
51786         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
51787         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
51788         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
51790 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51792         assert-h: new module, which supports C1X-style static_assert
51793         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
51794         * lib/verify.h: Revamp so that this can be copied into assert.h,
51795         while retaining the ability to use it standalone as before.
51796         Rename private identifiers so as not to encroach on the
51797         standard C namespace, since this is now used by assert.h.
51798         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
51799         the old verify_true.
51800         (_GL_VERIFY_TRUE): New macro, with much of the contents of
51801         the old verify_true.  Use _GL_VERIFY_TYPE.
51802         (_GL_VERIFY): New macro, with much of the contents of the old verify.
51803         (static_assert): New macro, if _GL_STATIC_ASSERT_H
51804         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
51805         defined when this file is copied into the replacement assert.h.
51806         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
51807         and _Static_assert is not built in.
51808         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
51809         defined, and use the new macros mentioned above.
51810         * doc/posix-headers/assert.texi: Document this.
51812 2011-05-05  Bruno Haible  <bruno@clisp.org>
51814         fclose, fflush: Respect rules for use of AC_LIBOBJ.
51815         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
51816         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
51817         gl_REPLACE_FCLOSE here.
51818         * modules/fflush (Depends-on): Remove fclose.
51819         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
51820         combination with module 'fclose'.
51822 2011-05-05  Bruno Haible  <bruno@clisp.org>
51824         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
51825         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
51826         gl_FUNC_FFLUSH.
51827         (gl_FUNC_FFLUSH): Use it.
51828         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
51829         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
51830         gl_REPLACE_FSEEKO here.
51832 2011-05-05  Bruno Haible  <bruno@clisp.org>
51834         tzset: Relicense under LGPL.
51835         * modules/tzset (License): Change to LGPL.
51836         No agreement needed; it's a no-op.
51838         strtoimax, strtoumax: Relicense under LGPL.
51839         * modules/strtoimax (License): Change to LGPL.
51840         * modules/strtoumax (License): Likewise.
51841         With permission from Jim Meyering, Paul Eggert:
51842         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
51843         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
51845         getgroups: Relicense under LGPL.
51846         * modules/getgroups (License): Change to LGPL.
51847         With permission from Jim Meyering, Paul Eggert, Eric Blake:
51848         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
51849         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
51850         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51852         nanosleep: Relicense under LGPL.
51853         * modules/nanosleep (License): Change to LGPL.
51854         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
51855         Haible:
51856         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
51857         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
51858         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51859         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
51861         futimens: Relicense under LGPL.
51862         * modules/futimens (License): Change to LGPL.
51863         With permission from Eric Blake:
51864         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51866         fflush: Relicense under LGPL.
51867         * modules/fflush (License): Change to LGPL.
51868         With permission from Eric Blake, Bruno Haible, Jim Meyering:
51869         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51870         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
51871         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
51873         tmpfile: Relicense under LGPL.
51874         * modules/tmpfile (License): Change to LGPL.
51875         With permission from Ben Pfaff:
51876         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
51878         isfinite: Relicense under LGPL.
51879         * modules/isfinite (License): Change to LGPL.
51880         With permission from Ben Pfaff, Bruno Haible:
51881         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
51882         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
51884         acosl..tanl: Relicense under LGPL.
51885         * modules/acosl (License): Change to LGPL.
51886         * modules/asinl (License): Likewise.
51887         * modules/atanl (License): Likewise.
51888         * modules/cosl (License): Likewise.
51889         * modules/expl (License): Likewise.
51890         * modules/logl (License): Likewise.
51891         * modules/sinl (License): Likewise.
51892         * modules/sqrtl (License): Likewise.
51893         * modules/tanl (License): Likewise.
51894         Source code originally from glibc and Paolo Bonzini. Agreements:
51895         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
51896         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
51898 2011-05-05  Bruno Haible  <bruno@clisp.org>
51900         signal: Define sighandler_t.
51901         * lib/signal.in.h (sighandler_t): New type.
51902         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
51903         whether sighandler_t is defined.
51904         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
51905         * modules/signal (Depends-on): Add extensions.
51906         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
51907         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
51908         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
51910 2011-05-05  Eric Blake  <eblake@redhat.com>
51912         maint: remove useless REPLACE_*_H macros
51913         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
51914         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
51915         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
51916         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
51917         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
51918         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
51919         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
51920         * m4/btowc.m4: Update callers.
51921         * m4/dirfd.m4: Likewise.
51922         * m4/duplocale.m4: Likewise.
51923         * m4/fchdir.m4: Likewise.
51924         * m4/fdopendir.m4: Likewise.
51925         * m4/inet_ntop.m4: Likewise.
51926         * m4/inet_pton.m4: Likewise.
51927         * m4/ioctl.m4: Likewise.
51928         * m4/mbrlen.m4: Likewise.
51929         * m4/mbrtowc.m4: Likewise.
51930         * m4/mbsinit.m4: Likewise.
51931         * m4/mbsnrtowcs.m4: Likewise.
51932         * m4/mbsrtowcs.m4: Likewise.
51933         * m4/poll.m4: Likewise.
51934         * m4/setlocale.m4: Likewise.
51935         * m4/wcrtomb.m4: Likewise.
51936         * m4/wcsnrtombs.m4: Likewise.
51937         * m4/wcsrtombs.m4: Likewise.
51938         * m4/wctob.m4: Likewise.
51939         * m4/wcwidth.m4: Likewise.
51940         * modules/posix_spawn: Likewise.
51941         * modules/posix_spawn_file_actions_addclose: Likewise.
51942         * modules/posix_spawn_file_actions_adddup2: Likewise.
51943         * modules/posix_spawn_file_actions_addopen: Likewise.
51944         * modules/posix_spawn_file_actions_destroy: Likewise.
51945         * modules/posix_spawn_file_actions_init: Likewise.
51946         * modules/posix_spawnattr_destroy: Likewise.
51947         * modules/posix_spawnattr_getflags: Likewise.
51948         * modules/posix_spawnattr_getpgroup: Likewise.
51949         * modules/posix_spawnattr_getschedparam: Likewise.
51950         * modules/posix_spawnattr_getschedpolicy: Likewise.
51951         * modules/posix_spawnattr_getsigdefault: Likewise.
51952         * modules/posix_spawnattr_getsigmask: Likewise.
51953         * modules/posix_spawnattr_init: Likewise.
51954         * modules/posix_spawnattr_setflags: Likewise.
51955         * modules/posix_spawnattr_setpgroup: Likewise.
51956         * modules/posix_spawnattr_setschedparam: Likewise.
51957         * modules/posix_spawnattr_setschedpolicy: Likewise.
51958         * modules/posix_spawnattr_setsigdefault: Likewise.
51959         * modules/posix_spawnattr_setsigmask: Likewise.
51960         * modules/posix_spawnp: Likewise.
51962 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
51964         Add option to do-release-commit-and-tag to specify branch.
51965         * build-aux/do-release-commit-and-tag: Add --branch.
51967 2011-05-03  Bruno Haible  <bruno@clisp.org>
51969         Avoid unnecessary compilation units, through conditional dependencies.
51970         * modules/accept (Depends-on): Add conditions to the dependencies.
51971         * modules/acosl (Depends-on): Likewise.
51972         * modules/argz (Depends-on): Likewise.
51973         * modules/asinl (Depends-on): Likewise.
51974         * modules/atanl (Depends-on): Likewise.
51975         * modules/atoll (Depends-on): Likewise.
51976         * modules/bind (Depends-on): Likewise.
51977         * modules/btowc (Depends-on): Likewise.
51978         * modules/canonicalize-lgpl (Depends-on): Likewise.
51979         * modules/ceil (Depends-on): Likewise.
51980         * modules/ceilf (Depends-on): Likewise.
51981         * modules/ceill (Depends-on): Likewise.
51982         * modules/chdir-long (Depends-on): Likewise.
51983         * modules/chown (Depends-on): Likewise.
51984         * modules/close (Depends-on): Likewise.
51985         * modules/connect (Depends-on): Likewise.
51986         * modules/cosl (Depends-on): Likewise.
51987         * modules/dirfd (Depends-on): Likewise.
51988         * modules/dprintf (Depends-on): Likewise.
51989         * modules/dprintf-posix (Depends-on): Likewise.
51990         * modules/error (Depends-on): Likewise.
51991         * modules/euidaccess (Depends-on): Likewise.
51992         * modules/expl (Depends-on): Likewise.
51993         * modules/faccessat (Depends-on): Likewise.
51994         * modules/fchdir (Depends-on): Likewise.
51995         * modules/fclose (Depends-on): Likewise.
51996         * modules/fcntl (Depends-on): Likewise.
51997         * modules/fdopendir (Depends-on): Likewise.
51998         * modules/fflush (Depends-on): Likewise.
51999         * modules/floor (Depends-on): Likewise.
52000         * modules/floorf (Depends-on): Likewise.
52001         * modules/floorl (Depends-on): Likewise.
52002         * modules/fnmatch (Depends-on): Likewise.
52003         * modules/fopen (Depends-on): Likewise.
52004         * modules/fprintf-posix (Depends-on): Likewise.
52005         * modules/frexp (Depends-on): Likewise.
52006         * modules/frexp-nolibm (Depends-on): Likewise.
52007         * modules/frexpl (Depends-on): Likewise.
52008         * modules/frexpl-nolibm (Depends-on): Likewise.
52009         * modules/fseek (Depends-on): Likewise.
52010         * modules/fsusage (Depends-on): Likewise.
52011         * modules/ftell (Depends-on): Likewise.
52012         * modules/ftello (Depends-on): Likewise.
52013         * modules/futimens (Depends-on): Likewise.
52014         * modules/getcwd (Depends-on): Likewise.
52015         * modules/getcwd-lgpl (Depends-on): Likewise.
52016         * modules/getdelim (Depends-on): Likewise.
52017         * modules/getdomainname (Depends-on): Likewise.
52018         * modules/getgroups (Depends-on): Likewise.
52019         * modules/gethostname (Depends-on): Likewise.
52020         * modules/getline (Depends-on): Likewise.
52021         * modules/getlogin_r (Depends-on): Likewise.
52022         * modules/getopt-posix (Depends-on): Likewise.
52023         * modules/getpeername (Depends-on): Likewise.
52024         * modules/getsockname (Depends-on): Likewise.
52025         * modules/getsockopt (Depends-on): Likewise.
52026         * modules/getsubopt (Depends-on): Likewise.
52027         * modules/getusershell (Depends-on): Likewise.
52028         * modules/glob (Depends-on): Likewise.
52029         * modules/grantpt (Depends-on): Likewise.
52030         * modules/iconv_open (Depends-on): Likewise.
52031         * modules/iconv_open-utf (Depends-on): Likewise.
52032         * modules/inet_ntop (Depends-on): Likewise.
52033         * modules/inet_pton (Depends-on): Likewise.
52034         * modules/ioctl (Depends-on): Likewise.
52035         * modules/isapipe (Depends-on): Likewise.
52036         * modules/isfinite (Depends-on): Likewise.
52037         * modules/isinf (Depends-on): Likewise.
52038         * modules/lchown (Depends-on): Likewise.
52039         * modules/ldexpl (Depends-on): Likewise.
52040         * modules/link (Depends-on): Likewise.
52041         * modules/linkat (Depends-on): Likewise.
52042         * modules/listen (Depends-on): Likewise.
52043         * modules/logl (Depends-on): Likewise.
52044         * modules/lstat (Depends-on): Likewise.
52045         * modules/mbrlen (Depends-on): Likewise.
52046         * modules/mbrtowc (Depends-on): Likewise.
52047         * modules/mbsinit (Depends-on): Likewise.
52048         * modules/mbsnrtowcs (Depends-on): Likewise.
52049         * modules/mbsrtowcs (Depends-on): Likewise.
52050         * modules/mbtowc (Depends-on): Likewise.
52051         * modules/memcmp (Depends-on): Likewise.
52052         * modules/mkdir (Depends-on): Likewise.
52053         * modules/mkdtemp (Depends-on): Likewise.
52054         * modules/mkfifo (Depends-on): Likewise.
52055         * modules/mkfifoat (Depends-on): Likewise.
52056         * modules/mknod (Depends-on): Likewise.
52057         * modules/mkostemp (Depends-on): Likewise.
52058         * modules/mkostemps (Depends-on): Likewise.
52059         * modules/mkstemp (Depends-on): Likewise.
52060         * modules/mkstemps (Depends-on): Likewise.
52061         * modules/mktime (Depends-on): Likewise.
52062         * modules/nanosleep (Depends-on): Likewise.
52063         * modules/open (Depends-on): Likewise.
52064         * modules/openat (Depends-on): Likewise.
52065         * modules/perror (Depends-on): Likewise.
52066         * modules/poll (Depends-on): Likewise.
52067         * modules/popen (Depends-on): Likewise.
52068         * modules/posix_spawn (Depends-on): Likewise.
52069         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
52070         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52071         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52072         * modules/posix_spawnp (Depends-on): Likewise.
52073         * modules/pread (Depends-on): Likewise.
52074         * modules/printf-posix (Depends-on): Likewise.
52075         * modules/ptsname (Depends-on): Likewise.
52076         * modules/putenv (Depends-on): Likewise.
52077         * modules/pwrite (Depends-on): Likewise.
52078         * modules/readline (Depends-on): Likewise.
52079         * modules/readlink (Depends-on): Likewise.
52080         * modules/readlinkat (Depends-on): Likewise.
52081         * modules/recv (Depends-on): Likewise.
52082         * modules/recvfrom (Depends-on): Likewise.
52083         * modules/regex (Depends-on): Likewise.
52084         * modules/remove (Depends-on): Likewise.
52085         * modules/rename (Depends-on): Likewise.
52086         * modules/renameat (Depends-on): Likewise.
52087         * modules/rmdir (Depends-on): Likewise.
52088         * modules/round (Depends-on): Likewise.
52089         * modules/roundf (Depends-on): Likewise.
52090         * modules/roundl (Depends-on): Likewise.
52091         * modules/rpmatch (Depends-on): Likewise.
52092         * modules/select (Depends-on): Likewise.
52093         * modules/send (Depends-on): Likewise.
52094         * modules/sendto (Depends-on): Likewise.
52095         * modules/setenv (Depends-on): Likewise.
52096         * modules/setlocale (Depends-on): Likewise.
52097         * modules/setsockopt (Depends-on): Likewise.
52098         * modules/shutdown (Depends-on): Likewise.
52099         * modules/sigaction (Depends-on): Likewise.
52100         * modules/signbit (Depends-on): Likewise.
52101         * modules/sigprocmask (Depends-on): Likewise.
52102         * modules/sinl (Depends-on): Likewise.
52103         * modules/sleep (Depends-on): Likewise.
52104         * modules/snprintf (Depends-on): Likewise.
52105         * modules/snprintf-posix (Depends-on): Likewise.
52106         * modules/socket (Depends-on): Likewise.
52107         * modules/sprintf-posix (Depends-on): Likewise.
52108         * modules/sqrtl (Depends-on): Likewise.
52109         * modules/stat (Depends-on): Likewise.
52110         * modules/strchrnul (Depends-on): Likewise.
52111         * modules/strdup-posix (Depends-on): Likewise.
52112         * modules/strerror (Depends-on): Likewise.
52113         * modules/strerror_r-posix (Depends-on): Likewise.
52114         * modules/strndup (Depends-on): Likewise.
52115         * modules/strnlen (Depends-on): Likewise.
52116         * modules/strptime (Depends-on): Likewise.
52117         * modules/strsep (Depends-on): Likewise.
52118         * modules/strsignal (Depends-on): Likewise.
52119         * modules/strstr-simple (Depends-on): Likewise.
52120         * modules/strtod (Depends-on): Likewise.
52121         * modules/strtoimax (Depends-on): Likewise.
52122         * modules/strtok_r (Depends-on): Likewise.
52123         * modules/strtoumax (Depends-on): Likewise.
52124         * modules/symlink (Depends-on): Likewise.
52125         * modules/symlinkat (Depends-on): Likewise.
52126         * modules/tanl (Depends-on): Likewise.
52127         * modules/tcgetsid (Depends-on): Likewise.
52128         * modules/tmpfile (Depends-on): Likewise.
52129         * modules/trunc (Depends-on): Likewise.
52130         * modules/truncf (Depends-on): Likewise.
52131         * modules/truncl (Depends-on): Likewise.
52132         * modules/uname (Depends-on): Likewise.
52133         * modules/unlink (Depends-on): Likewise.
52134         * modules/unlockpt (Depends-on): Likewise.
52135         * modules/unsetenv (Depends-on): Likewise.
52136         * modules/usleep (Depends-on): Likewise.
52137         * modules/utimensat (Depends-on): Likewise.
52138         * modules/vasprintf (Depends-on): Likewise.
52139         * modules/vdprintf (Depends-on): Likewise.
52140         * modules/vdprintf-posix (Depends-on): Likewise.
52141         * modules/vfprintf-posix (Depends-on): Likewise.
52142         * modules/vprintf-posix (Depends-on): Likewise.
52143         * modules/vsnprintf (Depends-on): Likewise.
52144         * modules/vsnprintf-posix (Depends-on): Likewise.
52145         * modules/vsprintf-posix (Depends-on): Likewise.
52146         * modules/wcrtomb (Depends-on): Likewise.
52147         * modules/wcscasecmp (Depends-on): Likewise.
52148         * modules/wcscspn (Depends-on): Likewise.
52149         * modules/wcsdup (Depends-on): Likewise.
52150         * modules/wcsncasecmp (Depends-on): Likewise.
52151         * modules/wcsnrtombs (Depends-on): Likewise.
52152         * modules/wcspbrk (Depends-on): Likewise.
52153         * modules/wcsrtombs (Depends-on): Likewise.
52154         * modules/wcsspn (Depends-on): Likewise.
52155         * modules/wcsstr (Depends-on): Likewise.
52156         * modules/wcstok (Depends-on): Likewise.
52157         * modules/wcswidth (Depends-on): Likewise.
52158         * modules/wctob (Depends-on): Likewise.
52159         * modules/wctomb (Depends-on): Likewise.
52160         * modules/wctype (Depends-on): Likewise.
52161         * modules/wcwidth (Depends-on): Likewise.
52162         * modules/write (Depends-on): Likewise.
52164 2011-05-03  Bruno Haible  <bruno@clisp.org>
52166         Support for conditional dependencies.
52167         * doc/gnulib.texi (Module description): Document the syntax of
52168         conditional dependencies.
52169         * gnulib-tool: New option --conditional-dependencies.
52170         (func_usage): Document it.
52171         (cond_dependencies): New variable.
52172         (func_get_automake_snippet_conditional,
52173         func_get_automake_snippet_unconditional): New functions, extracted from
52174         func_get_automake_snippet.
52175         (func_get_automake_snippet): Use them.
52176         (sed_first_32_chars): New variable.
52177         (func_module_shellfunc_name): New function.
52178         (func_module_shellvar_name): New function.
52179         (func_module_conditional_name): New function.
52180         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
52181         func_cond_module_condition): New functions.
52182         (func_modules_transitive_closure): Add support for conditional
52183         dependencies.
52184         (func_emit_lib_Makefile_am): For a conditional module, enclose the
52185         conditional automake snippet in an automake conditional.
52186         (func_emit_autoconf_snippets): Emit shell functions that contain the
52187         code for conditional modules.
52188         (func_import, func_create_testdir): Update specification.
52190 2011-05-03  Eric Blake  <eblake@redhat.com>
52192         test-getaddrinfo: report error information
52193         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
52195 2011-05-03  Jim Meyering  <meyering@redhat.com>
52197         bootstrap: avoid build failure when $GZIP is set
52198         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
52199         program name.  If defined at all, it is supposed to list gzip options.
52200         Reported by Alan Curry in http://debbugs.gnu.org/8609
52202 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
52204         readme-release: new module with release instructions
52205         * modules/readme-release: New module.
52206         * top/README-release: New file, from coreutils, grep, diffutils.
52207         * MODULES.html.sh (Support for maintaining and releasing): Add it.
52209 2011-05-02  Eric Blake  <eblake@redhat.com>
52211         fflush: also replace fclose when fixing fflush
52212         * modules/fflush (Depends-on): Add fclose.
52213         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
52214         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
52215         memstreams with no backing fd.
52216         * doc/posix-functions/fclose.texi (fclose): Document the use of
52217         fflush module to fix the bug.
52218         * tests/test-fclose.c (main): Relax test when fclose is used in
52219         isolation.
52221         fclose: add some tests
52222         * modules/fclose-tests: New test module.
52223         * tests/test-fclose.c: New file.
52224         * doc/posix-functions/fclose.texi (fclose): Document the bug.
52226         fclose: reduced dependencies
52227         * modules/fclose (Depends-on): Switch from fflush/fseeko to
52228         simpler lseek.
52229         * lib/fclose.c (rpl_fclose): Likewise.
52230         Reported by Simon Josefsson.
52232         exit: drop remaining clients
52233         * modules/argmatch (Depends-on): Replace exit with stdlib.
52234         * modules/copy-file (Depends-on): Likewise.
52235         * modules/execute (Depends-on): Likewise.
52236         * modules/exitfail (Depends-on): Likewise.
52237         * modules/obstack (Depends-on): Likewise.
52238         * modules/pagealign_alloc (Depends-on): Likewise.
52239         * modules/pipe-filter-gi (Depends-on): Likewise.
52240         * modules/pipe-filter-ii (Depends-on): Likewise.
52241         * modules/savewd (Depends-on): Likewise.
52242         * modules/spawn-pipe (Depends-on): Likewise.
52243         * modules/wait-process (Depends-on): Likewise.
52244         * modules/xsetenv (Depends-on): Likewise.
52245         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
52246         * modules/git-merge-changelog (Depends-on): Likewise.
52247         * modules/long-options (Depends-on): Likewise.
52248         * modules/pt_chown (Depends-on): Likewise.
52249         * modules/sysexits (Depends-on): Likewise.
52251         freading: relax license from LGPLv3+ to LGPLv2+
52252         * modules/freading (License): Relax LGPL version.
52254 2011-05-02  Bruno Haible  <bruno@clisp.org>
52256         fchdir: Remove unused dependencies.
52257         * modules/fchdir (Depends-on): Remove include_next.
52259 2011-05-02  Bruno Haible  <bruno@clisp.org>
52261         gnulib-tool: Refactor.
52262         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
52263         from func_emit_autoconf_snippets.
52264         (func_emit_autoconf_snippets): Use it.
52266 2011-05-02  Simon Josefsson  <simon@josefsson.org>
52268         * NEWS: Document removal of 'exit'.
52269         * modules/exit: Remove file.
52271 2011-05-01  Bruno Haible  <bruno@clisp.org>
52273         Update DEPENDENCIES.
52274         * DEPENDENCIES (gettext): Recommend the newest release.
52275         Reported by Simon Josefsson.
52277 2011-05-01  Bruno Haible  <bruno@clisp.org>
52279         gnulib-tool: Reduce code duplication.
52280         * gnulib-tool (func_emit_autoconf_snippets): New function.
52281         (func_import, func_create_testdir): Use it.
52283 2011-04-30  Eric Blake  <eblake@redhat.com>
52285         fclose: don't fail on non-seekable input stream
52286         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
52287         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
52288         since fflush is allowed to fail in that case.
52290 2011-04-30  Bruno Haible  <bruno@clisp.org>
52292         dup3: cleanup
52293         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
52295 2011-04-30  Bruno Haible  <bruno@clisp.org>
52297         netdb: Make it work in C++ mode.
52298         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
52299         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
52300         module.
52301         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
52302         gl_MODULE_INDICATOR_FOR_TESTS.
52303         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
52304         * modules/netdb-c++-tests: New file.
52305         * tests/test-netdb-c++.cc: New file.
52307 2011-04-30  Bruno Haible  <bruno@clisp.org>
52309         New modules 'vfscanf', 'vscanf'.
52310         * modules/vfscanf: New file.
52311         * modules/vscanf: New file.
52312         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
52313         here.
52314         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
52315         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
52317 2011-04-30  Bruno Haible  <bruno@clisp.org>
52319         passfd: Add comments.
52320         * lib/passfd.c: Add comments about platforms.
52322 2011-04-30  Bruno Haible  <bruno@clisp.org>
52324         sys_uio: Make <sys/uio.h> self-contained.
52325         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
52326         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
52328 2011-04-30  Bruno Haible  <bruno@clisp.org>
52330         sys_socket: Ensure 'struct iovec' definition.
52331         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
52332         <sys/socket.h>.
52333         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
52335 2011-04-30  Bruno Haible  <bruno@clisp.org>
52337         sys_uio: Protect definition of 'struct iovec'.
52338         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
52339         it as a C struct.
52341 2011-04-30  Bruno Haible  <bruno@clisp.org>
52343         manywarnings: fix indentation
52344         * m4/manywarnings.m4: Indent by 2 spaces consistently.
52346 2011-04-30  Pádraig Brady  <P@draigBrady.com>
52348         manywarnings: add -Wno-missing-field-initializers if needed.
52349         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
52350         option if it's needed to allow initialization with { 0, }
52352 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
52354         announce-gen: cosmetic improvement
52355         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
52357 2011-04-29  Jim Meyering  <meyering@redhat.com>
52359         vc-list-files: indent with spaces, not TABs
52360         * build-aux/vc-list-files: Convert leading TABs to spaces,
52361         to match the style of most other files in gnulib.
52363         announce-gen: indent with spaces, not TABs
52364         * build-aux/announce-gen: Convert all TABs to spaces, to match
52365         the style of most other files in gnulib.
52367 2011-04-29  Eric Blake  <eblake@redhat.com>
52369         quotearg: avoid uninitialized variable use
52370         * lib/quotearg.c (quoting_options_from_style): Initialize
52371         remaining fields, and ensure that custom styles are only used via
52372         quoting_options rather than quoting_style.
52374 2011-04-29  Jim Meyering  <meyering@redhat.com>
52376         maint.mk: remove unused VC-tag variable
52377         * top/maint.mk (VC-tag): Remove unused variable.
52379 2011-04-29  Bruno Haible  <bruno@clisp.org>
52381         netdb: fix gai_strerror replacements
52382         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
52383         * modules/netdb: Substitute it.
52385 2011-04-29  Jim Meyering  <meyering@redhat.com>
52387         test-getcwd.c: avoid new set-but-not-used warning
52388         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
52389         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
52390         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
52391         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
52393         test-hash.c: avoid a new shadowing warning
52394         * tests/test-hash.c (main): Don't shadow "dup".
52396 2011-04-28  Eric Blake  <eblake@redhat.com>
52398         getaddrinfo: fix gai_strerror signature
52399         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
52400         and work around mingw with UNICODE defined.
52401         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
52402         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
52403         * modules/netdb (Makefile.am): Substitute it.
52404         * lib/netdb.in.h (gai_strerror): Declare replacement.
52405         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
52406         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
52407         the fix.
52409         getsockopt: avoid compiler warning
52410         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
52411         Reported by Matthias Bolte.
52413         tests: drop unused link dependency
52414         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
52415         * modules/dirent-safer-tests (Makefile.am): Likewise.
52416         * modules/fdopendir-tests (Makefile.am): Likewise.
52417         * modules/mkfifoat-tests (Makefile.am): Likewise.
52418         * modules/openat-safer-tests (Makefile.am): Likewise.
52419         * modules/openat-tests (Makefile.am): Likewise.
52420         * modules/readlinkat-tests (Makefile.am): Likewise.
52421         * modules/symlinkat-tests (Makefile.am): Likewise.
52422         * modules/linkat-tests (Makefile.am): Likewise.
52423         (Depends-on): Switch to filenamecat-lgpl.
52424         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
52425         LIBINTL.
52426         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
52427         * tests/test-linkat.c (main): Don't require xalloc.
52429         hash, mgetgroups: drop xalloc dependency
52430         * lib/hash.c (includes): Adjust includes.
52431         * lib/mgetgroups.c (includes): Likewise.
52432         (xgetgroups): Move...
52433         * lib/xgetgroups.c: ...to new file.
52434         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
52435         * modules/xgetgroups: New file, split from...
52436         * modules/mgetgroups: ...here.
52437         (Depends-on): Add xalloc-oversized.
52438         * modules/hash (Depends-on): Likewise.
52439         * modules/hash-tests (Depends-on): Drop xalloc.
52440         (test_hash_LDADD): Drop unused library.
52441         * tests/test-hash.c (main): Break xalloc dependency.
52442         (includes): Drop unused include.
52444         xalloc-oversized: new module
52445         * modules/xalloc-oversized: New module.
52446         * modules/xalloc (Depends-on): Add it.
52447         * lib/xalloc.h (xalloc_oversized): Move...
52448         * lib/xalloc-oversized.h: ...into new file.
52450         utimecmp: drop dependency on xmalloc
52451         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
52452         due to memory pressure.
52453         * modules/utimecmp (Depends-on): Drop xalloc.
52455 2011-04-27  Eric Blake  <eblake@redhat.com>
52457         getcwd: fix mingw bugs
52458         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
52459         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
52460         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
52462 2011-04-27  Bruno Haible  <bruno@clisp.org>
52464         mkstemps: Ensure declaration on MacOS X 10.5.
52465         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
52466         * doc/glibc-functions/mkstemps.texi: Document header file problem on
52467         MacOS X.
52469 2011-04-27  Bruno Haible  <bruno@clisp.org>
52471         mkstemp: More documentation.
52472         * doc/posix-functions/mkstemp.texi: Document header file problem on
52473         MacOS X.
52475 2011-04-27  Bruno Haible  <bruno@clisp.org>
52477         mkstemp: Tweak configure message when cross-compiling.
52478         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
52479         result as a guess.
52481 2011-04-27  Bruno Haible  <bruno@clisp.org>
52483         clean-temp: Clarify what it does.
52484         * lib/clean-temp.h: Add more comments.
52485         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
52486         module.
52487         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
52488         * doc/glibc-functions/mkstemps.texi: Likewise.
52489         * doc/glibc-functions/mkostemps.texi: Likewise.
52491 2011-04-27  Eric Blake  <eblake@redhat.com>
52493         fchdir: avoid extra chdir and fix test
52494         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
52495         getcwd-lgpl.
52496         * lib/fchdir.c (get_name): Any absolute name will do; it does not
52497         have to be canonical.
52498         (canonicalize_file_name): Drop unused macro.
52499         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
52501         filenamecat-lgpl: fix licence
52502         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
52503         when it was first created.
52505         linkat, renameat: add missing dependency
52506         * modules/linkat (Depends-on): Require getcwd-lgpl.
52507         * modules/renameat (Depends-on): Likewise.
52509         tests: reduce dependencies
52510         * tests/test-linkat.c (main): Use lighter-weight getcwd.
52511         * tests/test-renameat.c (main): Likewise.
52512         * modules/linkat-tests (Depends-on): Relax dependency.
52513         * modules/renameat-tests (Depends-on): Likewise.
52514         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
52515         dependency explicit.
52517         save-cwd: reduce default dependency
52518         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
52519         * lib/save-cwd.c: Update comments.
52520         * NEWS: Document the semantic change.
52522         getcwd: enhance tests
52523         * tests/test-getcwd-lgpl.c: New file, taken from...
52524         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
52525         repeat long path stress tests from m4 probe.
52526         * modules/getcwd-lgpl-tests: New module.
52527         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
52528         * m4/getcwd-abort-bug.m4: Update comment.
52529         * m4/getcwd-path-max.m4: Likewise.
52531         getcwd-lgpl: new module
52532         * modules/getcwd-lgpl: New module.
52533         * lib/getcwd-lgpl.c: New file.
52534         * doc/posix-functions/getcwd.texi (getcwd): Document it.
52535         * MODULES.html.sh (lacking POSIX:2008): Likewise.
52536         * modules/getcwd (configure.ac): Set C witness.
52537         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
52539         getcwd: tweak comments
52540         * m4/getcwd-abort-bug.m4: Fix comments.
52541         * m4/getcwd-path-max.m4: Likewise.
52542         * m4/getcwd.m4: Likewise.
52544 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
52545         and Eric Blake  <eblake@redhat.com>
52547         mkstemp: replace if system version uses wrong permissions
52548         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
52549         read/write mode bits set in file created by mkstemp.
52550         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
52552 2011-04-27  Eric Blake  <eblake@redhat.com>
52554         passfd: avoid compiler warning
52555         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
52556         Reported by Laine Stump.
52558 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
52560         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
52561         required by the NetBSD (and perhaps other 4.4BSD derived) join.
52563 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
52564         and Eric Blake  <eblake@redhat.com>
52566         mkstemp: mention clean-temp module
52567         * lib/mkstemp.c: Add comment.
52568         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
52570 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
52572         inttypes: also provide default values for 32-bit tests
52573         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
52574         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
52576 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52578         strtoumax: remove dependency on strtoimax
52579         This is like the strtoull change of yesterday.
52580         * modules/strtoumax (Files): Add lib/strtoimax.c.
52581         (Depends-on): Remove strtoimax and add verify.
52583         inttypes-incomplete: new module
52584         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
52585         all but the PRI* and SCN* parts of gl_INTTYPES_H.
52586         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
52587         of gl_INTTYPES_H.
52588         (gl_INTTYPES_H): Rewrite in terms of these new macros.
52589         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
52590         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
52591         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
52592         * modules/strtoumax, modules/xstrtol (Depends-on):
52593         Depend on inttypes-incomplete, not inttypes.
52594         * modules/inttypes-incomplete: New module, containing the contents
52595         of the old modules/inttypes module, except that the Files: section
52596         omits m4/inttypes-pri.m4, and the configure.ac section invokes
52597         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
52598         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
52599         (Depends-on): Depend only on inttypes-incomplete.
52600         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
52602         inttypes: omit now-redundant strtoimax and strtoumax work
52603         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
52604         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
52606         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
52607         This supports apps that need pointers to strtoimax and strtoumax,
52608         and ports to HP-UX 11.00 64.bit, which has macros that expand to
52609         nonexistent functions.  See
52610         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
52611         et seq.
52612         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
52613         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
52614         a macro.
52615         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
52617 2011-04-25  Simon Josefsson  <simon@josefsson.org>
52619         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
52621 2011-04-25  Bruno Haible  <bruno@clisp.org>
52623         strtol, strtoul: Mark modules as obsolete.
52624         * modules/strtol (Status, Notice): New sections.
52625         * modules/strtoul (Status, Notice): New sections.
52627 2011-04-25  Bruno Haible  <bruno@clisp.org>
52629         strtod: Remove check for strtod, unless supporting old platforms.
52630         * modules/strtod-obsolete: New file.
52631         * m4/strtod-obsolete.m4: New file.
52632         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
52633         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
52634         * modules/strtod (Depends-on): Add strtod-obsolete.
52635         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
52637 2011-04-25  Bruno Haible  <bruno@clisp.org>
52639         strcase: Make module obsolete.
52640         * modules/strcase (Status, Notice): New sections.
52642 2011-04-25  Bruno Haible  <bruno@clisp.org>
52644         dup2: Remove check for dup2, unless supporting old obsolete platforms.
52645         * modules/dup2-obsolete: New file.
52646         * m4/dup2-obsolete.m4: New file.
52647         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
52648         gl_FUNC_DUP2_OBSOLETE is not also defined.
52649         * modules/dup2 (Depends-on): Add dup2-obsolete.
52650         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
52652 2011-04-25  Bruno Haible  <bruno@clisp.org>
52654         strnlen: Avoid memchr related link error on old obsolete platforms.
52655         * modules/memchr-obsolete: New file.
52656         * m4/memchr-obsolete.m4: New file.
52657         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
52658         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
52659         * modules/memchr (Depends-on): Add memchr-obsolete.
52660         * modules/strnlen (Depends-on): Likewise.
52661         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
52663 2011-04-25  Jim Meyering  <meyering@redhat.com>
52665         maint.mk: makefile_at_at_check extend and clean up
52666         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
52667         in addition to */Makefile.am.
52668         Exempt legitimate uses of @VAR@ notation, e.g.,
52669         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
52670         Remove obsolete coreutils-specific comment.
52671         Prompted by discussion here:
52672         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
52674 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52676         strtoul: remove dependency on strtol
52677         This is so that 'configure' need not check for strtol merely because
52678         the application needs strtoul.
52679         * modules/strtoul (Files): Add lib/strtol.c.
52680         (Depends-on): Remove strtol.
52682         strtoull: remove dependency on strtoul
52683         This is like the strtoll change.
52684         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
52685         (Depends-on): Remove strtoul.
52687         strtoll: remove dependency on strtol
52688         This is so that 'configure' need not check for strtol merely because
52689         the application needs strtoll.
52690         * modules/strtoll (Files): Add lib/strtol.c.
52691         (Depends-on): Remove strtol.
52693 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52695         inttypes: Move some configure check to module 'imaxdiv'.
52696         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
52697         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
52698         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
52700 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52702         inttypes: Move some configure check to module 'imaxabs'.
52703         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
52704         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
52705         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
52707 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52709         inttypes: Remove configure tests that are not needed since 2009-12-31.
52710         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
52711         gl_cv_header_working_inttypes_h.
52713 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52715         * modules/strnlen (Depends-on): Remove memchr.
52716         The strnlen implementation doesn't need the memchr module's fixes; see
52717         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
52719         strtol: remove dependency on wchar
52720         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
52721         * modules/strtol (Depends-on): Remove wchar.
52723 2011-04-21  Eric Blake  <eblake@redhat.com>
52725         passfd: fix test regression on Linux
52726         * modules/passfd-tests (configure.ac): Correct socketpair check.
52728         passfd: speed up configure and drop unused code
52729         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
52730         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
52731         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
52732         Instead of probing at configure for unix_scm_rights_bsd44_way,
52733         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
52734         check to a struct member probe.
52735         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
52736         (sendfd, recvfd): Update preprocessor checks.
52737         * modules/passfd (Files): Reflect rename, and drop unused file.
52738         (Depends-on): Drop unused dependency.
52740         passfd: allow compilation on mingw
52741         * modules/sys_socket (Depends-on): Add sys_uio.
52742         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
52743         iovec and a minimal struct msghdr.
52744         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
52745         * tests/test-sys_socket.c (main): Enhance test.
52746         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
52747         guaranteed to provide what we need.
52748         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
52749         * modules/passfd-tests (Depends-on): Add sys_wait.
52750         * tests/test-passfd.c (main): Skip test on mingw, for now.
52751         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
52752         partial 'struct msghdr' implementation.
52754         sys_uio: new module
52755         * modules/sys_uio: New module.
52756         * modules/sys_uio-tests: Likewise.
52757         * lib/sys_uio.in.h: New file.
52758         * m4/sys_uio_h.m4: Likewise.
52759         * tests/test-sys_uio.c: Likewise.
52760         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
52761         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
52763 2011-04-20  Jim Meyering  <meyering@redhat.com>
52765         useless-if-before-free: avoid false-positive
52766         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
52767         disjunct so that it too requires a terminating ";".  Without that,
52768         this script would identify as useless one statement from gcc that
52769         was not:
52770           if (aligned_ptr)
52771             free (((void **) aligned_ptr) [-1]);
52773 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
52775         doc: update users.txt.
52776         * users.txt: Add barcode.
52778 2011-04-19  Bruno Haible  <bruno@clisp.org>
52780         ioctl: Remove link dependency on native Windows.
52781         * lib/fd-hook.h: Renamed from lib/close-hook.h.
52782         (gl_close_fn, gl_ioctl_fn): New types.
52783         (struct fd_hook): Renamed from struct close_hook. Change type of
52784         private_close_fn field. Add private_ioctl_fn field.
52785         (close_hook_fn): Add parameter for primary close method.
52786         (execute_close_hooks, execute_all_close_hooks): Likewise.
52787         (ioctl_hook_fn): New type.
52788         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
52789         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
52790         argument.
52791         (unregister_fd_hook): Renamed from unregister_close_hook.
52792         * lib/fd-hook.c: Renamed from lib/close-hook.c.
52793         Don't include <unistd.h>.
52794         (close): Remove undef.
52795         (anchor): Update.
52796         (execute_close_hooks): Add argument for primary close method.
52797         (execute_all_close_hooks): Likewise.
52798         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
52799         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
52800         argument. Allow each argument to be NULL.
52801         (unregister_fd_hook): Renamed from unregister_close_hook.
52802         * lib/close.c (rpl_close): Pass 'close' function pointer to
52803         execute_all_close_hooks.
52804         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
52805         (primary_ioctl): New function.
52806         (ioctl): Don't call ioctlsocket here. Instead, call
52807         execute_all_ioctl_hooks.
52808         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
52809         close method.
52810         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
52811         (fd_sockets_hook): Renamed from close_sockets_hook.
52812         (gl_sockets_startup, gl_sockets_cleanup): Update.
52813         * modules/fd-hook: Renamed from modules/close-hook. Update.
52814         * modules/close (Depends-on): Add fd-hook, remove close-hook.
52815         * modules/sockets (Depends-on): Likewise.
52816         * modules/ioctl (Depends-on): Add fd-hook.
52817         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
52818         GNULIB_SOCKET.
52820 2011-04-19  Bruno Haible  <bruno@clisp.org>
52822         Move the support of O_NONBLOCK in open() to the 'open' module.
52823         * modules/nonblocking (Depends-on): Remove 'open'.
52824         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
52825         gl_cv_have_open_O_NONBLOCK.
52826         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
52827         O_NONBLOCK support.
52828         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
52830 2011-04-17  Bruno Haible  <bruno@clisp.org>
52832         pipe2: Simplify code.
52833         * lib/pipe2.c (pipe2): Reduce code duplication.
52835 2011-04-17  Bruno Haible  <bruno@clisp.org>
52837         nonblocking: Add comment.
52838         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
52840 2011-04-17  Bruno Haible  <bruno@clisp.org>
52842         nonblocking: Add tests for sockets.
52843         * tests/test-nonblocking-socket.sh: New file.
52844         * tests/test-nonblocking-socket-main.c: New file.
52845         * tests/test-nonblocking-socket-child.c: New file.
52846         * tests/test-nonblocking-socket.h: New file.
52847         * tests/socket-server.h: New file.
52848         * tests/socket-client.h: New file.
52849         * modules/nonblocking-socket-tests: New file.
52850         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
52852 2011-04-17  Bruno Haible  <bruno@clisp.org>
52854         nonblocking: Add tests for pipes.
52855         * tests/test-nonblocking-pipe.sh: New file.
52856         * tests/test-nonblocking-pipe-main.c: New file.
52857         * tests/test-nonblocking-pipe-child.c: New file.
52858         * tests/test-nonblocking-pipe.h: New file.
52859         * tests/test-nonblocking-writer.h: New file.
52860         * tests/test-nonblocking-reader.h: New file.
52861         * tests/test-nonblocking-misc.h: New file.
52862         * modules/nonblocking-pipe-tests: New file.
52863         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
52865 2011-04-16  Bruno Haible  <bruno@clisp.org>
52867         gettext: Clarify the needed programmer actions.
52868         * modules/gettext (Notice): New field.
52869         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52871 2011-04-16  Bruno Haible  <bruno@clisp.org>
52873         strchrnul: Tweak last commit.
52874         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
52875         bug.
52876         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
52877         as in _GL_FUNCDECL_SYS.
52878         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
52879         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
52881 2011-04-15  Eric Blake  <eblake@redhat.com>
52883         strchrnul: work around cygwin bug
52884         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
52885         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
52886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
52887         * modules/string (Makefile.am): Substitute it.
52888         * lib/string.in.h (strchrnul): Use it.
52890 2011-04-15  Bruno Haible  <bruno@clisp.org>
52892         Don't require lib/stdio-write.c when only module 'stdio' is used.
52893         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
52894         invocation.
52895         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
52897 2011-04-14  Bruno Haible  <bruno@clisp.org>
52899         Support non-blocking pipe I/O in read() on native Windows.
52900         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
52901         (read): New declaration.
52902         * lib/read.c: New file.
52903         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
52904         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
52905         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
52906         vscanf): New declarations.
52907         * lib/stdio-read.c: New file.
52908         * m4/read.m4: New file.
52909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
52910         REPLACE_READ.
52911         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
52912         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
52913         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
52914         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
52915         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
52916         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
52917         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
52918         * modules/read: New file.
52919         * modules/nonblocking (Files): Add lib/stdio-read.c.
52920         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
52921         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
52922         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
52923         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
52924         * modules/pread (Depends-on): Add read.
52925         * modules/safe-read (Depends-on): Likewise.
52926         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
52927         gets, scanf, vfscanf, vscanf): Verify signatures.
52928         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
52929         problem with non-blocking pipes.
52930         * doc/posix-functions/fgetc.texi: Likewise.
52931         * doc/posix-functions/fgets.texi: Likewise.
52932         * doc/posix-functions/fread.texi: Likewise.
52933         * doc/posix-functions/fscanf.texi: Likewise.
52934         * doc/posix-functions/getc.texi: Likewise.
52935         * doc/posix-functions/getchar.texi: Likewise.
52936         * doc/posix-functions/gets.texi: Likewise.
52937         * doc/posix-functions/scanf.texi: Likewise.
52938         * doc/posix-functions/vfscanf.texi: Likewise.
52939         * doc/posix-functions/vscanf.texi: Likewise.
52941 2011-04-14  Bruno Haible  <bruno@clisp.org>
52943         Support non-blocking pipe I/O in write() on native Windows.
52944         * lib/write.c (rpl_write): Split a write request that failed merely
52945         because the byte count was larger than the pipe buffer's size.
52946         * doc/posix-functions/write.texi: Mention the problem with large byte
52947         counts.
52949 2011-04-14  Bruno Haible  <bruno@clisp.org>
52951         wchar: Ensure that wchar_t gets defined on uClibc.
52952         * lib/wchar.in.h: On uClibc, include <stddef.h>.
52953         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
52955 2011-04-13  Bruno Haible  <bruno@clisp.org>
52957         safe-write, full-read: Avoid unnecessary compilation units.
52958         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
52959         (Depends-on): Remove safe-read. Add ssize_t.
52960         * modules/full-read (Files): Add lib/full-write.c.
52961         (Depends-on): Add full-write.
52963 2011-04-13  Bruno Haible  <bruno@clisp.org>
52965         Support non-blocking pipe I/O and SIGPIPE in pwrite().
52966         * modules/pwrite (Depends-on): Add 'write'.
52968 2011-04-13  Bruno Haible  <bruno@clisp.org>
52970         Support non-blocking pipe I/O in write() on native Windows.
52971         * lib/unistd.in.h (write): Enable replacement also if
52972         GNULIB_UNISTD_H_NONBLOCKING is 1.
52973         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
52974         (rpl_write): When failing to write on a non-blocking pipe, change
52975         errno from ENOSPC to EAGAIN.
52976         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
52977         putchar, puts, vfprintf, vprintf): Enable replacement also if
52978         GNULIB_STDIO_H_NONBLOCKING is 1.
52979         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
52980         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
52981         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
52982         CALL_WITH_SIGPIPE_EMULATION.
52983         (CALL_WITH_SIGPIPE_EMULATION): Use them.
52984         * m4/nonblocking.m4: New file.
52985         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
52986         for non-blocking I/O support.
52987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52988         GNULIB_UNISTD_H_NONBLOCKING.
52989         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
52990         required for non-blocking I/O support.
52991         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
52992         * modules/nonblocking (Files): Add m4/nonblocking.m4,
52993         lib/stdio-write.c, m4/asm-underscore.m4.
52994         (Depends-on): Add stdio, unistd.
52995         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
52996         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
52997         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
52998         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
52999         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
53000         problem with non-blocking pipes.
53001         * doc/posix-functions/fputc.texi: Likewise.
53002         * doc/posix-functions/fputs.texi: Likewise.
53003         * doc/posix-functions/fwrite.texi: Likewise.
53004         * doc/posix-functions/printf.texi: Likewise.
53005         * doc/posix-functions/putc.texi: Likewise.
53006         * doc/posix-functions/putchar.texi: Likewise.
53007         * doc/posix-functions/puts.texi: Likewise.
53008         * doc/posix-functions/vfprintf.texi: Likewise.
53009         * doc/posix-functions/vprintf.texi: Likewise.
53010         * doc/posix-functions/write.texi: Likewise.
53012 2011-04-10  Jim Meyering  <meyering@redhat.com>
53014         maint.mk: prohibit doubled words
53015         Detect them also when they're separated by a newline.
53016         There are 3 ways to customize it:
53017           - disable the test on a per file basis, as usual with rules using
53018             $(VC_LIST_EXCEPT)
53019           - replace the default doubled-word-selecting regexp (affects all files)
53020           - ignore a particular file-vs-doubled-word match
53021         I nearly used that last one to ignore the "is is" match in
53022         coreutils' NEWS file, since the text was "ls -is is ..."
53023         To do that, I would have added this line to cfg.mk:
53024           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
53025         but it would have ignored any "is is" match in NEWS.
53026         Low probability, but still...
53027         Instead, I changed the text, slightly:
53028           -  ls -is is now consistent with ls -lis in ignoring values returned
53029           +  "ls -is" is now consistent with ls -lis in ignoring values returned
53030         * top/maint.mk (prohibit_double_word_RE_): Provide default.
53031         (prohibit_doubled_word_): Define.
53032         (sc_prohibit_doubled_word): New rule.
53033         (sc_prohibit_the_the): Remove.  Subsumed by the above.
53035 2011-04-10  Jim Meyering  <meyering@redhat.com>
53037         maint: fix doubled-word typo in comment
53038         * m4/gethostname.m4: s/is is/it is/
53039         * m4/getdomainname.m4: Likewise.
53041 2011-04-10  Jim Meyering  <meyering@redhat.com>
53043         maint: remove doubled word: s/it it/it/
53044         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
53046 2011-04-10  Jim Meyering  <meyering@redhat.com>
53048         maint.mk: remove useless semicolon and backslash
53049         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
53050         semicolon and backslash.
53052 2011-04-10  Bruno Haible  <bruno@clisp.org>
53054         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
53055         * modules/stdint-tests (Depends-on): Add wchar.
53057 2011-04-10  Jim Meyering  <meyering@redhat.com>
53059         maint: remove doubled words in comments, e.g., s/a a/a/
53060         * lib/strptime.c (day_of_the_week): s/the the/the/
53061         * tests/test-chown.h (test_chown): s/a a/a/
53063         test-chown.h: correct a cast
53064         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
53065         when the destination is a stat.st_gid.
53067 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
53069         getaddrinfo: Fix test for sa_len member.
53070         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
53071         include <sys/types.h> before <sys/socket.h>.
53073 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53075         maint: change "can not" to "cannot"
53076         * doc/posix-functions/iconv.texi (iconv): This one crossed line
53077         boundaries.
53079 2011-04-09  Jim Meyering  <meyering@redhat.com>
53081         maint: change "a a" to "a"
53082         * tests/test-lchown.h (test_lchown): s/a a/a/
53084         maint.mk: prohibit \<the the\>
53085         * top/maint.mk (sc_prohibit_the_the): New rule.
53087         maint: fix "the the" in comment
53088         * lib/count-one-bits.h: s/the the/the/
53090         maint: change "can not" to "cannot"
53091         But do not change the occurrences in maintain.texi or in
53092         build-aux/po/Makefile.in.in, which I presume comes from gettext.
53093         * doc/gnulib-tool.texi: s/can not/cannot/
53094         * doc/posix-functions/accept.texi (accept): Likewise.
53095         * doc/posix-functions/socket.texi (socket): Likewise.
53096         * lib/mbrtowc.c: Likewise.
53098         maint.mk: prohibit use of "can not"
53099         * top/maint.mk (sc_prohibit_can_not): New rule.
53100         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
53102 2011-04-09  Bruno Haible  <bruno@clisp.org>
53104         careadlinkat: Guard against misuse of careadlinkatcwd.
53105         * lib/careadlinkat.c: Include <stdlib.h>.
53106         (careadlinkatcwd): Check that the fd argument is as expected.
53108 2011-04-09  Bruno Haible  <bruno@clisp.org>
53110         careadlinkat: Use common coding style.
53111         * lib/careadlinkat.c: Move gnulib includes after system includes.
53113 2011-04-09  Bruno Haible  <bruno@clisp.org>
53115         careadlinkat: Clarify specification.
53116         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
53117         (careadlinkatcwd): Add comment.
53118         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
53120 2011-04-09  Bruno Haible  <bruno@clisp.org>
53122         areadlinkat: Avoid link error on many platforms.
53123         * modules/areadlinkat (Depends-on): Add areadlink.
53125 2011-04-09  Bruno Haible  <bruno@clisp.org>
53127         allocator, careadlinkat: Fix double-inclusion guard.
53128         * lib/allocator.h: Fix double-inclusion guard.
53129         * lib/careadlinkat.h: Likewise.
53131 2011-04-09  Bruno Haible  <bruno@clisp.org>
53133         relocatable-prog-wrapper: Update after module 'areadlink' changed.
53134         * lib/relocwrapper.c: Update dependencies hierarchy.
53135         * build-aux/install-reloc: Update list of files to be compiled.
53136         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
53137         lib/allocator.[hc].
53139 2011-04-08  Eric Blake  <eblake@redhat.com>
53141         strftime: silence gnulib-tool warning
53142         * modules/strftime-tests (Depends-on): Drop automatic dependency.
53144 2011-04-08  Bruno Haible  <bruno@clisp.org>
53146         verify: Fix syntax error with GCC 4.6 in C++ mode.
53147         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
53148         (HAVE_STATIC_ASSERT): New macro.
53149         (verify_true, verify): Use 'static_assert' if it is supported and
53150         '_Static_assert' is not supported.
53152 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
53154         allocator: New module.
53155         * modules/allocator, lib/allocator.c: New files.
53156         * lib/allocator.h (stdlib_allocator): New decl.
53157         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
53158         Remove.  Do not include <stdlib.h>.
53159         (careadlinkat): Use stdlib_allocator instead of rolling our own.
53160         * modules/careadlinkat (Files): Remove lib/allocator.h.
53161         (Depends-on): Add allocator.
53163         stdlib: let modules use system malloc, realloc
53164         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
53165         if !_GL_USE_STDLIB_ALLOC.
53166         (malloc, realloc): Limit this change to a smaller scope.
53168         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
53169         (malloc, realloc): Don't #undef; no longer needed.
53170         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53171         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53172         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
53173         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53174         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53175         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53176         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53177         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
53179         careadlinkat: rename members to avoid problem
53180         * lib/allocator.h (struct allocator): Rename members from
53181         malloc/realloc to allocate/reallocate, to avoid problems if malloc
53182         and realloc are #define'd.  Reported by Eric Blake in
53183         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
53184         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
53186 2011-04-08  Eric Blake  <eblake@redhat.com>
53188         nonblocking: reduce dependency
53189         * tests/test-nonblocking.c: Only test sockets when in use.
53190         * modules/nonblocking-tests (Depends-on): Drop socket.
53191         (Makefile.am): Link even if sockets are not present.
53192         * modules/pipe2-tests (Makefile.am): Likewise.
53193         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
53195         pipe2: fix O_NONBLOCK support on mingw
53196         * modules/pipe2 (Depends-on): Add nonblocking.
53197         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
53198         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
53199         * tests/test-nonblocking.c (main): Likewise.
53200         * modules/pipe2-tests (Makefile.am): Avoid link failure.
53202         fcntl-h: fix O_ACCMODE on cygwin
53203         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
53204         * lib/fcntl.in.h (O_ACCMODE): Fix it.
53206         pipe-filter: drop O_NONBLOCK workarounds
53207         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
53208         * modules/pipe-filter-ii (Depends-on): Likewise.
53209         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
53211         nonblocking: provide O_NONBLOCK for mingw
53212         * modules/nonblocking (Depends-on): Add open.
53213         (configure.ac): Set new witness macro.
53214         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
53215         * modules/fcntl-h (Makefile.am): Substitute it.
53216         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
53217         nonblocking module is in use.
53218         * lib/nonblocking.c: Adjust portability test.
53219         * lib/open.c (open): Don't let native open see gnulib flag.
53220         * tests/test-fcntl-h.c (main): Enhance test.
53221         * tests/test-open.h (test_open): Likewise.
53222         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
53224         careadlinkat: fix compilation error on mingw
53225         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
53226         within struct allocator.
53228 2011-04-06  Eric Blake  <eblake@redhat.com>
53230         binary-io: relicense under LGPLv2+
53231         * modules/binary-io (License): Relax to LGPLv2+.
53232         Requested for libvirt, and required by pipe2.
53234 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
53236         verify: use _Static_assert if available
53237         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
53238         (verify_true, verify): Use it if available.  This generates better
53239         diagnostics with GCC 4.6.0 and later.
53241 2011-04-05  Bruno Haible  <bruno@clisp.org>
53243         Remove leftover generated .h files after config.status changed.
53245         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
53246         GL_GENERATE_ALLOCA_H.
53247         * modules/alloca-opt (Makefile.am): Remove alloca.h if
53248         GL_GENERATE_ALLOCA_H evaluates to false.
53250         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
53251         GL_GENERATE_ARGZ_H.
53252         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
53253         evaluates to false.
53255         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
53256         GL_GENERATE_BYTESWAP_H.
53257         * modules/byteswap (Makefile.am): Remove byteswap.h if
53258         GL_GENERATE_BYTESWAP_H evaluates to false.
53260         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
53261         GL_GENERATE_ERRNO_H.
53262         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
53263         evaluates to false.
53265         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
53266         GL_GENERATE_FLOAT_H.
53267         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
53268         evaluates to false.
53270         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
53271         GL_GENERATE_FNMATCH_H.
53272         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
53273         GL_GENERATE_FNMATCH_H evaluates to false.
53275         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
53276         GL_GENERATE_GLOB_H.
53277         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
53278         evaluates to false.
53280         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
53281         automake conditional GL_GENERATE_ICONV_H.
53282         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
53283         evaluates to false.
53285         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
53286         GL_GENERATE_NETINET_IN_H.
53287         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
53288         GL_GENERATE_NETINET_IN_H evaluates to false.
53290         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
53291         conditional GL_GENERATE_PTHREAD_H.
53292         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
53293         * modules/pthread (Makefile.am): Remove pthread.h if
53294         GL_GENERATE_PTHREAD_H evaluates to false.
53296         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
53297         GL_GENERATE_SCHED_H.
53298         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
53299         evaluates to false.
53301         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
53302         conditional GL_GENERATE_SELINUX_CONTEXT_H.
53303         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
53304         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
53306         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
53307         GL_GENERATE_STDARG_H.
53308         * modules/stdarg (Makefile.am): Remove stdarg.h if
53309         GL_GENERATE_STDARG_H evaluates to false.
53311         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
53312         GL_GENERATE_STDBOOL_H.
53313         * modules/stdbool (Makefile.am): Remove stdbool.h if
53314         GL_GENERATE_STDBOOL_H evaluates to false.
53316         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
53317         conditional GL_GENERATE_STDDEF_H.
53318         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
53319         * modules/stddef (Makefile.am): Remove stddef.h if
53320         GL_GENERATE_STDDEF_H evaluates to false.
53322         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
53323         GL_GENERATE_STDINT_H.
53324         * modules/stdint (Makefile.am): Remove stdint.h if
53325         GL_GENERATE_STDINT_H evaluates to false.
53327         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
53328         GL_GENERATE_SYSEXITS_H.
53329         * modules/sysexits (Makefile.am): Remove sysexits.h if
53330         GL_GENERATE_SYSEXITS_H evaluates to false.
53332         Reported by Karl Berry and Ralf Wildenhues.
53334 2011-04-05  Bruno Haible  <bruno@clisp.org>
53336         Ensure to rebuild generated .h files when config.status has changed.
53337         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
53338         config.status.
53339         * modules/ctype (Makefile.am): Likewise.
53340         * modules/dirent (Makefile.am): Likewise.
53341         * modules/errno (Makefile.am): Likewise.
53342         * modules/fcntl-h (Makefile.am): Likewise.
53343         * modules/float (Makefile.am): Likewise.
53344         * modules/getopt-posix (Makefile.am): Likewise.
53345         * modules/glob (Makefile.am): Likewise.
53346         * modules/iconv-h (Makefile.am): Likewise.
53347         * modules/inttypes (Makefile.am): Likewise.
53348         * modules/langinfo (Makefile.am): Likewise.
53349         * modules/locale (Makefile.am): Likewise.
53350         * modules/math (Makefile.am): Likewise.
53351         * modules/netdb (Makefile.am): Likewise.
53352         * modules/netinet_in (Makefile.am): Likewise.
53353         * modules/poll-h (Makefile.am): Likewise.
53354         * modules/pthread (Makefile.am): Likewise.
53355         * modules/pty (Makefile.am): Likewise.
53356         * modules/sched (Makefile.am): Likewise.
53357         * modules/search (Makefile.am): Likewise.
53358         * modules/selinux-h (Makefile.am): Likewise.
53359         * modules/signal (Makefile.am): Likewise.
53360         * modules/spawn (Makefile.am): Likewise.
53361         * modules/stdarg (Makefile.am): Likewise.
53362         * modules/stdbool (Makefile.am): Likewise.
53363         * modules/stddef (Makefile.am): Likewise.
53364         * modules/stdint (Makefile.am): Likewise.
53365         * modules/stdio (Makefile.am): Likewise.
53366         * modules/stdlib (Makefile.am): Likewise.
53367         * modules/string (Makefile.am): Likewise.
53368         * modules/strings (Makefile.am): Likewise.
53369         * modules/sys_file (Makefile.am): Likewise.
53370         * modules/sys_ioctl (Makefile.am): Likewise.
53371         * modules/sys_select (Makefile.am): Likewise.
53372         * modules/sys_socket (Makefile.am): Likewise.
53373         * modules/sys_stat (Makefile.am): Likewise.
53374         * modules/sys_time (Makefile.am): Likewise.
53375         * modules/sys_times (Makefile.am): Likewise.
53376         * modules/sys_utsname (Makefile.am): Likewise.
53377         * modules/sys_wait (Makefile.am): Likewise.
53378         * modules/sysexits (Makefile.am): Likewise.
53379         * modules/termios (Makefile.am): Likewise.
53380         * modules/time (Makefile.am): Likewise.
53381         * modules/unistd (Makefile.am): Likewise.
53382         * modules/wchar (Makefile.am): Likewise.
53383         * modules/wctype-h (Makefile.am): Likewise.
53384         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
53386 2011-04-05  Bruno Haible  <bruno@clisp.org>
53388         pipe2: Relicense under LGPLv2+.
53389         * modules/pipe2 (License): Change to LGPLv2+.
53390         Requested by Eric Blake, for libvirt.
53392 2011-04-05  Bruce Korb  <bkorb@gnu.org>
53394         bootstrap: compute gnulib_extra_files after updating build_aux
53395         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
53396         change build_aux or also supply gnulib_extra_files.  Handle correctly.
53398 2011-04-05  Eric Blake  <eblake@redhat.com>
53400         bootstrap: preserve git whitelist item sorting
53401         * build-aux/bootstrap (sort_patterns): New function.
53402         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
53404 2011-04-05  Simon Josefsson  <simon@josefsson.org>
53406         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
53407         sc_space_tab check.
53409 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
53411         areadlink, areadlinkat: rewrite in terms of careadlinkat
53412         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
53413         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
53414         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
53415         (malloc, realloc): Remove #undefs.
53416         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
53417         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
53418         readlink, ssize_t, stdint, unistd.
53419         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
53420         areadlink, stdint.
53422         careadlinkat: new module
53423         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
53424         * modules/careadlinkat: New files, written by me with
53425         a review and feedback from Ben Pfaff in
53426         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
53428 2011-04-01  Bruno Haible  <bruno@clisp.org>
53430         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
53431         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
53432         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
53433         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
53434         Reported by Bruce Korb <bruce.korb@gmail.com>.
53436 2011-04-01  Bruno Haible  <bruno@clisp.org>
53438         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
53439         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
53440         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
53441         * modules/wcpcpy (Depends-on): Add extensions.
53442         * modules/wcpncpy (Depends-on): Likewise.
53443         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
53444         systems.
53445         * doc/posix-functions/wcpncpy.texi: Likewise.
53446         * doc/posix-functions/wcwidth.texi: Likewise.
53448 2011-03-31  Eric Blake  <eblake@redhat.com>
53450         nonblocking: fix mingw test failures
53451         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
53452         non-blocking flag on regular file.
53453         (get_nonblocking_flag): Set errno on invalid fd.
53454         * tests/test-nonblocking.c (main): Avoid test failure on
53455         directories if fchdir is not active.
53456         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
53458 2011-03-31  Bruno Haible  <bruno@clisp.org>
53460         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
53461         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
53462         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
53463         Reported by Simon Josefsson <simon@josefsson.org>.
53465 2011-03-31  Bruno Haible  <bruno@clisp.org>
53466         and Eric Blake  <eblake@redhat.com>
53468         nonblocking: new module
53469         * modules/nonblocking: New module.
53470         * modules/nonblocking-tests: Likewise.
53471         * lib/nonblocking.h: New file.
53472         * lib/nonblocking.c: Likewise.
53473         * tests/test-nonblocking.c: New test.
53474         * lib/ioctl.c (ioctl) [mingw]: Update comment.
53476 2011-03-30  Bruno Haible  <bruno@clisp.org>
53478         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
53479         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
53480         instead of 'printf' format for GCC >= 4.4.
53481         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
53482         (fprintf, printf, vfprintf, vprintf): Declare with
53483         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
53484         the system's vfprintf() function.
53485         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
53487 2011-03-30  Eric Blake  <eblake@redhat.com>
53489         passfd: fix scoping bug
53490         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
53491         before sendmsg/recvmsg.
53493         passfd: standardize coding conventions
53494         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
53495         can be learned at compile time.
53496         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
53497         ifdefs.
53498         (sendfd, recvfd): Follow gnulib code conventions.
53500         passfd: fix incorrect sendmsg arguments
53501         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
53502         incorrect msg_controllen value.
53503         * modules/passfd-tests (Depends-on): Check for alarm.
53504         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
53505         Reported by Bastien ROUCARIES.
53507 2011-03-30  Bruno Haible  <bruno@clisp.org>
53509         c-strcasestr: Relicense under LGPLv2+.
53510         * modules/c-strcasestr (License): Change to LGPLv2+.
53511         Requested by Eric Blake, for libvirt.
53513 2011-03-30  Simon Josefsson  <simon@josefsson.org>
53515         * users.txt: Add libidn2.  Fix libtasn1 link.
53517 2011-03-30  Jim Meyering  <meyering@redhat.com>
53519         tests: readlink* ("",... fails with EINVAL on newer kernels
53520         readlink and readlinkat have typically failed with ENOENT for
53521         the invalid, empty file name,  "".  However, with the advent
53522         of linux-2.6.39, they fail with EINVAL.
53523         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
53524         when operating on the empty file name.
53525         * tests/test-readlink.h (test_readlink): Likewise.
53527 2011-03-29  Bruno Haible  <bruno@clisp.org>
53529         Relicense some modules under LGPLv2+, for libidn2.
53530         * modules/array-mergesort (License): Change to LGPLv2+.
53531         * modules/c-strcaseeq (License): Likewise.
53532         * modules/striconveh (License): Likewise.
53533         * modules/striconveha (License): Likewise.
53534         * modules/uniconv/base (License): Likewise.
53535         * modules/uniconv/u8-conv-from-enc (License): Likewise.
53536         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
53537         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
53538         * modules/unictype/base (License): Likewise.
53539         * modules/unictype/bidiclass-of (License): Likewise.
53540         * modules/unictype/category-M (License): Likewise.
53541         * modules/unictype/category-none (License): Likewise.
53542         * modules/unictype/category-of (License): Likewise.
53543         * modules/unictype/category-test (License): Likewise.
53544         * modules/unictype/category-test-withtable (License): Likewise.
53545         * modules/unictype/combining-class (License): Likewise.
53546         * modules/unictype/joiningtype-of (License): Likewise.
53547         * modules/unictype/scripts (License): Likewise.
53548         * modules/uninorm/base (License): Likewise.
53549         * modules/uninorm/canonical-decomposition (License): Likewise.
53550         * modules/uninorm/composition (License): Likewise.
53551         * modules/uninorm/decompose-internal (License): Likewise.
53552         * modules/uninorm/decomposition-table (License): Likewise.
53553         * modules/uninorm/nfc (License): Likewise.
53554         * modules/uninorm/nfd (License): Likewise.
53555         * modules/uninorm/u32-normalize (License): Likewise.
53556         * modules/unistr/base (License): Likewise.
53557         * modules/unistr/u32-cpy (License): Likewise.
53558         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
53559         * modules/unistr/u32-to-u8 (License): Likewise.
53560         * modules/unistr/u32-uctomb (License): Likewise.
53561         * modules/unistr/u8-check (License): Likewise.
53562         * modules/unistr/u8-mblen (License): Likewise.
53563         * modules/unistr/u8-mbtouc (License): Likewise.
53564         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
53565         * modules/unistr/u8-mbtoucr (License): Likewise.
53566         * modules/unistr/u8-prev (License): Likewise.
53567         * modules/unistr/u8-strlen (License): Likewise.
53568         * modules/unistr/u8-to-u32 (License): Likewise.
53569         * modules/unistr/u8-uctomb (License): Likewise.
53570         * modules/unitypes (License): Likewise.
53571         Requested by Simon Josefsson.
53573 2011-03-29  Simon Josefsson  <simon@josefsson.org>
53575         lib-symbol-visibility: Add a notice.
53576         * modules/lib-symbol-visibility (Notice): New field.
53578 2011-03-29  Bruno Haible  <bruno@clisp.org>
53580         getaddrinfo: Doc fix.
53581         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
53582         section "fixed in Gnulib".
53584 2011-03-28  Simon Josefsson  <simon@josefsson.org>
53586         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
53587         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
53589 2011-03-26  Bruno Haible  <bruno@clisp.org>
53591         unictype/property-byname: Reduce the number of load-time relocations.
53592         * lib/unictype/pr_byname.c: Include <stdlib.h>.
53593         (UC_PROPERTY_INDEX_*): New enumeration values.
53594         (uc_property_byname): Convert an index from the lookup table to an
53595         uc_property_t.
53596         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
53597         values.
53599 2011-03-26  Bruno Haible  <bruno@clisp.org>
53601         unictype/property-byname: Allow omitted word separators and aliases.
53602         * lib/unictype/pr_byname.gperf: Add property names without word
53603         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
53604         for 'space'.
53606 2011-03-26  Bruno Haible  <bruno@clisp.org>
53608         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
53609         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
53610         also hyphens to space.
53611         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
53612         without spaces.
53613         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
53615 2011-03-26  Bruno Haible  <bruno@clisp.org>
53617         unictype/joiningtype-byname: Recognize long names as well.
53618         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
53619         a long name.
53620         * lib/unictype/joiningtype_byname.c: Include <string.h>,
53621         unictype/joiningtype_byname.h.
53622         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
53623         * lib/unictype/joiningtype_byname.gperf: New file.
53624         * modules/unictype/joiningtype-byname (Files): Add
53625         lib/unictype/joiningtype_byname.gperf.
53626         (Depends-on): Add gperf.
53627         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
53628         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
53629         long names.
53631         Tests for module 'unictype/joiningtype-longname'.
53632         * modules/unictype/joiningtype-longname-tests: New file.
53633         * tests/unictype/test-joiningtype_longname.c: New file.
53635         New module 'unictype/joiningtype-longname'.
53636         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
53637         * lib/unictype/joiningtype_longname.c: New file.
53638         * modules/unictype/joiningtype-longname: New file.
53639         * modules/unictype/joiningtype-all (Depends-on): Add
53640         unictype/joiningtype-longname.
53642 2011-03-26  Bruno Haible  <bruno@clisp.org>
53644         unictype/bidiclass-byname: Recognize long names as well.
53645         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
53646         name.
53647         * lib/unictype/bidi_byname.c: Include <string.h>,
53648         unictype/bidi_byname.h.
53649         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
53650         * lib/unictype/bidi_byname.gperf: New file.
53651         * modules/unictype/bidiclass-byname (Files): Add
53652         lib/unictype/bidi_byname.gperf.
53653         (Depends-on): Add gperf.
53654         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
53655         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
53656         long names.
53658         Tests for module 'unictype/bidiclass-longname'.
53659         * modules/unictype/bidiclass-longname-tests: New file.
53660         * tests/unictype/test-bidi_longname.c: New file.
53662         New module 'unictype/bidiclass-longname'.
53663         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
53664         * lib/unictype/bidi_longname.c: New file.
53665         * modules/unictype/bidiclass-longname: New file.
53666         * modules/unictype/bidiclass-all (Depends-on): Add
53667         unictype/bidiclass-longname.
53669 2011-03-26  Bruno Haible  <bruno@clisp.org>
53671         unictype/bidi*: Rename modules.
53672         * modules/unictype/bidiclass-all: Renamed from
53673         modules/unictype/bidicategory-all.
53674         * modules/unictype/bidiclass-name: Renamed from
53675         modules/unictype/bidiclass-name.
53676         (Description): Update.
53677         * modules/unictype/bidiclass-name-tests: Renamed from
53678         modules/unictype/bidicategory-name-tests.
53679         * modules/unictype/bidiclass-byname: Renamed from
53680         modules/unictype/bidicategory-byname.
53681         (Description): Update.
53682         * modules/unictype/bidiclass-byname-tests: Renamed from
53683         modules/unictype/bidicategory-byname-tests.
53684         * modules/unictype/bidiclass-of: Renamed from
53685         modules/unictype/bidicategory-of.
53686         (Description): Update.
53687         * modules/unictype/bidiclass-of-tests: Renamed from
53688         modules/unictype/bidicategory-of-tests.
53689         * modules/unictype/bidiclass-test: Renamed from
53690         modules/unictype/bidicategory-test.
53691         (Description): Update.
53692         * modules/unictype/bidiclass-test-tests: Renamed from
53693         modules/unictype/bidicategory-test-tests.
53694         * modules/unictype/bidicategory-all: New file, a simple redirection.
53695         * modules/unictype/bidicategory-name: Likewise.
53696         * modules/unictype/bidicategory-byname: Likewise.
53697         * modules/unictype/bidicategory-of: Likewise.
53698         * modules/unictype/bidicategory-test: Likewise.
53699         * modules/unictype/property-bidi-* (Dependencies): Update.
53700         * lib/unictype/bidi_*.c: Update comment.
53702 2011-03-26  Bruno Haible  <bruno@clisp.org>
53704         unictype/bidi*: Rename functions, part 2.
53705         * modules/unictype/bidicategory-name (configure.ac): Update required
53706         libunistring version.
53707         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
53709 2011-03-25  Bruno Haible  <bruno@clisp.org>
53711         New module 'unictype/combining-class-all'.
53712         * modules/unictype/combining-class-all: New file.
53714         Tests for module 'unictype/combining-class-byname'.
53715         * modules/unictype/combining-class-byname-tests: New file.
53716         * tests/unictype/test-combiningclass_byname.c: New file.
53718         New module 'unictype/combining-class-byname'.
53719         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
53720         * lib/unictype/combiningclass_byname.c: New file.
53721         * lib/unictype/combiningclass_byname.gperf: New file.
53722         * modules/unictype/combining-class-byname: New file.
53724         Tests for module 'unictype/combining-class-longname'.
53725         * modules/unictype/combining-class-longname-tests: New file.
53726         * tests/unictype/test-combiningclass_longname.c: New file.
53728         New module 'unictype/combining-class-longname'.
53729         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
53730         * lib/unictype/combiningclass_longname.c: New file.
53731         * modules/unictype/combining-class-longname: New file.
53733         Tests for module 'unictype/combining-class-name'.
53734         * modules/unictype/combining-class-name-tests: New file.
53735         * tests/unictype/test-combiningclass_name.c: New file.
53737         New module 'unictype/combining-class-name'.
53738         * lib/unictype.in.h (uc_combining_class_name): New declaration.
53739         * lib/unictype/combiningclass_name.c: New file.
53740         * modules/unictype/combining-class-name: New file.
53742 2011-03-25  Bruno Haible  <bruno@clisp.org>
53744         unictype/combining-class: Rename source files.
53745         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
53746         of unictype/combining.h.
53747         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
53748         Update.
53749         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
53750         * modules/unictype/combining-class (Description): Fix.
53751         (Files, Makefile.am): Update.
53752         * tests/unictype/test-combiningclass.c: Renamed from
53753         tests/unictype/test-combining.c.
53754         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
53756 2011-03-25  Bruno Haible  <bruno@clisp.org>
53758         unictype: Update list of canonical combining classes.
53759         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
53761 2011-03-25  Bruno Haible  <bruno@clisp.org>
53763         unictype/category-byname: Recognize long names as well.
53764         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
53765         a long name.
53766         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
53767         unictype/categ_byname.h.
53768         (UC_CATEGORY_INDEX_*): New enumeration values.
53769         (uc_general_category_byname): Use uc_general_category_lookup and
53770         convert from index to value.
53771         * lib/unictype/categ_byname.gperf: New file.
53772         * modules/unictype/category-byname (Files): Add
53773         lib/unictype/categ_byname.gperf.
53774         (Depends-on): Add gperf.
53775         (Makefile.am): Add rule for generating unictype/categ_byname.h.
53776         * tests/unictype/test-categ_byname.c (main): Test the recognition of
53777         long names.
53779         Tests for module 'unictype/category-longname'.
53780         * modules/unictype/category-longname-tests: New file.
53781         * tests/unictype/test-categ_longname.c: New file.
53783         New module 'unictype/category-longname'.
53784         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
53785         * lib/unictype/categ_longname.c: New file.
53786         * modules/unictype/category-longname: New file.
53787         * modules/unictype/category-all (Depends-on): Add it.
53789 2011-03-25  Bruno Haible  <bruno@clisp.org>
53791         Tests for module 'unictype/category-LC'.
53792         * modules/unictype/category-LC-tests: New file.
53793         * tests/unictype/test-categ_LC.c: New file, automatically generated.
53795         New module 'unictype/category-LC'.
53796         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
53797         (UC_CATEGORY_LC): New declaration.
53798         (UC_CASED_LETTER): New macro.
53799         * lib/gen-uni-tables.c (is_category_LC): New function.
53800         (output_categories): Also handle category LC.
53801         (UC_CATEGORY_MASK_LC): New enumeration value.
53802         (general_category_byname): Also handle category LC.
53803         * lib/unictype/categ_LC.c: New file.
53804         * lib/unictype/categ_LC.h: New file, automatically generated.
53805         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
53806         category LC.
53807         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
53808         * modules/unictype/category-LC: New file.
53809         * modules/unictype/category-byname (Depends-on): Add
53810         unictype/category-LC.
53811         * modules/unictype/category-all (Depends-on): Likewise.
53813 2011-03-25  Eric Blake  <eblake@redhat.com>
53815         xmalloc: revert yesterday's regression
53816         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
53817         realloc's underlying behavior (allowing allocation of zero-size
53818         objects, especially if malloc-gnu is also in use).
53820 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
53822         maint.mk: add missing version to VC-tag
53823         * top/maint.mk: git tag was missing actual tag name; add it.
53825         valgrind: do leak checking, and exit with code 1 on error (not 0)
53826         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
53827         to VALGRIND.
53829 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
53831         posix-modules: say what it does.
53832         * posix-modules: Add a line to the --help output saying what it does.
53834 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
53836         xmalloc: Do not leak if underlying realloc is C99 compatible.
53837         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
53838         This avoids a leak on C99-based systems.  See
53839         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
53841 2011-03-24  Eric Blake  <eblake@redhat.com>
53843         realloc: document portability problem
53844         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
53845         passing 0 size to realloc.
53847 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
53849         doc: update users.txt
53850         * users.txt: Add cvsps, tmpwatch
53852 2011-03-23  Matt Rice  <ratmice@gmail.com>
53854         doc: update users.txt
53855         * users.txt: Add gdb.
53857 2011-03-23  Jim Meyering  <meyering@redhat.com>
53859         doc: update users.txt
53860         Looking through matches up to the following URL (there are still
53861         several more pages), I found several projects that use gnulib:
53862         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
53863         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
53864         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
53866 2011-03-22  Bruno Haible  <bruno@clisp.org>
53868         unictype/bidi*: Rename functions.
53869         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
53870         uc_bidi_class, uc_is_bidi_class): New declarations.
53871         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
53872         uc_bidi_category_byname.
53873         (uc_bidi_category_byname): New function.
53874         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
53875         u_bidi_category_name.
53876         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
53877         (uc_bidi_category_name): New function.
53878         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
53879         uc_bidi_category.
53880         (uc_bidi_category): New function.
53881         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
53882         uc_is_bidi_category. Invoke uc_bidi_class.
53883         (uc_is_bidi_category): New function.
53884         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
53885         instead of uc_bidi_category_byname.
53886         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
53887         instead of uc_bidi_category_name.
53888         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
53889         uc_bidi_category.
53890         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
53891         instead of uc_is_bidi_category.
53893 2011-03-21  Bruno Haible  <bruno@clisp.org>
53895         New module 'unictype/joininggroup-all'.
53896         * modules/unictype/joininggroup-all: New file.
53898         Tests for module 'unictype/joininggroup-of'.
53899         * modules/unictype/joininggroup-of-tests: New file.
53900         * tests/unictype/test-joininggroup_of.c: New file.
53901         * tests/unictype/test-joininggroup_of.h: New file, automatically
53902         generated by gen-uni-tables.
53904         New module 'unictype/joininggroup-of'.
53905         * modules/unictype/joininggroup-of: New file.
53906         * lib/unictype/joininggroup_of.c: New file.
53907         * lib/unictype/joininggroup_of.h: New file, automatically generated by
53908         gen-uni-tables.
53910         Tests for module 'unictype/joininggroup-byname'.
53911         * modules/unictype/joininggroup-byname-tests: New file.
53912         * tests/unictype/test-joininggroup_byname.c: New file.
53914         New module 'unictype/joininggroup-byname'.
53915         * modules/unictype/joininggroup-byname: New file.
53916         * lib/unictype/joininggroup_byname.c: New file.
53917         * lib/unictype/joininggroup_byname.gperf: New file.
53919         Tests for module 'unictype/joininggroup-name'.
53920         * modules/unictype/joininggroup-name-tests: New file.
53921         * tests/unictype/test-joininggroup_name.c: New file.
53923         New module 'unictype/joininggroup-name'.
53924         * modules/unictype/joininggroup-name: New file.
53925         * lib/unictype/joininggroup_name.c: New file.
53926         * lib/unictype/joininggroup_name.h: New file.
53928         New module 'unictype/joiningtype-all'.
53929         * modules/unictype/joiningtype-all: New file.
53931         Tests for module 'unictype/joiningtype-of'.
53932         * modules/unictype/joiningtype-of-tests: New file.
53933         * tests/unictype/test-joiningtype_of.c: New file.
53934         * tests/unictype/test-joiningtype_of.h: New file, automatically
53935         generated by gen-uni-tables.
53937         New module 'unictype/joiningtype-of'.
53938         * modules/unictype/joiningtype-of: New file.
53939         * lib/unictype/joiningtype_of.c: New file.
53940         * lib/unictype/joiningtype_of.h: New file, automatically generated by
53941         gen-uni-tables.
53943         Tests for module 'unictype/joiningtype-byname'.
53944         * modules/unictype/joiningtype-byname-tests: New file.
53945         * tests/unictype/test-joiningtype_byname.c: New file.
53947         New module 'unictype/joiningtype-byname'.
53948         * modules/unictype/joiningtype-byname: New file.
53949         * lib/unictype/joiningtype_byname.c: New file.
53951         Tests for module 'unictype/joiningtype-name'.
53952         * modules/unictype/joiningtype-name-tests: New file.
53953         * tests/unictype/test-joiningtype_name.c: New file.
53955         New module 'unictype/joiningtype-name'.
53956         * modules/unictype/joiningtype-name: New file.
53957         * lib/unictype/joiningtype_name.c: New file.
53959         unictype: Add support for Arabic shaping properties.
53960         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
53961         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
53962         declarations.
53963         (UC_JOINING_GROUP_*): New enumeration values.
53964         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
53965         declarations.
53966         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
53967         (unicode_joining_type): New variable.
53968         (UC_JOINING_GROUP_*): New enumeration values.
53969         (unicode_joining_group): New variable.
53970         (fill_arabicshaping, joining_type_as_c_identifier,
53971         output_joining_type_test, output_joining_type,
53972         joining_group_as_c_identifier, output_joining_group_test,
53973         output_joining_group): New functions.
53974         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
53975         fill_arabicshaping and output_joining_type_test, output_joining_type,
53976         output_joining_group_test, output_joining_group.
53977         Reported by Simon Josefsson.
53979 2011-03-21  Jim Meyering  <meyering@redhat.com>
53981         strftime: fix a bug in yesterday's change
53982         * lib/strftime.c (add): Accommodate width's initial value of -1.
53983         Otherwise, nstrftime would copy uninitialized data into
53984         the result buffer.
53986 2011-03-21  Jim Meyering  <meyering@redhat.com>
53988         tests: add strftime-tests module
53989         * tests/test-strftime.c: New file.
53990         * modules/strftime-tests: New module.
53992 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
53994         strftime: don't assume a byte count fits in 'int'
53995         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
53996         found this problem by static analysis, using gcc -Wstrict-overflow
53997         (GCC 4.5.2, x86-64).  This reported an optimization that depended
53998         on an integer overflow having undefined behavior, but it turns out
53999         that the argument is a size, which might not fit in 'int' anyway,
54001 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54003         stdio: don't require ignore_value around fwrite
54005         This patch works around libc bug 11959
54006         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
54007         Without this patch, applications must often write
54008         ignore_value (fwrite (...)) even though the ignore_value is
54009         not helpful here.  It's common to write many objects, using
54010         fwrite/printf/etc., and then use ferror to detect output error.
54012         I considered making this patch optional, but decided against it,
54013         because libc is obviously being inconsistent here: there is no
54014         reason libc should insist that user code must inspect fwrite
54015         return's value without also insisting that it inspect printf's,
54016         putchar's, etc.  If user code wants to have a strict style where
54017         all these functions' values are checked (so that ferror need not
54018         be checked), we could add support for that style in a new gnulib
54019         module, but in the meantime it's better to be consistent and to
54020         support common usage.
54022         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
54023         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
54024         that we are compiling in checking mode, and if not C++, and
54025         if not already wrapping fwrite for some other reason.
54026         (fwrite): #define to rpl_fwrite if the latter is defined.
54028 2011-03-20  Bruno Haible  <bruno@clisp.org>
54030         verror: Fix compilation error introduced on 2011-02-13.
54031         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
54032         instead of __attribute__.
54033         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54035 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54036             Bruno Haible  <bruno@clisp.org>
54038         socklen: do not depend on sys_socket
54039         While trying to modify Emacs to use gnulib's socklen module,
54040         I discovered a circular dependency: socklen depends on sys_socket
54041         and vice versa.  Emacs can use socklen, but it does not need
54042         sys_socket because it has its own substitute for sys/socket.h.
54043         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
54044         gl_TYPE_SOCKLEN_T.
54045         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
54046         gl_PREREQ_SYS_H_SOCKET.
54047         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
54048         gl_PREREQ_SYS_H_SOCKET.
54049         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
54050         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
54051         * modules/socklen (Depends-on): Do not depend on sys_socket.
54052         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
54054 2011-03-20  Jim Meyering  <meyering@redhat.com>
54056         maint.mk: sort file names *after* new transformation
54057         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
54058         prefix would have led to an unwarranted failure in GNU parted.
54059         Sort after that transformation.
54061 2011-03-19  Jim Meyering  <meyering@redhat.com>
54063         maint.mk: fix po-file syntax-check rule
54064         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
54065         Patch by Bruno Haible.
54067 2011-03-19  Bruno Haible  <bruno@clisp.org>
54069         socklen: Update comment.
54070         * m4/socklen.m4: Update comment about platforms.
54072 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54073             Bruno Haible  <bruno@clisp.org>
54075         inet_ntop, inet_pton: Simplify.
54076         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
54077         documented to provide socklen_t and we already depend on sys_socket.
54078         * modules/inet_pton (Depends-on): Likewise.
54079         * lib/arpa_inet.in.h: Adjust comment.
54081 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54082             Bruno Haible  <bruno@clisp.org>
54084         netdb: Simplify.
54085         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
54086         documented to provide socklen_t and we already depend on sys_socket.
54087         * lib/netdb.in.h: Adjust comment.
54089 2011-03-19  Bruno Haible  <bruno@clisp.org>
54091         sys_socket, netdb: Document problem with socklen_t.
54092         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
54093         platforms.
54094         * doc/posix-headers/netdb.texi: Likewise.
54096 2011-03-18  Eric Blake  <eblake@redhat.com>
54098         maint.mk: let po check work in VPATH build
54099         * top/maint.mk (po_file): Allow cfg.mk override.
54100         (sc_po_check): Allow VPATH use.
54101         Reported by Jiri Denemark.
54103 2011-03-16  Jim Meyering  <meyering@redhat.com>
54105         maint.mk: allow fine-grained syntax-check exclusion via Make variables
54106         Before, you would have had to create one .x-sc_ file per rule in order
54107         to exempt offending files.  Now, you may instead use a Make variable --
54108         usually defined in cfg.mk -- whose name identifies the affected rule.
54109         * top/maint.mk (_sc_excl): Define.
54110         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
54111         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
54113 2011-03-13  Bruno Haible  <bruno@clisp.org>
54115         ignore-value tests: Avoid warnings.
54116         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
54117         empty for gcc < 3.4.
54119 2011-03-13  Bruno Haible  <bruno@clisp.org>
54121         passfd: Fix link error on Solaris.
54122         * modules/passfd (Description): Correct.
54123         (Depends-on): Add socketlib.
54124         (Link): New section.
54125         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
54127 2011-03-13  Bruno Haible  <bruno@clisp.org>
54129         passfd: Fix link error on AIX 5.2.
54130         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
54132 2011-03-13  Bruno Haible  <bruno@clisp.org>
54134         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
54135         * lib/sys_socket.in.h: Include <stddef.h>.
54136         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
54137         CMSG_FIRSTHDR. Remove unused variable.
54139 2011-03-13  Bruno Haible  <bruno@clisp.org>
54141         passfd: Fix compilation error on OpenBSD.
54142         * lib/passfd.c: Include <sys/uio.h>.
54144 2011-03-13  Bruno Haible  <bruno@clisp.org>
54146         passfd test: Fix warnings.
54147         * tests/test-passfd.c: Include <sys/wait.h>.
54148         (main): Fix typo.
54150 2011-03-13  Bruno Haible  <bruno@clisp.org>
54152         passfd module, part 4, tweaks.
54153         * tests/test-passfd.c: Reorder includes.
54154         (main): Fix perror and printf calls.
54156 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54158         passfd module, part 4.
54159         * modules/passfd-tests: New file.
54160         * tests/test-passfd.c: New file.
54162 2011-03-13  Jim Meyering  <meyering@redhat.com>
54164         Makefile: rely on GNU make; derive syntax-check rule names
54165         Rather than requiring that each sc_ rule be listed as a dependent
54166         of "check", use features of GNU make to derive the list.
54167         * Makefile (syntax-check-rules): Define.
54168         (check): Depend on the new variable, not the hard-coded list.
54170 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
54171             Bruno Haible  <bruno@clisp.org>
54173         passfd module, part 3.
54174         * lib/passfd.h (recvfd): Add a flags argument.
54175         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
54176         (recvfd): Add a flags argument.
54177         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
54178         exists.
54179         * modules/passfd (Depends-on): Add cloexec.
54180         Suggested by Eric Blake.
54182 2011-03-13  Bruno Haible  <bruno@clisp.org>
54184         passfd module, part 2, tweaks.
54185         * modules/passfd (Files): Reorder.
54186         (Depends-on): Remove errno.
54187         (Include): Remove <sys/socket.h>, <sys/un.h>.
54188         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
54189         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
54190         specification header. Include <sys/socket.h> always. Don't include
54191         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
54192         (sendfd): Clarify that it sets errno when it fails.
54193         (recvfd): Fix specification.
54195 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54197         passfd module, part 2.
54198         * modules/passfd: New file.
54199         * lib/passfd.h: New file.
54200         * lib/passfd.c: New file.
54202 2011-03-12  Bruno Haible  <bruno@clisp.org>
54204         wcswidth, mbswidth: Avoid integer overflow.
54205         * lib/wcswidth.c: Include <limits.h>.
54206         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
54207         * lib/mbswidth.c: Include <limits.h>.
54208         (mbsnwidth): Avoid 'int' overflow.
54209         Reported by Jim Meyering.
54211 2011-03-12  Bruno Haible  <bruno@clisp.org>
54213         futimens, utimensat: Avoid endless recursion on Solaris 10.
54214         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
54215         Solaris.
54216         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
54217         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
54219 2011-03-11  Jim Meyering  <meyering@redhat.com>
54221         maint.mk: relax a regexp to accommodate other formatting styles
54222         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
54223         between "ngettext" and the following "(".
54225 2011-03-11  Pádraig Brady  <P@draigBrady.com>
54227         maint.mk: suppress a false positive warning
54228         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
54229         diagnostics are marked with ngettext.
54231 2011-03-10  Eric Blake  <eblake@redhat.com>
54233         wchar: add explicit dependencies, for Tru64
54234         * modules/mbmemcasecoll (Depends-on): Add wchar.
54235         * modules/mbtowc (Depends-on): Likewise.
54236         * modules/vasnprintf (Depends-on): Likewise.
54237         * modules/unistdio/u-printf-args (Depends-on): Likewise.
54238         * modules/wctomb (Depends-on): Likewise.
54239         Reported by Peter O'Gorman.
54241 2011-03-08  Bruno Haible  <bruno@clisp.org>
54243         passfd module, part 1, tweaks.
54244         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
54245         Improve indentation. Improve AC_MSG_CHECKING messages.
54246         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
54247         gl_SOCKET_FAMILIES.
54249 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54251         passfd module, part 1.
54252         * m4/afunix.m4: New file.
54253         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
54254         sockets.
54256 2011-03-08  Bruno Haible  <bruno@clisp.org>
54258         regex-quote: New API.
54259         * lib/regex-quote.h: Include <stdbool.h>.
54260         (struct regex_quote_spec): New type.
54261         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
54262         New declarations.
54263         (regex_quote_length, regex_quote_copy, regex_quote): Take a
54264         'const struct regex_quote_spec *' argument.
54265         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
54266         (pcre_special): New constant.
54267         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
54268         New functions.
54269         (regex_quote_length, regex_quote_copy, regex_quote): Take a
54270         'const struct regex_quote_spec *' argument.
54271         * modules/regex-quote (Depends-on): Add stdbool.
54272         * tests/test-regex-quote.c (check): Update for new API. Add test for
54273         anchored results.
54274         * NEWS: Mention the API change.
54275         Reported by Reuben Thomas and Eric Blake.
54277 2011-03-06  Bruno Haible  <bruno@clisp.org>
54279         regex-quote: Fix creation of POSIX extended regular expressions.
54280         * lib/regex-quote.c (ere_special): Add grouping and alternation
54281         operators.
54283 2011-03-05  Bruno Haible  <bruno@clisp.org>
54285         doc: Improve doc regarding autopoint vs. gnulib.
54286         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
54287         disable autopoint while running autoreconf.
54288         Suggested by Ralf Wildenhues.
54290 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54292         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
54293         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
54295 2011-03-03  Bruce Korb  <bkorb@gnu.org>
54297         parse-duration: remove xalloc.h dependency
54298         * lib/parse-duration.c (parse_period): handle NULL return from
54299         strdup instead of calling xstrdup().
54300         * modules/parse-duration: remove "xalloc" dependency
54302 2011-03-03  Matthew Booth  <mbooth@redhat.com>
54304         bootstrap: honor m4_base when running aclocal
54305         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
54307 2011-03-02  Jim Meyering  <meyering@redhat.com>
54309         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
54310         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
54311         on request from Matt Booth.
54313 2011-03-01  Eric Blake  <eblake@redhat.com>
54315         test-link: work on Hurd
54316         * tests/test-link.h (test_link): Hurd rejects linking directories
54317         with EISDIR instead of the POSIX-mandated EPERM.
54319 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
54321         stdio: simplify by moving files to printf-posix, sigpipe
54322         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
54323         since this symbol is needed only if printf is replaced.
54324         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
54325         Require gl_ASM_SYMBOL_PREFIX.
54326         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
54327         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
54328         (Depends-on): Add 'raise'.
54329         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
54330         * modules/stdio (Files): Remove lib/stdio-write.c,
54331         m4/asm-underscore.m4.
54332         (Depends-on): Remove 'raise'.
54334         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
54335         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
54336         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
54337         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
54339 2011-02-28  Bruno Haible  <bruno@clisp.org>
54341         localcharset: Assume ANSI C behaviour of free().
54342         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
54343         calling free().
54344         Suggested by Simon Josefsson <simon@josefsson.org>.
54346 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
54347             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
54348             Bruno Haible  <bruno@clisp.org>  (tiny change)
54350         On Cygwin, use /proc file system instead of win32 API.
54351         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
54352         Win32 file names.
54353         (DllMain): Simplify by removing Cygwin specific code.
54354         (find_shared_library_fullname): Use Linux specific implementation also
54355         for Cygwin.
54356         (get_shared_library_fullname): Update accordingly.
54357         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
54358         Win32 file names.
54359         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
54360         Cygwin specific code.
54362 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
54363             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
54365         Fix OpenMP flag detection for various Fortran compilers.
54366         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
54367         OpenMP-conditional compilation construct, to force compile
54368         failure with missing OpenMP flag.
54369         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
54371 2011-02-25  Eric Blake  <eblake@redhat.com>
54373         strstr: expand test coverage
54374         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
54375         compilation.
54376         * tests/test-memmem.c (main): Duplicate tests.
54377         * tests/test-strcasestr.c (main): Likewise.
54378         * tests/test-c-strcasestr.c (main): Likewise.
54380 2011-02-25  Jim Meyering  <meyering@redhat.com>
54382         maint.mk: detect missing-NL-at-EOF, too
54383         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
54384         it also detects when a file lacks a newline at EOF.
54385         (require_exactly_one_NL_at_EOF_): Renamed from
54386         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
54387         since people may well have .x-sc_... file names tied to the
54388         existing name.  Suggested by Eric Blake.
54390 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54392         dirname: move m4/dos.m4 functionality into lib/dosname.h
54394         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
54395         extracts symbols from it, puts them into config.h; but it's much
54396         easier to use the symbols directly.  filename.h already does this,
54397         but it disagrees with dos.m4 in some respects.  This patch
54398         introduces a different include file dosname.h that packages up
54399         dos.m4, and then later we can work on merging filename.h and
54400         dosname.h.  Applications that need only the easy-to-configure
54401         symbols should consider including dosname.h rather than dirname.h.
54402         * NEWS: Mention incompatible changes.
54403         * m4/dos.m4: Remove.
54404         * lib/dosname.h, modules/dosname: New files.
54405         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
54406         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
54407         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
54408         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
54409         Include dosname.h, not dirname.h.
54410         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
54411         Include dosname.h, for definitions of symbols like ISSLASH
54412         that used to be in config.h.
54413         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
54414         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
54415         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54416         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
54417         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
54418         * modules/rmdir (Files): Likewise.
54419         * modules/stat (Files): Likewise.
54420         * modules/unlink (Files): Likewise.
54421         * modules/dirname-lgpl (Depends-on): Add dosname.
54422         * modules/lstat (Depends-on): Likewise.
54423         * modules/openat (Depends-on): Likewise.
54424         * modules/rmdir (Depends-on): Likewise.
54425         * modules/savewd (Depends-on): Likewise.
54426         * modules/stat (Depends-on): Likewise.
54427         * modules/unlink (Depends-on): Likewise.
54428         * modules/openat (Depends-on): Remove dirname-lgpl.
54429         * modules/savewd (Depends-on): Likewise.
54430         * tests/test-dirname.c: Do not use removed symbols like
54431         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
54432         the remaining symbols, e.g., ISSLASH ('\\').
54434 2011-02-25  Eric Blake  <eblake@redhat.com>
54436         strstr: revert patches that introduced bug and pessimization
54437         * lib/str-two-way.h: Add another reference.
54438         (two_way_short_needle, two_way_long_needle): Revert changes from
54439         2011-02-24; they pessimize search speed.
54440         (critical_factorization): Partially revert changes from
54441         2010-06-22; they violate the requirement that the left half of the
54442         needle be smaller than the period of the needle.
54444 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54446         filenamecat: remove unnecessary dependency on dirname-lgpl
54447         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
54448         is no direct dependency, just an indirect one via filenamecat-lgpl.
54450         remove: remove unnecessary use of m4/dos.m4
54451         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
54452         * modules/remove (FILES): Remove m4/dos.m4.
54454         * lib/openat-proc.c: Don't include dirname.h; not needed.
54456         backupfile: remove unnecessary use of m4/dos.m4
54457         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
54458         of its symbols are used by the backupfile code.  backupfile.c does
54459         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
54460         for the rare case of programs that want all their backup file
54461         names to live within 8+3 limits, and dos.m4 doesn't address that.
54462         * modules/backupfile (Files): Remove m4/dos.m4.
54464 2011-02-24  Jim Meyering  <meyering@redhat.com>
54466         strstr: fix a bug whereby strstr would mistakenly return NULL
54467         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
54468         in period calculation.
54469         (two_way_long_needle): Likewise.
54470         The original problem was reported by Mike Stump in
54471         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
54472         Ralf Wildenhues provided the short needle and haystack.
54473         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
54474         Add a more involved test to trigger the bug in two_way_long_needle.
54476 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
54478         gnulib-tool: remove use of bold display in help screen
54479         * gnulib-tool (func_usage): Do not use bold display anymore in the
54480         help screen.  That was just meant to be a temporary emphasis for a
54481         backward-incompatible change.
54483 2011-02-23  Bruno Haible  <bruno@clisp.org>
54485         Fix misindentation of preprocessor directives.
54486         * lib/argp-namefrob.h: Reindent preprocessor directives.
54487         * lib/getopt_int.h (struct _getopt_data): Likewise.
54488         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
54489         * lib/vasnprintf.c (decode_long_double): Likewise.
54490         * tests/test-argmatch.c: Insert blank lines, for clarity.
54491         * tests/test-exclude.c: Likewise.
54493 2011-02-22  Bruno Haible  <bruno@clisp.org>
54495         ioctl: Fix for MacOS X in 64-bit mode.
54496         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
54497         value.
54498         Suggested by Eric Blake.
54499         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
54501 2011-02-22  Jim Meyering  <meyering@redhat.com>
54503         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
54504         * Makefile (sc_cpp_indent_check): Don't limit the check to files
54505         in lib/.
54507 2011-02-22  Eric Blake  <eblake@redhat.com>
54509         maint: avoid any CDPATH issue
54510         * Makefile (sc_cpp_indent_check): Anchor cd argument.
54512         maint: adjust cpp indentation for my modules, as well
54513         * Makefile (sc_cpp_indent_check): Add my name.
54514         * lib/fbufmode.c: Filter through cppi.
54515         * lib/fpurge.c: Likewise.
54516         * lib/freadable.c: Likewise.
54517         * lib/freading.c: Likewise.
54518         * lib/fwritable.c: Likewise.
54519         * lib/fwriting.c: Likewise.
54520         * lib/sigaction.c: Likewise.
54522 2011-02-22  Jim Meyering  <meyering@redhat.com>
54524         maint: adjust cpp indentation to reflect nesting depth
54525         I.e., in a block of code that begins with an unnested "#if",
54526         put one space between the "#" in column 1 and following token.
54527         For example,
54528         -#include <sys/vfs.h>
54529         +# include <sys/vfs.h>
54530         Do this only in .c files that are part of a module I maintain.
54531         * lib/linkat.c: Filter through cppi.
54532         * lib/nanosleep.c: Likewise.
54533         * lib/openat.c: Likewise.
54534         * lib/openat-die.c: Likewise.
54535         * lib/dup3.c: Likewise.
54536         * lib/fchownat.c: Likewise.
54537         * lib/flock.c: Likewise.
54538         * lib/fsync.c: Likewise.
54539         * lib/fts.c: Likewise.
54540         * lib/getpass.c: Likewise.
54541         * lib/gettimeofday.c: Likewise.
54542         * lib/userspec.c: Likewise.
54543         * Makefile (sc_cpp_indent_check): New rule, to check this.
54545 2011-02-22  Bruno Haible  <bruno@clisp.org>
54547         New module 'wctomb'.
54548         * lib/stdlib.in.h (wctomb): New declaration.
54549         * lib/wctomb.c: New file.
54550         * lib/wctomb-impl.h: New file.
54551         * m4/wctomb.m4: New file.
54552         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
54553         REPLACE_WCTOMB.
54554         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
54555         REPLACE_WCTOMB.
54556         * modules/wctomb: New file.
54557         * tests/test-stdlib-c++.cc: Test signature of wctomb.
54558         * doc/posix-functions/wctomb.texi: Mention the new module.
54559         * modules/wctob (Depends-on): Add wctomb.
54561 2011-02-22  Bruno Haible  <bruno@clisp.org>
54563         New module 'mbtowc'.
54564         * lib/stdlib.in.h (mbtowc): New declaration.
54565         * lib/mbtowc.c: New file.
54566         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
54567         * m4/mbtowc.m4: New file.
54568         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
54569         REPLACE_MBTOWC.
54570         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
54571         REPLACE_MBTOWC.
54572         * modules/mbtowc: New file.
54573         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
54574         * doc/posix-functions/mbtowc.texi: Mention the new module.
54575         * modules/btowc (Depends-on): Add mbtowc.
54577 2011-02-22  Bruno Haible  <bruno@clisp.org>
54579         wcrtomb: Add more tests for native Windows platforms.
54580         * tests/test-wcrtomb-w32-1.sh: New file.
54581         * tests/test-wcrtomb-w32-2.sh: New file.
54582         * tests/test-wcrtomb-w32-3.sh: New file.
54583         * tests/test-wcrtomb-w32-4.sh: New file.
54584         * tests/test-wcrtomb-w32-5.sh: New file.
54585         * tests/test-wcrtomb-w32.c: New file.
54586         * modules/wcrtomb-tests (Files): Add them.
54587         (Makefile.am): Arrange to run these tests.
54588         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
54589         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
54591 2011-02-20  Bruno Haible  <bruno@clisp.org>
54593         wcrtomb: Enhance test.
54594         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
54596 2011-02-20  Bruno Haible  <bruno@clisp.org>
54598         mbrtowc: Tiny optimization.
54599         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
54601 2011-02-20  Jim Meyering  <meyering@redhat.com>
54603         test-exclude.c: remove unmatched #endif
54604         * tests/test-exclude.c: Remove stray #endif, left over from
54605         the change of a week ago.
54607 2011-02-19  Jim Meyering  <meyering@redhat.com>
54609         git-version-gen: skip "-dirty" check when appropriate
54610         * build-aux/git-version-gen: Don't run any git commands when the
54611         version string comes from .tarball-version.  Prior to this, we
54612         would run git update-index --refresh even from a just-unpacked
54613         tarball directory, and that could affect a .git/ directory in a
54614         parent of the build directory.  Reported by Mike Frysinger.
54616 2011-02-19  Bruno Haible  <bruno@clisp.org>
54618         unictype/property-byname: Reduce the size of the 'data' segment.
54619         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
54621 2011-02-19  Bruno Haible  <bruno@clisp.org>
54623         unictype/scripts: Reduce the size of the 'data' segment.
54624         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
54625         '%pic'.
54626         * lib/unictype/scripts_byname.gperf: Regenerated.
54628 2011-02-19  Bruno Haible  <bruno@clisp.org>
54630         stdint: Update documentation.
54631         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
54633 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
54635         stdint: omit redundant check for wchar.h
54636         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
54637         always tests whether wchar.h exists, so remove the now-redundant test.
54639 2011-02-18  Bruno Haible  <bruno@clisp.org>
54641         stdint: Cut dependency to module 'wchar'.
54642         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
54643         include the necessary prerequisites.
54644         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
54645         * modules/stdint (Depends-on): Remove wchar.
54646         (Makefile.am): Substitute HAVE_WCHAR_H.
54647         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
54649 2011-02-18  Eric Blake  <eblake@redhat.com>
54651         longlong: skip, rather than fail, on cross-compilation
54652         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
54653         when cross-compiling; regression from 2011-02-16.
54655 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
54657         * NEWS: Mention 2011-02-08 change to stdlib.
54659 2011-02-17  Bruno Haible  <bruno@clisp.org>
54661         getloadavg: Add comments about platforms.
54662         * m4/getloadavg.m4: Add comment.
54663         * lib/getloadavg.c: Likewise.
54665 2011-02-17  Bruno Haible  <bruno@clisp.org>
54667         getloadavg: Fix link error on Solaris 2.6.
54668         * modules/getloadavg (Link): New section.
54669         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
54670         linking test-getloadavg.
54671         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
54672         getloadavg.
54674 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
54676         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
54677         It was 'int', but this doesn't match the IRIX 6.5 manual.
54678         Suggested by Bruno Haible in
54679         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
54681 2011-02-17  Bruno Haible  <bruno@clisp.org>
54683         havelib: Fix comments.
54684         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
54685         change.
54687 2011-02-17  Bruno Haible  <bruno@clisp.org>
54689         havelib: Update config.rpath.
54690         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
54692 2011-02-17  Bruno Haible  <bruno@clisp.org>
54694         getloadavg test: Add some plausibility checks.
54695         * tests/test-getloadavg.c (check_avg): Print a warning when the value
54696         is improbable.
54698 2011-02-16  Eric Blake  <eblake@redhat.com>
54700         maintainer-makefile: make syntax-check a no-op from tarballs
54701         * top/maint.mk (no-vc-detected): New rule.
54702         (local-checks-available): Use it to avoid hanging if someone tries
54703         'make syntax-check' from a tarball.  Also append to any non-syntax
54704         checks already defined in cfg.mk.
54706 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
54708         longlong: tune, particularly for common case of c99
54710         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
54711         or running anything if c99, or if unsigned long long int does not
54712         work.  In either case, we know the answer without further tests.
54713         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
54714         it at most once, and use its results for both long long int and
54715         unsigned long long int.  This is more likely to be efficient in
54716         the common case where the program wants to check for both long
54717         long int and unsigned long long int.
54718         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
54719         since the answer is already known.
54721 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
54723         getloadavg: set errno
54724         * lib/getloadavg.c: Set errno when returning -1.  If no other
54725         error number looks appropriate, set it to ENOSYS if the getloadavg
54726         looks like it can't possibly ever work, ENOTSUP otherwise.
54727         Suggested by Bruno Haible in
54728         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
54730         getloadavg: trim unused parts and speed up 'configure'
54731         * NEWS: Document this.
54732         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
54733         always compiled if getloadavg is absent.
54734         Move test code to ...
54735         * tests/test-getloadavg.c: New file, containing previous
54736         contents of test from lib/getloadavg.c.  It also contains
54737         suggestions by Bruno Haible in
54738         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
54739         * modules/getloadavg-tests: New file.
54740         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
54741         Do tests in the same order as they're needed for getloadavg.c.
54742         Omit setgid-related tests that generate symbols KMEM_GROUP,
54743         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
54744         Do only the tests that are needed to see whether the system has
54745         getloadavg, moving the other tests into ...
54746         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
54747         NLIST_NAME_UNION; nobody should be using it.  Do not define
54748         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
54749         relevant, as the user of this module shouldn't care how getloadavg
54750         is implemented.
54752         getloadavg: omit unused var
54753         * lib/getloadavg.c (getloadavg): Omit unused local variable.
54755 2011-02-15  Jim Meyering  <meyering@redhat.com>
54757         doc: update users.txt
54758         * users.txt: Update iwhd's URL.
54760 2011-02-13  Bruno Haible  <bruno@clisp.org>
54762         Consistent macro naming for macros that use GCC __attribute__.
54763         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
54764         _ATTRIBUTE_NONNULL_.
54765         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
54766         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
54767         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
54768         ATTRIBUTE_DEPRECATED.
54769         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
54770         ATTRIBUTE_NORETURN.
54771         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54772         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54773         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54774         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54775         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
54776         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
54777         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
54778         ATTRIBUTE_SENTINEL.
54779         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
54780         ATTRIBUTE_RETURN_CHECK.
54781         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
54782         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
54783         ATTRIBUTE_NORETURN.
54784         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
54785         Reported by Paul Eggert.
54787 2011-02-13  Bruno Haible  <bruno@clisp.org>
54789         Don't interfere with a program's definition of __attribute__.
54790         * lib/argp.h (__attribute__): Remove definition.
54791         (_GL_ATTRIBUTE_FORMAT): New macro.
54792         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
54793         * lib/argp-fmtstream.h (__attribute__): Remove definition.
54794         (_GL_ATTRIBUTE_FORMAT): New macro.
54795         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
54796         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
54797         GCC 3 or newer.
54798         * lib/error.h (__attribute__): Remove definition.
54799         (_GL_ATTRIBUTE_FORMAT): New macro.
54800         (error, error_at_line): Use it.
54801         * lib/hash.h (__attribute__): Remove definition.
54802         (ATTRIBUTE_WUR): Update definition. Define always.
54803         * lib/openat.h (__attribute__): Remove definition.
54804         (ATTRIBUTE_NORETURN): Update definition. Define always.
54805         * lib/sigpipe-die.h (__attribute__): Remove definition.
54806         (ATTRIBUTE_NORETURN): Update definition. Define always.
54807         * lib/vasnprintf.h (__attribute__): Remove definition.
54808         (_GL_ATTRIBUTE_FORMAT): New macro.
54809         (asnprintf, vasnprintf): Use it.
54810         * lib/xalloc.h (__attribute__): Remove definition.
54811         (ATTRIBUTE_NORETURN): Update definition. Define always.
54812         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
54813         * lib/xmemdup0.h (__attribute__): Remove definition.
54814         (ATTRIBUTE_NORETURN): Update definition. Define always.
54815         * lib/xprintf.h (__attribute__): Remove definition.
54816         (_GL_ATTRIBUTE_FORMAT): New macro.
54817         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
54818         * lib/xstrtol.h (__attribute__): Remove definition.
54819         (ATTRIBUTE_NORETURN): Update definition. Define always.
54820         * lib/xvasprintf.h (__attribute__): Remove definition.
54821         (_GL_ATTRIBUTE_FORMAT): New macro.
54822         (xasprintf, xvasprintf): Use it.
54823         * tests/test-argmatch.c (__attribute__): Remove definition.
54824         (ATTRIBUTE_NORETURN): Update definition. Define always.
54825         * tests/test-exclude.c (__attribute__): Remove definition.
54826         (ATTRIBUTE_NORETURN): Update definition. Define always.
54827         Reported by Paul Eggert.
54829 2011-02-13  Bruno Haible  <bruno@clisp.org>
54831         mbrtowc: Add more tests for native Windows platforms.
54832         * tests/test-mbrtowc-w32-1.sh: New file.
54833         * tests/test-mbrtowc-w32-2.sh: New file.
54834         * tests/test-mbrtowc-w32-3.sh: New file.
54835         * tests/test-mbrtowc-w32-4.sh: New file.
54836         * tests/test-mbrtowc-w32-5.sh: New file.
54837         * tests/test-mbrtowc-w32.c: New file.
54838         * modules/mbrtowc-tests (Files): Add them.
54839         (Makefile.am): Arrange to run these tests.
54840         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
54841         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
54843 2011-02-13  Bruno Haible  <bruno@clisp.org>
54845         mbrtowc: Work around native Windows bug.
54846         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
54847         guess when no suitable locale for testing was found.
54848         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
54850 2011-02-13  Bruno Haible  <bruno@clisp.org>
54852         mbsinit: Work around mingw bug.
54853         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
54854         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
54855         Windows.
54856         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
54858 2011-02-13  Bruno Haible  <bruno@clisp.org>
54860         mbsinit: Don't crash for a NULL argument.
54861         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
54862         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
54864 2011-02-13  Bruno Haible  <bruno@clisp.org>
54866         Don't interfere with a program's definition of __attribute__.
54867         * lib/stdio.in.h (__attribute__): Remove definition.
54868         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
54869         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
54870         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
54871         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
54872         * lib/string.in.h (__attribute__): Remove definition.
54873         Reported by Paul Eggert.
54875 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54877         stdlib: don't get in the way of non-GCC __attribute__
54878         See thread starting at
54879         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
54880         Revert previous stdlib change, installing the following instead:
54881         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
54882         to get in the way of a non-GCC compiler that supports __attribute__.
54883         (_GL_ATTRIBUTE_RETURN): New macro.
54884         (_Exit): Use it instead of __attribute__.
54886 2011-02-12  Bruno Haible  <bruno@clisp.org>
54888         quotearg test: Avoid test failure on mingw.
54889         * tests/test-quotearg.sh: Convert the locale identifier from native
54890         Windows syntax to Unix syntax.
54892 2011-02-12  Bruno Haible  <bruno@clisp.org>
54894         setlocale: Prefer gnulib's override over libintl's override.
54895         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
54896         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
54897         GNULIB_defined_setlocale is set.
54899 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54901         stdlib: support non-GCC __attribute__
54903         Fix a serious and tricky problem encountered when attempting to
54904         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
54905         5.5, but it crashed due to memory corruption on Solaris 10 with
54906         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
54907         bits that are otherwise zero.  This tagging is optional inside
54908         Emacs but is preferred and is used when __attribute__ ((__aligned
54909         (8))) works, as it does with both recent-enough GCC and with Sun C
54910         5.11.  However, Sun C 5.11 is not GCC and does not #define
54911         __GNUC__ and __GNUC_MINOR__.
54913         When I added the getloadavg module to Emacs, it brought in
54914         stdlib.in.h, which contained this fragment:
54916            #ifndef __attribute__
54917            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
54918            #  define __attribute__(Spec)   /* empty */
54919            # endif
54920            #endif
54922         When files that include <stdlib.h> were compiled with Sun C 5.11,
54923         the above code disabled __attribute__ ((__aligned (8))), which
54924         caused variables to not be properly aligned, which eventually led
54925         to the pointer corruption mentioned above.  (This was a bit hard
54926         to diagnose, unfortunately.)
54928         Several "#define __attribute__(X) /* empty */" code snippets need
54929         to be eradicated from Gnulib to work with non-GCC compilers that
54930         support __attribute__.  The Autoconf way to do this is to test for
54931         each kind of attribute that we want support for, and selectively
54932         enable that in source code.
54934         Fix this problem just for stdlib.h, by adding a test for the
54935         __noreturn__ attribute, and change stdlib.in.h to use that test
54936         when needed.  This technique can be easily generalized to the
54937         other *.in.h files and attributes, and a similar technique can be
54938         used for *.h and *.c files.  This patch is enough to solve the
54939         problem for Emacs + getloadavg, and I thought I'd publish it for
54940         feedback before undertaking further, similar fixes in other
54941         modules.
54943         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
54944         because it's not needed for stdlib.h.  It merely substitutes the
54945         value directly into stdlib.h.  We may well need to #define it, or
54946         similar symbols, for other modules, but it's nice to also have an
54947         option to not #define it for applications like Emacs that do not
54948         need it.
54950         * lib/stdlib.in.h (__attribute__): Do not #define.
54951         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
54952         be defined only if the _Exit module is also used.
54953         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
54954         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
54955         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
54956         platforms.
54957         * modules/_Exit (Files): Add m4/attribute.m4.
54958         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
54959         * m4/attribute.m4: New file.
54961 2011-02-12  Bruno Haible  <bruno@clisp.org>
54963         wcsrtombs: Work around bug on native Windows.
54964         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
54965         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
54966         instead of len.
54967         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
54969 2011-02-12  Bruno Haible  <bruno@clisp.org>
54971         mbsrtowcs: Work around bug on native Windows.
54972         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
54973         against mingw bug.
54974         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
54976 2011-02-12  Bruno Haible  <bruno@clisp.org>
54978         Avoid setlocale bugs in tests.
54979         * modules/btowc (Dependencies): Add setlocale.
54980         * modules/c-strcase (Dependencies): Likewise.
54981         * modules/mbmemcasecmp (Dependencies): Likewise.
54982         * modules/mbmemcasecoll (Dependencies): Likewise.
54983         * modules/mbrtowc (Dependencies): Likewise.
54984         * modules/mbscasecmp (Dependencies): Likewise.
54985         * modules/mbscasestr (Dependencies): Likewise.
54986         * modules/mbschr (Dependencies): Likewise.
54987         * modules/mbscspn (Dependencies): Likewise.
54988         * modules/mbsinit (Dependencies): Likewise.
54989         * modules/mbsncasecmp (Dependencies): Likewise.
54990         * modules/mbsnrtowcs (Dependencies): Likewise.
54991         * modules/mbspbrk (Dependencies): Likewise.
54992         * modules/mbspcasecmp (Dependencies): Likewise.
54993         * modules/mbsrchr (Dependencies): Likewise.
54994         * modules/mbsrtowcs (Dependencies): Likewise.
54995         * modules/mbsspn (Dependencies): Likewise.
54996         * modules/mbsstr (Dependencies): Likewise.
54997         * modules/nl_langinfo (Dependencies): Likewise.
54998         * modules/quotearg (Dependencies): Likewise.
54999         * modules/unicase/locale-language (Dependencies): Likewise.
55000         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
55001         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
55002         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
55003         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
55004         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
55005         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
55006         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
55007         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
55008         * modules/vasnprintf-posix (Dependencies): Likewise.
55009         * modules/wcrtomb (Dependencies): Likewise.
55010         * modules/wcsnrtombs (Dependencies): Likewise.
55011         * modules/wcsrtombs (Dependencies): Likewise.
55013 2011-02-12  Bruno Haible  <bruno@clisp.org>
55015         setlocale: Workaround native Windows bug.
55016         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
55017         succeeds but sets LC_CTYPE to "C", report a failure.
55018         * tests/test-setlocale2.sh: New file.
55019         * tests/test-setlocale2.c: New file.
55020         * modules/setlocale-tests (Files): Add the new files.
55021         (Makefile.am): Enable test-setlocale2.sh test.
55022         * doc/posix-functions/setlocale.texi: Mention workaround.
55024 2011-02-11  Bruno Haible  <bruno@clisp.org>
55026         Tests for module 'setlocale'.
55027         * modules/setlocale-tests: New file.
55028         * tests/test-setlocale1.sh: New file.
55029         * tests/test-setlocale1.c: New file.
55031         New module 'setlocale'.
55032         * lib/locale.in.h (setlocale): New declaration.
55033         * lib/setlocale.c: New file, based on
55034         gettext/gettext-runtime/intl/setlocale.c.
55035         * m4/setlocale.m4: New file.
55036         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
55037         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
55038         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
55039         REPLACE_SETLOCALE.
55040         * modules/setlocale: New file.
55041         * tests/test-locale-c++.cc: Test the declaration of setlocale.
55042         * doc/posix-functions/setlocale.texi: Mention the new module.
55044 2011-02-11  Bruno Haible  <bruno@clisp.org>
55046         Prepare for locale dependent tests on mingw.
55047         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
55048         because it has the wrong locale encoding.
55049         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
55050         French_France.1252 instead of "fr".
55051         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
55052         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
55053         because it has the wrong locale encoding.
55054         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
55055         native Windows, try Turkish_Turkey.65001.
55056         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
55057         Chinese_China.54936.
55059         Prepare for locale dependent tests on mingw.
55060         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
55061         differently.
55062         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
55063         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
55064         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55065         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55067 2011-02-11  Eric Blake  <eblake@redhat.com>
55069         strptime: avoid compiler warnings
55070         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
55071         compiler warnings about dead code.
55072         Reported by Daniel P. Berrange.
55074 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
55076         doc: update users.txt
55077         * users.txt: Add rcs.
55079 2011-02-10  John W. Eaton  <jwe@gnu.org>
55081         doc: update users.txt
55082         * users.txt: Add octave.
55084 2011-02-10  Jim Meyering  <meyering@redhat.com>
55086         doc: update users.txt
55087         * users.txt: Add iwhd.
55089 2011-02-09  Bruno Haible  <bruno@clisp.org>
55091         gnulib-tool: Make copyright notice adjustment more robust.
55092         * gnulib-tool (func_import): In sed_transform_main_lib_file,
55093         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
55094         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
55095         License".
55096         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
55098 2011-02-06  Bruno Haible  <bruno@clisp.org>
55100         New module 'towctrans'.
55101         * modules/towctrans: New file.
55102         * lib/wctype.in.h (towctrans): New declaration.
55103         * lib/towctrans.c: New file.
55104         * lib/towctrans-impl.h: New file.
55105         * m4/towctrans.m4: New file.
55106         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
55107         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
55108         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
55109         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
55110         * doc/posix-functions/towctrans.texi: Mention the new module.
55112 2011-02-06  Bruno Haible  <bruno@clisp.org>
55114         New module 'wctrans'.
55115         * modules/wctrans: New file.
55116         * lib/wctype.in.h (wctrans): New declaration.
55117         * lib/wctrans.c: New file.
55118         * lib/wctrans-impl.h: New file.
55119         * m4/wctrans.m4: New file.
55120         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
55121         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
55122         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
55123         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
55124         * doc/posix-functions/wctrans.texi: Mention the new module.
55126 2011-02-06  Bruno Haible  <bruno@clisp.org>
55128         New module 'iswctype'.
55129         * modules/iswctype: New file.
55130         * lib/wctype.in.h (iswctype): New declaration.
55131         * lib/iswctype.c: New file.
55132         * lib/iswctype-impl.h: New file.
55133         * m4/iswctype.m4: New file.
55134         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
55135         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
55136         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
55137         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
55138         * doc/posix-functions/iswctype.texi: Mention the new module and the
55139         HP-UX 11.00 problem.
55141 2011-02-06  Bruno Haible  <bruno@clisp.org>
55143         New module 'wctype'.
55144         * modules/wctype: Change to represent the wctype() substitute.
55145         * lib/wctype.in.h (wctype): New declaration.
55146         * lib/wctype.c: New file.
55147         * lib/wctype-impl.h: New file.
55148         * m4/wctype.m4: New file.
55149         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
55150         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
55151         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
55152         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
55153         * doc/posix-functions/wctype.texi: Mention the new module and the
55154         HP-UX 11.00 problem.
55156 2011-02-06  Bruno Haible  <bruno@clisp.org>
55158         wctype-h: Ensure wctype_t and wctrans_t are defined.
55159         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
55160         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
55161         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
55162         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
55163         HAVE_WCTRANS_T.
55164         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
55166 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
55168         flock: fix license typo
55170         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
55171         omitted.
55173 2011-02-08  Bruno Haible  <bruno@clisp.org>
55175         Split large sed scripts, for HP-UX sed.
55176         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
55177         to avoid HP-UX limit of 99 commands, in the near future.
55178         * modules/stdlib (Makefile.am): Likewise.
55179         * modules/unistd (Makefile.am): Likewise.
55180         * modules/wchar (Makefile.am): Likewise.
55181         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55182         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
55183         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
55185 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
55186             Bruno Haible  <bruno@clisp.org>
55188         stdlib: improve random_r modularization
55189         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
55190         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
55191         you also need the random_r module to get this material right.
55192         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
55193         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
55194         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
55196 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
55198         stdlib: don't depend on stdint
55199         * lib/stdlib.in.h: Don't include <stdint.h> merely because
55200         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
55201         be independent of whether stdint.h is needed.
55202         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
55203         here, instead of ...
55204         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
55205         struct random_data should be using the random_r module, not just
55206         the stdlib module (which wouldn't make sense: what package needs
55207         just struct random_data without also needing random_r?).
55208         * modules/stdlib (Depends-on): Remove stdint.
55210         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
55211         See the thread rooted at
55212         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
55213         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
55214         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
55215         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
55216         __VMS)); previously it was always included (via fcntl--.h).
55217         (getloadavg): Do not use c_strtod.  Instead, approximate it by
55218         hand; this is good enough for load averages.  Also, do not use
55219         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
55220         flags directly if available and don't bother otherwise.  (Packages
55221         that need the extra reliability should use the modules that define
55222         these flags on older platforms that lack them.)
55223         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
55224         fcntl-safer.
55226 2011-02-08  Jim Meyering  <meyering@redhat.com>
55228         di-set.h, ino-map.h: add multiple-inclusion guard
55229         Technically, the guard is required only for ino-map.h, due to its
55230         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
55231         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
55232         * lib/ino-map.h: Likewise.
55234 2011-02-06  Bruno Haible  <bruno@clisp.org>
55236         iswblank: Ensure declaration on glibc systems.
55237         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
55238         * modules/iswblank (Dependencies): Add 'extensions'.
55239         * doc/posix-functions/iswblank.texi: Document the glibc problem.
55241 2011-02-06  Bruno Haible  <bruno@clisp.org>
55243         New module 'iswblank'.
55244         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
55245         * modules/iswblank: New file.
55246         * modules/wctype-h (Files): Remove lib/iswblank.c.
55247         (Makefile.am): Substitute GNULIB_ISWBLANK.
55248         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
55249         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
55250         (gl_WCTYPE_H_DEFAULTS): New macro.
55251         (gl_WCTYPE_H): Require it. Remove iswblank related code.
55252         * modules/iswblank-tests: New file.
55253         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
55254         * tests/test-wctype-h.c (main): Remove iswblank tests.
55255         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
55256         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
55257         of 'wctype-h'.
55258         * NEWS: Mention the change.
55259         * modules/mbchar (Depends-on): Add iswblank.
55261 2011-02-08  Bruno Haible  <bruno@clisp.org>
55263         di-set tests: Refactor.
55264         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
55265         unnecessary includes.
55266         (ASSERT): Remove macro.
55267         (main): Make C90 compliant by avoiding variable declaration after
55268         statement.
55269         * modules/di-set-tests (Files): Add tests/macros.h.
55271 2011-02-08  Bruno Haible  <bruno@clisp.org>
55273         ino-map tests: Refactor.
55274         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
55275         unnecessary includes.
55276         (ASSERT): Remove macro.
55277         (main): Make C90 compliant by avoiding variable declaration after
55278         statement.
55279         * modules/ino-map-tests (Files): Add tests/macros.h.
55281 2011-02-08  Jim Meyering  <meyering@redhat.com>
55283         di-set: add "const" to a cast
55284         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
55285         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
55287 2011-02-06  Bruno Haible  <bruno@clisp.org>
55289         Rename module 'wctype' to 'wctype-h'.
55290         * modules/wctype-h: Renamed from modules/wctype.
55291         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
55292         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
55293         (Files, Depends-on, Makefile.am): Update.
55294         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
55295         (Files, Makefile.am): Update.
55296         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
55297         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
55298         * doc/posix-headers/wctype.texi: Update.
55299         * doc/posix-functions/iswalnum.texi: Update.
55300         * doc/posix-functions/iswalpha.texi: Update.
55301         * doc/posix-functions/iswblank.texi: Update.
55302         * doc/posix-functions/iswcntrl.texi: Update.
55303         * doc/posix-functions/iswdigit.texi: Update.
55304         * doc/posix-functions/iswgraph.texi: Update.
55305         * doc/posix-functions/iswlower.texi: Update.
55306         * doc/posix-functions/iswprint.texi: Update.
55307         * doc/posix-functions/iswpunct.texi: Update.
55308         * doc/posix-functions/iswspace.texi: Update.
55309         * doc/posix-functions/iswupper.texi: Update.
55310         * doc/posix-functions/iswxdigit.texi: Update.
55311         * doc/posix-functions/towlower.texi: Update.
55312         * doc/posix-functions/towupper.texi: Update.
55313         * NEWS: Mention the change.
55314         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
55315         * modules/mbchar (Dependencies): Likewise.
55316         * modules/mbswidth (Dependencies): Likewise.
55317         * modules/quotearg (Dependencies): Likewise.
55318         * modules/regex (Dependencies): Likewise.
55319         * modules/wcscasecmp (Dependencies): Likewise.
55320         * modules/wcsncasecmp (Dependencies): Likewise.
55321         * modules/wcwidth (Dependencies): Likewise.
55323 2011-02-06  Bruno Haible  <bruno@clisp.org>
55325         New module 'wcswidth'.
55326         * modules/wcswidth: New file.
55327         * lib/wchar.in.h (wcswidth): New declaration.
55328         * lib/wcswidth.c: New file.
55329         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
55330         * m4/wcswidth.m4: New file.
55331         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
55332         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
55333         REPLACE_WCSWIDTH.
55334         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
55335         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
55336         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
55337         * doc/posix-functions/wcswidth.texi: Mention the new module.
55339 2011-02-06  Bruno Haible  <bruno@clisp.org>
55341         New module 'wcstok'.
55342         * modules/wcstok: New file.
55343         * lib/wchar.in.h (wcstok): New declaration.
55344         * lib/wcstok.c: New file.
55345         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
55346         * m4/wcstok.m4: New file.
55347         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
55348         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
55349         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
55350         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
55351         * doc/posix-functions/wcstok.texi: Mention the new module.
55353 2011-02-06  Bruno Haible  <bruno@clisp.org>
55355         New module 'wcsstr'.
55356         * modules/wcsstr: New file.
55357         * lib/wchar.in.h (wcsstr): New declaration.
55358         * lib/wcsstr.c: New file.
55359         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
55360         * m4/wcsstr.m4: New file.
55361         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
55362         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
55363         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
55364         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
55365         * doc/posix-functions/wcsstr.texi: Mention the new module.
55367 2011-02-06  Bruno Haible  <bruno@clisp.org>
55369         New module 'wcspbrk'.
55370         * modules/wcspbrk: New file.
55371         * lib/wchar.in.h (wcspbrk): New declaration.
55372         * lib/wcspbrk.c: New file.
55373         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
55374         * m4/wcspbrk.m4: New file.
55375         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
55376         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
55377         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
55378         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
55379         * doc/posix-functions/wcspbrk.texi: Mention the new module.
55381 2011-02-06  Bruno Haible  <bruno@clisp.org>
55383         New module 'wcsspn'.
55384         * modules/wcsspn: New file.
55385         * lib/wchar.in.h (wcsspn): New declaration.
55386         * lib/wcsspn.c: New file.
55387         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
55388         * m4/wcsspn.m4: New file.
55389         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
55390         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
55391         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
55392         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
55393         * doc/posix-functions/wcsspn.texi: Mention the new module.
55395 2011-02-06  Bruno Haible  <bruno@clisp.org>
55397         New module 'wcscspn'.
55398         * modules/wcscspn: New file.
55399         * lib/wchar.in.h (wcscspn): New declaration.
55400         * lib/wcscspn.c: New file.
55401         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
55402         * m4/wcscspn.m4: New file.
55403         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
55404         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
55405         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
55406         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
55407         * doc/posix-functions/wcscspn.texi: Mention the new module.
55409 2011-02-06  Bruno Haible  <bruno@clisp.org>
55411         New module 'wcsrchr'.
55412         * modules/wcsrchr: New file.
55413         * lib/wchar.in.h (wcsrchr): New declaration.
55414         * lib/wcsrchr.c: New file.
55415         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
55416         * m4/wcsrchr.m4: New file.
55417         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
55418         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
55419         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
55420         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
55421         * doc/posix-functions/wcsrchr.texi: Mention the new module.
55423 2011-02-06  Bruno Haible  <bruno@clisp.org>
55425         New module 'wcschr'.
55426         * modules/wcschr: New file.
55427         * lib/wchar.in.h (wcschr): New declaration.
55428         * lib/wcschr.c: New file.
55429         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
55430         * m4/wcschr.m4: New file.
55431         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
55432         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
55433         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
55434         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
55435         * doc/posix-functions/wcschr.texi: Mention the new module.
55437 2011-02-06  Bruno Haible  <bruno@clisp.org>
55439         New module 'wcsdup'.
55440         * modules/wcsdup: New file.
55441         * lib/wchar.in.h (wcsdup): New declaration.
55442         * lib/wcsdup.c: New file.
55443         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
55444         * m4/wcsdup.m4: New file.
55445         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
55446         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
55447         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
55448         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
55449         * doc/posix-functions/wcsdup.texi: Mention the new module.
55451 2011-02-06  Bruno Haible  <bruno@clisp.org>
55453         New module 'wcsxfrm'.
55454         * modules/wcsxfrm: New file.
55455         * lib/wchar.in.h (wcsxfrm): New declaration.
55456         * lib/wcsxfrm.c: New file.
55457         * lib/wcsxfrm-impl.h: New file.
55458         * m4/wcsxfrm.m4: New file.
55459         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
55460         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
55461         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
55462         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
55463         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
55465 2011-02-06  Bruno Haible  <bruno@clisp.org>
55467         New module 'wcscoll'.
55468         * modules/wcscoll: New file.
55469         * lib/wchar.in.h (wcscoll): New declaration.
55470         * lib/wcscoll.c: New file.
55471         * lib/wcscoll-impl.h: New file.
55472         * m4/wcscoll.m4: New file.
55473         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
55474         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
55475         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
55476         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
55477         * doc/posix-functions/wcscoll.texi: Mention the new module.
55479 2011-02-06  Bruno Haible  <bruno@clisp.org>
55481         New module 'wcsncasecmp'.
55482         * modules/wcsncasecmp: New file.
55483         * lib/wchar.in.h (wcsncasecmp): New declaration.
55484         * lib/wcsncasecmp.c: New file.
55485         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
55486         * m4/wcsncasecmp.m4: New file.
55487         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
55488         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
55489         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
55490         HAVE_WCSNCASECMP.
55491         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
55492         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
55494 2011-02-06  Bruno Haible  <bruno@clisp.org>
55496         New module 'wcscasecmp'.
55497         * modules/wcscasecmp: New file.
55498         * lib/wchar.in.h (wcscasecmp): New declaration.
55499         * lib/wcscasecmp.c: New file.
55500         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
55501         * m4/wcscasecmp.m4: New file.
55502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
55503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
55504         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
55505         HAVE_WCSCASECMP.
55506         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
55507         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
55509 2011-02-05  Bruno Haible  <bruno@clisp.org>
55511         New module 'wcsncmp'.
55512         * modules/wcsncmp: New file.
55513         * lib/wchar.in.h (wcsncmp): New declaration.
55514         * lib/wcsncmp.c: New file.
55515         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
55516         * m4/wcsncmp.m4: New file.
55517         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
55518         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
55519         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
55520         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
55521         * doc/posix-functions/wcsncmp.texi: Mention the new module.
55523 2011-02-05  Bruno Haible  <bruno@clisp.org>
55525         New module 'wcscmp'.
55526         * modules/wcscmp: New file.
55527         * lib/wchar.in.h (wcscmp): New declaration.
55528         * lib/wcscmp.c: New file.
55529         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
55530         * m4/wcscmp.m4: New file.
55531         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
55532         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
55533         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
55534         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
55535         * doc/posix-functions/wcscmp.texi: Mention the new module.
55537 2011-02-05  Bruno Haible  <bruno@clisp.org>
55539         New module 'wcsncat'.
55540         * modules/wcsncat: New file.
55541         * lib/wchar.in.h (wcsncat): New declaration.
55542         * lib/wcsncat.c: New file.
55543         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
55544         * m4/wcsncat.m4: New file.
55545         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
55546         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
55547         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
55548         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
55549         * doc/posix-functions/wcsncat.texi: Mention the new module.
55551 2011-02-05  Bruno Haible  <bruno@clisp.org>
55553         New module 'wcscat'.
55554         * modules/wcscat: New file.
55555         * lib/wchar.in.h (wcscat): New declaration.
55556         * lib/wcscat.c: New file.
55557         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
55558         * m4/wcscat.m4: New file.
55559         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
55560         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
55561         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
55562         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
55563         * doc/posix-functions/wcscat.texi: Mention the new module.
55565 2011-02-05  Bruno Haible  <bruno@clisp.org>
55567         New module 'wcpncpy'.
55568         * modules/wcpncpy: New file.
55569         * lib/wchar.in.h (wcpncpy): New declaration.
55570         * lib/wcpncpy.c: New file.
55571         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
55572         * m4/wcpncpy.m4: New file.
55573         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
55574         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
55575         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
55576         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
55577         * doc/posix-functions/wcpncpy.texi: Mention the new module.
55579 2011-02-05  Bruno Haible  <bruno@clisp.org>
55581         New module 'wcsncpy'.
55582         * modules/wcsncpy: New file.
55583         * lib/wchar.in.h (wcsncpy): New declaration.
55584         * lib/wcsncpy.c: New file.
55585         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
55586         * m4/wcsncpy.m4: New file.
55587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
55588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
55589         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
55590         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
55591         * doc/posix-functions/wcsncpy.texi: Mention the new module.
55593 2011-02-05  Bruno Haible  <bruno@clisp.org>
55595         New module 'wcpcpy'.
55596         * modules/wcpcpy: New file.
55597         * lib/wchar.in.h (wcpcpy): New declaration.
55598         * lib/wcpcpy.c: New file.
55599         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
55600         * m4/wcpcpy.m4: New file.
55601         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
55602         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
55603         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
55604         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
55605         * doc/posix-functions/wcpcpy.texi: Mention the new module.
55607 2011-02-05  Bruno Haible  <bruno@clisp.org>
55609         New module 'wcscpy'.
55610         * modules/wcscpy: New file.
55611         * lib/wchar.in.h (wcscpy): New declaration.
55612         * lib/wcscpy.c: New file.
55613         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
55614         * m4/wcscpy.m4: New file.
55615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
55616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
55617         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
55618         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
55619         * doc/posix-functions/wcscpy.texi: Mention the new module.
55621 2011-02-05  Bruno Haible  <bruno@clisp.org>
55623         New module 'wcsnlen'.
55624         * modules/wcsnlen: New file.
55625         * lib/wchar.in.h (wcsnlen): New declaration.
55626         * lib/wcsnlen.c: New file.
55627         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
55628         * m4/wcsnlen.m4: New file.
55629         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
55630         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
55631         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
55632         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
55633         * doc/posix-functions/wcsnlen.texi: Mention the new module.
55635 2011-02-05  Bruno Haible  <bruno@clisp.org>
55637         New module 'wcslen'.
55638         * modules/wcslen: New file.
55639         * lib/wchar.in.h (wcslen): New declaration.
55640         * lib/wcslen.c: New file.
55641         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
55642         * m4/wcslen.m4: New file.
55643         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
55644         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
55645         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
55646         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
55647         * doc/posix-functions/wcslen.texi: Mention the new module.
55649 2011-02-05  Bruno Haible  <bruno@clisp.org>
55651         New module 'wmemset'.
55652         * modules/wmemset: New file.
55653         * lib/wchar.in.h (wmemset): New declaration.
55654         * lib/wmemset.c: New file.
55655         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
55656         * m4/wmemset.m4: New file.
55657         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
55658         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
55659         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
55660         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
55661         * doc/posix-functions/wmemset.texi: Mention the new module.
55663 2011-02-05  Bruno Haible  <bruno@clisp.org>
55665         New module 'wmemmove'.
55666         * modules/wmemmove: New file.
55667         * lib/wchar.in.h (wmemmove): New declaration.
55668         * lib/wmemmove.c: New file.
55669         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
55670         * m4/wmemmove.m4: New file.
55671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
55672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
55673         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
55674         HAVE_WMEMMOVE.
55675         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
55676         * doc/posix-functions/wmemmove.texi: Mention the new module.
55678 2011-02-05  Bruno Haible  <bruno@clisp.org>
55680         New module 'wmemcpy'.
55681         * modules/wmemcpy: New file.
55682         * lib/wchar.in.h (wmemcpy): New declaration.
55683         * lib/wmemcpy.c: New file.
55684         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
55685         * m4/wmemcpy.m4: New file.
55686         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
55687         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
55688         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
55689         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
55690         * doc/posix-functions/wmemcpy.texi: Mention the new module.
55692 2011-02-05  Bruno Haible  <bruno@clisp.org>
55694         New module 'wmemcmp'.
55695         * modules/wmemcmp: New file.
55696         * lib/wchar.in.h (wmemcmp): New declaration.
55697         * lib/wmemcmp.c: New file.
55698         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
55699         * m4/wmemcmp.m4: New file.
55700         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
55701         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
55702         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
55703         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
55704         * doc/posix-functions/wmemcmp.texi: Mention the new module.
55706 2011-02-07  Jim Meyering  <meyering@redhat.com>
55708         di-set, ino-map: new modules, from coreutils
55709         * lib/di-set.c: New file.
55710         * lib/di-set.h: Likewise.
55711         * lib/ino-map.c: Likewise.
55712         * lib/ino-map.h: Likewise.
55713         * modules/di-set: Likewise.
55714         * modules/di-set-tests: Likewise.
55715         * modules/ino-map: Likewise.
55716         * modules/ino-map-tests: Likewise.
55717         * tests/test-di-set.c: Likewise.
55718         * tests/test-ino-map.c: Likewise.
55720 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
55722         getloadavg: merge minor changes from Emacs
55724         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
55725         (getloadavg): Use memset, not bzero.
55727         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
55728         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
55729         clash (bug#86).
55731 2010-11-14  Bruno Haible  <bruno@clisp.org>
55733         Allow multiple gnulib generated replacements to coexist.
55734         * lib/getopt.in.h (struct option): Avoid identical redefinition.
55735         * lib/inttypes.in.h (imaxdiv_t): Likewise.
55736         * lib/langinfo.in.h (nl_item): Likewise.
55737         * lib/math.in.h (_NaN, NAN): Likewise.
55738         * lib/netdb.in.h (struct addrinfo): Likewise.
55739         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
55740         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
55741         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
55742         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
55743         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
55744         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
55745         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
55746         pthread_mutexattr_init, pthread_mutexattr_settype,
55747         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
55748         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
55749         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
55750         pthread_spin_trylock, pthread_spin_unlock): Likewise.
55751         * lib/sched.in.h (struct sched_param): Likewise.
55752         * lib/se-selinux.in.h (security_class_t, security_context_t,
55753         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
55754         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
55755         lsetfilecon, fsetfilecon, security_check_context,
55756         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
55757         Likewise.
55758         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
55759         Likewise.
55760         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
55761         _gl_function_taking_int_returning_void_t, union sigval,
55762         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
55763         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
55764         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
55765         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
55766         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
55767         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
55768         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
55769         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
55770         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
55771         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
55772         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
55773         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
55774         socklen_t, rpl_fd_isset): Likewise.
55775         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
55776         * lib/sys_time.in.h (struct timeval): Likewise.
55777         * lib/sys_times.in.h (struct tms): Likewise.
55778         * lib/sys_utsname.in.h (struct utsname):
55779         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
55780         * lib/unistd.in.h (getpagesize): Likewise.
55781         * lib/wchar.in.h (mbstate_t): Likewise.
55782         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55783         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
55784         towlower, towupper): Likewise.
55785         Reported by Sam Steingold <sds@gnu.org>.
55787 2011-02-05  Eric Blake  <eblake@redhat.com>
55789         unsetenv: work around Haiku issues
55790         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
55791         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
55793 2010-12-30  Bruce Korb  <bkorb@gnu.org>
55795         libposix: avoid calling error() within libposix
55796         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
55797         is defined.
55799 2011-02-05  Eric Blake  <eblake@redhat.com>
55801         strerror_r-posix: port to cygwin
55802         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
55803         implementation.
55804         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
55805         * tests/test-strerror_r.c (main): Fix test.
55806         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
55807         issue.
55809 2011-02-05  Bruno Haible  <bruno@clisp.org>
55811         New module 'wmemchr'.
55812         * modules/wmemchr: New file.
55813         * lib/wchar.in.h (wmemchr): New declaration.
55814         * lib/wmemchr.c: New file.
55815         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
55816         * m4/wmemchr.m4: New file.
55817         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
55818         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
55819         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
55820         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
55821         * doc/posix-functions/wmemchr.texi: Mention the new module.
55823 2011-02-04  Eric Blake  <eblake@redhat.com>
55825         fdopendir: detect FreeBSD bug
55826         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
55827         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
55829 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55831         stdbool: do not define HAVE_STDBOOL_H
55832         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
55833         AC_HEADER_STDBOOL.  All uses changed.  Do not define
55834         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
55835         imported from the latest Autoconf git.  It was motivated by Emacs,
55836         which uses gnulib but does not need HAVE_STDBOOL_H.
55838 2011-02-04  Bruno Haible  <bruno@clisp.org>
55840         wcsnrtombs: Prepare for new module wwcsnrtombs.
55841         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
55842         * lib/wcsnrtombs.c: Include it.
55843         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
55845         wcsrtombs: Prepare for new module wwcsrtombs.
55846         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
55847         * lib/wcsrtombs.c: Include it.
55848         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
55850         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
55851         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
55852         * lib/mbsnrtowcs.c: Include it.
55853         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
55855         mbsrtowcs: Prepare for new module mbsrtowwcs.
55856         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
55857         * lib/mbsrtowcs.c: Include it.
55858         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
55860 2011-02-04  Bruno Haible  <bruno@clisp.org>
55862         vasnprintf: Reduce use of malloc for small format strings.
55863         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
55864         (arguments): Add room for the first 7 arguments.
55865         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
55866         (char_directives, u8_directives, u16_directives, u32_directives): Add
55867         room for the first 7 directives.
55868         * lib/printf-parse.c: Include <string.h>.
55869         (PRINTF_PARSE): Change memory handling code so that it uses the first
55870         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
55871         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
55872         Reported by Pádraig Brady <P@draigbrady.com>.
55874 2011-01-31  Eric Blake  <eblake@redhat.com>
55876         dup2: work around Haiku bug
55877         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
55878         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
55879         * doc/posix-functions/dup2.texi (dup2): Document the bug.
55880         * tests/test-dup2.c (main): Enhance test.
55882 2011-01-31  Simon Josefsson  <simon@josefsson.org>
55884         doc: off_t is not available in eglibc 2.11.2 stdio.h.
55885         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
55886         declared by eglibc 2.11.2.
55887         * lib/stdio.in.h: Likewise.
55889 2011-01-31  Eric Blake  <eblake@redhat.com>
55891         ignore-value: add missing test dependency
55892         * tests/test-ignore-value.c: Revert previous change; stdio.h
55893         provides off_t.
55894         * modules/ignore-value-tests (Depends-on): Add missing dependency.
55896 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
55898         mktime: clarify long_int width checking
55899         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
55900         the top level, to make it clearer that the assumption about
55901         long_int width is being checked.  See
55902         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
55904 2011-01-30  Simon Josefsson  <simon@josefsson.org>
55906         ignore-value: Fix self-test.
55907         * tests/test-ignore-value.c: Include sys/types.h for off_t.
55909 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55911         TYPE_MAXIMUM: avoid theoretically undefined behavior
55912         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
55913         negative number, which the C Standard says has undefined behavior.
55914         In practice this is not a problem, but might as well do it by the book.
55915         Reported by Rich Felker and Eric Blake; see
55916         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
55917         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
55918         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55919         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55920         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
55921         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55922         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
55924         mktime: #undef mktime before #defining it
55925         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
55927         mktime: systematically normalize tm_isdst comparisons
55928         * lib/mktime.c (isdst_differ): New function.
55929         (__mktime_internal): Use it systematically for all isdst comparisons.
55930         This completes the fix for libc BZ #6723, and removes the need for
55931         normalizing tm_isdst.  See
55932         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
55933         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
55935         mktime: fix some integer overflow issues and sidestep the rest
55937         This was prompted by a bug report by Benjamin Lindner for MinGW
55938         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
55939         His bug is due to signed integer overflow (0 - INT_MIN), and I
55940         I scanned through mktime.c looking for other integer overflow
55941         problems, fixing all the bugs I found.
55943         Although the C Standard says the resulting code is still not safe
55944         in the presence of integer overflow, in practice it should be good
55945         enough for all real-world two's-complement implementations, except
55946         for debugging environments that deliberately trap on integer
55947         overflow (e.g., gcc -ftrapv).
55949         * lib/mktime.c (WRAPV): New macro.
55950         (SHR): Also check that long_int and time_t shift right in the
55951         usual way, before using the fast-but-unportable method.
55952         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
55953         used.  The code already assumed two's complement, so there's
55954         no need to test for alternatives.  All uses removed.
55955         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
55956         the C standard.  Problem reported by Rich Felker in
55957         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
55958         (twos_complement_arithmetic): Also check long_int and time_t.
55959         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
55960         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
55961         (__mktime_internal): Avoid integer overflow with unary subtraction
55962         in two instances where -1 - X is an adequate replacement for -X,
55963         since the calculations are approximate.
55965 2011-01-29  Eric Blake  <eblake@redhat.com>
55967         mktime: avoid infinite loop
55968         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
55969         type; behavior is still undefined but portable to all known targets.
55970         Reported by Rich Felker.
55972 2011-01-29  Simon Josefsson  <simon@josefsson.org>
55974         rename, unlink, same-inode: Relicense.
55975         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
55976         * modules/unlink (License): Likewise.
55977         * modules/same-inode (License): Likewise.
55979 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55981         mktime: avoid problems on NetBSD 5 / i386
55982         * lib/mktime.c (long_int): New type.  This works around a problem
55983         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
55984         but time_t is 64 bits, and where I expect the existing code is
55985         wrong in some cases.
55986         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
55987         (ydhms_diff): Bring back the compile-time check for wide-enough
55988         year and yday.
55990         mktime: fix misspelling in comment
55991         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
55992         This merges all recent glibc changes of importance.
55994 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55996         move-if-change: cope with concurrent mv of identical file.
55997         * build-aux/move-if-change (CMPPROG): Accept environment
55998         variable as an override for `cmp'.
55999         (usage): Document CMPPROG.
56000         Adjust comparison to drop stdout.  Cope with failure of mv if
56001         the target file exists and is identical to the source, for
56002         parallel builds.
56003         Report from H.J. Lu against binutils in PR binutils/12283.
56005 2011-01-28  Bruce Korb  <bkorb@gnu.org>
56007         * users.txt: Mention sharutils.
56009 2011-01-28  Simon Josefsson  <simon@josefsson.org>
56011         * users.txt: Mention OATH Toolkit.
56013 2011-01-27  Bruno Haible  <bruno@clisp.org>
56015         Prepare for supporting FreeBSD 10.
56016         * build-aux/config.libpath: Remove handling of freebsd1*.
56018 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
56020         Prepare for supporting FreeBSD 10.
56021         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
56022         match FreeBSD 10.0.
56024 2011-01-27  Bruno Haible  <bruno@clisp.org>
56026         vma-iter, get-rusage-as: Add OpenBSD support.
56027         * modules/vma-iter (configure.ac): Test for mquery.
56028         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
56029         * lib/vma-iter.c: Include <sys/mman.h>.
56030         (vma_iterate): Add an implementation based on mquery().
56031         * lib/resource-ext.h (get_rusage_as): Update comments.
56032         * lib/get-rusage-as.c: Likewise.
56033         * lib/get-rusage-data.c: Likewise.
56035 2011-01-26  Karl Berry  <karl@gnu.org>
56037         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
56038         variables to make it easier to override the makeinfo program used.
56040 2011-01-26  Eric Blake  <eblake@redhat.com>
56042         fcntl: work around Haiku F_DUPFD bugs
56043         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
56044         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
56045         cloexec bit on duplication.
56046         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
56048 2011-01-26  Bruno Haible  <bruno@clisp.org>
56050         Enable memory leak tests on AIX.
56051         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
56052         * tests/test-fprintf-posix3.c (main): Likewise.
56054 2011-01-26  Bruno Haible  <bruno@clisp.org>
56056         Tests for module 'get-rusage-data'.
56057         * modules/get-rusage-data-tests: New file.
56058         * tests/test-get-rusage-data.c: New file.
56060         New module 'get-rusage-data'.
56061         * lib/resource-ext.h (get_rusage_data): New declaration.
56062         * lib/get-rusage-data.c: New file.
56063         * modules/get-rusage-data: New file.
56065 2011-01-25  Bruno Haible  <bruno@clisp.org>
56067         get-rusage-as: Allow for easier testing.
56068         * lib/resource-ext.h (get_rusage_as): Add comment.
56069         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
56070         (main): New function for interactive testing.
56072 2011-01-25  Bruno Haible  <bruno@clisp.org>
56074         vma-iter: Treat Haiku like BeOS.
56075         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
56076         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
56078 2011-01-25  Eric Blake  <eblake@redhat.com>
56080         c-stack: fix regression on cygwin when libsigsegv is present
56081         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
56083 2011-01-24  Bruno Haible  <bruno@clisp.org>
56085         vma-iter: Avoid empty intervals.
56086         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
56087         on an empty interval.
56089 2011-01-24  Jim Meyering  <meyering@redhat.com>
56091         u64: remove unnecessary #include
56092         * lib/u64.h: Don't include <stddef.h>.  It was not used.
56094 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56096         Allow the user to avoid the HAVE_RAW_DECL_* macros.
56097         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
56099 2011-01-23  Bruno Haible  <bruno@clisp.org>
56101         New module 'vma-iter'.
56102         * lib/vma-iter.h: New file.
56103         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
56104         * modules/vma-iter: New file.
56105         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
56106         for get_rusage_as_via_iterator.
56107         (vma_iterate_callback): New function.
56108         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
56109         * modules/get-rusage-as (Depends-on): Add vma-iter.
56111 2011-01-23  Bruno Haible  <bruno@clisp.org>
56113         uninorm: Tweak includes.
56114         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
56115         Reported by Jim Meyering.
56117 2011-01-23  Bruno Haible  <bruno@clisp.org>
56119         get-rusage-as: Improve on NetBSD.
56120         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
56121         /proc, like on FreeBSD.
56123 2011-01-23  Jim Meyering  <meyering@redhat.com>
56125         xreadlink.h: remove unnecessary #include
56126         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
56128         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
56129         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
56131 2011-01-23  Bruno Haible  <bruno@clisp.org>
56133         get-rusage-as: Fix bug.
56134         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
56135         original limit when aborting the first loop.
56137 2011-01-23  Bruno Haible  <bruno@clisp.org>
56139         wctype: Ensure valid C syntax.
56140         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
56141         unconditionally, instead of gl_NEXT_HEADERS conditionally.
56143 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
56145         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
56146         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
56147         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
56148         as they are needed only for configure's test case.
56149         This removes two unnecessary symbols from config.h.
56151         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
56152         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
56153         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
56154         AC_CHECK_HEADERS_ONCE on a header that we also invoke
56155         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
56156         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
56157         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
56158         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
56159         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56160         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56161         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
56162         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56163         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56164         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
56165         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
56166         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56167         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
56168         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
56170 2011-01-21  Eric Blake  <eblake@redhat.com>
56172         maintainer-makefile: work with older git for submodule check
56173         * top/maint.mk (public-submodule-commit): Rewrite to avoid
56174         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
56175         Reported by Matthias Bolte.
56177         bootstrap: minor portability fixes
56178         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
56179         (usage): Omit leading capital and trailing . on help phrases, per
56180         GNU Coding Standards.
56181         (check_versions, top level): Prefix messages with script name.
56183 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
56185         bootstrap: support --no-git option
56186         * build-aux/bootstrap: Add --no-git option, to be used when
56187         --gnulib-srcdir points to the exact desired checkout.
56189 2011-01-21  Eric Blake  <eblake@redhat.com>
56191         strerror_r-posix: work with glibc 2.13
56192         * lib/strerror_r.c (strerror_r): Fix return type.
56194 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56195             Bruno Haible  <bruno@clisp.org>
56197         uN_strstr: New unit tests.
56198         * modules/unistr/u8-strstr-tests: New file.
56199         * modules/unistr/u16-strstr-tests: New file.
56200         * modules/unistr/u32-strstr-tests: New file.
56201         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
56202         * tests/unistr/test-u8-strstr.c: New file.
56203         * tests/unistr/test-u16-strstr.c: New file.
56204         * tests/unistr/test-u32-strstr.c: New file.
56206 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56207             Bruno Haible  <bruno@clisp.org>
56209         Make uN_strstr functions O(n) worst-case.
56210         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
56211         16-bit and 32-bit unit cases, use the unibyte algorithm from
56212         lib/mbsstr.c.
56213         * lib/unistr/u8-strstr.c: Include <string.h>.
56214         (UNIT_IS_UINT8_T): New macro.
56215         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
56216         (U_STRLEN, U_STRNLEN): New macros.
56217         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
56218         (U_STRLEN, U_STRNLEN): New macros.
56219         * modules/unistr/u8-strstr (Depends-on): Add strstr.
56220         (configure.ac): Update required libunistring version.
56221         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
56222         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
56223         malloca.
56224         (configure.ac): Update required libunistring version.
56225         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
56226         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
56227         malloca.
56228         (configure.ac): Update required libunistring version.
56230 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56231             Bruno Haible  <bruno@clisp.org>
56233         Prepare for faster uN_strstr functions.
56234         * lib/str-kmp.h: Support definable UNITs.
56235         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
56236         needle_len argument.
56237         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
56238         * lib/mbscasestr.c (mbscasestr): Likewise.
56240 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56242         malloca-tests: make faster by unsetting MALLOC_PERTURB_
56243         * tests/test-malloca.c (main): Unset the environment variable
56244         to greatly speed up the test.
56245         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
56246         * modules/malloca-tests: Depend on unsetenv.
56248 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56250         ignore-value: remove stdint dependency
56251         * lib/ignore-value.h: Remove <stdint.h>
56252         * modules/ignore-value: Remove stdint dependency.
56254 2011-01-21  Jim Meyering  <meyering@redhat.com>
56256         maint.mk: adjust variable name to be consistent with other gl_ vars
56257         * top/maint.mk (gl_public_submodule_commit): Rename the variable
56258         to be lower case.
56260 2011-01-20  Jim Meyering  <meyering@redhat.com>
56262         maint.mk: make "check" depend on public-submodule-commit by default
56263         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
56265 2011-01-20  Bruno Haible  <bruno@clisp.org>
56267         mbfile, mbiter: Complete change from 2008-12-21.
56268         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
56269         * m4/mbiter.m4 (gl_MBITER): Likewise.
56271 2011-01-20  Jim Meyering  <meyering@redhat.com>
56273         init.sh: insert space between each function name and "()"
56274         * tests/init.sh: Make it a little easier to see that a function's
56275         name is "warn_", and not "warn" when looking at the first part of
56276         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
56278 2011-01-20  Jim Meyering  <meyering@redhat.com>
56280         mountlist: clean up code formatting
56281         * lib/mountlist.c (read_file_system_list): Split a long line,
56282         correct bracing style, use NULL in place of "(struct statfs *)0",
56283         don't parenthesize return value, add spaces around "=" and after
56284         ";-in-for-stmt".
56286 2011-01-14  Markus Duft  <mduft@gentoo.org>
56288         mountlist: add support for Interix
56289         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
56290         Apply statvfs to all entries of /dev/fs.
56291         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
56292         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
56294 2011-01-20  Jim Meyering  <meyering@redhat.com>
56296         maint.mk: improve the public-submodule-commit rule
56297         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
56298         to suppress printing of its commands... unless V=1.
56299         Add git submodule's --quiet option to suppress printing of e.g.,
56300         "Entering gnulib" output.
56301         "cd" into $(srcdir) before running git submodule.
56303 2011-01-20  Bruno Haible  <bruno@clisp.org>
56305         include_next: Fix bug introduced on 2011-01-18.
56306         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
56307         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
56308         ac_cv_header_... variable if the second argument is not 'check'.
56309         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
56310         gl_NEXT_HEADERS_INTERNAL.
56312 2011-01-20  Bruno Haible  <bruno@clisp.org>
56314         Allow the user to avoid the GNULIB_TEST_* macros.
56315         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
56316         Suggested by Paul Eggert.
56318 2011-01-14  Jim Meyering  <meyering@redhat.com>
56320         bootstrap: avoid failure when there is no .gitmodules file
56321         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
56322         has been assigned to, even when its value is the empty string.
56323         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
56324         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
56325         Reported by John W. Eaton <jwe@gnu.org>.
56327 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56329         assume <ctype.h>, ..., <time.h> exist
56330         For years gnulib has been assuming the existence of the headers
56331         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
56332         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
56333         them, since they don't appear to be needed.
56334         * README (Portability guidelines): Document this.
56335         * lib/flock.c: Assume <fcntl.h> exists.
56336         * lib/regex_internal.h: Assume <locale.h> exists.
56337         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
56338         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
56339         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
56340         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
56341         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
56342         * m4/regex.m4 (gl_REGEX): Likewise.
56343         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
56344         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
56345         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
56346         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
56347         * tests/test-argp.c: Likewise.
56348         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
56350         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
56351         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
56352         AA_APPLE_UNIVERSAL_BUILD.  See
56353         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
56354         * NEWS: Document this.
56356 2011-01-19  Eric Blake  <eblake@redhat.com>
56358         c-stack: assume stack overflow if SA_SIGINFO unsupported
56359         * lib/c-stack.c (SIGACTION_WORKS): Rename...
56360         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
56361         sigaction will work.
56362         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
56363         behavior match Linux.
56364         * tests/test-c-stack.c (main): Prefer NULL for pointers.
56366         stdbool-tests: accommodate Haiku
56367         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
56369         binary-io: fix O_TEXT on Haiku
56370         * modules/binary-io (Depends-on): Add fcntl-h.
56371         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
56372         than blindly undefining O_TEXT.
56373         Reported by Scott McCreary.
56375 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56377         include_next: do not check for standard headers like stddef.h
56379         I found this problem when modifying Emacs to use gnulib.
56380         I noticed that it added HAVE_STDDEF_H to config.h, even though
56381         gnulib always assumes <stddef.h> exists as per README and this
56382         symbol is unnecessary.
56383         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
56384         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
56385         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
56386         faster for headers like stddef.h that are known to exist.
56387         (gl_CHECK_NEXT_HEADERS): Use it.
56388         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
56389         rather than gl_CHECK_NEXT_HEADERS.
56390         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
56391         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
56393 2011-01-18  Eric Blake  <eblake@redhat.com>
56395         ansi-c++-opt: skip C++ dependency style if C++ is unused
56396         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
56397         tests when we know C++ compilation is not desired.
56398         Reported by Scott McCreary.
56400 2011-01-18  Bruno Haible  <bruno@clisp.org>
56402         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
56403         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
56404         (main): Perform test also when getrlimit and setrlimit don't exist or
56405         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
56406         limiting the address space size using setrlimit, compare the address
56407         space size before and after the test.
56408         * tests/test-dprintf-posix2.c: Likewise.
56409         * tests/test-fprintf-posix3.sh: Update skip messages.
56410         * tests/test-dprintf-posix2.sh: Likewise.
56411         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
56412         * modules/dprintf-posix-tests (Depends-on): Likewise.
56413         Reported by Bruce Korb <bkorb@gnu.org> and
56414         Gary V. Vaughan <gary@gnu.org>.
56416 2011-01-18  Bruno Haible  <bruno@clisp.org>
56418         get-rusage-as: Improvement for Cygwin.
56419         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
56420         areas that are merely reserved.
56422 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56424         strftime: remove dependencies on multibyte modules
56426         strftime depended on mbrlen, mbsinit, and wchar, but these modules
56427         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
56428         only if __osf__ is defined, and I suspect OSF doesn't need these
56429         other modules.  If my guess is wrong, we'll need to come up with a
56430         variant of strftime that doesn't need the multibyte modules.
56432         I discovered this problem when attempting modify Emacs to use the
56433         strftime module.  With the previous gnulib, this caused Emacs to
56434         need 31 new files, ranging from lib/config.charset to
56435         m4/wint_t.m4.  This was overkill and I expect would be offputting
56436         to the Emacs maintainers.  After this change, only 6 new files are
56437         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
56438         stdbool.m4, and tm_gmtoff.m4.
56440         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
56441         Suggested by Bruno Haible in
56442         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
56443         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
56444         and do not check for wchar.h.
56445         * modules/strftime (Files): Remove m4/mbstate_t.m4.
56446         (Depends-on): Remove mbrlen, mbsinit, wchar.
56448 2011-01-18  Bruno Haible  <bruno@clisp.org>
56450         Tests for module 'get-rusage-as'.
56451         * modules/get-rusage-as-tests: New file.
56452         * tests/test-get-rusage-as.c: New file.
56454         New module 'get-rusage-as'.
56455         * modules/get-rusage-as: New file.
56456         * lib/resource-ext.h: New file.
56457         * lib/get-rusage-as.c: New file.
56459 2011-01-17  Eric Blake  <eblake@redhat.com>
56461         sigaction: relax license from LGPLv3+ to LGPLv2+
56462         * modules/sigaction (License): Relax to LGPLv2+.
56464 2011-01-14  Bruno Haible  <bruno@clisp.org>
56466         filemode: Make function declarations usable in C++ mode.
56467         * lib/filemode.h: Enclose function declarations in extern "C" block.
56468         Reported by John W. Eaton <jwe@gnu.org>.
56470 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
56472         save-cwd: no longer include "xgetcwd.h"
56473         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
56474         This avoids a compilation failure in projects that use save-cwd
56475         without also using the xgetcwd module.
56477 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56479         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
56480         This is so that a program like Emacs, which needs only dtoastr,
56481         does not have to bother with distributing and compiling ftoastr
56482         and ldtoastr.
56483         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
56484         * modules/dtoastr, modules/ldtoastr: New files.
56485         * modules/ftoastr: Now works just for 'float'.
56486         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
56487         (Makefile.am): Remove ftoastr.h (not needed and no effect),
56488         dtoastr.c, ldtoastr.c.
56490 2011-01-11  Jim Meyering  <meyering@redhat.com>
56492         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
56493         There is no need to work around the lack of the fchdir function,
56494         since gnulib can now provide a replacement when required.
56495         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
56496         * modules/save-cwd (Depends-on): Add fchdir.
56498 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56500         openat, save-cwd: avoid xmalloc
56502         This removes a direct (but undocumented) dependency of openat on
56503         xalloc, along with an indirect dependency via save-cwd.  It also
56504         removes a dependency of save-cwd on xgetcwd, and thereby
56505         indirectly on xalloc.  This change causes the openat substitute
56506         to fall back on save_cwd when memory is tight, and for save_cwd to
56507         fail instead of dying when memory is tight, but that's good enough.
56508         Problem and initial idea for fix reported by Bastien Roucaries in
56509         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
56511         * lib/openat-proc.c: Include stdlib.h (for malloc), not
56512         xalloc.h (for xmalloc).
56513         (openat_proc_name): Use malloc, not xmalloc.
56514         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
56515         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
56517         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
56518         This avoids heap allocation for file names whose lengths are in
56519         the range 512..1023, with the upper bound increasing to at most
56520         4031 depending on the platform's PATH_MAX.  (We do not want
56521         pathmax.h here as it might supply a non-constant PATH_MAX.)
56522         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
56523         Perhaps they should be moved to malloca.h?
56524         (OPENAT_BUFFER_SIZE): Use them.
56526 2011-01-10  Bruno Haible  <bruno@clisp.org>
56528         doc: Update users.txt.
56529         * users.txt: Add recutils.
56531 2011-01-09  Karl Berry  <karl@gnu.org>
56533         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
56535         * doc/configmake.texi: New file.
56536         * doc/gnulib.texi: Include it.
56537         * modules/configmake: Move documentation from here.
56539 2011-01-09  Bruno Haible  <bruno@clisp.org>
56541         Update to Unicode 6.0.0.
56542         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
56543         (get_lbp): Update for Unicode 6.0.0.
56544         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
56545         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
56546         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
56547         U+11001, U+11038..U+11046. Remove U+06DE.
56548         (uc_width): Fix bounds of planes.
56549         * tests/uniwidth/test-uc_width2.sh: Same updates as in
56550         lib/uniwidth/width.c.
56551         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
56552         trailing whitespace removed.
56553         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
56554         without comments, but with the original copyright notice.
56555         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
56556         * lib/unicase/ignorable.h: Likewise.
56557         * lib/unicase/tocasefold.h: Likewise.
56558         * lib/unicase/tolower.h: Likewise.
56559         * lib/unicase/totitle.h: Likewise.
56560         * lib/unicase/toupper.h: Likewise.
56561         * lib/unictype/bidi_of.h: Likewise.
56562         * lib/unictype/blocks.h: Likewise.
56563         * lib/unictype/categ_C.h: Likewise.
56564         * lib/unictype/categ_Cn.h: Likewise.
56565         * lib/unictype/categ_L.h: Likewise.
56566         * lib/unictype/categ_Ll.h: Likewise.
56567         * lib/unictype/categ_Lm.h: Likewise.
56568         * lib/unictype/categ_Lo.h: Likewise.
56569         * lib/unictype/categ_Lu.h: Likewise.
56570         * lib/unictype/categ_M.h: Likewise.
56571         * lib/unictype/categ_Mc.h: Likewise.
56572         * lib/unictype/categ_Me.h: Likewise.
56573         * lib/unictype/categ_Mn.h: Likewise.
56574         * lib/unictype/categ_N.h: Likewise.
56575         * lib/unictype/categ_Nd.h: Likewise.
56576         * lib/unictype/categ_No.h: Likewise.
56577         * lib/unictype/categ_P.h: Likewise.
56578         * lib/unictype/categ_Po.h: Likewise.
56579         * lib/unictype/categ_S.h: Likewise.
56580         * lib/unictype/categ_Sc.h: Likewise.
56581         * lib/unictype/categ_Sk.h: Likewise.
56582         * lib/unictype/categ_Sm.h: Likewise.
56583         * lib/unictype/categ_So.h: Likewise.
56584         * lib/unictype/categ_of.h: Likewise.
56585         * lib/unictype/combining.h: Likewise.
56586         * lib/unictype/ctype_alnum.h: Likewise.
56587         * lib/unictype/ctype_alpha.h: Likewise.
56588         * lib/unictype/ctype_graph.h: Likewise.
56589         * lib/unictype/ctype_lower.h: Likewise.
56590         * lib/unictype/ctype_print.h: Likewise.
56591         * lib/unictype/ctype_punct.h: Likewise.
56592         * lib/unictype/ctype_upper.h: Likewise.
56593         * lib/unictype/decdigit.h: Likewise.
56594         * lib/unictype/digit.h: Likewise.
56595         * lib/unictype/numeric.h: Likewise.
56596         * lib/unictype/pr_alphabetic.h: Likewise.
56597         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56598         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56599         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56600         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56601         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56602         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56603         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56604         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56605         * lib/unictype/pr_case_ignorable.h: Likewise.
56606         * lib/unictype/pr_cased.h: Likewise.
56607         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
56608         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
56609         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
56610         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
56611         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
56612         * lib/unictype/pr_combining.h: Likewise.
56613         * lib/unictype/pr_composite.h: Likewise.
56614         * lib/unictype/pr_currency_symbol.h: Likewise.
56615         * lib/unictype/pr_decimal_digit.h: Likewise.
56616         * lib/unictype/pr_deprecated.h: Likewise.
56617         * lib/unictype/pr_format_control.h: Likewise.
56618         * lib/unictype/pr_grapheme_base.h: Likewise.
56619         * lib/unictype/pr_grapheme_extend.h: Likewise.
56620         * lib/unictype/pr_grapheme_link.h: Likewise.
56621         * lib/unictype/pr_id_continue.h: Likewise.
56622         * lib/unictype/pr_id_start.h: Likewise.
56623         * lib/unictype/pr_ideographic.h: Likewise.
56624         * lib/unictype/pr_lowercase.h: Likewise.
56625         * lib/unictype/pr_math.h: Likewise.
56626         * lib/unictype/pr_numeric.h: Likewise.
56627         * lib/unictype/pr_other_alphabetic.h: Likewise.
56628         * lib/unictype/pr_other_id_continue.h: Likewise.
56629         * lib/unictype/pr_other_math.h: Likewise.
56630         * lib/unictype/pr_punctuation.h: Likewise.
56631         * lib/unictype/pr_sentence_terminal.h: Likewise.
56632         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56633         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56634         * lib/unictype/pr_unified_ideograph.h: Likewise.
56635         * lib/unictype/pr_uppercase.h: Likewise.
56636         * lib/unictype/pr_xid_continue.h: Likewise.
56637         * lib/unictype/pr_xid_start.h: Likewise.
56638         * lib/unictype/scripts.h: Likewise.
56639         * lib/unictype/scripts_byname.gperf: Likewise.
56640         * lib/unictype/sy_java_ident.h: Likewise.
56641         * lib/unigbrk/gbrkprop.h: Likewise.
56642         * lib/unilbrk/lbrkprop1.h: Likewise.
56643         * lib/unilbrk/lbrkprop2.h: Likewise.
56644         * lib/uninorm/decomposition-table2.h: Likewise.
56645         * lib/uniwbrk/wbrkprop.h: Likewise.
56646         * tests/unicase/test-cased.c: Likewise.
56647         * tests/unicase/test-ignorable.c: Likewise.
56648         * tests/unicase/test-uc_tolower.c: Likewise.
56649         * tests/unicase/test-uc_totitle.c: Likewise.
56650         * tests/unicase/test-uc_toupper.c: Likewise.
56651         * tests/unictype/test-categ_C.c: Likewise.
56652         * tests/unictype/test-categ_Cn.c: Likewise.
56653         * tests/unictype/test-categ_L.c: Likewise.
56654         * tests/unictype/test-categ_Ll.c: Likewise.
56655         * tests/unictype/test-categ_Lm.c: Likewise.
56656         * tests/unictype/test-categ_Lo.c: Likewise.
56657         * tests/unictype/test-categ_Lu.c: Likewise.
56658         * tests/unictype/test-categ_M.c: Likewise.
56659         * tests/unictype/test-categ_Mc.c: Likewise.
56660         * tests/unictype/test-categ_Me.c: Likewise.
56661         * tests/unictype/test-categ_Mn.c: Likewise.
56662         * tests/unictype/test-categ_N.c: Likewise.
56663         * tests/unictype/test-categ_Nd.c: Likewise.
56664         * tests/unictype/test-categ_No.c: Likewise.
56665         * tests/unictype/test-categ_P.c: Likewise.
56666         * tests/unictype/test-categ_Po.c: Likewise.
56667         * tests/unictype/test-categ_S.c: Likewise.
56668         * tests/unictype/test-categ_Sc.c: Likewise.
56669         * tests/unictype/test-categ_Sk.c: Likewise.
56670         * tests/unictype/test-categ_Sm.c: Likewise.
56671         * tests/unictype/test-categ_So.c: Likewise.
56672         * tests/unictype/test-ctype_alnum.c: Likewise.
56673         * tests/unictype/test-ctype_alpha.c: Likewise.
56674         * tests/unictype/test-ctype_graph.c: Likewise.
56675         * tests/unictype/test-ctype_lower.c: Likewise.
56676         * tests/unictype/test-ctype_print.c: Likewise.
56677         * tests/unictype/test-ctype_punct.c: Likewise.
56678         * tests/unictype/test-ctype_upper.c: Likewise.
56679         * tests/unictype/test-decdigit.h: Likewise.
56680         * tests/unictype/test-digit.h: Likewise.
56681         * tests/unictype/test-numeric.h: Likewise.
56682         * tests/unictype/test-pr_alphabetic.c: Likewise.
56683         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56684         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56685         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56686         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56687         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56688         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56689         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56690         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56691         * tests/unictype/test-pr_case_ignorable.c: Likewise.
56692         * tests/unictype/test-pr_cased.c: Likewise.
56693         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
56694         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
56695         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
56696         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
56697         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
56698         * tests/unictype/test-pr_combining.c: Likewise.
56699         * tests/unictype/test-pr_composite.c: Likewise.
56700         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56701         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56702         * tests/unictype/test-pr_deprecated.c: Likewise.
56703         * tests/unictype/test-pr_format_control.c: Likewise.
56704         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56705         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56706         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56707         * tests/unictype/test-pr_id_continue.c: Likewise.
56708         * tests/unictype/test-pr_id_start.c: Likewise.
56709         * tests/unictype/test-pr_ideographic.c: Likewise.
56710         * tests/unictype/test-pr_lowercase.c: Likewise.
56711         * tests/unictype/test-pr_math.c: Likewise.
56712         * tests/unictype/test-pr_numeric.c: Likewise.
56713         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56714         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56715         * tests/unictype/test-pr_other_math.c: Likewise.
56716         * tests/unictype/test-pr_punctuation.c: Likewise.
56717         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56718         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56719         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56720         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56721         * tests/unictype/test-pr_uppercase.c: Likewise.
56722         * tests/unictype/test-pr_xid_continue.c: Likewise.
56723         * tests/unictype/test-pr_xid_start.c: Likewise.
56724         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
56725         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
56726         changes.
56727         * lib/unictype/categ_Cc.h: Likewise.
56728         * lib/unictype/categ_Cf.h: Likewise.
56729         * lib/unictype/categ_Co.h: Likewise.
56730         * lib/unictype/categ_Cs.h: Likewise.
56731         * lib/unictype/categ_Lt.h: Likewise.
56732         * lib/unictype/categ_Nl.h: Likewise.
56733         * lib/unictype/categ_Pc.h: Likewise.
56734         * lib/unictype/categ_Pd.h: Likewise.
56735         * lib/unictype/categ_Pe.h: Likewise.
56736         * lib/unictype/categ_Pf.h: Likewise.
56737         * lib/unictype/categ_Pi.h: Likewise.
56738         * lib/unictype/categ_Ps.h: Likewise.
56739         * lib/unictype/categ_Z.h: Likewise.
56740         * lib/unictype/categ_Zl.h: Likewise.
56741         * lib/unictype/categ_Zp.h: Likewise.
56742         * lib/unictype/categ_Zs.h: Likewise.
56743         * lib/unictype/ctype_blank.h: Likewise.
56744         * lib/unictype/ctype_cntrl.h: Likewise.
56745         * lib/unictype/ctype_digit.h: Likewise.
56746         * lib/unictype/ctype_space.h: Likewise.
56747         * lib/unictype/ctype_xdigit.h: Likewise.
56748         * lib/unictype/mirror.h: Likewise.
56749         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56750         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56751         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56752         * lib/unictype/pr_bidi_control.h: Likewise.
56753         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56754         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56755         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56756         * lib/unictype/pr_bidi_pdf.h: Likewise.
56757         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56758         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56759         * lib/unictype/pr_dash.h: Likewise.
56760         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56761         * lib/unictype/pr_diacritic.h: Likewise.
56762         * lib/unictype/pr_extender.h: Likewise.
56763         * lib/unictype/pr_hex_digit.h: Likewise.
56764         * lib/unictype/pr_hyphen.h: Likewise.
56765         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56766         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56767         * lib/unictype/pr_ignorable_control.h: Likewise.
56768         * lib/unictype/pr_iso_control.h: Likewise.
56769         * lib/unictype/pr_join_control.h: Likewise.
56770         * lib/unictype/pr_left_of_pair.h: Likewise.
56771         * lib/unictype/pr_line_separator.h: Likewise.
56772         * lib/unictype/pr_logical_order_exception.h: Likewise.
56773         * lib/unictype/pr_non_break.h: Likewise.
56774         * lib/unictype/pr_not_a_character.h: Likewise.
56775         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56776         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56777         * lib/unictype/pr_other_id_start.h: Likewise.
56778         * lib/unictype/pr_other_lowercase.h: Likewise.
56779         * lib/unictype/pr_other_uppercase.h: Likewise.
56780         * lib/unictype/pr_paired_punctuation.h: Likewise.
56781         * lib/unictype/pr_paragraph_separator.h: Likewise.
56782         * lib/unictype/pr_pattern_syntax.h: Likewise.
56783         * lib/unictype/pr_pattern_white_space.h: Likewise.
56784         * lib/unictype/pr_private_use.h: Likewise.
56785         * lib/unictype/pr_quotation_mark.h: Likewise.
56786         * lib/unictype/pr_radical.h: Likewise.
56787         * lib/unictype/pr_soft_dotted.h: Likewise.
56788         * lib/unictype/pr_space.h: Likewise.
56789         * lib/unictype/pr_titlecase.h: Likewise.
56790         * lib/unictype/pr_variation_selector.h: Likewise.
56791         * lib/unictype/pr_white_space.h: Likewise.
56792         * lib/unictype/pr_zero_width.h: Likewise.
56793         * lib/unictype/sy_c_ident.h: Likewise.
56794         * lib/unictype/sy_c_whitespace.h: Likewise.
56795         * lib/unictype/sy_java_whitespace.h: Likewise.
56796         * lib/uninorm/composition-table.gperf: Likewise.
56797         * lib/uninorm/decomposition-table1.h: Likewise.
56798         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
56799         LB8.
56800         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56801         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56802         * modules/unictype/*: Bump version number of expected libunistring
56803         version.
56805 2011-01-09  Bruno Haible  <bruno@clisp.org>
56807         Update to Unicode 5.2.0.
56808         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
56809         trailing whitespace removed.
56811 2011-01-09  Bruno Haible  <bruno@clisp.org>
56813         New Unicode character properties, from Unicode 5.2.0.
56814         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
56815         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
56816         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
56817         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
56818         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
56819         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
56820         uc_is_property_cased, uc_is_property_case_ignorable,
56821         uc_is_property_changes_when_lowercased,
56822         uc_is_property_changes_when_uppercased,
56823         uc_is_property_changes_when_titlecased,
56824         uc_is_property_changes_when_casefolded,
56825         uc_is_property_changes_when_casemapped): New declarations.
56826         * lib/unictype/pr_byname.gperf: Add the new properties.
56827         * modules/unictype/property-byname (Depends-on): Depend on the new
56828         properties modules.
56829         * modules/unictype/property-all (Depends-on): Likewise.
56830         * MODULES.html.sh (Unicode string functions): Add
56831         unictype/property-case-ignorable, unictype/property-cased,
56832         unictype/property-changes-when-casefolded,
56833         unictype/property-changes-when-casemapped,
56834         unictype/property-changes-when-lowercased,
56835         unictype/property-changes-when-titlecased,
56836         unictype/property-changes-when-uppercased.
56838         New module 'unictype/property-changes-when-casemapped'.
56839         * modules/unictype/property-changes-when-casemapped: New file.
56840         * lib/unictype/pr_changes_when_casemapped.c: New file.
56841         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
56842         generated by gen-uni-tables.
56843         * modules/unictype/property-changes-when-casemapped-tests: New file.
56844         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
56845         automatically generated by gen-uni-tables.
56847         New module 'unictype/property-changes-when-casefolded'.
56848         * modules/unictype/property-changes-when-casefolded: New file.
56849         * lib/unictype/pr_changes_when_casefolded.c: New file.
56850         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
56851         generated by gen-uni-tables.
56852         * modules/unictype/property-changes-when-casefolded-tests: New file.
56853         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
56854         automatically generated by gen-uni-tables.
56856         New module 'unictype/property-changes-when-titlecased'.
56857         * modules/unictype/property-changes-when-titlecased: New file.
56858         * lib/unictype/pr_changes_when_titlecased.c: New file.
56859         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
56860         generated by gen-uni-tables.
56861         * modules/unictype/property-changes-when-titlecased-tests: New file.
56862         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
56863         automatically generated by gen-uni-tables.
56865         New module 'unictype/property-changes-when-uppercased'.
56866         * modules/unictype/property-changes-when-uppercased: New file.
56867         * lib/unictype/pr_changes_when_uppercased.c: New file.
56868         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
56869         generated by gen-uni-tables.
56870         * modules/unictype/property-changes-when-uppercased-tests: New file.
56871         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
56872         automatically generated by gen-uni-tables.
56874         New module 'unictype/property-changes-when-lowercased'.
56875         * modules/unictype/property-changes-when-lowercased: New file.
56876         * lib/unictype/pr_changes_when_lowercased.c: New file.
56877         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
56878         generated by gen-uni-tables.
56879         * modules/unictype/property-changes-when-lowercased-tests: New file.
56880         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
56881         automatically generated by gen-uni-tables.
56883         New module 'unictype/property-case-ignorable'.
56884         * modules/unictype/property-case-ignorable: New file.
56885         * lib/unictype/pr_case_ignorable.c: New file.
56886         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
56887         by gen-uni-tables.
56888         * modules/unictype/property-case-ignorable-tests: New file.
56889         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
56890         generated by gen-uni-tables.
56892         New module 'unictype/property-cased'.
56893         * modules/unictype/property-cased: New file.
56894         * lib/unictype/pr_cased.c: New file.
56895         * lib/unictype/pr_cased.h: New file, automatically generated by
56896         gen-uni-tables.
56897         * modules/unictype/property-cased-tests: New file.
56898         * tests/unictype/test-pr_cased.c: New file, automatically generated by
56899         gen-uni-tables.
56901 2011-01-09  Bruno Haible  <bruno@clisp.org>
56903         Update to Unicode 5.2.0.
56904         * lib/gen-uni-tables.c (output_predicate, output_category,
56905         output_combclass, output_bidi_category, output_decimal_digit_test,
56906         output_decimal_digit, output_digit_test, output_digit,
56907         output_numeric_test, output_numeric, output_mirror, output_scripts,
56908         output_scripts_byname, output_blocks, output_ident_category): Fix
56909         comment header.
56910         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
56911         get_wbp.
56912         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
56913         items.
56914         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
56915         Changes_When_Lowercased, Changes_When_Uppercased,
56916         Changes_When_Titlecased, Changes_When_Casefolded,
56917         Changes_When_Casemapped.
56918         (is_property_alphabetic, is_property_default_ignorable_code_point):
56919         Update for Unicode 5.2.0.
56920         (is_property_cased, is_property_case_ignorable,
56921         is_property_changes_when_lowercased,
56922         is_property_changes_when_uppercased,
56923         is_property_changes_when_titlecased,
56924         is_property_changes_when_casefolded,
56925         is_property_changes_when_casemapped): New functions.
56926         (output_properties): Output also the properties cased, case_ignorable,
56927         changes_when_lowercased, changes_when_uppercased,
56928         changes_when_titlecased, changes_when_casefolded,
56929         changes_when_casemapped.
56930         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
56931         Unicode TR#11 revision 17 -> 19.
56932         (LBP_CP): New enumeration value.
56933         (LBP_*): Adjust values accordingly.
56934         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
56935         TR#14 revision 22 -> 24.
56936         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
56937         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
56938         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
56939         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
56940         is_WBP_MIDLETTER.
56941         (output_composition_tables): Allow for 24 bits instead of 16 bits in
56942         the code1 and code2 of each composition rule.
56943         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
56944         * lib/unicase/ignorable.h: Likewise.
56945         * lib/unicase/tocasefold.h: Likewise.
56946         * lib/unicase/tolower.h: Likewise.
56947         * lib/unicase/totitle.h: Likewise.
56948         * lib/unicase/toupper.h: Likewise.
56949         * lib/unictype/bidi_of.h: Likewise.
56950         * lib/unictype/blocks.h: Likewise.
56951         * lib/unictype/categ_C.h: Likewise.
56952         * lib/unictype/categ_Cf.h: Likewise.
56953         * lib/unictype/categ_Cn.h: Likewise.
56954         * lib/unictype/categ_L.h: Likewise.
56955         * lib/unictype/categ_Ll.h: Likewise.
56956         * lib/unictype/categ_Lm.h: Likewise.
56957         * lib/unictype/categ_Lo.h: Likewise.
56958         * lib/unictype/categ_Lu.h: Likewise.
56959         * lib/unictype/categ_M.h: Likewise.
56960         * lib/unictype/categ_Mc.h: Likewise.
56961         * lib/unictype/categ_Mn.h: Likewise.
56962         * lib/unictype/categ_N.h: Likewise.
56963         * lib/unictype/categ_Nd.h: Likewise.
56964         * lib/unictype/categ_Nl.h: Likewise.
56965         * lib/unictype/categ_No.h: Likewise.
56966         * lib/unictype/categ_P.h: Likewise.
56967         * lib/unictype/categ_Pd.h: Likewise.
56968         * lib/unictype/categ_Po.h: Likewise.
56969         * lib/unictype/categ_S.h: Likewise.
56970         * lib/unictype/categ_Sc.h: Likewise.
56971         * lib/unictype/categ_So.h: Likewise.
56972         * lib/unictype/categ_of.h: Likewise.
56973         * lib/unictype/combining.h: Likewise.
56974         * lib/unictype/ctype_alnum.h: Likewise.
56975         * lib/unictype/ctype_alpha.h: Likewise.
56976         * lib/unictype/ctype_graph.h: Likewise.
56977         * lib/unictype/ctype_lower.h: Likewise.
56978         * lib/unictype/ctype_print.h: Likewise.
56979         * lib/unictype/ctype_punct.h: Likewise.
56980         * lib/unictype/ctype_upper.h: Likewise.
56981         * lib/unictype/decdigit.h: Likewise.
56982         * lib/unictype/digit.h: Likewise.
56983         * lib/unictype/numeric.h: Likewise.
56984         * lib/unictype/pr_alphabetic.h: Likewise.
56985         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56986         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56987         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56988         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56989         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56990         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56991         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56992         * lib/unictype/pr_combining.h: Likewise.
56993         * lib/unictype/pr_composite.h: Likewise.
56994         * lib/unictype/pr_currency_symbol.h: Likewise.
56995         * lib/unictype/pr_dash.h: Likewise.
56996         * lib/unictype/pr_decimal_digit.h: Likewise.
56997         * lib/unictype/pr_deprecated.h: Likewise.
56998         * lib/unictype/pr_diacritic.h: Likewise.
56999         * lib/unictype/pr_extender.h: Likewise.
57000         * lib/unictype/pr_grapheme_base.h: Likewise.
57001         * lib/unictype/pr_grapheme_extend.h: Likewise.
57002         * lib/unictype/pr_grapheme_link.h: Likewise.
57003         * lib/unictype/pr_id_continue.h: Likewise.
57004         * lib/unictype/pr_id_start.h: Likewise.
57005         * lib/unictype/pr_ideographic.h: Likewise.
57006         * lib/unictype/pr_ignorable_control.h: Likewise.
57007         * lib/unictype/pr_logical_order_exception.h: Likewise.
57008         * lib/unictype/pr_lowercase.h: Likewise.
57009         * lib/unictype/pr_numeric.h: Likewise.
57010         * lib/unictype/pr_other_alphabetic.h: Likewise.
57011         * lib/unictype/pr_punctuation.h: Likewise.
57012         * lib/unictype/pr_sentence_terminal.h: Likewise.
57013         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57014         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57015         * lib/unictype/pr_unified_ideograph.h: Likewise.
57016         * lib/unictype/pr_uppercase.h: Likewise.
57017         * lib/unictype/pr_xid_continue.h: Likewise.
57018         * lib/unictype/pr_xid_start.h: Likewise.
57019         * lib/unictype/pr_zero_width.h: Likewise.
57020         * lib/unictype/scripts.h: Likewise.
57021         * lib/unictype/scripts_byname.gperf: Likewise.
57022         * lib/unictype/sy_java_ident.h: Likewise.
57023         * lib/unigbrk/gbrkprop.h: Likewise.
57024         * lib/unilbrk/lbrkprop1.h: Likewise.
57025         * lib/unilbrk/lbrkprop2.h: Likewise.
57026         * lib/unilbrk/lbrktables.h: Likewise.
57027         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
57028         LBP_CP. Implement rule LB30.
57029         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
57030         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
57031         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
57032         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
57033         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
57034         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
57035         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
57036         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
57037         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
57038         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
57039         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
57040         bits instead of 16 bits in the code1 and code2 of each composition
57041         rule.
57042         (uc_composition): Update for Unicode 5.2.0.
57043         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
57044         * lib/uninorm/decomposition-table2.h: Likewise.
57045         * lib/uniwbrk/wbrkprop.h: Likewise.
57046         * tests/unicase/test-cased.c: Likewise.
57047         * tests/unicase/test-ignorable.c: Likewise.
57048         * tests/unicase/test-uc_tolower.c: Likewise.
57049         * tests/unicase/test-uc_totitle.c: Likewise.
57050         * tests/unicase/test-uc_toupper.c: Likewise.
57051         * tests/unictype/test-categ_C.c: Likewise.
57052         * tests/unictype/test-categ_Cf.c: Likewise.
57053         * tests/unictype/test-categ_Cn.c: Likewise.
57054         * tests/unictype/test-categ_L.c: Likewise.
57055         * tests/unictype/test-categ_Ll.c: Likewise.
57056         * tests/unictype/test-categ_Lm.c: Likewise.
57057         * tests/unictype/test-categ_Lo.c: Likewise.
57058         * tests/unictype/test-categ_Lu.c: Likewise.
57059         * tests/unictype/test-categ_M.c: Likewise.
57060         * tests/unictype/test-categ_Mc.c: Likewise.
57061         * tests/unictype/test-categ_Mn.c: Likewise.
57062         * tests/unictype/test-categ_N.c: Likewise.
57063         * tests/unictype/test-categ_Nd.c: Likewise.
57064         * tests/unictype/test-categ_Nl.c: Likewise.
57065         * tests/unictype/test-categ_No.c: Likewise.
57066         * tests/unictype/test-categ_P.c: Likewise.
57067         * tests/unictype/test-categ_Pd.c: Likewise.
57068         * tests/unictype/test-categ_Po.c: Likewise.
57069         * tests/unictype/test-categ_S.c: Likewise.
57070         * tests/unictype/test-categ_Sc.c: Likewise.
57071         * tests/unictype/test-categ_So.c: Likewise.
57072         * tests/unictype/test-ctype_alnum.c: Likewise.
57073         * tests/unictype/test-ctype_alpha.c: Likewise.
57074         * tests/unictype/test-ctype_graph.c: Likewise.
57075         * tests/unictype/test-ctype_lower.c: Likewise.
57076         * tests/unictype/test-ctype_print.c: Likewise.
57077         * tests/unictype/test-ctype_punct.c: Likewise.
57078         * tests/unictype/test-ctype_upper.c: Likewise.
57079         * tests/unictype/test-decdigit.h: Likewise.
57080         * tests/unictype/test-digit.h: Likewise.
57081         * tests/unictype/test-numeric.h: Likewise.
57082         * tests/unictype/test-pr_alphabetic.c: Likewise.
57083         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57084         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57085         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
57086         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57087         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57088         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57089         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57090         * tests/unictype/test-pr_combining.c: Likewise.
57091         * tests/unictype/test-pr_composite.c: Likewise.
57092         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57093         * tests/unictype/test-pr_dash.c: Likewise.
57094         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57095         * tests/unictype/test-pr_deprecated.c: Likewise.
57096         * tests/unictype/test-pr_diacritic.c: Likewise.
57097         * tests/unictype/test-pr_extender.c: Likewise.
57098         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57099         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57100         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57101         * tests/unictype/test-pr_id_continue.c: Likewise.
57102         * tests/unictype/test-pr_id_start.c: Likewise.
57103         * tests/unictype/test-pr_ideographic.c: Likewise.
57104         * tests/unictype/test-pr_ignorable_control.c: Likewise.
57105         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
57106         * tests/unictype/test-pr_lowercase.c: Likewise.
57107         * tests/unictype/test-pr_numeric.c: Likewise.
57108         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57109         * tests/unictype/test-pr_punctuation.c: Likewise.
57110         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57111         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57112         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57113         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57114         * tests/unictype/test-pr_uppercase.c: Likewise.
57115         * tests/unictype/test-pr_xid_continue.c: Likewise.
57116         * tests/unictype/test-pr_xid_start.c: Likewise.
57117         * tests/unictype/test-pr_zero_width.c: Likewise.
57118         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
57119         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
57120         changed behaviour: line breaking is now disallowed between a letter
57121         or '=' and '('.
57122         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57123         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57124         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57125         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
57126         * tests/uniwidth/test-uc_width2.sh: Same updates as in
57127         lib/uniwidth/width.c.
57128         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
57129         without comments, but with the original copyright notice.
57130         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
57131         changes.
57132         * lib/unictype/categ_Cc.h: Likewise.
57133         * lib/unictype/categ_Co.h: Likewise.
57134         * lib/unictype/categ_Cs.h: Likewise.
57135         * lib/unictype/categ_Lt.h: Likewise.
57136         * lib/unictype/categ_Me.h: Likewise.
57137         * lib/unictype/categ_Pc.h: Likewise.
57138         * lib/unictype/categ_Pe.h: Likewise.
57139         * lib/unictype/categ_Pf.h: Likewise.
57140         * lib/unictype/categ_Pi.h: Likewise.
57141         * lib/unictype/categ_Ps.h: Likewise.
57142         * lib/unictype/categ_Sk.h: Likewise.
57143         * lib/unictype/categ_Sm.h: Likewise.
57144         * lib/unictype/categ_Z.h: Likewise.
57145         * lib/unictype/categ_Zl.h: Likewise.
57146         * lib/unictype/categ_Zp.h: Likewise.
57147         * lib/unictype/categ_Zs.h: Likewise.
57148         * lib/unictype/ctype_blank.h: Likewise.
57149         * lib/unictype/ctype_cntrl.h: Likewise.
57150         * lib/unictype/ctype_digit.h: Likewise.
57151         * lib/unictype/ctype_space.h: Likewise.
57152         * lib/unictype/ctype_xdigit.h: Likewise.
57153         * lib/unictype/mirror.h: Likewise.
57154         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57155         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57156         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57157         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57158         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57159         * lib/unictype/pr_bidi_control.h: Likewise.
57160         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57161         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57162         * lib/unictype/pr_bidi_pdf.h: Likewise.
57163         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57164         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57165         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57166         * lib/unictype/pr_format_control.h: Likewise.
57167         * lib/unictype/pr_hex_digit.h: Likewise.
57168         * lib/unictype/pr_hyphen.h: Likewise.
57169         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57170         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57171         * lib/unictype/pr_iso_control.h: Likewise.
57172         * lib/unictype/pr_join_control.h: Likewise.
57173         * lib/unictype/pr_left_of_pair.h: Likewise.
57174         * lib/unictype/pr_line_separator.h: Likewise.
57175         * lib/unictype/pr_math.h: Likewise.
57176         * lib/unictype/pr_non_break.h: Likewise.
57177         * lib/unictype/pr_not_a_character.h: Likewise.
57178         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57179         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57180         * lib/unictype/pr_other_id_continue.h: Likewise.
57181         * lib/unictype/pr_other_id_start.h: Likewise.
57182         * lib/unictype/pr_other_lowercase.h: Likewise.
57183         * lib/unictype/pr_other_math.h: Likewise.
57184         * lib/unictype/pr_other_uppercase.h: Likewise.
57185         * lib/unictype/pr_paired_punctuation.h: Likewise.
57186         * lib/unictype/pr_paragraph_separator.h: Likewise.
57187         * lib/unictype/pr_pattern_syntax.h: Likewise.
57188         * lib/unictype/pr_pattern_white_space.h: Likewise.
57189         * lib/unictype/pr_private_use.h: Likewise.
57190         * lib/unictype/pr_quotation_mark.h: Likewise.
57191         * lib/unictype/pr_radical.h: Likewise.
57192         * lib/unictype/pr_soft_dotted.h: Likewise.
57193         * lib/unictype/pr_space.h: Likewise.
57194         * lib/unictype/pr_titlecase.h: Likewise.
57195         * lib/unictype/pr_variation_selector.h: Likewise.
57196         * lib/unictype/pr_white_space.h: Likewise.
57197         * lib/unictype/sy_c_ident.h: Likewise.
57198         * lib/unictype/sy_c_whitespace.h: Likewise.
57199         * lib/unictype/sy_java_whitespace.h: Likewise.
57200         * modules/uni*/*: Bump version number of expected libunistring version.
57201         Reported by Simon Josefsson.
57203 2011-01-09  Karl Heuer  <kwzh@gnu.org>
57205         useless-if-before-free: fix typo in --help and make the internal,
57206         automatic version date update process work once again.
57207         --help output contained a NUL character instead of the
57208         backslash-zero that was intended.  Also, the "must lie within
57209         the first 8 lines" line is on line 9, and hence not getting
57210         automatically updated.
57211         * build-aux/useless-if-before-free: Fix the former by adding a
57212         backslash, and the latter by condensing the three lines of what-it-does
57213         to a single line, leaving one line of slack for the future.
57215 2011-01-09  Bruno Haible  <bruno@clisp.org>
57217         uniwidth/width: Fix width of U+1D173..U+1D17A.
57218         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
57219         symbolic_width, output_width_property_test): New functions.
57220         (main): Invoke output_nonspacing_property, output_width_property_test.
57221         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
57222         U+1D173..U+1D17A.
57223         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
57224         1.
57225         * modules/uniwidth/*: Bump version number of expected libunistring
57226         version.
57227         * modules/unilbrk/*: Likewise.
57229 2011-01-08  Bruno Haible  <bruno@clisp.org>
57231         uninorm tests: Preserve copyright of Unicode data file.
57232         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
57233         Mention modifications.
57235 2011-01-08  Bruno Haible  <bruno@clisp.org>
57237         gen-uni-tables: Prepare for Unicode 5.2.0.
57238         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
57239         (debug_output_lbp, output_lbp): Update.
57241 2011-01-08  Bruno Haible  <bruno@clisp.org>
57243         unilbrk: Clarify gen-uni-tables.c code.
57244         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
57245         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
57246         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
57248 2011-01-07  Bruno Haible  <bruno@clisp.org>
57250         strtod: Restore errno when successfully parsing Infinity or NaN.
57251         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
57252         restore the original errno.
57254 2011-01-07  Bruno Haible  <bruno@clisp.org>
57256         remove test: Avoid failure on HP-UX 11.
57257         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
57259 2011-01-07  Bruno Haible  <bruno@clisp.org>
57261         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
57262         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
57263         error code.
57265 2011-01-07  Pádraig Brady  <P@draigBrady.com>
57267         ignore-value: fixup comments, and add Eric Blake
57268         as an author since he rewrote the macros.
57269         * lib/ignore-value.h (ignore_value):  State that
57270         we now support aggregates.  Also specify exactly
57271         when the GCC warn_unused_result feature was added.
57273 2011-01-06  Eric Blake  <eblake@redhat.com>
57275         ignore-value: support aggregate types
57276         * lib/ignore-value.h (ignore_value): Provide separate gcc
57277         definition.
57278         * modules/ignore-value-tests: New test module.
57279         * tests/test-ignore-value.c: New test.
57281         maint.mk: improve sc_prohibit_strcmp regex
57282         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
57283         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
57284         definition of STRNEQ.
57286         signal: work around Haiku issue with SIGBUS
57287         * lib/siglist.h: Add comment.
57288         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
57289         strsignal's favoring of SIGSEGV.
57290         * tests/test-signal.c (main): Avoid test failure.
57291         * doc/posix-headers/signal.texi (signal.h): Document the issue.
57292         Reported by Scott McCreary.
57294         maint.mk: add pre-release check to ensure submodule commits are public
57295         * top/maint.mk (public-submodule-commit): New rule.
57296         (submodule-checks): New variable.
57297         (alpha beta stable): Depend on the variable.
57299 2011-01-05  Pádraig Brady  <P@draigBrady.com>
57300         and Jim Meyering  <meyering@redhat.com>
57302         ignore-value: make ignore_value more generic; deprecate ignore_ptr
57303         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
57304         (ATTRIBUTE_DEPRECATED): Define.
57305         (_ignore_case): New function.
57306         (ignore_value): New macro, to replace the old function.
57307         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
57308         * modules/ignore-value (Depends-on): Add stdint.
57310 2011-01-04  Eric Blake  <eblake@redhat.com>
57312         doc: regenerate INSTALL
57313         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
57314         @firstparagraphindent support, now that autoconf dropped it.
57315         (INSTALL_PRELUDE): Reinstate old macro.
57316         * doc/install.texi: Resync from autoconf.
57317         * doc/INSTALL: Reflect recent autoconf update.
57318         * doc/INSTALL.ISO: Likewise.
57319         * doc/INSTALL.UTF-8: Likewise.
57320         Reported by Karl Berry.
57322 2011-01-04  Bruce Korb  <address@hidden>
57324         git-version-gen: avoid a sub-shell
57325         * build-aux/git-version-gen: Redirect stderr in `...` via
57326         "exec 2>...", rather than via an added sub-shell.
57328 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
57330         git-version-gen: use (...) rather than sh -c '...'
57331         * build-aux/git-version-gen: Rather than hard-coding a shell's name
57332         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
57334 2011-01-03  Jim Meyering  <meyering@redhat.com>
57336         git-version-gen: convert leading TABs to spaces
57337         * build-aux/git-version-gen: Expand leading TABs.
57339         git-version-gen: handle failed "git rev-list"
57340         * build-aux/git-version-gen: Rather than leaking a "fatal" error
57341         from git and proceeding as if it had succeeded but printed no SHA1
57342         checksums, suppress the diagnostic and handle the failure.
57343         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
57345         git-version-gen: include command name in one more diagnostic
57346         * build-aux/git-version-gen: When the required .tarball-version file
57347         was missing or unreadable, you might see the diagnostic from "cat",
57348         but no trace of the name of the invoking script.  Now, you still see
57349         the diagnostic from cat, but also get one from "git-version-gen: ".
57350         Inspired by a patch from Bruce Korb.
57352         update-copyright: adjust test to match changed code
57353         * tests/test-update-copyright.sh: Change test's expected output
57354         to match new actual output.
57356 2011-01-02  Bruno Haible  <bruno@clisp.org>
57358         getlogin_r: Avoid test failure on HP-UX 11.
57359         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
57360         ERANGE when the second argument is zero.
57361         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
57362         portability problem.
57364 2011-01-02  Bruce Korb  <bkorb@gnu.org>
57366         * build-aux/update-copyright: doc Simon's changes
57368 2011-01-02  Simon Josefsson  <simon@josefsson.org>
57370         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
57371         environment variable.
57373 2011-01-02  Bruno Haible  <bruno@clisp.org>
57375         unigbrk: Avoid gcc warnings.
57376         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
57377         unused variable.
57378         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
57379         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
57380         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
57381         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
57382         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
57383         Change type of first argument to 'const char *'.
57384         (main): Remove unused variable.
57385         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
57386         type of first argument to 'const char *'.
57387         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
57388         Likewise.
57389         (main): Change type of variable 's'.
57390         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
57391         to 'int'.
57393 2011-01-02  Bruno Haible  <bruno@clisp.org>
57395         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
57396         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
57397         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
57398         bug.
57399         * lib/pwrite.c: Undo 2010-12-31 patch.
57400         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
57402 2011-01-02  Bruno Haible  <bruno@clisp.org>
57404         pread: Fix test whether it works.
57405         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
57407 2011-01-02  Bruno Haible  <bruno@clisp.org>
57409         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
57410         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
57411         ends in "6". Don't require a specific month name. Try also the locale
57412         names found on HP-UX 11 and Solaris 7.
57414 2011-01-02  Bruno Haible  <bruno@clisp.org>
57416         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
57417         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
57418         C linkage.
57419         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
57421 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57423         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
57424         for consistency, since the "cluster" term is not used elsewhere.
57425         * lib/unigbrk.in.h: Update name.
57426         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
57427         * lib/unigbrk/u16-grapheme-next.c: Update name.
57428         * lib/unigbrk/u16-grapheme-prev.c: Update name.
57429         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
57430         * lib/unigbrk/u32-grapheme-next.c: Update name.
57431         * lib/unigbrk/u32-grapheme-prev.c: Update name.
57432         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
57433         * lib/unigbrk/u8-grapheme-next.c: Update name.
57434         * lib/unigbrk/u8-grapheme-prev.c: Update name.
57435         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
57436         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
57437         Suggested by Bruno Haible.
57439 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57441         Remove module 'u8-grapheme-len' as too redundant with
57442         'u8-grapheme-next'.
57443         * modules/unigbrk/u8-grapheme-len: Delete file.
57444         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
57445         * lib/unigbrk.in.h: Remove prototype for deleted function.
57446         * lib/unigbrk/u8-grapheme-len.c: Delete file.
57447         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
57449         Remove module 'u16-grapheme-len' as too redundant with
57450         'u16-grapheme-next'.
57451         * modules/unigbrk/u16-grapheme-len: Delete file.
57452         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
57453         * lib/unigbrk.in.h: Remove prototype for deleted function.
57454         * lib/unigbrk/u16-grapheme-len.c: Delete file.
57455         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
57457         Remove module 'u32-grapheme-len' as too redundant with
57458         'u32-grapheme-next'.
57459         * modules/unigbrk/u32-grapheme-len: Delete file.
57460         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
57461         * lib/unigbrk.in.h: Remove prototype for deleted function.
57462         * lib/unigbrk/u32-grapheme-len.c: Delete file.
57463         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
57465         Suggested by Bruno Haible.
57467 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57469         * unigbrk.in.h: Fix typo: "ben" => "been".
57470         Reported by Bruno Haible.
57472 2011-01-01  Jim Meyering  <meyering@redhat.com>
57474         maint: update almost all copyright ranges to include 2011
57475         Run the new "make update-copyright" rule.
57477 2011-01-01  Jim Meyering  <meyering@redhat.com>
57479         maint: update-copyright: exempt doc/INSTALL*
57480         * Makefile (update-copyright): Also exclude doc/INSTALL*,
57481         since they are generated.  Suggested by Bruno Haible.
57483 2011-01-01  Jim Meyering  <meyering@redhat.com>
57485         maint: refine the update-copyright rule
57486         * Makefile (update-copyright): Also exclude any file that includes
57487         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
57488         code that merely generates the comment.
57490 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
57492         New module 'u8-grapheme-len'.
57493         * modules/unigbrk/u8-grapheme-len: New file.
57494         * modules/unigbrk/u8-grapheme-len-tests: New file.
57495         * lib/unigbrk.in.h: Add prototype for new function.
57496         * lib/unigbrk/u8-grapheme-len.c: New file.
57497         * tests/unigbrk/test-u8-grapheme-len.c: New file.
57499         New module 'u16-grapheme-len'.
57500         * modules/unigbrk/u16-grapheme-len: New file.
57501         * modules/unigbrk/u16-grapheme-len-tests: New file.
57502         * lib/unigbrk.in.h: Add prototype for new function.
57503         * lib/unigbrk/u16-grapheme-len.c: New file.
57504         * tests/unigbrk/test-u16-grapheme-len.c: New file.
57506         New module 'u32-grapheme-len'.
57507         * modules/unigbrk/u32-grapheme-len: New file.
57508         * modules/unigbrk/u32-grapheme-len-tests: New file.
57509         * lib/unigbrk.in.h: Add prototype for new function.
57510         * lib/unigbrk/u32-grapheme-len.c: New file.
57511         * tests/unigbrk/test-u32-grapheme-len.c: New file.
57513         New module 'u8-grapheme-next'.
57514         * modules/unigbrk/u8-grapheme-next: New file.
57515         * modules/unigbrk/u8-grapheme-next-tests: New file.
57516         * lib/unigbrk.in.h: Add prototype for new function.
57517         * lib/unigbrk/u8-grapheme-next.c: New file.
57518         * tests/unigbrk/test-u8-grapheme-next.c: New file.
57520         New module 'u16-grapheme-next'.
57521         * modules/unigbrk/u16-grapheme-next: New file.
57522         * modules/unigbrk/u16-grapheme-next-tests: New file.
57523         * lib/unigbrk.in.h: Add prototype for new function.
57524         * lib/unigbrk/u16-grapheme-next.c: New file.
57525         * tests/unigbrk/test-u16-grapheme-next.c: New file.
57527         New module 'u32-grapheme-next'.
57528         * modules/unigbrk/u32-grapheme-next: New file.
57529         * modules/unigbrk/u32-grapheme-next-tests: New file.
57530         * lib/unigbrk.in.h: Add prototype for new function.
57531         * lib/unigbrk/u32-grapheme-next.c: New file.
57532         * tests/unigbrk/test-u32-grapheme-next.c: New file.
57534         New module 'u8-grapheme-prev'.
57535         * modules/unigbrk/u8-grapheme-prev: New file.
57536         * modules/unigbrk/u8-grapheme-prev-tests: New file.
57537         * lib/unigbrk.in.h: Add prototype for new function.
57538         * lib/unigbrk/u8-grapheme-prev.c: New file.
57539         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
57541         New module 'u16-grapheme-prev'.
57542         * modules/unigbrk/u16-grapheme-prev: New file.
57543         * modules/unigbrk/u16-grapheme-prev-tests: New file.
57544         * lib/unigbrk.in.h: Add prototype for new function.
57545         * lib/unigbrk/u16-grapheme-prev.c: New file.
57546         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
57548         New module 'u32-grapheme-prev'.
57549         * modules/unigbrk/u32-grapheme-prev: New file.
57550         * modules/unigbrk/u32-grapheme-prev-tests: New file.
57551         * lib/unigbrk.in.h: Add prototype for new function.
57552         * lib/unigbrk/u32-grapheme-prev.c: New file.
57553         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
57555         New module 'u8-grapheme-breaks'.
57556         * modules/unigbrk/u8-grapheme-breaks: New file.
57557         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
57558         * lib/unigbrk.in.h: Add prototype for new function.
57559         * lib/unigbrk/u8-grapheme-breaks.c: New file.
57560         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
57562         New module 'u16-grapheme-breaks'.
57563         * modules/unigbrk/u16-grapheme-breaks: New file.
57564         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
57565         * lib/unigbrk.in.h: Add prototype for new function.
57566         * lib/unigbrk/u16-grapheme-breaks.c: New file.
57567         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
57569         New module 'u32-grapheme-breaks'.
57570         * modules/unigbrk/u32-grapheme-breaks: New file.
57571         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
57572         * lib/unigbrk.in.h: Add prototype for new function.
57573         * lib/unigbrk/u32-grapheme-breaks.c: New file.
57574         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
57576         New module 'ulc-grapheme-breaks'.
57577         * modules/unigbrk/ulc-grapheme-breaks: New file.
57578         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
57579         * m4/locale-ar.m4: New file.
57580         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
57581         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
57582         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
57584 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
57586         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
57587         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
57588         modified how this file was generated before I initially submitted
57589         the module, but failed to regenerate it.  This meant that several
57590         of the level2 entries were wrong.
57591         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
57592         Remove the division-by-2 that is folded into the table now that
57593         gbrkprop.h has been regenerated properly.  Now -1 entries are
57594         handled correctly.
57596         New module 'unigbrk/uc-gbrk-prop-tests'.
57597         * modules/unigbrk/uc-gbrk-prop-tests: New file.
57598         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
57599         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
57600         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
57602 2011-01-01  Bruno Haible  <bruno@clisp.org>
57604         Avoid use of hexadecimal escapes.
57605         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
57606         instead of hexadecimal escapes.
57608 2011-01-01  Jim Meyering  <meyering@redhat.com>
57610         maint: new rule to update copyright year ranges
57611         * Makefile (update-copyright): New rule.
57613         maint: indent with TABs in Makefile
57614         * Makefile: Expand leading sequences of spaces to TABs
57616         version-etc: update the copyright year it reports
57617         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
57619 2010-12-31  Bruno Haible  <bruno@clisp.org>
57621         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
57622         * lib/isfinite.c (zerof, zerod, zerol): New variables.
57623         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
57624         zero.
57626 2010-12-31  Bruno Haible  <bruno@clisp.org>
57628         pwrite: Work around HP-UX 11.11 bug.
57629         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
57630         works and set REPLACE_PWRITE if not.
57631         * lib/pwrite.c (pwrite): Add an implementation that uses the system
57632         function.
57633         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
57635 2010-12-31  Bruno Haible  <bruno@clisp.org>
57637         pread: Work around HP-UX 11 bugs.
57638         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
57639         and set REPLACE_PREAD if not.
57640         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
57642 2010-12-31  Eric Blake  <eblake@redhat.com>
57644         nl_langinfo: fix YESEXPR on Irix 6.5
57645         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
57646         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
57647         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
57648         it.
57650 2010-12-31  Bruno Haible  <bruno@clisp.org>
57652         iconv: Document HP-UX 11 bug.
57653         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
57655 2010-12-31  Bruno Haible  <bruno@clisp.org>
57657         ldexpl: Fix link error on HP-UX 11.
57658         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
57659         LDEXPL_LIBM, using $ISNANL_LIBM.
57661 2010-12-31  Eric Blake  <eblake@redhat.com>
57663         ftello: avoid compilation failure with SunStudio c89
57664         * lib/ftello.c (ftello): Use lseek, not llseek.
57666         tests: avoid failing coreutils tests on cygwin
57667         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
57668         (create_exe_shims_): Return 0 when skipping.
57670 2010-12-31  Bruno Haible  <bruno@clisp.org>
57672         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
57673         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
57675 2010-12-31  Bruno Haible  <bruno@clisp.org>
57677         waitpid: Fix link error in C++ mode.
57678         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
57680 2010-12-31  Bruno Haible  <bruno@clisp.org>
57682         isnan: Use GCC built-ins when possible.
57683         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
57684         __builtin_isnan.
57685         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
57686         (isnan): Define using GCC built-ins for GCC >= 4.0.
57688 2010-12-31  Bruno Haible  <bruno@clisp.org>
57690         isnand: Fix mistake.
57691         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
57692         __builtin_isnand.
57694 2010-12-31  Bruno Haible  <bruno@clisp.org>
57696         open: Avoid C++ error on HP-UX 11.
57697         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
57699 2010-12-31  Bruno Haible  <bruno@clisp.org>
57701         time_r: Add missing declarations on HP-UX 11.
57702         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
57703         instead of HAVE_LOCALTIME_R.
57704         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
57705         HAVE_LOCALTIME_R always.
57706         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
57707         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
57708         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
57709         HAVE_LOCALTIME_R.
57710         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
57711         * doc/posix-functions/localtime_r.texi: Likewise.
57713 2010-12-29  Eric Blake  <eblake@redhat.com>
57715         mountlist: tweak previous commit
57716         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
57717         Reported by Paul Eggert.
57719         mountlist: fix local drive detection on cygwin
57720         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
57721         that works for cygwin.
57723 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57725         ftoastr, snprintf: ftoastr + snprintf module
57726         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
57727         since the snprintf module now should be good enough here.
57728         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
57729         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
57730         and gl_MODULE_INDICATOR([snprintf]), but the former enables
57731         GNULIB_SNPRINTF only for the test directory, and the latter
57732         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
57733         seems to suffice by itself.
57735 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57737         alloca: one step towards thread-safety
57738         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
57739         need for a static variable.  All callers changed.  This does not
57740         make the alloca replacement thread-safe, but it's one step.
57742         tests: minor indenting change
57743         * tests/init.sh: Sync from coreutils housekeeping patch
57744         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
57745         to keep lines within 80 columns.
57747 2010-12-28  Jim Meyering  <meyering@redhat.com>
57749         regex: don't infloop on persistent failing calloc
57750         * lib/regexec.c (build_trtable): Return failure indication upon
57751         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
57752         In glibc, this was fixed for version 2.13:
57753         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
57755 2010-12-28  Bruno Haible  <bruno@clisp.org>
57756             Paul Eggert <eggert@cs.ucla.edu>
57758         linkat: Make implementation robust against system behaviour variations.
57759         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
57760         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
57761         way, and to -2 if it needs a generic runtime test.
57762         * lib/linkat.c (solaris_optimized_link_immediate,
57763         solaris_optimized_link_follow): New functions.
57764         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
57765         (check_same_link): Use it.
57767 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
57769         New module 'unigbrk/base'.
57770         * modules/unigbrk/base: New file.
57771         * lib/unigbrk.in.h: New file.
57773         New module 'unigbrk/uc-gbrk-prop'.
57774         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
57775         * modules/unigbrk/uc-gbrk-prop: New file.
57776         * lib/unigbrk/gbrkprop.h: New file.
57777         * lib/unigbrk/uc-gbrk-prop.c: New file.
57779         New module 'unigbrk/uc-is-grapheme-break'.
57780         * modules/unigbrk/uc-is-grapheme-break: New file.
57781         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
57782         * lib/unigbrk/uc-is-grapheme-break.c: New file.
57783         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
57784         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
57785         * tests/unigbrk/GraphemeBreakTest.txt: New file.
57787         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
57789 2010-12-27  Bruno Haible  <bruno@clisp.org>
57791         linkat test: Avoid failure on Solaris 11 2010-11.
57792         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
57794 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57796         utimens: work around glibc rounding bug on more platforms
57797         * lib/utimens.c (fdutimens): Work around rounding bug even if
57798         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
57799         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
57801 2010-12-27  Bruno Haible  <bruno@clisp.org>
57803         select tests: Improve comments.
57804         * tests/test-select.c (do_select): Add comments.
57806 2010-12-27  Bruno Haible  <bruno@clisp.org>
57808         select tests: Safer way of handling timeout.
57809         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
57810         at every invocation.
57812 2010-12-27  Bruno Haible  <bruno@clisp.org>
57814         select tests: Use 'bool' where appropriate.
57815         * tests/test-select.c (connect_to_socket): Change argument type to
57816         'bool'.
57818 2010-12-27  Bruno Haible  <bruno@clisp.org>
57820         select tests: Use existing modules.
57821         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
57822         (configure.ac): Don't test for unistd.h.
57823         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
57824         declared in <unistd.h>.
57826 2010-12-27  Bruno Haible  <bruno@clisp.org>
57828         mbrtowc: Work around a Solaris 7 bug.
57829         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
57830         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
57831         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
57832         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
57833         MBRTOWC_NULL_ARG1_BUG.
57834         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
57835         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
57836         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
57837         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
57839 2010-12-27  Jim Meyering  <meyering@redhat.com>
57841         read-file.c: tweak syntax
57842         * lib/read-file.c (fread_file): Remove space after "*" in function
57843         definitions.
57845 2010-12-27  Bruno Haible  <bruno@clisp.org>
57847         times test: Avoid gcc warnings on OSF/1.
57848         * tests/test-times.c (main): Cast printf arguments from clock_t to
57849         'long int'.
57851 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57853         utimens: work around glibc rounding bug on older Linux kernels
57854         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
57855         on Linux with a glibc whose utimes might not work, then work
57856         around a longstanding glibc bug involving rounding rather than
57857         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
57858         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
57860 2010-12-26  Bruno Haible  <bruno@clisp.org>
57862         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
57863         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
57864         _GL_CXXALIAS_SYS.
57865         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57867 2010-12-26  Bruno Haible  <bruno@clisp.org>
57869         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
57870         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
57871         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
57872         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
57873         looking for the declaration.
57874         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
57875         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
57876         problem.
57877         * doc/posix-functions/inet_pton.texi: Likewise.
57879 2010-12-26  Bruno Haible  <bruno@clisp.org>
57881         arpa_inet: Use the common idioms with C++ support.
57882         * lib/arpa_inet.in.h: Include c++defs.h.
57883         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
57884         support.
57885         * modules/arpa_inet (Depends-on): Add c++defs.
57886         (Makefile.am): Substitute the contents of c++defs.h.
57887         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
57888         * modules/arpa_inet-c++-tests: New file.
57889         * tests/test-arpa_inet-c++.cc: New file.
57891 2010-12-25  Bruno Haible  <bruno@clisp.org>
57893         Fix more C++ link errors on Solaris 8.
57894         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
57895         $(LIB_EACCESS).
57896         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
57897         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
57898         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
57899         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
57900         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
57902 2010-12-25  Bruno Haible  <bruno@clisp.org>
57904         printf-posix: Fix link error when a non-GCC compiler is used.
57905         * lib/stdio.in.h (printf): When not using GCC, override printf
57906         correctly.
57907         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57909 2010-12-25  Bruno Haible  <bruno@clisp.org>
57911         strerror_r-posix: Update doc.
57912         * doc/posix-functions/strerror_r.texi: Update doc about the return
57913         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
57915 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57917         utimens: simplify the logic of the previous change
57918         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
57919         This should not affect whether the test succeeds or fails.
57921         utimens: configure better on hosts with NFS clock skew
57922         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
57923         uses the clock of the local host.  It might use the clock of the
57924         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
57925         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
57927 2010-12-25  Bruno Haible  <bruno@clisp.org>
57929         ptsname test: Avoid failure on Solaris.
57930         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
57931         open a pseudo-terminal; don't use BSD-style ptys.
57932         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
57934 2010-12-25  Bruno Haible  <bruno@clisp.org>
57936         ptsname: Avoid ERANGE failure on some systems.
57937         * lib/ptsname.c (buffer): Increase size.
57939 2010-12-25  Bruno Haible  <bruno@clisp.org>
57941         rename, renameat: Avoid test failures at NFS mounted locations.
57942         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
57943         so that subsequent mkdir calls succeed.
57945 2010-12-25  Bruno Haible  <bruno@clisp.org>
57947         iswblank: Fix C++ link error on Solaris 8.
57948         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
57949         _GL_FUNCDECL_SYS.
57951 2010-12-25  Bruno Haible  <bruno@clisp.org>
57953         unistd: Fix C++ link error on Solaris 8.
57954         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
57956 2010-12-25  Bruno Haible  <bruno@clisp.org>
57958         readlink doc: Mention an old glibc bug.
57959         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
57961 2010-12-25  Bruno Haible  <bruno@clisp.org>
57963         fcntl-h: Fix for use of C++ on glibc systems.
57964         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
57965         also on glibc systems in C++ mode.
57966         Reported by Gary V. Vaughan <gary@gnu.org>.
57968 2010-12-25  Bruno Haible  <bruno@clisp.org>
57970         roundl-ieee: Make it work on OSF/1 5.1 with cc.
57971         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
57973 2010-12-25  Bruno Haible  <bruno@clisp.org>
57975         truncl-ieee: Make it work on OSF/1 5.1 with cc.
57976         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
57977         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
57978         test whether truncl works according to ISO C 99 with IEC 60559.
57979         * m4/truncl-ieee.m4: New file.
57980         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
57981         m4/signbit.m4.
57982         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
57984 2010-12-25  Bruno Haible  <bruno@clisp.org>
57986         ceill-ieee: Make it work on OSF/1 5.1 with cc.
57987         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
57988         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
57989         test whether ceill works according to ISO C 99 with IEC 60559.
57990         * m4/ceill-ieee.m4: New file.
57991         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
57992         m4/signbit.m4.
57993         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
57995 2010-12-25  Bruno Haible  <bruno@clisp.org>
57997         Ensure all prerequisites of <wchar.h> are included.
57998         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
57999         before <wchar.h>.
58000         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
58001         gl_MBRLEN_NUL_RETVAL): Likewise.
58002         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
58003         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
58004         AC_FUNC_MBRTOWC): Likewise.
58005         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
58006         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58007         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
58008         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
58009         Likewise.
58010         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
58011         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
58012         (gl_WCHAR_H): Improve comments.
58013         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
58015 2010-12-25  Bruno Haible  <bruno@clisp.org>
58017         strtok_r: Fix C syntax error in autoconf macro.
58018         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
58019         characters in test program.
58021 2010-12-24  Bruno Haible  <bruno@clisp.org>
58023         ceil, trunc, round: Fix gcc warnings.
58024         * lib/ceil.c (MIN): Undefine before redefining.
58025         * lib/trunc.c (MIN): Likewise.
58026         * lib/round.c (MIN): Likewise.
58027         Include <math.h> first.
58029 2010-12-24  Bruno Haible  <bruno@clisp.org>
58031         select tests: Avoid failures on OSF/1 5.1.
58032         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
58033         failure of closing the last socket; it may fail with ECONNRESET.
58035 2010-12-24  Eric Blake  <eblake@redhat.com>
58037         stdint: avoid HP-UX 10.20 preprocessor bug
58038         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
58039         than #if.
58040         * tests/test-floor2.c (main): Likewise.
58041         Reported by Peter O'Gorman.
58043         pipe: make obsoletion transition easier
58044         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
58045         * modules/pipe (Files): Include revived file.
58046         (Include): Drop reference, to mirror getdate's behavior.
58048 2010-12-24  Bruno Haible  <bruno@clisp.org>
58050         sys_socket: Hide mismatch of declarations on NonStop Kernel.
58051         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
58052         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
58053         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58055 2010-12-24  Bruno Haible  <bruno@clisp.org>
58057         gethostname: Ensure declaration on NonStop Kernel.
58058         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
58059         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58061 2010-12-24  Bruno Haible  <bruno@clisp.org>
58063         sys_select: Ensure all necessary types on NonStop Kernel.
58064         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
58065         include <sys/time.h>.
58066         * doc/posix-headers/sys_select.texi: Mention that it's missing on
58067         NonStop Kernel.
58068         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58070 2010-12-24  Bruno Haible  <bruno@clisp.org>
58072         sys_select: Remove unneeded include.
58073         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
58074         have <sys/select.h>.
58076 2010-12-24  Bruno Haible  <bruno@clisp.org>
58078         gethostname: Provide a fallback for HOST_NAME_MAX.
58079         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
58080         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
58081         instead.
58082         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58084 2010-12-24  Bruno Haible  <bruno@clisp.org>
58086         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
58087         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
58088         (SA_RESTART): Likewise.
58089         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58091 2010-12-24  Bruno Haible  <bruno@clisp.org>
58093         signal: Define NSIG.
58094         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
58095         * tests/test-signal.c (nsig): New variable.
58096         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58098 2010-12-24  Bruno Haible  <bruno@clisp.org>
58100         rename, renameat: Avoid test failures on OSF/1 5.1.
58101         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
58102         alternative error codes.
58103         * tests/test-renameat.c (main): Likewise.
58105 2010-12-24  Bruno Haible  <bruno@clisp.org>
58107         *printf: Detect large precisions bug on Solaris 10/SPARC.
58108         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
58109         by Paul Eggert.
58110         * tests/test-snprintf-posix.h (test_function): Add this test code here
58111         too.
58112         * tests/test-sprintf-posix.h (test_function): Likewise.
58113         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58114         * tests/test-vasprintf-posix.c (test_function): Likewise.
58115         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
58116         around by gnulib.
58117         * doc/posix-functions/printf.texi: Likewise.
58118         * doc/posix-functions/snprintf.texi: Likewise.
58119         * doc/posix-functions/sprintf.texi: Likewise.
58120         * doc/posix-functions/vfprintf.texi: Likewise.
58121         * doc/posix-functions/vprintf.texi: Likewise.
58122         * doc/posix-functions/vsnprintf.texi: Likewise.
58123         * doc/posix-functions/vsprintf.texi: Likewise.
58124         * doc/posix-functions/dprintf.texi: Undo last commit.
58125         * doc/posix-functions/vdprintf.texi: Likewise.
58127 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58129         tests: port test-fdutimensat.c to Solaris 8
58130         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
58131         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
58132         On Solaris 8, it fails with errno == ENOSYS, because there is no
58133         futimens (so it can't use the fd), and there is no lutimens (so it
58134         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
58136         vsnprintf: make more consistent with snprintf; doc fixes
58138         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
58139         the byte count return problem was promoted from the snprintf-posix
58140         to the snprintf module.
58141         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
58142         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
58143         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
58144         * tests/test-snprintf.c (main): Check the byte count returned.
58145         * tests/test-vsnprintf.c (main): Likewise.
58147 2010-12-23  Eric Blake  <eblake@redhat.com>
58149         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
58150         * modules/sigpipe (License): Relax license.
58152 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58154         doc: document Solaris printf bug with large float precisions
58155         * doc/posix-functions/dprintf.texi (dprintf):
58156         * doc/posix-functions/fprintf.texi (fprintf):
58157         * doc/posix-functions/printf.texi (printf):
58158         * doc/posix-functions/snprintf.texi (snprintf):
58159         * doc/posix-functions/sprintf.texi (sprintf):
58160         * doc/posix-functions/vdprintf.texi (vdprintf):
58161         * doc/posix-functions/vfprintf.texi (vfprintf):
58162         * doc/posix-functions/vprintf.texi (vprintf):
58163         * doc/posix-functions/vsnprintf.texi (vsnprintf):
58164         * doc/posix-functions/vsprintf.texi (vsprintf):
58165         Mention that these functions mishandle large floating point
58166         precisions on Solaris 10.  The same bug is also present in Solaris
58167         8, and I assume earlier.  This causes "cd gnulib-tests; make
58168         check" to fail on Solaris 8 (and I assume, later) when building
58169         the latest coreutils, in test-vasprintf-posix's call to
58170         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
58171         the wide flavors (e.g., wprintf) so this patch just updates the
58172         documentation for the narrow ones.
58174         test-posixtm.c: add two tests
58175         * tests/test-posixtm.c: Add two tests, to highlight the
58176         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
58177         around this bug; this is merely to document it.
58179 2010-12-22  Bruno Haible  <bruno@clisp.org>
58181         getlogin_r: Work around portability problem on OSF/1.
58182         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
58183         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
58184         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
58185         test for a truncated result.
58186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
58187         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
58188         * modules/getlogin_r (Depends-on): Add memchr.
58189         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
58191 2010-12-22  Bruno Haible  <bruno@clisp.org>
58193         ptsname: Avoid test failure on OSF/1 5.1.
58194         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
58195         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
58196         (same_slave): New function.
58197         (main): Use it to compare ptsname's result with the expected file name.
58199 2010-12-22  Bruno Haible  <bruno@clisp.org>
58201         Port extended stdio modules to HP NonStop Kernel.
58202         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
58203         macros.
58204         * lib/fbufmode.c: Update comments.
58205         * lib/fflush.c: Likewise.
58206         * lib/fpurge.c: Likewise.
58207         * lib/freadable.c: Likewise.
58208         * lib/freadahead.c: Likewise.
58209         * lib/freading.c: Likewise.
58210         * lib/freadptr.c: Likewise.
58211         * lib/freadseek.c: Likewise.
58212         * lib/fseeko.c: Likewise.
58213         * lib/fseterr.c: Likewise.
58214         * lib/fwritable.c: Likewise.
58215         * lib/fwriting.c: Likewise.
58216         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58218 2010-12-22  Bruno Haible  <bruno@clisp.org>
58220         ttyname_r: Work around bug on OSF/1 5.1.
58221         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
58222         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
58223         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
58224         present.
58225         * lib/ttyname_r.c (ttyname_r): Update comments.
58227 2010-12-22  Bruno Haible  <bruno@clisp.org>
58229         round: Implement result sign according to IEEE 754.
58230         * lib/round.c (MIN, MINUS_ZERO): New macros.
58231         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
58232         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
58233         * tests/test-round-ieee.c (main): Likewise.
58234         * tests/test-roundl-ieee.c (main): Likewise.
58236         trunc: Implement result sign according to IEEE 754.
58237         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
58238         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
58239         * tests/test-trunc2.c: Include minus-zero.h.
58240         (MINUS_ZERO): New macro.
58241         (trunc_reference): Keep in sync with lib/trunc.c.
58242         * tests/test-truncf2.c: Include minus-zero.h.
58243         (MINUS_ZERO): New macro.
58244         (truncf_reference): Keep in sync with lib/trunc.c.
58245         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
58246         * tests/test-trunc-ieee.c (main): Likewise.
58247         * tests/test-truncl-ieee.c (main): Likewise.
58249         ceil: Implement result sign according to IEEE 754.
58250         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
58251         (FUNC): Return -0.0 for -1 < x < 0.
58252         * tests/test-ceil2.c: Include minus-zero.h.
58253         (MINUS_ZERO): New macro.
58254         (ceil_reference): Keep in sync with lib/ceil.c.
58255         * tests/test-ceilf2.c: Include minus-zero.h.
58256         (MINUS_ZERO): New macro.
58257         (ceilf_reference): Keep in sync with lib/ceil.c.
58258         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
58259         * tests/test-ceil-ieee.c (main): Likewise.
58260         * tests/test-ceill-ieee.c (main): Likewise.
58262         floor: Implement result sign according to IEEE 754.
58263         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
58264         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
58265         * tests/test-floorf2.c (floorf_reference): Likewise.
58266         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
58267         * tests/test-floor-ieee.c (main): Likewise.
58268         * tests/test-floorl-ieee.c (main): Likewise.
58270 2010-12-22  Bruno Haible  <bruno@clisp.org>
58272         getaddrinfo: Update doc.
58273         * doc/posix-functions/gai_strerror.texi: Return type is also different
58274         on AIX and HP-UX.
58276 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58278         getaddrinfo, inet_ntop: Update doc for Solaris.
58279         * doc/posix-functions/gai_strerror.texi: Return type is also an
58280         issue on Solaris 9 and earlier.
58281         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
58282         on Solaris 10 and earlier.
58284 2010-12-21  Bruno Haible  <bruno@clisp.org>
58286         New module 'roundl-ieee'.
58287         * modules/roundl-ieee: New file.
58288         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
58289         test whether roundl works according to ISO C 99 with IEC 60559.
58290         * m4/roundl-ieee.m4: New file.
58291         * modules/roundl-ieee-tests: New file.
58292         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
58293         * tests/test-roundl.c (main): Remove signbit tests.
58294         * modules/roundl-tests (Depends-on): Remove signbit.
58295         * doc/posix-functions/roundl.texi: Mention the new module.
58297 2010-12-21  Bruno Haible  <bruno@clisp.org>
58299         New module 'truncl-ieee'.
58300         * modules/truncl-ieee: New file.
58301         * modules/truncl-ieee-tests: New file.
58302         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
58303         * tests/test-truncl.c (main): Remove signbit tests.
58304         * modules/truncl-tests (Depends-on): Remove signbit.
58305         * doc/posix-functions/truncl.texi: Mention the new module.
58307 2010-12-21  Bruno Haible  <bruno@clisp.org>
58309         New module 'ceill-ieee'.
58310         * modules/ceill-ieee: New file.
58311         * modules/ceill-ieee-tests: New file.
58312         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
58313         * tests/test-ceill.c (main): Remove signbit tests.
58314         * modules/ceill-tests (Depends-on): Remove signbit.
58315         * doc/posix-functions/ceill.texi: Mention the new module.
58317 2010-12-21  Bruno Haible  <bruno@clisp.org>
58319         New module 'floorl-ieee'.
58320         * modules/floorl-ieee: New file.
58321         * modules/floorl-ieee-tests: New file.
58322         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
58323         * tests/test-floorl.c (main): Remove signbit tests.
58324         * modules/floorl-tests (Depends-on): Remove signbit.
58325         * doc/posix-functions/floorl.texi: Mention the new module.
58327 2010-12-21  Bruno Haible  <bruno@clisp.org>
58329         New module 'round-ieee'.
58330         * modules/round-ieee: New file.
58331         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
58332         whether round works according to ISO C 99 with IEC 60559.
58333         * m4/round-ieee.m4: New file.
58334         * modules/round-ieee-tests: New file.
58335         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
58336         * tests/test-round1.c (main): Remove signbit tests.
58337         * modules/round-tests (Depends-on): Remove 'signbit'.
58338         * doc/posix-functions/round.texi: Mention the new module.
58340 2010-12-21  Bruno Haible  <bruno@clisp.org>
58342         New module 'trunc-ieee'.
58343         * modules/trunc-ieee: New file.
58344         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
58345         whether trunc works according to ISO C 99 with IEC 60559.
58346         * m4/trunc-ieee.m4: New file.
58347         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
58348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
58349         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
58350         * modules/trunc-ieee-tests: New file.
58351         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
58352         * tests/test-trunc1.c (main): Remove signbit tests.
58353         * modules/trunc-tests (Depends-on): Remove 'signbit'.
58354         * doc/posix-functions/trunc.texi: Mention the new module.
58356 2010-12-21  Bruno Haible  <bruno@clisp.org>
58358         New module 'ceil-ieee'.
58359         * modules/ceil-ieee: New file.
58360         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
58361         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
58362         ISO C 99 with IEC 60559.
58363         * m4/ceil-ieee.m4: New file.
58364         * modules/ceil (Files): Add lib/ceil.c.
58365         (Depends-on): Add 'float'.
58366         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58367         * lib/math.in.h (ceil): New declaration.
58368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
58369         REPLACE_CEIL.
58370         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
58371         * modules/ceil-ieee-tests: New file.
58372         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
58373         * tests/test-math-c++.cc: Check the signature of 'ceil'.
58374         * doc/posix-functions/ceil.texi: Mention the new module.
58376 2010-12-21  Bruno Haible  <bruno@clisp.org>
58378         New module 'floor-ieee'.
58379         * modules/floor-ieee: New file.
58380         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
58381         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
58382         ISO C 99 with IEC 60559.
58383         * m4/floor-ieee.m4: New file.
58384         * modules/floor (Files): Add lib/floor.c.
58385         (Depends-on): Add 'float'.
58386         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58387         * lib/math.in.h (floor): New declaration.
58388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
58389         REPLACE_FLOOR.
58390         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
58391         * modules/floor-ieee-tests: New file.
58392         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
58393         * tests/test-math-c++.cc: Check the signature of 'floor'.
58394         * doc/posix-functions/floor.texi: Mention the new module.
58396 2010-12-21  Bruno Haible  <bruno@clisp.org>
58398         New module 'roundf-ieee'.
58399         * modules/roundf-ieee: New file.
58400         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
58401         test whether roundf works according to ISO C 99 with IEC 60559.
58402         * m4/roundf-ieee.m4: New file.
58403         * modules/roundf-ieee-tests: New file.
58404         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
58405         * tests/test-roundf1.c (main): Remove signbit tests.
58406         * modules/roundf-tests (Depends-on): Remove 'signbit'.
58407         * doc/posix-functions/roundf.texi: Mention the new module.
58409 2010-12-21  Bruno Haible  <bruno@clisp.org>
58411         New module 'truncf-ieee'.
58412         * modules/truncf-ieee: New file.
58413         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
58414         test whether truncf works according to ISO C 99 with IEC 60559.
58415         * m4/truncf-ieee.m4: New file.
58416         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
58417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
58418         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
58419         * modules/truncf-ieee-tests: New file.
58420         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
58421         * tests/test-truncf1.c (main): Remove signbit tests.
58422         * modules/truncf-tests (Depends-on): Remove 'signbit'.
58423         * doc/posix-functions/truncf.texi: Mention the new module.
58425 2010-12-21  Bruno Haible  <bruno@clisp.org>
58427         New module 'ceilf-ieee'.
58428         * modules/ceilf-ieee: New file.
58429         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
58430         test whether ceilf works according to ISO C 99 with IEC 60559.
58431         * m4/ceilf-ieee.m4: New file.
58432         * modules/ceilf-ieee-tests: New file.
58433         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
58434         * tests/test-ceilf1.c (main): Remove signbit tests.
58435         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
58436         * doc/posix-functions/ceilf.texi: Mention the new module.
58438 2010-12-21  Bruno Haible  <bruno@clisp.org>
58440         New module 'floorf-ieee'.
58441         * modules/floorf-ieee: New file.
58442         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
58443         test whether floorf works according to ISO C 99 with IEC 60559.
58444         * m4/floorf-ieee.m4: New file.
58445         * modules/floorf-ieee-tests: New file.
58446         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
58447         * tests/test-floorf1.c (main): Remove signbit tests.
58448         * modules/floorf-tests (Depends-on): Remove 'signbit'.
58449         * doc/posix-functions/floorf.texi: Mention the new module.
58451 2010-12-21  Bruno Haible  <bruno@clisp.org>
58453         Support for minus zero in autoconf macros.
58454         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
58455         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
58456         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
58457         * tests/minus-zero.h: Update comments.
58459 2010-12-21  Bruno Haible  <bruno@clisp.org>
58461         Tests for module 'ceil'.
58462         * modules/ceil-tests: New file.
58463         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
58464         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
58466 2010-12-21  Bruno Haible  <bruno@clisp.org>
58468         Tests for module 'floor'.
58469         * modules/floor-tests: New file.
58470         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
58471         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
58473 2010-12-21  Bruno Haible  <bruno@clisp.org>
58475         math: Fix indentation.
58476         * lib/math.in.h (floorf): Fix indentation.
58478 2010-12-21  Bruno Haible  <bruno@clisp.org>
58480         Fix cross-compilation guesses on Solaris.
58481         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
58482         not match "solaris2.10".
58483         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
58484         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
58485         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
58487 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58489         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
58490         This fixes a problem observed with the latest coreutils snapshot
58491         that caused a test to fail on Solaris 8.  src/csplit.c's call
58492         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
58493         earlier, instead of returning the number of bytes that would have
58494         been generated; this causes csplit to incorrectly report memory
58495         exhaustion.
58496         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
58497         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
58498         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
58499         comments to match.
58500         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
58501         Fix typo in matching older versions of Solaris: "solaris2.10"
58502         is matched by the shell pattern "solaris2.[0-9]*".  This matters
58503         only for guessing while cross-compiling.
58504         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
58506 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
58508         ftoastr: fix comment again
58509         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
58510         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
58511         Also, simplify example a bit by using flags = 0.
58513 2010-12-20  Bruno Haible  <bruno@clisp.org>
58515         round*, trunc*: Update documentation regarding glibc.
58516         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
58517         * doc/posix-functions/round.texi: Likewise.
58518         * doc/posix-functions/roundl.texi: Likewise.
58519         * doc/posix-functions/truncf.texi: Likewise.
58520         * doc/posix-functions/trunc.texi: Likewise.
58521         * doc/posix-functions/truncl.texi: Likewise.
58523 2010-12-20  Bruno Haible  <bruno@clisp.org>
58525         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
58526         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
58527         * doc/posix-functions/round.texi: Likewise.
58528         * doc/posix-functions/roundl.texi: Likewise.
58530 2010-12-20  Bruno Haible  <bruno@clisp.org>
58532         ttyname_r: Add missing declaration on HP-UX 11.
58533         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
58534         HAVE_TTYNAME_R.
58535         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
58536         declared. Set HAVE_TTYNAME_R always.
58537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58538         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
58539         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
58540         HAVE_TTYNAME_R.
58541         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
58543 2010-12-20  Bruno Haible  <bruno@clisp.org>
58545         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
58546         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
58547         * doc/posix-functions/getlogin_r.texi: Likewise.
58548         * tests/test-getlogin.c: Include <errno.h>.
58549         (main): Avoid test failure on HP-UX 11.11.
58550         * tests/test-getlogin_r.c (main): Likewise.
58552 2010-12-20  Bruno Haible  <bruno@clisp.org>
58554         getlogin_r: Add missing declaration on HP-UX 11.
58555         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
58556         declared also when it exists as a function.
58557         * doc/posix-functions/getlogin_r.texi: Document this workaround.
58559 2010-12-20  Bruno Haible  <bruno@clisp.org>
58561         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
58562         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
58563         through wcrtomb.
58565 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58567         ftoastr: fix comment
58568         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
58569         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
58571 2010-12-19  Bruno Haible  <bruno@clisp.org>
58573         isnan: Ensure it is a macro.
58574         * lib/math.in.h (isnan): Define as a macro if not already a macro.
58575         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
58576         Solaris.
58578 2010-12-19  Bruno Haible  <bruno@clisp.org>
58580         ldexpl test: Fix link error on OSF/1 5.1.
58581         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
58583 2010-12-19  Bruno Haible  <bruno@clisp.org>
58585         wctype: Make it work in C++ mode on OSF/1 5.1.
58586         * lib/wctype.in.h (iswblank): Declare but not define here.
58587         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
58588         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
58589         * modules/wctype (Files): Add lib/iswblank.c.
58591 2010-12-19  Bruno Haible  <bruno@clisp.org>
58593         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
58594         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
58595         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
58597 2010-12-19  Bruno Haible  <bruno@clisp.org>
58599         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
58600         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
58601         _POSIX_PII_SOCKET.
58602         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
58603         * doc/posix-functions/recvfrom.texi: Likewise.
58604         * doc/posix-functions/send.texi: Likewise.
58605         * doc/posix-functions/sendto.texi: Likewise.
58607 2010-12-19  Bruno Haible  <bruno@clisp.org>
58609         tcgetsid: Add missing declaration on OSF/1 5.1.
58610         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
58611         HAVE_TCGETSID.
58612         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
58613         Don't set HAVE_TCGETSID.
58614         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
58615         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
58616         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
58617         HAVE_TCGETSID.
58618         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
58620 2010-12-19  Bruno Haible  <bruno@clisp.org>
58622         stdio: Fix problem with popen() declaration on OSF/1 5.1.
58623         * lib/stdio.in.h: During the include_next statement, let recursive
58624         includes of this file include only the system header file.
58626 2010-12-19  Bruno Haible  <bruno@clisp.org>
58628         iconv_open: Fix regression from 2010-12-04.
58629         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
58630         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
58632 2010-12-19  Bruno Haible  <bruno@clisp.org>
58634         stdbool test: Avoid a gcc warning.
58635         * tests/test-stdbool.c (main): Fail if e1 is false.
58636         Reported by Jim Meyering.
58638 2010-12-19  Jim Meyering  <meyering@redhat.com>
58640         setenv: restore to working order
58641         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
58642         mistakenly removed.
58643         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
58644         HAVE_SETENV.
58645         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
58646         HAVE_SETENV.
58648 2010-12-19  Bruno Haible  <bruno@clisp.org>
58650         Document some different function declarations on OSF/1 5.1.
58651         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
58652         * doc/posix-functions/inet_ntop.texi: Likewise.
58653         * doc/posix-functions/gethostname.texi: Likewise.
58654         * lib/unistd.in.h (gethostname): Update comment.
58656 2010-12-19  Bruno Haible  <bruno@clisp.org>
58658         doc: Mention vasprintf-posix module.
58659         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
58660         the 'vasprintf-posix' module.
58661         * doc/glibc-functions/vasprintf.texi: Likewise.
58663 2010-12-19  Bruno Haible  <bruno@clisp.org>
58665         unsetenv: Add missing declaration on OSF/1 5.1.
58666         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
58667         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
58668         Don't set HAVE_UNSETENV. In the test program, set _BSD.
58669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
58670         not HAVE_UNSETENV.
58671         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
58672         HAVE_UNSETENV.
58673         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
58675 2010-12-19  Bruno Haible  <bruno@clisp.org>
58677         setenv: Add missing declaration on OSF/1 5.1.
58678         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
58679         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
58680         declared. Don't set HAVE_SETENV.
58681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
58682         not HAVE_SETENV.
58683         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
58684         HAVE_SETENV.
58685         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
58687 2010-12-19  Bruno Haible  <bruno@clisp.org>
58689         nl_langinfo tests: Avoid gcc warning.
58690         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
58692 2010-12-19  Bruno Haible  <bruno@clisp.org>
58694         mknod: Avoid error in C++ mode on OSF/1 with GCC.
58695         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
58696         _GL_CXXALIAS_SYS.
58698 2010-12-19  Bruno Haible  <bruno@clisp.org>
58700         stdbool: Relax test.
58701         * tests/test-stdbool.c (e): Don't require that casts from a variable's
58702         address to 'bool' work in static initializer, for compilers other than
58703         GCC.
58705 2010-12-19  Bruno Haible  <bruno@clisp.org>
58707         ftello: Add missing declaration on OSF/1 5.1.
58708         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
58709         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
58710         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
58711         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
58712         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
58714 2010-12-19  Bruno Haible  <bruno@clisp.org>
58716         fseeko: Add missing declaration on OSF/1 5.1.
58717         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
58718         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
58719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
58720         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
58721         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
58723 2010-12-19  Bruno Haible  <bruno@clisp.org>
58725         fchdir: Add missing declaration on OSF/1 5.1.
58726         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
58727         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
58728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
58729         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
58730         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
58732 2010-12-19  Bruno Haible  <bruno@clisp.org>
58734         relocatable-prog-wrapper: Separate from relocatable-prog.
58735         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
58736         uninstall-relocwrapper rule here.
58737         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
58738         Reported by Ian Beckwith <ianb@erislabs.net>.
58740 2010-12-19  Bruno Haible  <bruno@clisp.org>
58742         unistr/u8-mbsnlen: Add missing dependency.
58743         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
58744         Reported by Ian Beckwith <ianb@erislabs.net>.
58746 2010-12-19  Bruno Haible  <bruno@clisp.org>
58748         iconv: Make it possible again to use this module without 'iconv-h'.
58749         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
58750         if it is not defined.
58751         Reported by Ian Beckwith <ianb@erislabs.net>.
58753 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58755         acl: port to Solaris 8 when copying from tmpfs to ufs
58756         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
58757         error number.  Problem observed on Solaris 8 with latest
58758         coreutils, with "mv A B", where A is on a tmpfs file system and B
58759         is on a ufs file system.  This caused coreutils' mv/part-symlink
58760         test to fail.
58762         tests: set fail=0 at start
58763         * tests/init.sh (setup_): Move fail=0 initialization here ...
58764         (mktempd_): ... from here, so that tests can rely on fail being
58765         set to 0 initially.  This fixes a problem in coreutils; see:
58766         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
58768 2010-12-18  Bruno Haible  <bruno@clisp.org>
58770         memmem-simple: Stylistic changes.
58771         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
58772         Fix preprocessor directive indentation.
58774 2010-12-15  Pádraig Brady  <P@draigBrady.com>
58776         memmem, memmem-simple: reorganize and expand empty needle check
58777         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
58778         functional checks to memmem-simple so that one has a fully functional
58779         memmem by using just this module.
58780         Restrict the performance only check to the memmem module.
58781         Also expand the empty needle check to ensure the correct
58782         pointer is returned, not just a non NULL pointer.
58783         * doc/glibc-functions/memmem.texi: Rearrange the portability
58784         documentation to correlate with the rearranged checks.
58785         Clarify exactly how the memmem and memmem-simple modules
58786         relate to each other.
58788 2010-12-15  Pádraig Brady  <P@draigBrady.com>
58789             Bruno Haible  <bruno@clisp.org>
58791         Improve cross-compilation guesses for uClibc.
58792         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
58793         that uClibc does not have the glibc bug.
58794         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
58795         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
58797 2010-12-14  Eric Blake  <eblake@redhat.com>
58799         configmake: provide fallbacks for oldest supported autotools
58800         * m4/configmake.m4: New file.
58801         * modules/configmake (Files): Ship it.
58802         (configure.ac): Use it to guarantee fallbacks.
58804 2010-12-13  Pádraig Brady  <P@draigBrady.com>
58806         read-file: Improve handling of large files
58807         * lib/read-file.c (fread_file): Minimize realloc()s
58808         for regular files, and better manage sizes around SIZE_MAX.
58810 2010-12-13  Eric Blake  <eblake@redhat.com>
58812         cloexec, fcntl: relax license
58813         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
58814         consent from all contributors.
58815         * modules/fcntl (License): Likewise.
58817 2010-12-10  Bruno Haible  <bruno@clisp.org>
58819         Tests for module 'pipe-posix'.
58820         * modules/pipe-posix-tests: New file.
58821         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
58823 2010-12-10  Bruno Haible  <bruno@clisp.org>
58825         pipe-posix: Make it work in C++ mode.
58826         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
58827         (pipe): Use common idiom, not a macro definition.
58828         * lib/pipe.c: New file.
58829         * m4/pipe.m4: New file.
58830         * modules/pipe-posix (Description): Enhance.
58831         (Files): Add lib/pipe.c, m4/pipe.m4.
58832         (configure.ac): Invoke gl_FUNC_PIPE.
58833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
58834         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
58835         * tests/test-unistd-c++.cc: Check the signature of pipe.
58837 2010-12-10  Bruno Haible  <bruno@clisp.org>
58839         Rename module 'pipe' to 'spawn-pipe'.
58840         * modules/spawn-pipe: New file, renamed from modules/pipe.
58841         (Files, configure.ac, Makefile.am): Update.
58842         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
58843         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
58844         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
58845         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
58846         "spawn-pipe.h" instead of "pipe.h".
58847         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
58848         to gl_SPAWN_PIPE.
58849         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
58850         (Files, Makefile.am): Update.
58851         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
58852         Update.
58853         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
58854         Include "spawn-pipe.h" instead of "pipe.h".
58855         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
58856         * lib/javacomp.c: Likewise.
58857         * lib/javaversion.c: Likewise.
58858         * lib/pipe-filter-gi.c: Likewise.
58859         * lib/pipe-filter-ii.c: Likewise.
58860         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
58861         * modules/javacomp (Depends-on): Likewise.
58862         * modules/javaversion (Depends-on): Likewise.
58863         * modules/pipe-filter-gi (Depends-on): Likewise.
58864         * modules/pipe-filter-ii (Depends-on): Likewise.
58865         * MODULES.html.sh (Executing programs): Update.
58866         * NEWS: Mention the change.
58868 2010-12-10  Eric Blake  <eblake@redhat.com>
58870         pipe-posix: new module
58871         * modules/pipe-posix: New file.
58872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
58873         (gl_UNISTD_H): Check for declaration.
58874         * modules/unistd (Makefile.am): Substitute it.
58875         * lib/unistd.in.h (pipe): Provide it for mingw.
58876         * doc/posix-functions/pipe.texi (pipe): Update documentation.
58877         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
58879 2010-12-07  Bruno Haible  <bruno@clisp.org>
58881         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
58882         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
58883         u8_strcmp_gnu.
58884         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
58886 2010-12-06  Bruno Haible  <bruno@clisp.org>
58888         Update internal documentation.
58889         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
58891 2010-12-04  Bruno Haible  <bruno@clisp.org>
58893         Put more information about failed tests into the test return codes.
58894         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
58895         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
58896         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
58897         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
58898         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
58899         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58900         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58901         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
58902         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
58903         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58904         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
58905         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58906         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
58907         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58908         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
58909         returns a bit mask.
58910         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
58911         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
58912         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
58913         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
58914         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
58915         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
58916         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58917         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58918         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
58919         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
58920         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
58921         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
58922         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
58923         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
58924         * m4/link.m4 (gl_FUNC_LINK): Likewise.
58925         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
58926         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
58927         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
58928         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
58929         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
58930         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58931         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
58932         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
58933         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58934         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
58935         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
58936         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
58937         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
58938         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
58939         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
58940         gl_PRINTF_PRECISION): Likewise.
58941         * m4/regex.m4 (gl_REGEX): Likewise.
58942         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
58943         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
58944         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
58945         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58946         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58947         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58948         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
58949         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
58950         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58951         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58952         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
58953         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
58954         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
58955         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
58956         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
58957         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58958         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
58959         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
58960         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58961         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
58962         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
58963         enumerated value.
58964         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
58966 2010-12-04  Bruno Haible  <bruno@clisp.org>
58968         Update for Solaris 11 2010-11.
58969         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
58970         Express, released in November 2010.
58972 2010-12-04  Bruno Haible  <bruno@clisp.org>
58974         nproc: Relax license.
58975         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
58976         and Paul Eggert.
58977         Requested by Ludovic Courtès <ludo@gnu.org>.
58979 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
58981         utimecmp: fine-grained src to nearby coarse-grained dest
58983         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
58984         and the source is on a file system with higher-resolution time
58985         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
58986         not work, and the time stamps are close together, the algorithm to
58987         determine the exact resolution from the read-back mtime was buggy:
58988         it had a "!=" where it should have had an "==".  This bug has been
58989         in the code ever since it was introduced to gnulib.
58990         Problem reported by Dan Jacobson in
58991         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
58993 2010-11-30  Bruno Haible  <bruno@clisp.org>
58995         strerror_r-posix: Fix autoconf test.
58996         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
58998 2010-11-28  Bruno Haible  <bruno@clisp.org>
58999             Paul Eggert  <eggert@cs.ucla.edu>
59001         Tests for module 'getdomainname'.
59002         * modules/getdomainname-tests: New file.
59003         * tests/test-getdomainname.c: New file, based on
59004         tests/test-gethostname.c.
59006 2010-11-28  Bruno Haible  <bruno@clisp.org>
59007             Paul Eggert  <eggert@cs.ucla.edu>
59009         getdomainname: Use the system function when possible.
59010         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
59011         (getdomainname): Replace if needed. Provide the declaration if it is
59012         missing. Don't use _GL_CXXALIAS_SYS_CAST.
59013         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
59014         (getdomainname): When the system has getdomainname, call the system
59015         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
59016         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
59017         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
59018         found in libnsl. Look for the declaration also in <netdb.h>. Replace
59019         the function if its second argument is of type 'int' or if it is found
59020         in libnsl.
59021         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
59022         <sys/systeminfo.h> and sysinfo().
59023         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
59024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59025         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
59026         HAVE_GETDOMAINNAME.
59027         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
59028         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
59029         * doc/glibc-functions/getdomainname.texi: Document the problems with
59030         the getdomainname declaration.
59032 2010-11-28  Bruno Haible  <bruno@clisp.org>
59034         sys_socket: Ensure ss_family field on AIX.
59035         * lib/sys_socket.in.h (ss_family): New macro definition.
59036         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
59037         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
59038         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
59039         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
59040         * modules/sys_socket (Makefile.am): Substitute
59041         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
59042         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
59044 2010-11-27  Bruno Haible  <bruno@clisp.org>
59046         readline: Improve configure output.
59047         * m4/readline.m4 (gl_FUNC_READLINE): Make the
59048         "checking for readline..." result understandable.
59050 2010-11-27  Bruno Haible  <bruno@clisp.org>
59052         *printf-posix: Detect a bug on Solaris 10/x86.
59053         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
59054         for floating-point output.
59055         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
59056         directive.
59057         * tests/test-snprintf-posix.h (test_function): Likewise.
59058         * tests/test-sprintf-posix.h (test_function): Likewise.
59059         * tests/test-vasprintf-posix.c (test_function): Likewise.
59060         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
59061         * doc/posix-functions/printf.texi: Likewise.
59062         * doc/posix-functions/snprintf.texi: Likewise.
59063         * doc/posix-functions/sprintf.texi: Likewise.
59064         * doc/posix-functions/vfprintf.texi: Likewise.
59065         * doc/posix-functions/vprintf.texi: Likewise.
59066         * doc/posix-functions/vsnprintf.texi: Likewise.
59067         * doc/posix-functions/vsprintf.texi: Likewise.
59068         * doc/glibc-functions/obstack_printf.texi: Likewise.
59069         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
59071 2010-11-27  Bruno Haible  <bruno@clisp.org>
59073         Fix link error when module libunistring-optional is in use.
59074         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
59075         * modules/striconveha-tests (Makefile.am): Likewise.
59077 2010-11-27  Bruno Haible  <bruno@clisp.org>
59079         regex: Mention link dependencies.
59080         * modules/regex (Link): New section.
59081         * modules/rpmatch (Link): Likewise.
59082         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
59084 2010-11-27  Bruno Haible  <bruno@clisp.org>
59086         ftoastr: Fix compilation error on Solaris.
59087         * lib/ftoastr.c: Include <config.h>.
59089 2010-11-27  Bruno Haible  <bruno@clisp.org>
59091         getloadavg: Update documentation.
59092         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
59094 2010-11-27  Bruno Haible  <bruno@clisp.org>
59096         sys_socket: Fix test whether the functions are declared.
59097         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
59098         not <sys/select.h>.
59100 2010-11-27  Bruno Haible  <bruno@clisp.org>
59102         getpass: Make sure to get system declaration on some platforms.
59103         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
59104         gl_USE_SYSTEM_EXTENSIONS.
59105         * modules/getpass (Depends-on): Add extensions.
59107 2010-11-26  Bruno Haible  <bruno@clisp.org>
59109         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
59110         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
59111         'iconv' module is present.
59112         (ICONV_CONST): New macro.
59113         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
59114         ICONV_CONST.
59115         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
59116         set ICONV_CONST.
59117         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
59118         here.
59119         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
59120         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
59121         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
59122         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
59123         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
59124         present.
59126 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59128         ftoastr: comment fix
59129         * lib/ftoastr.c: "little" -> "little or no" in comment
59131 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
59133         stdint: port to GCC 4.3 + OSX + Octave
59134         On this platform, stdint.h is buggy and defines int64_t to long
59135         long int.  The replacement defined it to long int, causing
59136         problems with C++ style name mangling.  Instead, trust the system
59137         definition if INT64_MAX is defined, and likewise for the unsigned
59138         variant.   Problem reported by Jarno Rajahalme in
59139         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
59140         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
59141         and don't mess with int64_t and INT64_MAX in this case.
59142         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
59144 2010-11-24  Bruno Haible  <bruno@clisp.org>
59146         doc: Corrections regarding MacOS X 10.4 and 10.5.
59147         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
59148         MacOS X.
59149         Reported by Simon Josefsson.
59151 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
59153         Uninstall ".bin" files installed by relocwrapper.
59154         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
59155         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
59156         unless it is already there.
59158 2010-11-21  Bruno Haible  <bruno@clisp.org>
59160         Update for NetBSD 5.0.
59161         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
59162         NetBSD; the test fails on NetBSD 5.0.
59163         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
59164         about NetBSD.
59166 2010-11-21  Bruno Haible  <bruno@clisp.org>
59168         Update for HP-UX 11.23 and HP-UX 11.31.
59169         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
59170         HP-UX.
59172 2010-11-21  Bruno Haible  <bruno@clisp.org>
59174         Update for MacOS X 10.5.
59175         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
59176         MacOS X; the test fails on MacOS X 10.5.8.
59177         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
59178         about MacOS X.
59180 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
59182         bootstrap: add bootstrap_sync option.
59183         See discussion at
59184         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
59185         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
59186         * build-aux/bootstrap: Accept --bootstrap-sync to update
59187         bootstrap if it is not identical to the local gnulib's
59188         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
59189         enable this by default.  Accept --no-bootstrap-sync to disable
59190         it.
59192 2010-11-20  Bruno Haible  <bruno@clisp.org>
59194         Ensure that <features.h> is included before __GLIBC__ is tested.
59195         * lib/printf-parse.h: Include <features.h>.
59196         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
59197         Reported by Mike Frysinger <vapier@gentoo.org>.
59199         Ensure that <features.h> is included before __GLIBC__ is tested.
59200         * lib/wchar.in.h: Include <features.h>.
59201         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
59202         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
59203         Reported by Mike Frysinger <vapier@gentoo.org>.
59205         Ensure that <features.h> is included before __GLIBC__ is tested.
59206         * lib/arpa_inet.in.h: Include <features.h>.
59207         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
59208         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
59209         Reported by Mike Frysinger <vapier@gentoo.org>.
59211         Ensure that <features.h> is included before __GLIBC__ is tested.
59212         * build-aux/link-warning.h: Include <features.h>.
59213         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
59214         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
59215         Reported by Mike Frysinger <vapier@gentoo.org>.
59217         Ensure that <features.h> is included before __GLIBC__ is tested.
59218         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
59219         Reported by Mike Frysinger <vapier@gentoo.org>.
59221 2010-11-20  Bruno Haible  <bruno@clisp.org>
59223         memmem: Fix autoconf test.
59224         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
59226 2010-11-20  Bruno Haible  <bruno@clisp.org>
59228         Port to uClibc.
59229         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
59230         * lib/fcntl.in.h: Likewise.
59231         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
59232         * lib/mbrtowc.c (mbrtowc): Likewise.
59233         * lib/relocatable.c (find_shared_library_fullname): Likewise.
59234         * lib/strerror_r.c: Likewise.
59235         * lib/unistr/u8-strnlen.c: Likewise.
59236         * lib/vasnprintf.c (decimal_point_char): Likewise.
59237         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
59238         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
59239         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
59240         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
59241         * tests/test-sigaction.c (handler, main): Likewise.
59242         * lib/freading.h: Treat uClibc like a non-glibc platform.
59243         * lib/freading.c: Likewise.
59244         * lib/gettext.h: Likewise.
59245         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
59246         Likewise.
59247         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
59248         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59249         * lib/propername.c (proper_name_utf8): Likewise.
59250         * lib/spawn.in.h: Likewise.
59251         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
59252         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
59253         mem_cd_iconveh_internal): Likewise.
59254         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
59255         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
59256         strstr, strcasestr): Likewise.
59257         * lib/unicodeio.c (unicode_to_mb): Likewise.
59258         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
59259         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
59260         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
59261         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
59262         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
59263         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
59264         * lib/unistr/u8-stpncpy.c: Likewise.
59265         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59266         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
59267         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59268         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59269         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
59270         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
59271         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
59272         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
59273         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
59274         Likewise.
59275         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
59276         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59277         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
59278         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59279         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59280         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59281         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59282         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59283         * tests/test-getopt.h (OPTIND_MIN): Likewise.
59284         * tests/test-striconveha.c (main): Likewise.
59285         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59286         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
59287         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
59288         * doc/posix-functions/getline.texi: Likewise.
59289         Reported by Mike Frysinger <vapier@gentoo.org>.
59291 2010-11-20  Bruno Haible  <bruno@clisp.org>
59293         nproc: Fix condition.
59294         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
59295         HAVE_PTHREAD_AFFINITY_NP.
59297 2010-11-20  Bruno Haible  <bruno@clisp.org>
59299         Fix a comment.
59300         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
59302 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
59304         ftoastr: don't assume snprintf
59305         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
59306         Implement a subset of snprintf here, by using sprintf safely.
59307         * modules/ftoastr (Depends-on): Remove snprintf.
59309 2010-11-19  Jim Meyering  <meyering@redhat.com>
59311         test-rename.h: fix compilation failure
59312         * tests/test-rename.h (test_rename): Add omitted "}".
59314 2010-11-17  Jim Meyering  <meyering@redhat.com>
59316         maint.mk: add a URL discussing the no-@acronym policy
59317         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
59319 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
59321         ftoastr: depend on snprintf, improve comments
59322         * lib/ftoastr.c: Also mention Loitsch's draft.
59323         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
59324         needed in the current implementation, but it might simplify
59325         speeding up the code later.
59326         * modules/ftoastr: Depend on snprintf; this improves portability.
59327         Suggested by Bruno Haible in the same email.
59329         ftoastr: port to hosts lacking strtof and strtold
59330         Problem reported by Bruno Haible in
59331         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
59332         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
59333         environment and strtold (and presumably strtof) are not available.
59334         * modules/ftoastr (Files): Add m4/c-strtod.m4.
59335         (configure.ac): Require gl_C99_STRTOLD.
59337 2010-11-18  Bruno Haible  <bruno@clisp.org>
59339         c-strtold: Avoid link error on AIX 7.
59340         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
59341         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
59342         (gl_C_STRTOLD): Test whether strtold_l exists.
59343         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59345 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59347         intprops: new macro INT_BITS_STRLEN_BOUND
59348         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
59349         ftoastr.h.  This exposes an internal of intprops.h that was formerly
59350         not exposed.  Also, it uses a slightly tighter bound than before;
59351         though this makes no practical difference, we might as well be as
59352         tight as we easily can.
59354         ftoastr: new module, for lossless conversion of floats to short strings
59355         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
59356         * modules/ftoastr: New files.
59358 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59360         bootstrap: port to Solaris sed
59361         * build-aux/bootstrap (get_version): Port to Solaris sed.
59362         See Ralf Wildenhues's note in
59363         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
59365 2010-11-14  Jim Meyering  <meyering@redhat.com>
59367         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
59368         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
59369         and move definition closer to sole use.
59371 2010-11-13  Jim Meyering  <meyering@redhat.com>
59373         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
59374         Now we require at least autoconf-2.59, which means the work-around
59375         is no longer needed.
59376         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
59377         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59378         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59379         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59380         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59382 2010-11-13  Bruno Haible  <bruno@clisp.org>
59384         rename, renameat: Avoid test failures at NFS mounted locations.
59385         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
59386         functions.
59387         (test_rename): Use assert_nonexistent.
59388         * tests/test-rename.c: Include <dirent.h>.
59389         * tests/test-renameat.c: Likewise.
59390         Reported by Gary V. Vaughan <gary@gnu.org>.
59392         rename, renameat: Document Linux bug with NFS
59393         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
59394         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
59395         * doc/posix-functions/renameat.texi: Likewise.
59396         Suggested by Eric Blake.
59398 2010-11-13  Bruno Haible  <bruno@clisp.org>
59400         rename test: Add comments.
59401         * tests/test-rename.h (test_rename): Add structure and comments.
59403 2010-11-13  Eric Blake  <eblake@redhat.com>
59405         maintainer-makefile: cover a few more files
59406         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
59407         scripts generated within C files, for libvirt.
59409 2010-11-13  Bruno Haible  <bruno@clisp.org>
59411         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
59412         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
59413         character, return the number of bytes that belong together, not always
59414         1.
59415         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
59416         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
59417         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
59418         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
59419         number of bytes of an invalid character.
59420         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
59421         (main): Invoke it.
59422         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
59423         results.
59424         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
59425         malformed byte sequences.
59426         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
59427         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
59428         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
59429         Reported by Ben Pfaff and Paolo Bonzini.
59431 2010-11-13  Bruno Haible  <bruno@clisp.org>
59433         openat: Work around glibc bug with fchownat() and empty file names.
59434         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
59435         (gl_FUNC_FCHOWNAT): Invoke it.
59436         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
59437         * doc/posix-functions/fchownat.texi: Document the glibc bug.
59438         Reported by Gary V. Vaughan <gary@gnu.org>.
59440 2010-11-13  Bruno Haible  <bruno@clisp.org>
59442         openat: Ensure autoconf macro ordering.
59443         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
59444         gl_USE_SYSTEM_EXTENSIONS.
59445         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
59447 2010-11-13  Bruno Haible  <bruno@clisp.org>
59449         Update comments.
59450         * lib/unistr/u8-check.c: Update file name in comments.
59451         * lib/unistr/u8-mblen.c: Likewise.
59452         * lib/unistr/u8-prev.c: Likewise.
59453         * lib/unistr/u8-strmblen.c: Likewise.
59454         * lib/unistr/u8-strmbtouc.c: Likewise.
59456 2010-11-13  Jim Meyering  <meyering@redhat.com>
59458         tests: avoid test failure on Solaris 10 due to lack of PATH export
59459         * tests/test-update-copyright.sh: Don't forget to export PATH.
59461         init.sh: ensure that IFS is defined, just in case...
59462         * tests/init.sh (setup_): Ensure that IFS is defined,
59463         so that saving and restoring it works as expected.  This
59464         appears to be useful at least for an old version of dash
59465         from a long time ago (RH 6).  See here for details:
59466         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
59468         maint.mk: tighten "test a == b" check
59469         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
59470         test to files that contain something like #!/bin/sh.
59471         Without this, coreutils would get two false positives in
59472         the comments of C source files.
59474 2010-11-12  Eric Blake  <eblake@redhat.com>
59476         bootstrap: fix typo in previous attempt
59477         * build-aux/bootstrap (buildreq): Correct the grouping.
59478         Reported by Paul Eggert.
59480         maintainer-makefile: prohibit test x == x
59481         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
59482         Based on a report by Matthias Bolte.
59484         bootstrap: allow FreeBSD gzip
59485         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
59486         which has no '.' and goes to stderr.
59487         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
59488         Reported by Matthias Bolte.
59490         maintainer-makefile: check for i18n setup
59491         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
59492         will likely work.
59494 2010-11-12  Bruno Haible  <bruno@clisp.org>
59496         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
59497         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
59498         * lib/nanosleep.c (nanosleep): Likewise.
59500 2010-11-11  Bruno Haible  <bruno@clisp.org>
59502         fcntl-h: Fix for use of C++ on glibc systems.
59503         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
59504         also on glibc systems in C++ mode.
59505         Reported by Gary V. Vaughan <gary@gnu.org>.
59507 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
59509         mknod: avoid false failure with dash
59510         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
59512 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59514         unlink: Fix "is it should" typo in diagnostic.
59515         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
59516         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
59518 2010-11-11  Bruno Haible  <bruno@clisp.org>
59520         Tests for module 'strerror_r-posix'.
59521         * modules/strerror_r-posix-tests: New file.
59522         * tests/test-strerror_r.c: New file.
59523         * tests/test-string-c++.cc: Check the signature of strerror_r.
59525         New module 'strerror_r-posix'.
59526         * lib/string.in.h (strerror_r): New declaration.
59527         * lib/strerror_r.c: New file.
59528         * m4/strerror_r.m4: New file.
59529         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
59530         of strerror_r.
59531         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
59532         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
59533         * modules/strerror_r-posix: New file.
59534         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
59535         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
59536         * doc/posix-functions/strerror_r.texi: Mention the new module and the
59537         portability problems.
59539 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
59541         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
59542         line is also considered for output. Quoted function name in shell
59543         command, so temporary files for functions like MyClass::operator()
59544         are removed correctly without errors.
59546 2010-11-09  Bruno Haible  <bruno@clisp.org>
59548         * doc/posix-functions/strerror.texi: List more failing platforms.
59550         * doc/posix-functions/strerror.texi: Add a comment.
59552 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59554         fdopendir: fix bug on MacOS X when low on file descriptors
59556         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
59557         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
59558         All callers changed.
59559         (fdopendir): Invoke save_cwd at the top level, not after using
59560         multiple dup() calls to use up file descriptors.  Then retry
59561         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
59562         less than the maximum number of open file descriptors, because
59563         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
59564         on Mac OS X 10.6.4 for tar 1.24
59565         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
59566         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
59567         and for tar 1.25
59568         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
59570 2010-11-07  Bruno Haible  <bruno@clisp.org>
59572         vasnprintf: Support I flag on glibc systems.
59573         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
59574         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
59575         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
59576         snprintf function.
59577         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
59578         glibc systems.
59579         * tests/test-vasnprintf-posix3.c: New file.
59580         * modules/vasnprintf-posix-tests (Files): Add it.
59581         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
59583 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59585         [html] Fix copy/paste bug: Use unique name for compiler warnings.
59586         * MODULES.html.sh: For compiler warnings, use name
59587         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
59589 2010-11-05  Eric Blake  <eblake@redhat.com>
59591         ceil, floor: avoid spurious failure with icc
59592         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
59593         [denormals-as-zero] when optimizing without -mieee-fp option.
59594         * tests/test-floorf2.c (floorf_reference): Likewise.
59595         * tests/test-ceilf1.c (dummy): New function.
59596         (main): Use it to outsmart icc's optimization.
59597         * tests/test-floorf1.c (dummy, main): Likewise.
59599         tests: require working signbit
59600         * modules/ceilf-tests (Depends-on): Add signbit.
59601         * modules/ceill-tests (Depends-on): Likewise.
59602         * modules/floorf-tests (Depends-on): Likewise.
59603         * modules/floorl-tests (Depends-on): Likewise.
59604         * modules/round-tests (Depends-on): Likewise.
59605         * modules/roundf-tests (Depends-on): Likewise.
59606         * modules/roundl-tests (Depends-on): Likewise.
59607         * modules/trunc-tests (Depends-on): Likewise.
59608         * modules/truncf-tests (Depends-on): Likewise.
59609         * modules/truncl-tests (Depends-on): Likewise.
59611         strtod: work around icc bug
59612         * lib/strtod.c (minus_zero): Define to working value.
59613         (strtod): Use it to avoid icc bug.
59615         copysign: enhance tests
59616         * modules/copysign-tests (Files): Add minus-zero.h.
59617         * tests/test-copysign.c (main): Also test zeros.
59619 2010-11-04  Eric Blake  <eblake@redhat.com>
59621         ceil, floor, round, trunc: enhance tests of -0
59622         * tests/test-ceilf1.c (main): Ensure correct sign of result.
59623         * tests/test-ceill.c (main): Likewise.
59624         * tests/test-floorf1.c (main): Likewise.
59625         * tests/test-floorl.c (main): Likewise.
59626         * tests/test-round1.c (main): Likewise.
59627         * tests/test-roundf1.c (main): Likewise.
59628         * tests/test-roundl.c (main): Likewise.
59629         * tests/test-trunc1.c (main): Likewise.
59630         * tests/test-truncf1.c (main): Likewise.
59631         * tests/test-truncl.c (main): Likewise.
59633 2010-11-04  Eric Blake  <eblake@redhat.com>
59635         frexp, tests: work around ICC bug with -zero
59636         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
59637         works with more compilers.
59638         * tests/minus-zero.h: New file.
59639         * modules/ceilf-tests (Files): Include it.
59640         * modules/ceill-tests (Files): Likewise.
59641         * modules/floorf-tests (Files): Likewise.
59642         * modules/floorl-tests (Files): Likewise.
59643         * modules/frexp-nolibm-tests (Files): Likewise.
59644         * modules/frexp-tests (Files): Likewise.
59645         * modules/frexpl-nolibm-tests (Files): Likewise.
59646         * modules/frexpl-tests (Files): Likewise.
59647         * modules/isnan-tests (Files): Likewise.
59648         * modules/isnand-nolibm-tests (Files): Likewise.
59649         * modules/isnand-tests (Files): Likewise.
59650         * modules/isnanf-nolibm-tests (Files): Likewise.
59651         * modules/isnanf-tests (Files): Likewise.
59652         * modules/isnanl-nolibm-tests (Files): Likewise.
59653         * modules/isnanl-tests (Files): Likewise.
59654         * modules/round-tests (Files): Likewise.
59655         * modules/roundf-tests (Files): Likewise.
59656         * modules/roundl-tests (Files): Likewise.
59657         * modules/ldexpl-tests (Files): Likewise.
59658         * modules/signbit-tests (Files): Likewise.
59659         * modules/snprintf-posix-tests (Files): Likewise.
59660         * modules/sprintf-posix-tests (Files): Likewise.
59661         * modules/strtod-tests (Files): Likewise.
59662         * modules/trunc-tests (Files): Likewise.
59663         * modules/truncf-tests (Files): Likewise.
59664         * modules/truncl-tests (Files): Likewise.
59665         * modules/vsnprintf-posix-tests (Files): Likewise.
59666         * modules/vsprintf-posix-tests (Files): Likewise.
59667         * modules/vasnprintf-posix-tests (Files): Likewise.
59668         * modules/vasprintf-posix-tests (Files): Likewise.
59669         * tests/test-ceilf1.c (main): Use it.
59670         * tests/test-ceill.c (main): Likewise.
59671         * tests/test-floorf1.c (main): Likewise.
59672         * tests/test-floorl.c (main): Likewise.
59673         * tests/test-frexp.c (main): Likewise.
59674         * tests/test-frexpl.c (main): Likewise.
59675         * tests/test-isnan.c (main): Likewise.
59676         * tests/test-isnand.h (main): Likewise.
59677         * tests/test-isnanf.h (main): Likewise.
59678         * tests/test-isnanl.h (main): Likewise.
59679         * tests/test-ldexpl.c (main): Likewise.
59680         * tests/test-round.c (main): Likewise.
59681         * tests/test-roundf.c (main): Likewise.
59682         * tests/test-roundl.c (main): Likewise.
59683         * tests/test-signbit.c (test_signbitf, test_signbitd)
59684         (test_signbitl): Likewise.
59685         * tests/test-snprintf-posix.h (test_function): Likewise.
59686         * tests/test-sprintf-posix.h (test_function): Likewise.
59687         * tests/test-strtod.c (main): Likewise.
59688         * tests/test-trunc1.c (main): Likewise.
59689         * tests/test-truncf1.c (main): Likewise.
59690         * tests/test-truncl.c (main): Likewise.
59692         isnanl: work around icc bug
59693         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
59695 2010-11-03  Eric Blake  <eblake@redhat.com>
59697         tests: fix compiler warnings
59698         * tests/test-getopt.h (test_getopt): Fix condition.
59699         * tests/test-getopt_long.h (test_getopt_long): Likewise.
59700         * tests/test-pipe2.c (main): Likewise.
59701         * tests/test-quotearg-simple.c (main): Avoid icc warning.
59703         utimens: fix broken m4 test
59704         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
59706 2010-10-28  Bruno Haible  <bruno@clisp.org>
59708         posix_spawn*, getdtablesize: Relax license.
59709         * modules/posix_spawn (License): Change to LGPLv2+.
59710         * modules/posix_spawnp (License): Likewise.
59711         * modules/posix_spawn-internal (License): Likewise.
59712         * modules/posix_spawnattr_init (License): Likewise.
59713         * modules/posix_spawnattr_getflags (License): Likewise.
59714         * modules/posix_spawnattr_setflags (License): Likewise.
59715         * modules/posix_spawnattr_getpgroup (License): Likewise.
59716         * modules/posix_spawnattr_setpgroup (License): Likewise.
59717         * modules/posix_spawnattr_getschedparam (License): Likewise.
59718         * modules/posix_spawnattr_setschedparam (License): Likewise.
59719         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
59720         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
59721         * modules/posix_spawnattr_getsigdefault (License): Likewise.
59722         * modules/posix_spawnattr_setsigdefault (License): Likewise.
59723         * modules/posix_spawnattr_getsigmask (License): Likewise.
59724         * modules/posix_spawnattr_setsigmask (License): Likewise.
59725         * modules/posix_spawnattr_destroy (License): Likewise.
59726         * modules/posix_spawn_file_actions_init (License): Likewise.
59727         * modules/posix_spawn_file_actions_addclose (License): Likewise.
59728         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
59729         * modules/posix_spawn_file_actions_addopen (License): Likewise.
59730         * modules/posix_spawn_file_actions_destroy (License): Likewise.
59731         * modules/getdtablesize (License): Likewise.
59732         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
59734 2010-10-26  Bruno Haible  <bruno@clisp.org>
59736         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
59737         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
59738         Cygwin and mingw.
59739         Suggested by Eric Blake.
59741 2010-10-26  Bruno Haible  <bruno@clisp.org>
59743         stdio: Work around compilation error due to renameat() on Solaris 10.
59744         * lib/stdio.in.h: Include <unistd.h> on Solaris.
59745         * lib/renameat.c: Don't include <unistd.h> here.
59746         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
59747         Reported by Paul Eggert and Eric Blake.
59749 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59751         renameat: port to Solaris 10, which declares renameat in unistd.h
59753         * lib/renameat.c: Include unistd.h before stdio.h, because
59754         Solaris 10 declares renameat in unistd.h.  Problem encountered
59755         when building GNU tar 1.24 on Solaris 10.
59757 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
59759         fdopendir: fix C89 compilation
59760         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
59761         compilers.
59763 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
59765         inttostr: simplify by removing unnecessary redundancy
59766         * lib/anytostr.c: Don't include verify.h.
59767         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
59768         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
59769         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
59770         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
59771         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
59772         Likewise.
59773         * modules/inttostr (Depends-on): Remove 'verify'.
59775 2010-10-23  Bruno Haible  <bruno@clisp.org>
59777         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
59778         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
59779         Reported by Eric Blake.
59781 2010-10-23  Bruno Haible  <bruno@clisp.org>
59783         Tests: Fix LOCALE_JA on MirBSD 10.
59784         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
59785         to an UTF-8 locale.
59786         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
59787         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59788         Reported by Eric Blake.
59790 2010-10-21  Bruno Haible  <bruno@clisp.org>
59792         nl_langinfo test: Avoid test failure on NetBSD 5.
59793         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
59794         Reported by Eric Blake.
59796 2010-10-21  Eric Blake  <eblake@redhat.com>
59798         c-stack: work around libsigsegv 2.8 bug
59799         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
59800         overflow on at least PowerPC64.
59802 2010-10-17  Bruno Haible  <bruno@clisp.org>
59804         userspec: Drop redundant file.
59805         * modules/userspec (Files): Remove lib/inttostr.h.
59807 2010-10-17  Bruno Haible  <bruno@clisp.org>
59809         nl_langinfo tests: Silence some warnings.
59810         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
59811         Reported by Jim Meyering.
59813 2010-10-17  Bruno Haible  <bruno@clisp.org>
59815         Make use of GCC's attribute __alloc_size__.
59816         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
59817         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
59818         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
59819         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
59820         __alloc_size__.
59821         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59822         Suggested by Jim Meyering.
59824 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
59826         bootstrap: anchor .gitignore entries.
59827         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
59828         with...
59829         (insert_vc_ignore): ... this new function, which prepends `/' to
59830         all .gitignore entries before passing them to
59831         insert_sorted_if_absent.
59833 2010-10-16  Bruno Haible  <bruno@clisp.org>
59835         nextafter: Fix configure check.
59836         * modules/nextafter (configure.ac): Correct expected prototype.
59838 2010-10-16  Bruno Haible  <bruno@clisp.org>
59840         termios: Update documentation.
59841         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
59843 2010-10-16  Bruno Haible  <bruno@clisp.org>
59845         tests: Make them compile with TinyCC.
59846         * tests/test-strstr.c (main): Remove parentheses around array
59847         initializer.
59849 2010-10-15  Eric Blake  <eblake@redhat.com>
59851         ignore-value: make header idempotent
59852         * lib/ignore-value.h: Add double-inclusion guards.
59853         Reported by Stefan Berger.
59855 2010-10-15  Jim Meyering  <meyering@redhat.com>
59857         GNUmakefile: handle "stable" target, not "major"
59858         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
59859         lists in maint.mk and announce-gen.  Without this, "make stable"
59860         would fail to ensure that $(VERSION) is up to date.
59862 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
59864         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
59865         & co.
59867 2010-10-14  Bruno Haible  <bruno@clisp.org>
59869         vasnprintf: Don't set errno to 0.
59870         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
59871         block that sets it to 0.
59872         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
59874 2010-10-14  Bruno Haible  <bruno@clisp.org>
59876         socketlib: Fix.
59877         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
59878         gl_PREREQ_SYS_H_WINSOCK2.
59879         Reported by Ian Beckwith <ianb@erislabs.net>.
59881 2010-10-13  Jim Meyering  <meyering@redhat.com>
59883         test-select-stdin.c: avoid warn_unused_result warnings
59884         * tests/test-select-stdin.c: Include "macros.h".
59885         ASSERT that read and fflush succeed.
59887 2010-10-13  Jim Meyering  <meyering@redhat.com>
59889         git-version-gen: do require git-VC'd files in cwd
59890         * build-aux/git-version-gen: Reject a git version string
59891         if there are no commits associated with the current directory.
59892         This avoids an unlikely false-positive (unrelated dir whose parent
59893         repository also contains a tag matching v*), as pointed out
59894         by Giuseppe Scrivano in
59895         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
59897 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
59899         argv-iter: omit nonconforming declaration
59900         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
59901         enum arg_iter_err declaration, which doesn't conform to C99.
59902         Solaris 10 cc warns about this.
59904 2010-10-13  Eric Blake  <eblake@redhat.com>
59906         termios: fix compilation on mingw
59907         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
59908         (gl_TERMIOS_H): Adjust it on mingw.
59909         * modules/termios (Makefile.am): Substitute new key.
59910         * lib/termios.in.h (includes): Make include_next conditional.
59911         * doc/posix-headers/termios.texi (termios.h): Update
59912         documentation.
59913         Reported by Daniel P. Berrange.
59915 2010-10-13  Jim Meyering  <meyering@redhat.com>
59917         git-version-gen: don't require that .git/ be in the current dir
59918         * build-aux/git-version-gen: Adjust this script so that it works
59919         when run from any working directory beneath the top-level .git/-
59920         containing directory.  Inspired by a patch from Giuseppe Scrivano,
59921         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
59923         test-select: avoid warn_unused_result warnings
59924         * tests/test-select.c: Include "macros.h".
59925         ASSERT that each call to read, write, and pipe succeeds.
59926         While not technically required, also check each "close".
59927         * modules/select-tests (Files): Add tests/macros.h.
59929         test-symlinkat: remove declaration of unused local
59930         * tests/test-symlinkat.c (main): Remove unused local, "buf".
59932         test-inttostr: avoid shadowing warnings
59933         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
59934         and use malloc rather than the stack for the same reason as
59935         mentioned in the comment justifying the other allocation.
59937 2010-10-11  Bruno Haible  <bruno@clisp.org>
59939         stdlib: Allow multiple gnulib generated replacements to coexist.
59940         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
59941         Reported by Sam Steingold <sds@gnu.org>.
59943 2010-10-11  Jim Meyering  <meyering@redhat.com>
59945         fix a documentation typo
59946         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
59948 2010-10-11  Eric Blake  <eblake@redhat.com>
59950         futimens: work around Solaris 11 bug
59951         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
59952         * tests/test-futimens.h (test_futimens): Enhance, rather than
59953         weaken test.
59954         * doc/posix-functions/futimens.texi (futimens): Document the bug.
59956 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59958         Indentation.
59959         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
59960         higher-level operators more to the left.
59962 2010-10-11  Jim Meyering  <meyering@redhat.com>
59964         test-futimens: avoid unwarranted test failure on Solaris 5.11
59965         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
59966         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
59967         because it tries to dereference the NULL name argument.
59969 2010-10-11  Bruno Haible  <bruno@clisp.org>
59971         Indentation.
59972         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
59973         indentation.
59975 2010-10-11  Jim Meyering  <meyering@redhat.com>
59977         spawn.in.h: make indentation consistent with parentheses
59978         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
59979         Make indentation consistent with parentheses.
59981 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
59983         Fix mismatched parens in previous commit
59984         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
59985         parens.
59987 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59989         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
59991         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
59992         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
59993         * lib/malloca.c: Include "verify.h".
59994         (verify1): Remove, replacing with a verify call.
59995         * lib/relocwrapper.c (verify1): Likewise.
59996         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
59997         Likewise.
59998         * modules/malloca (Depends-on): Add 'verify'.
59999         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
60000         * modules/vasnprintf (Depends-on): Add 'verify'.
60001         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60002         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60003         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60004         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60005         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60006         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60007         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60009         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
60011         Formerly the style was sometimes 2*X - 1, because the C standard
60012         was wrongly thought to disallow ?: in integral constant expressions.
60013         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
60014         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
60015         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
60016         * lib/stdint.in.h (_verify_intmax_size): Likewise.
60017         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
60018         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
60019         verify that time_t cannot be floating.
60021 2010-10-08  Eric Blake  <eblake@redhat.com>
60023         time: enforce recent POSIX ruling that time_t is integral
60024         * lib/time.in.h (__time_t_must_be_integral): Detect any
60025         problematic systems, allowing the rest of gnulib to assume POSIX.
60027 2010-10-08  Jim Meyering  <meyering@redhat.com>
60029         fdopendir: fix a bug on systems lacking openat and /proc support
60030         OpenBSD 4.7 is one such system.  The most noticeable effect was
60031         failure of any application making nontrivial use of fts: rm, du,
60032         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
60033           ./rm: traversal failed: `a': Bad file descriptor
60034         Debugging that, you see that even though FD 6 was closed just
60035         prior to the opendir call in fd_clone_opendir, its resulting
60036         dir->dd_fd was 8, rather than the expected value of 6:
60038         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
60039         93                close (fd);
60040         (gdb) n
60041         94                dir = fd_clone_opendir (dupfd);
60042         (gdb) n
60043         95                saved_errno = errno;
60044         (gdb) p dir->dd_fd
60045         $11 = 8
60047         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
60048         The problem is that on OpenBSD, fd_clone_opendir has to resort
60049         to using the old-style save/restore CWD mechanism, due to its
60050         lack of openat/proc support, and *that* would steal the FD (6)
60051         that opendir was supposed to use.
60053         The fix is to squirrel away the desired FD so that save_cwd uses a
60054         different one, and then free the dest FD right before calling opendir.
60055         That guarantees opendir will use the required file descriptor.
60057         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
60059 2010-10-08  Bruno Haible  <bruno@clisp.org>
60061         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
60062         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
60064 2010-10-08  Bruno Haible  <bruno@clisp.org>
60066         nanosleep: Make replacement POSIX compliant.
60067         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
60068         is out of range.
60069         Reported by Jim Meyering.
60071 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60073         bootstrap: add hook for altering gnulib.mk, for Bison
60074         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
60075         the Bison bootstrapping process can rewrite file names and variables
60076         in this file before later parts of 'bootstrap' use the file.
60077         Bison wants to include lib/gnulib.mk from the top-level makefile,
60078         so it needs the file names in this file to be relative to the top
60079         level, not relative to lib; plus it needs variable names to be
60080         rewritten.
60081         (slurp): Use the new function.
60083         bootstrap: reformat for readability
60084         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
60086 2010-10-08  Eric Blake  <eblake@redhat.com>
60088         docs: update cygwin progress
60089         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
60090         1.7.7.
60091         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
60092         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
60093         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
60094         * doc/posix-functions/carg.texi (carg): Likewise.
60095         * doc/posix-functions/cargf.texi (cargf): Likewise.
60096         * doc/posix-functions/casin.texi (casin): Likewise.
60097         * doc/posix-functions/casinf.texi (casinf): Likewise.
60098         * doc/posix-functions/casinh.texi (casinh): Likewise.
60099         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
60100         * doc/posix-functions/catan.texi (catan): Likewise.
60101         * doc/posix-functions/catanf.texi (catanf): Likewise.
60102         * doc/posix-functions/catanh.texi (catanh): Likewise.
60103         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
60104         * doc/posix-functions/ccos.texi (ccos): Likewise.
60105         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
60106         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
60107         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
60108         * doc/posix-functions/cexp.texi (cexp): Likewise.
60109         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
60110         * doc/posix-functions/cimag.texi (cimag): Likewise.
60111         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
60112         * doc/posix-functions/clog.texi (clog): Likewise.
60113         * doc/posix-functions/clogf.texi (clogf): Likewise.
60114         * doc/posix-functions/conj.texi (conj): Likewise.
60115         * doc/posix-functions/conjf.texi (conjf): Likewise.
60116         * doc/posix-functions/cpow.texi (cpow): Likewise.
60117         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
60118         * doc/posix-functions/cproj.texi (cproj): Likewise.
60119         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
60120         * doc/posix-functions/creal.texi (creal): Likewise.
60121         * doc/posix-functions/crealf.texi (crealf): Likewise.
60122         * doc/posix-functions/csin.texi (csin): Likewise.
60123         * doc/posix-functions/csinf.texi (csinf): Likewise.
60124         * doc/posix-functions/csinh.texi (csinh): Likewise.
60125         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
60126         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
60127         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
60128         * doc/posix-functions/ctan.texi (ctan): Likewise.
60129         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
60130         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
60131         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
60132         * doc/posix-headers/complex.texi (complex.h): Likewise.
60134 2010-10-07  Jim Meyering  <meyering@redhat.com>
60136         parse-datetime: avoid compilation failure on OpenBSD 4.7
60137         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
60138         This works around a compilation failure on OpenBSD 4.7:
60139         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
60141 2010-10-07  Eric Blake  <eblake@redhat.com>
60143         docs: update cygwin progress
60144         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
60145         1.7.6.
60146         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
60147         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
60148         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
60149         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
60150         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
60151         Likewise.
60152         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
60153         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
60154         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
60155         Likewise.
60156         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
60157         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
60158         Likewise.
60159         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
60160         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
60161         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
60162         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
60163         Likewise.
60164         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
60165         Likewise.
60166         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
60168         docs: update parse-datetime history
60169         * doc/parse-datetime.texi (Authors of parse_datetime): Better
60170         documentation of this function's history and alternatives.
60172         cygwin: use more robust version check
60173         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
60174         exclude an eventual cygwin 1.9.1.
60175         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60176         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
60177         (gl_FUNC_STRCASESTR): Likewise.
60178         Reported by Bruno Haible.
60180 2010-10-06  Bruno Haible  <bruno@clisp.org>
60182         string, sys_select: Avoid #including large headers unless necessary.
60183         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
60184         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
60185         OSF/1, BeOS, Haiku.
60186         Reported by Jim Meyering.
60188 2010-10-05  Eric Blake  <eblake@redhat.com>
60190         memmem, strstr, strcasestr: fix bug with long periodic needle
60191         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
60192         periodic needle having false positive.
60193         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
60194         and cygwin 1.7.7.
60195         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
60196         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
60197         (gl_FUNC_STRCASESTR): Likewise.
60198         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60199         * tests/test-memmem.c (main): Expose the bug.
60200         * tests/test-strcasestr.c (main): Likewise.
60201         * tests/test-strstr.c (main): Likewise.
60202         * tests/test-c-strcasestr.c (main): Likewise.
60203         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
60204         * doc/posix-functions/strstr.texi (strstr): Likewise.
60205         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60206         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
60208 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60210         parse-datetime: do some more renaming
60211         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
60212         parse_datetime, not get_date.  Mention the renaming.
60213         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
60214         in comments.
60215         * m4/bison.m4: Likewise.
60217 2010-10-05  Eric Blake  <eblake@redhat.com>
60219         parse-datetime: better name than get_date
60220         * NEWS: Reword the deprecation notice.
60221         * modules/get_date: Rename to modules/parse-datetime.
60222         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
60223         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
60224         * lib/get_date.y: Rename to lib/parse-datetime.y.
60225         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
60226         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
60227         * doc/getdate.texi: Provide fallback wrapper.
60228         * lib/getdate.h: Move guts, and wrap...
60229         * lib/parse-datetime.h: ...new file.
60230         * lib/parse-datetime.y (get_date): Rename...
60231         (parse_datetime): ...to this.
60232         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
60233         (gl_PARSE_DATETIME): ...to this.
60234         * doc/posix-functions/getdate.texi (get_date): Provide fallback
60235         documentation.
60236         * modules/getdate (Files): Provide fallback docs and header.
60237         (Notice, Depends-on): Update references.
60238         * tests/test-parse-datetime.c: Likewise.
60239         * DEPENDENCIES: Likewise.
60240         * MODULES.html.sh (Date and time <time.h>): Likewise.
60241         * doc/parse-datetime.texi (Date input formats)
60242         (Authors of parse_datetime): Likewise.
60243         * modules/parse-datetime (Files, configure.ac, Makefile.am)
60244         (Include): Likewise.
60245         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
60246         * gnulib-tool: Likewise.
60247         * m4/bison.m4 (gl_BISON): Likewise.
60248         Suggested by Bruno Haible.
60250 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60252         more ports to Solaris tr, which needs [] around ranges
60253         * gnulib-tool: Solaris tr needs [] around ranges.
60254         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
60255         * tests/test-pipe-filter-gi1.c (main): Likewise.
60256         * tests/test-pipe-filter-ii1.c (main): Likewise.
60258 2010-10-05  Eric Blake  <eblake@redhat.com>
60260         bootstrap: fix Solaris regression
60261         * build-aux/bootstrap (check_versions): Solaris tr still needs []
60262         around ranges.
60263         Reported by Pádraig Brady.
60265         bootstrap: work with pkg-config
60266         * build-aux/bootstrap (check_versions): Also transliterate - in
60267         prerequisite name.
60268         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
60269         prerequisites that were already found, to avoid confusion.
60270         Reported by Justin Clift.
60272         faccessat: remove unused wrappers
60273         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
60274         presence of these wrappers dragged in -lgen on Solaris.
60275         Reported by Clemens Brogi; fix suggested by Paul Eggert.
60277 2010-10-05  Jim Meyering  <meyering@redhat.com>
60279         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
60280         * Makefile (sc_pragma_columns): New syntax-check rule.
60282 2010-10-04  Bruno Haible  <bruno@clisp.org>
60284         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
60285         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
60286         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
60287         Reported by Bruce Korb and Eric Blake.
60289 2010-10-04  Bruno Haible  <bruno@clisp.org>
60291         threadlib: Make option --with-libpth-prefix work.
60292         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
60293         use $LIBPTH, not just -lpth.
60295 2010-10-04  Bruno Haible  <bruno@clisp.org>
60297         Avoid line length limitation from HP NonStop system header files.
60298         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
60299         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
60300         * lib/ctype.in.h: Likewise.
60301         * lib/dirent.in.h: Likewise.
60302         * lib/errno.in.h: Likewise.
60303         * lib/fcntl.in.h: Likewise.
60304         * lib/float.in.h: Likewise.
60305         * lib/getopt.in.h: Likewise.
60306         * lib/iconv.in.h: Likewise.
60307         * lib/inttypes.in.h: Likewise.
60308         * lib/langinfo.in.h: Likewise.
60309         * lib/locale.in.h: Likewise.
60310         * lib/math.in.h: Likewise.
60311         * lib/netdb.in.h: Likewise.
60312         * lib/netinet_in.in.h: Likewise.
60313         * lib/poll.in.h: Likewise.
60314         * lib/pthread.in.h: Likewise.
60315         * lib/pty.in.h: Likewise.
60316         * lib/sched.in.h: Likewise.
60317         * lib/se-selinux.in.h: Likewise.
60318         * lib/search.in.h: Likewise.
60319         * lib/signal.in.h: Likewise.
60320         * lib/spawn.in.h: Likewise.
60321         * lib/stdarg.in.h: Likewise.
60322         * lib/stddef.in.h: Likewise.
60323         * lib/stdint.in.h: Likewise.
60324         * lib/stdio.in.h: Likewise.
60325         * lib/stdlib.in.h: Likewise.
60326         * lib/string.in.h: Likewise.
60327         * lib/strings.in.h: Likewise.
60328         * lib/sys_file.in.h: Likewise.
60329         * lib/sys_ioctl.in.h: Likewise.
60330         * lib/sys_select.in.h: Likewise.
60331         * lib/sys_socket.in.h: Likewise.
60332         * lib/sys_stat.in.h: Likewise.
60333         * lib/sys_time.in.h: Likewise.
60334         * lib/sys_times.in.h: Likewise.
60335         * lib/sys_utsname.in.h: Likewise.
60336         * lib/sys_wait.in.h: Likewise.
60337         * lib/sysexits.in.h: Likewise.
60338         * lib/termios.in.h: Likewise.
60339         * lib/time.in.h: Likewise.
60340         * lib/unistd.in.h: Likewise.
60341         * lib/wchar.in.h: Likewise.
60342         * lib/wctype.in.h: Likewise.
60343         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
60344         * modules/ctype (Makefile.am): Likewise.
60345         * modules/dirent (Makefile.am): Likewise.
60346         * modules/errno (Makefile.am): Likewise.
60347         * modules/fcntl-h (Makefile.am): Likewise.
60348         * modules/float (Makefile.am): Likewise.
60349         * modules/getopt-posix (Makefile.am): Likewise.
60350         * modules/iconv-h (Makefile.am): Likewise.
60351         * modules/inttypes (Makefile.am): Likewise.
60352         * modules/langinfo (Makefile.am): Likewise.
60353         * modules/locale (Makefile.am): Likewise.
60354         * modules/math (Makefile.am): Likewise.
60355         * modules/netdb (Makefile.am): Likewise.
60356         * modules/netinet_in (Makefile.am): Likewise.
60357         * modules/poll-h (Makefile.am): Likewise.
60358         * modules/pthread (Makefile.am): Likewise.
60359         * modules/pty (Makefile.am): Likewise.
60360         * modules/sched (Makefile.am): Likewise.
60361         * modules/search (Makefile.am): Likewise.
60362         * modules/selinux-h (Makefile.am): Likewise.
60363         * modules/signal (Makefile.am): Likewise.
60364         * modules/spawn (Makefile.am): Likewise.
60365         * modules/stdarg (Makefile.am): Likewise.
60366         * modules/stddef (Makefile.am): Likewise.
60367         * modules/stdint (Makefile.am): Likewise.
60368         * modules/stdio (Makefile.am): Likewise.
60369         * modules/stdlib (Makefile.am): Likewise.
60370         * modules/string (Makefile.am): Likewise.
60371         * modules/strings (Makefile.am): Likewise.
60372         * modules/sys_file (Makefile.am): Likewise.
60373         * modules/sys_ioctl (Makefile.am): Likewise.
60374         * modules/sys_select (Makefile.am): Likewise.
60375         * modules/sys_socket (Makefile.am): Likewise.
60376         * modules/sys_stat (Makefile.am): Likewise.
60377         * modules/sys_time (Makefile.am): Likewise.
60378         * modules/sys_times (Makefile.am): Likewise.
60379         * modules/sys_utsname (Makefile.am): Likewise.
60380         * modules/sys_wait (Makefile.am): Likewise.
60381         * modules/sysexits (Makefile.am): Likewise.
60382         * modules/termios (Makefile.am): Likewise.
60383         * modules/time (Makefile.am): Likewise.
60384         * modules/unistd (Makefile.am): Likewise.
60385         * modules/wchar (Makefile.am): Likewise.
60386         * modules/wctype (Makefile.am): Likewise.
60388 2010-10-04  Bruno Haible  <bruno@clisp.org>
60390         read-file tests: Avoid a test failure on NonStop Kernel.
60391         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
60392         a regular file.
60393         Reported by Joachim Schmitz <schmitz@hp.com>.
60395 2010-10-03  Bruno Haible  <bruno@clisp.org>
60397         gnulib-tool: Fixes for --create-testdir with --libtool.
60398         * gnulib-tool (func_get_automake_snippet): Don't augment
60399         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
60400         an executable.
60401         (func_create_testdir): Handle module 'alloca' like func_import.
60402         Reported by Bruce Korb <bruce.korb@gmail.com>.
60404 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
60406         Avoid some lines longer than 80 characters.
60407         * lib/stdint.in.h: Break long comment lines.
60408         * lib/math.in.h: Likewise.
60409         (_GL_NUM_UINT_WORDS): New macro, for readability.
60410         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
60411         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
60412         * lib/stdlib.in.h: Likewise.
60413         * lib/spawn.in.h: Likewise.
60414         * lib/sys_socket.in.h: Update an URL.
60415         * lib/sys_stat.in.h: Break long line.
60417 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
60419         Improve pmccabe2html.
60420         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
60421         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
60422         when the sources change. Remove the line in the HTML about "Used
60423         ranges" (which implied that there might be other unused ranges),
60424         rename "Resume" to "Summary" (easier to understand for more users).
60425         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
60426         styles, and some unnecessary blank lines.
60428 2010-10-03  Bruno Haible  <bruno@clisp.org>
60429             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
60431         acl: Add support for ACLs on NonStop Kernel.
60432         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
60433         Check whether the function aclsort() exists.
60434         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
60435         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
60436         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60437         (acl_nontrivial [HAVE_ACLSORT]: New function.
60438         (file_has_acl): Implement for NonStop Kernel.
60439         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60440         (qset_acl): Implement for NonStop Kernel.
60441         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
60442         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60443         (main): Implement for NonStop Kernel.
60444         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
60445         Kernel. Handle this flavor.
60446         * tests/test-set-mode-acl.sh: Likewise.
60447         * tests/test-copy-acl.sh: Likewise.
60448         * tests/test-copy-file.sh: Likewise.
60450 2010-10-03  Bruno Haible  <bruno@clisp.org>
60452         Info about ACLs on NonStop Kernel.
60453         * doc/acl-resources.txt: Add info about NonStop Kernel.
60454         References by Joachim Schmitz <schmitz@hp.com>.
60456 2010-10-02  Bruno Haible  <bruno@clisp.org>
60458         Define missing EDQUOT on NonStop Kernel.
60459         * lib/errno.in.h (EDQUOT): Assign a value if missing.
60460         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
60461         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
60462         missing.
60463         * doc/posix-headers/errno.texi: Mention the NSK bug.
60464         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
60465         Reported by Joachim Schmitz <schmitz@hp.com>.
60467 2010-10-02  Bruno Haible  <bruno@clisp.org>
60469         Update doc for POSIX:2008.
60470         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
60471         Update URL of POSIX specification.
60473 2010-10-02  Bruno Haible  <bruno@clisp.org>
60475         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
60476         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
60477         from gnulib, not from Automake.
60479 2010-10-02  Bruno Haible  <bruno@clisp.org>
60481         New module 'system-posix'.
60482         * modules/system-posix: New file.
60483         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
60484         module is present.
60485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60486         GNULIB_SYSTEM_POSIX.
60487         * modules/stdlib (Depends-on): Remove sys_wait.
60488         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
60489         * doc/posix-functions/system.texi: Mention the new module.
60490         * doc/posix-headers/stdlib.texi: Likewise.
60491         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
60492         define test_sys_wait_macros to a no-op.
60493         Reported by Sam Steingold <sds@gnu.org>.
60495 2010-09-30  Bruno Haible  <bruno@clisp.org>
60497         More renaming from 'getdate' to 'get_date'.
60498         * doc/get_date.texi: Renamed from doc/getdate.texi.
60499         * modules/get_date (Files): Update.
60500         * MODULES.html.sh (Date and time <time.h>): Update.
60501         * DEPENDENCIES: Update.
60502         * gnulib-tool: Update comment.
60503         * m4/bison.m4 (gl_BISON): Likewise.
60504         * m4/get_date.m4 (gl_GET_DATE): Likewise.
60506 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
60508         bootstrap: support ACLOCAL_FLAGS during aclocal
60509         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
60510         can add additional -I dir for third-party .m4 files.
60512 2010-09-30  Eric Blake  <eblake@redhat.com>
60514         bootstrap: use glibtoolize on MacOS
60515         * build-aux/bootstrap (check_versions): Convert libtool into
60516         libtoolize.
60517         (tool search): Move libtool check earlier, and look for
60518         glibtoolize for MacOS.
60519         (gnulib_tool_options): Auto-add --libtool when appropriate.
60520         Reported by Justin Clift.
60522         poll: fix typo that broke test on MacOS
60523         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
60524         Reported by Justin Clift.
60526         getdate: rename to get_date
60527         Note: getdate.h is not renamed, to minimize client impact.
60528         * modules/getdate: Mark obsolete.  Move old contents...
60529         * modules/get_date: ...to new module name.
60530         * modules/getdate-tests: Move...
60531         * modules/get_date-tests: ...here.
60532         * m4/getdate.m4: Move...
60533         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
60534         * lib/getdate.y: Move...
60535         * lib/get_date.y: ...here.
60536         * tests/test-getdate.c: Move...
60537         * tests/test-get_date.c: ...here.
60538         * doc/posix-functions/getdate.texi (getdate): Update name.
60539         * NEWS: Mention the change.
60541 2010-09-29  Bruno Haible  <bruno@clisp.org>
60543         Separate the module 'waitpid' from the module 'sys_wait'.
60544         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
60545         present.
60546         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
60547         gl_MODULE_INDICATOR_FOR_TESTS.
60548         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
60549         * modules/sys_wait (Depends-on): Remove waitpid.
60550         (Makefile.am): Substitute GNULIB_WAITPID.
60551         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
60552         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
60553         signature only if the 'waitpid' module is present.
60554         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
60555         * NEWS: Mention the change.
60556         * modules/grantpt (Depends-on): Add waitpid.
60557         * modules/wait-process (Depends-on): Likewise.
60559 2010-09-29  Bruno Haible  <bruno@clisp.org>
60561         More tests for module 'sys_wait'.
60562         * modules/sys_wait-c++-tests: New file.
60563         * tests/test-sys_wait-c++.cc: New file.
60564         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
60565         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
60567 2010-09-29  Bruno Haible  <bruno@clisp.org>
60569         New module 'waitpid'.
60570         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
60571         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
60572         Don't include <process.h>.
60573         (waitpid): Declare only, using modern idiom.
60574         * m4/waitpid.m4: New file.
60575         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
60576         * modules/waitpid: New file.
60577         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
60578         (Makefile.am): Update.
60579         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
60581 2010-09-28  Bruno Haible  <bruno@clisp.org>
60583         poll: Assume ANSI C.
60584         * lib/poll.c (poll): Use an ANSI C declaration.
60586 2010-09-28  Bruno Haible  <bruno@clisp.org>
60588         poll-h: Create poll.h on all platforms.
60589         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
60590         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
60591         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
60592         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
60593         (gl_REPLACE_POLL_H): Don't set POLL_H.
60594         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
60595         * modules/poll-h (Depends-on): Add include_next.
60596         (Makefile.am): Create poll.h unconditionally. Substitute also
60597         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
60599 2010-09-28  Bruno Haible  <bruno@clisp.org>
60601         Tests for module 'poll-h'.
60602         * modules/poll-h-c++-tests: New file.
60603         * tests/test-poll-h-c++.cc: New file.
60605         Tests for module 'poll-h'.
60606         * modules/poll-h-tests: New file.
60607         * tests/test-poll-h.c: New file.
60609 2010-09-28  Bruno Haible  <bruno@clisp.org>
60611         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
60612         * modules/poll-h (Depends-on): Add 'extensions'.
60614 2010-09-28  Bruno Haible  <bruno@clisp.org>
60616         New module 'poll-h'.
60617         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
60618         (poll): Use modern idiom.
60619         * modules/poll-h: New file.
60620         * modules/poll (Files): Remove lib/poll.in.h.
60621         (Depends-on): Add poll-h.
60622         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
60623         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
60624         * m4/poll_h.m4: New file.
60625         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
60626         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
60627         and invoke gl_REPLACE_POLL_H.
60628         * lib/poll.c: Use common idiom.
60629         * tests/test-poll.c: Likewise.
60630         * doc/posix-headers/poll.texi: Mention the poll-h module.
60631         Suggested by Eric Blake.
60633 2010-09-26  Bruno Haible  <bruno@clisp.org>
60635         sys_wait: Implement WSTOPSIG.
60636         * lib/sys_wait.in.h (WSTOPSIG): New macro.
60637         Reported by Simon Josefsson.
60639 2010-09-26  Simon Josefsson  <simon@josefsson.org>
60641         stdlib, sys_wait: Avoid compilation error on mingw.
60642         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
60644 2010-09-26  Bruno Haible  <bruno@clisp.org>
60646         stdlib tests: Avoid code duplication.
60647         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
60648         * modules/sys_wait-tests (Files): Likewise.
60649         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
60650         * tests/test-stdlib.c: Include test-sys_wait.h.
60651         (main): Invoke test_sys_wait_macros.
60652         * tests/test-sys_wait.c: Include test-sys_wait.h.
60653         (main): Invoke test_sys_wait_macros.
60655 2010-09-25  Simon Josefsson  <simon@josefsson.org>
60657         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
60658         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
60659         sure Windows sockets are working before calling getaddrinfo.
60660         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
60661         * doc/gnulib.texi (Windows sockets): Fix typo.
60663 2010-09-25  Bruno Haible  <bruno@clisp.org>
60665         Tests for module 'regex-quote'.
60666         * modules/regex-quote-tests: New file.
60667         * tests/test-regex-quote.c: New file.
60669         New module 'regex-quote'.
60670         * lib/regex-quote.h: New file.
60671         * lib/regex-quote.c: New file.
60672         * modules/regex-quote: New file.
60673         Suggested by Reuben Thomas <rrt@sc3d.org>.
60675 2010-09-24  Bruno Haible  <bruno@clisp.org>
60677         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
60678         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
60680 2010-09-23  Bruno Haible  <bruno@clisp.org>
60682         setenv: Relax license.
60683         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
60684         Blake.
60685         Requested by Eric Blake.
60687 2010-09-22  Bruno Haible  <bruno@clisp.org>
60689         termios: Relax license.
60690         * modules/termios (License): Change to LGPLv2+.
60691         Requested by Eric Blake.
60693 2010-09-22  Bruno Haible  <bruno@clisp.org>
60695         threadlib: Allow the package to change the default to 'no'.
60696         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
60697         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
60698         Reported by Paul Eggert.
60700 2010-09-22  Pádraig Brady  <P@draigbrady.com>
60701             Bruno Haible  <bruno@clisp.org>
60703         Fix endless loop in mbmemcasecoll.
60704         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
60705         byte.
60706         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
60708 2010-09-22  Bruno Haible  <bruno@clisp.org>
60710         Tests for module 'memcoll'.
60711         * modules/memcoll-tests: New file.
60712         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
60714         memcoll, xmemcoll: Clarify size vs. length.
60715         * modules/memcoll.c (memcoll0): Clarify specification.
60716         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
60717         passed to collate_error.
60719 2010-09-22  Bruno Haible  <bruno@clisp.org>
60721         Tests for module 'memcasecmp'.
60722         * modules/memcasecmp-tests: New file.
60723         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
60725 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60727         * lib/pthread.in.h: Add split double-inclusion guard, and include
60728         system <pthread.h> if there is one.  Use @@-style as in other
60729         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
60730         pthread.h doesn't.
60731         (pthread_mutexattr_destroy, pthread_mutexattr_init):
60732         (pthread_mutexattr_settype, pthread_mutex_trylock):
60733         New static inline functions, if there's no system <pthread.h>.
60734         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
60735         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
60736         Approximate with mutexes if the system lacks spinlocks, as in
60737         MacOS.
60738         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
60739         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
60740         @@-style.  Check for spinlocks separately.
60741         (gl_PTHREAD_DEFAULTS): New macro.
60742         * modules/pthread: Redo to use a more typical style for in.h files.
60744 2010-09-21  Eric Blake  <eblake@redhat.com>
60746         net_if: enhance tests
60747         * tests/test-net_if.c (main): Move signature checks earlier.
60748         Print failures to stderr.
60749         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
60750         Document the bug that we do not yet fix.
60752 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
60754         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
60755         about gnulib, not GSS.
60757 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
60759         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
60760         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
60761         for Emacs.
60762         * build-aux/pmccabe2html: Make Makefile.am example code more
60763         cut-and-paste friendly.
60765 2010-09-21  Simon Josefsson  <simon@josefsson.org>
60767         * tests/test-net_if.c: New file.
60768         * modules/net_if-tests: New file.
60770 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60772         pthread: add pthread_spin_destroy
60773         * lib/pthread.in.h (pthread_spin_destroy): New function.
60775 2010-09-19  Bruno Haible  <bruno@clisp.org>
60777         gnulib-tool: Fix --help output.
60778         * gnulib-tool (func_usage): Fix help message.
60779         Reported by Reuben Thomas <rrt@sc3d.org>.
60781 2010-09-18  Jim Meyering  <meyering@redhat.com>
60783         maint.mk: avoid unexpanded \n in two diagnostics
60784         * top/maint.mk (sc_prohibit_always_true_header_tests):
60785         Don't use a literal \n in a halt=... assignment.  It would not be
60786         expanded, and the two \n bytes would appear in the diagnostic output
60787         rather than the desired newline.  Use halt=$$(printf ... instead.
60788         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
60790 2010-09-18  Bruno Haible  <bruno@clisp.org>
60792         netinet_in: Doc tweak.
60793         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
60794         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60796 2010-09-18  Jim Meyering  <meyering@redhat.com>
60798         init.sh: correct an outdated comment
60799         * tests/init.sh (create_exe_shims_):  s/function/alias/
60801         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
60802         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
60803         a file named "*.exe" is removed between the glob expansion and the
60804         processing of that oddly named file.
60806 2010-09-17  Eric Blake  <eblake@redhat.com>
60808         mirbsd: add some more support
60809         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
60810         in BSD family.
60811         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
60812         devices as OpenBSD.
60813         * m4/host-os.m4 (mirbsd): Add MirBSD.
60815         tests: fix unportable assumption on sys/wait.h
60816         * tests/test-sys_wait.c (main): Relax test.
60817         * tests/test-stdlib.c (main): Likewise.
60819         init.sh: accommodate directory with no .exes
60820         * tests/init.sh: Accomodate directory containing only scripts.
60822         tests: avoid compiler warning
60823         * tests/test-stdlib.c (main): Use the variable.
60825         fdutimens, fdutimensat: update signature, again
60826         * lib/utimens.h (gl_futimens): Delete, and move signature...
60827         (fdutimens): ...here.
60828         (fdutimensat): Rearrange signature.
60829         (lutimensat): Rename variable for clarity.
60830         * lib/fdutimensat.c (fdutimensat): Update signature.
60831         * lib/utimens.c (fdutimens): Likewise.
60832         (gl_futimens): Delete.
60833         (utimens, lutimens): Update callers.
60834         * lib/futimens.c (futimens): Likewise.
60835         * tests/test-fdutimensat.c: Likewise.
60836         * tests/test-utimens.c: Likewise.
60837         * tests/test-futimens.h: Update comment.
60838         * NEWS: Mention this.
60839         Suggested by Paul Eggert.
60841 2010-09-17  Bruno Haible  <bruno@clisp.org>
60843         Take over the maintenance of some older macros from Autoconf.
60844         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
60845         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
60846         GNU Autoconf.
60847         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
60848         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
60850 2010-09-17  Eric Blake  <eblake@redhat.com>
60852         fdutimensat: drop atflag validation
60853         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
60854         with valid fd, to close a race scenario where futimens is
60855         unsupported and FILE was replaced by a symlink.
60856         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
60857         accordingly.
60858         Suggested by Paul Eggert.
60860 2010-09-16  Bruno Haible  <bruno@clisp.org>
60862         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
60863         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
60865 2010-09-16  Bruno Haible  <bruno@clisp.org>
60867         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
60868         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
60869         login_tty exists.
60870         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60872 2010-09-16  Bruno Haible  <bruno@clisp.org>
60874         login_tty: Make the replacement code work on BSD systems.
60875         * lib/login_tty.c: Include <sys/ioctl.h>.
60876         (login_tty): Use ioctl TIOCSCTTY when available.
60877         * modules/login_tty (Depends-on): Add sys_ioctl.
60878         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60880 2010-09-16  Bruno Haible  <bruno@clisp.org>
60882         login_tty: Stricter unit test.
60883         * modules/login_tty-tests (Depends-on): Add tcgetsid.
60884         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
60885         and tcgetsid() after login_tty.
60886         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60888 2010-09-16  Bruno Haible  <bruno@clisp.org>
60890         New module 'tcgetsid'.
60891         * lib/tcgetsid.c: New file.
60892         * m4/tcgetsid.m4: New file.
60893         * modules/tcgetsid: New file.
60894         * modules/termios (Depends-on): Add c++defs, warn-on-use.
60895         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
60896         GNULIB_TCGETSID, HAVE_TCGETSID.
60897         * lib/termios.in.h: Include <sys/types.h>.
60898         (tcgetsid): New declaration.
60899         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
60900         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
60901         * doc/posix-functions/tcgetsid.texi: Mention the new module.
60902         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
60904 2010-09-16  Bruno Haible  <bruno@clisp.org>
60906         Tests for module 'termios'.
60907         * modules/termios-c++-tests: New file.
60908         * modules/termios-tests: New file.
60909         * tests/test-termios-c++.cc: New file.
60910         * tests/test-termios.c: New file.
60912         New module 'termios'.
60913         * modules/termios: New file.
60914         * lib/termios.in.h: New file.
60915         * m4/termios_h.m4: New file.
60916         * doc/posix-headers/termios.texi: Mention the new module.
60918 2010-09-16  Eric Blake  <eblake@redhat.com>
60920         fdutimensat: add an atflag parameter
60921         * lib/fdutimensat.c (fdutimensat): Add new parameter.
60922         * lib/utimens.h (fdutimensat): Update prototype.
60923         * tests/test-fdutimensat.c: Adjust test to match.
60924         * NEWS: Document the change.
60925         Suggested by Paul Eggert.
60927 2010-09-16  Bruno Haible  <bruno@clisp.org>
60929         Fix typos in comments.
60930         * lib/striconveh.h: Fix typo in comment.
60931         * lib/login_tty.c (login_tty): Likewise.
60933 2010-09-15  Bruno Haible  <bruno@clisp.org>
60935         stdlib: clarify MirBSD WEXITSTATUS bug
60936         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
60937         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
60939 2010-09-15  Eric Blake  <eblake@redhat.com>
60941         stdlib: work around MirBSD WEXITSTATUS bug
60942         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
60943         * modules/stdlib (Depends-on): Add sys_wait.
60944         * tests/test-sys_wait.c (main): Enhance test.
60945         * tests/test-stdlib.c (main): Likewise.
60946         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
60948         docs: mention MacOS issue with WEXITSTATUS(constant)
60949         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
60950         issue.
60951         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
60953         strnlen: add tests
60954         * modules/strnlen-tests: New file.
60955         * tests/test-strnlen.c: Likewise.
60957 2010-09-14  Bruno Haible  <bruno@clisp.org>
60959         unistr/base: Avoid link errors when module 'libunistring' is also used.
60960         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
60961         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
60962         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
60963         Declare also when HAVE_LIBUNISTRING is set.
60964         Reported by Pádraig Brady <P@draigbrady.com>.
60966 2010-09-14  Eric Blake  <eblake@redhat.com>
60968         test-rawmemchr: make more robust
60969         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
60970         (Depends-on, configure.ac): Add needed prerequisites to use it.
60971         * modules/memchr-tests (Files, Depends-on, configure.ac):
60972         Likewise, to avoid implicit reliance on memchr module prereqs.
60973         * tests/test-memchr.c (main): Ensure proper masking.
60974         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
60975         reads.
60977         memchr: detect glibc Alpha bug
60978         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
60979         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
60980         Alpha.
60981         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
60982         * tests/test-memchr.c (main): Enhance test.
60983         Reported by Nelson H. F. Beebe.
60985 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60987         fts, getcwd, glob: audit for dirfd returning -1
60988         * lib/fts.c (opendir): Remove #define; no longer used.
60989         (opendirat): New arg PDIR_FD.  All callers changed.
60990         (fts_build, _opendir2): Use new opendirat to avoid the need for
60991         dirfd, or for checking whether dirfd returns a negative value.
60992         Don't use opendir; always use openat followed by fdopendir.
60993         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
60994         it.
60995         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
60996         returns -1 here.
60997         * modules/fts (Depends-on): Remove dirfd.
60998         * modules/getcwd (Depends-on): Likewise.
61000 2010-09-13  Eric Blake  <eblake@redhat.com>
61002         float: fix broken MirBSD header
61003         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
61004         * doc/posix-headers/float.texi (float.h): Document it.
61006 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61008         fts: use O_NOFOLLOW to avoid race condition when opening a directory
61009         * lib/fts.c (opendirat): New arg extra_flags.
61010         (__opendir2): Use it to avoid following symlinks when opening
61011         a directory, if symlinks are not supposed to be followed.  See
61012         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
61014         fdopendir: preserve argument fd before returning
61015         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
61016         (fdopendir_with_dup, fd_clone_opendir): New static functions.
61017         (fdopendir): Use them, arranging for FD to be open to the same
61018         directory that it was when it started.  (It might be temporarily
61019         closed while fdopendir is running, so this not thread- or
61020         signal-safe.)  Be careful to do the right thing even when file
61021         descriptors are scarce and dup fails with errno == EMFILE.  See
61022         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
61024 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
61026         regex: Pass the system regex if its only problem is 32-bit regoff_t.
61027         * NEWS: Document change.
61028         * m4/regex.m4: Disable test for regoff_t size.
61030 2010-09-13  Jim Meyering  <meyering@redhat.com>
61032         fts: don't operate on an invalid file descriptor after failed dup
61033         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
61034         negative file descriptor.
61036 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
61038         savedir: add streamsavedir, deprecate fdsavedir
61039         * NEWS: Mention deprecation of fdsavedir.
61040         * lib/savedir.c (streamsavedir): New extern function, whose name
61041         ends in "savedir" to be consistent with the others.  This differs
61042         from savedirstream in that it doesn't close its argument.  The
61043         next version of GNU tar will use this instead of fdsavedir, to
61044         avoid some race conditions and conserve file descriptors.
61045         (savedirstream): Reimplement as a wrapper around streamsavedir.
61046         (fdsavedir): Add a comment deprecating this function.  As far as
61047         I know, only GNU tar used it, and GNU tar doesn't need it any more.
61048         * lib/savedir.h (streamsavedir): New decl.
61049         (fdsavedir): Add a comment deprecating this.
61051 2010-09-10  Bruno Haible  <bruno@clisp.org>
61053         langinfo: Fix last commit.
61054         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
61055         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
61056         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61058 2010-09-10  Bruno Haible  <bruno@clisp.org>
61060         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
61061         * lib/progreloc.c (O_EXEC): Define fallback.
61063 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
61065         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
61066         * NEWS: Document recent changes to fcntl-h.
61067         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
61068         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
61069         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
61070         Similarly for O_SEARCH; this last was already true, but not documented.
61071         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
61072         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
61073         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
61074         Likewise.
61075         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
61076         is zero, not whether it is defined.
61077         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
61078         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
61079         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
61081 2010-09-10  Bruno Haible  <bruno@clisp.org>
61083         langinfo, nl_langinfo: Fix for IRIX 5.3.
61084         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
61085         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
61086         HAVE_LANGINFO_YESEXPR.
61087         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
61088         HAVE_LANGINFO_YESEXPR.
61089         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
61090         HAVE_LANGINFO_T_FMT_AMPM is 0.
61091         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
61092         HAVE_LANGINFO_YESEXPR is 0.
61093         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
61094         NOEXPR.
61095         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
61096         * doc/posix-functions/nl_langinfo.texi: Likewise.
61097         Reported by Eric Blake.
61099 2010-09-10  Bruno Haible  <bruno@clisp.org>
61101         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
61102         * doc/glibc-functions/login_tty.texi: Mention the include file problem
61103         on FreeBSD 8.0 and OpenBSD 4.6.
61104         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
61105         * m4/pty_h.m4 (gl_PTY_H): Likewise.
61106         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
61107         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
61108         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
61109         ac_includes_default.
61110         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61112 2010-09-09  Eric Blake  <eblake@redhat.com>
61114         strsignal: work around NetBSD bug
61115         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
61116         * lib/string.in.h (includes): Likewise.
61117         * doc/posix-functions/strsignal.texi (strsignal): Document the
61118         bug.
61119         Reported by Nelson H. F. Beebe.
61121         gnulib-tool: work with NetBSD /bin/sh
61122         * gnulib-tool (func_cache_var, func_cache_lookup_module)
61123         (func_get_description, func_get_comment, func_get_status)
61124         (func_get_notice, func_get_applicability, func_get_filelist)
61125         (func_get_dependencies, func_get_autoconf_early_snippet)
61126         (func_get_autoconf_snippet, func_get_automake_snippet)
61127         (func_get_include_directive, func_get_link_directive)
61128         (func_get_license, func_get_maintainer, func_import): Avoid
61129         shell syntax errors from parsing syntax extensions.
61131 2010-09-09  Bruno Haible  <bruno@clisp.org>
61133         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
61134         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
61135         a reliable way to determine whether the 'alias' command works.
61137 2010-09-08  Jim Meyering  <meyering@redhat.com>
61139         init.sh: penalize a set-x-impaired shell; don't disqualify it
61140         * tests/init.sh: Too many shells corrupt application stderr when
61141         you set -x, so we can't afford to disqualify them, since at least
61142         on Irix-6.5, that would disqualify all bourne shells.
61143         Instead, use a two-pass approach.
61144         On the first pass, try to find a shell that meets the stricter
61145         condition that set -x does not corrupt stderr.
61146         If no shell meets the stricter condition, retest each candidate
61147         shell, but without that extra condition.  Finally, when
61148         VERBOSE=yes is requested and set -x might cause trouble, simply
61149         issue a warning and refrain from enabling debug output.
61151 2010-09-08  Eric Blake  <eblake@redhat.com>
61153         unsetenv: fix OpenBSD bug
61154         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
61155         * doc/posix-functions/unsetenv.texi (unsetenv): Update
61156         documentation.
61157         Reported by Jim Meyering.
61159         strtod: work around IRIX 6.5 bug
61160         * lib/strtod.c (strtod): Reparse number on shorter string if
61161         exponent parse was invalid.
61162         * tests/test-strtod.c (main): Add check for "0x1p 2".
61163         Reported by Tom G. Christensen.
61165         getopt: optimize previous patch
61166         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
61167         empty variable.  Speed up awk script.
61168         Reported by Paolo Bonzini.
61170 2010-09-08  Jim Meyering  <meyering@redhat.com>
61172         test.sh: disqualify shells for which set -x corrupts stderr
61173         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
61174         and OpenBSD 4.7.  They make it so with "set -x", environment settings
61175         appear in stderr output.  For example, this command:
61176             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
61177         prints "P=1" on those two systems:
61179 2010-09-08  Bruno Haible  <bruno@clisp.org>
61181         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
61182         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
61183         commands, because some shells ignore redirections when there is an
61184         error in the command lookup.
61185         Reported by Eric Blake.
61187 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
61189         * lib/regex.h: Fix a mention of `regex_compile' (should be
61190         `re_compile_pattern').
61191         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
61192         (re_set_registers): Correct name of parameter in comment.
61194         * doc/regex.texi: Add documentation for missing syntax flags.
61195         Remove commented-out documentation of defunct syntax option
61196         RE_NO_EMPTY_ALTS.
61197         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
61198         Add documentation of re_set_registers.
61199         Document trick to re-use a pattern buffer by setting fastmap manually.
61200         Update documentation of struct re_pattern_buffer per public members.
61201         Uncomment documentation of equivalence class operators and
61202         collating symbol operators, since they are now implemented,
61203         Explain leftmost-longest matching in relation to alternatives.
61204         Tidy documentation of substring matching.
61205         Remove POSIX documentation, which is done better in
61206         glibc, and refer the reader there. Keep BSD API documentation, as
61207         that is not readily available elsewhere.
61209 2010-09-07  Eric Blake  <eblake@redhat.com>
61211         getopt: handle POSIXLY_CORRECT set but not exported
61212         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
61213         export state of POSIXLY_CORRECT, due to bash set -o posix.
61214         Reported by Dustin J. Mitchell.
61216 2010-09-05  Bruno Haible  <bruno@clisp.org>
61218         gnulib-tool: Highlight the changed options.
61219         * gnulib-tool (func_usage): Display the --import, --add-import,
61220         --remove-import explanations in bold font.
61222 2010-09-06  Karl Berry  <karl@gnu.org>
61224         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
61226 2010-09-05  Bruno Haible  <bruno@clisp.org>
61228         uniwidth/width: Update comment.
61229         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
61230         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
61232 2010-09-05  Bruno Haible  <bruno@clisp.org>
61234         isinf, isnan: Relax license.
61235         * modules/isinf (License): Change from GPL to LGPL, with consent from
61236         Ben Pfaff.
61237         * modules/isnan (License): Likewise.
61238         Requested by Ludovic Courtès.
61240 2010-09-04  Bruno Haible  <bruno@clisp.org>
61242         gnulib-tool: Help migration from --import to --add-import or --update.
61243         * gnulib-tool: Emit a verbose error message when --import is used
61244         without any module name.
61246 2010-09-04  Bruno Haible  <bruno@clisp.org>
61248         Update doc about gnulib-tool.
61249         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
61250         'gnulib-tool --update' in more detail.
61251         Reported by Eric Blake.
61253 2010-09-04  Bruno Haible  <bruno@clisp.org>
61255         gnulib-tool: Change --import. New options --add/remove-import.
61256         * gnulib-tool: New options --add-import, --remove-import.
61257         (func_usage): Document them.
61258         (have_associative): Define always.
61259         (func_import): In import mode, don't merge the specified settings with
61260         the cached settings. Implement remove-import mode.
61261         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
61262         Explain when to use them versus --import.
61263         (Simple update): Use --add-import instead of --import.
61264         * NEWS: Mention the change.
61266 2010-09-04  Bruno Haible  <bruno@clisp.org>
61268         * doc/gnulib-tool.texi (Initial import): Update paragraph about
61269         separate gnulib.mk.
61271 2010-09-04  Bruno Haible  <bruno@clisp.org>
61273         gnulib-tool: Don't talk about CVS any more.
61274         * gnulib-tool (func_usage, func_import): Write "version control"
61275         instead of CVS.
61277 2010-09-04  Jim Meyering  <meyering@redhat.com>
61279         maint.mk: avoid obscure sc_copyright_check failure in coreutils
61280         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
61281         false positives (whose names may be ill-chosen) when searching
61282         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
61283         would cause a false-positive.
61285         avoid coreutils "make distcheck" failure
61286         Coreutils tests with an absolute build directory name that contains
61287         a space.  Not quoting this directory name caused a failure.
61288         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
61289         * tests/test-vc-list-files-cvs.sh: Likewise.
61291 2010-09-04  Bruno Haible  <bruno@clisp.org>
61293         gnulib-tool: Avoid error when run in a package without Makefile.am.
61294         * gnulib-tool: When collecting the m4dirs in a package that does not
61295         have a Makefile.am, eliminate those directories that contain no
61296         gnulib-cache.m4. Fix expression that counts these directories.
61298 2010-09-04  Bruno Haible  <bruno@clisp.org>
61300         update-copyright test: Improve output when perl is missing or too old.
61301         * tests/test-update-copyright.sh: Move test of Perl version down after
61302         the test whether Perl exists. Provide an explanation relating Perl's
61303         error message to Automake's SKIP: message.
61305 2010-09-04  Bruno Haible  <bruno@clisp.org>
61307         Don't augment PATH in TESTS_ENVIRONMENT.
61308         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
61309         set abs_aux_dir instead of augmenting PATH.
61310         * modules/vc-list-files-tests (Makefile.am): Likewise.
61311         * tests/test-update-copyright.sh: Augment PATH here.
61312         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
61313         path_prepend_.
61314         * tests/test-vc-list-files-git.sh: Likewise.
61316 2010-09-04  Jim Meyering  <meyering@redhat.com>
61318         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
61319         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
61321 2010-09-04  Bruno Haible  <bruno@clisp.org>
61323         strdup: Fix compilation error in C++ mode.
61324         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
61325         the macro.
61327 2010-09-04  Bruno Haible  <bruno@clisp.org>
61329         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
61330         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
61331         macro into a function.
61332         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61334 2010-09-04  Bruno Haible  <bruno@clisp.org>
61336         Set PATH_SEPARATOR the same way autoconf does.
61337         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
61338         the value of PATH_SEPARATOR the same way autoconf-generated configure
61339         scripts do.
61340         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
61341         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61343 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
61345         Set PATH_SEPARATOR the same way autoconf does.
61346         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
61347         the same way autoconf-generated configure scripts do.
61348         * posix-modules: Likewise.
61350 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61352         hash: fix safe_hasher const typo
61353         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
61354         const; otherwise, there is a type error later.
61356 2010-09-02  Jim Meyering  <meyering@redhat.com>
61358         test-update-copyright.sh: require perl 5.8.0
61359         * tests/test-update-copyright.sh: Require 5.8.0,
61360         which Tom G. Christensen has confirmed is adequate,
61361         while 5.6.1 is not.
61363 2010-09-02  Eric Blake  <eblake@redhat.com>
61365         tests: init.sh improvements for re-exec'ing with zsh
61366         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
61367         -vx through shell re-exec.
61368         Reported by Tom G. Christensen.
61370         wctype: fix typo in previous commit
61371         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
61372         Reported by Ludovic Courtès.
61374 2010-09-02  Jim Meyering  <meyering@redhat.com>
61376         test-update-copyright.sh: skip test if Perl is too old
61377         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
61378         Reported by Tom G. Christensen.
61380 2010-09-02  Bruno Haible  <bruno@clisp.org>
61382         wctype: Avoid compilation error on IRIX 6.5.30.
61383         * lib/wctype.in.h (iswblank): Declare with a replacement if
61384         REPLACE_ISWBLANK is set.
61385         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
61386         declared. Set REPLACE_ISWBLANK.
61387         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
61388         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
61389         * doc/posix-headers/wctype.texi: Likewise.
61390         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61392 2010-09-01  Bruno Haible  <bruno@clisp.org>
61394         New module 'socketlib'.
61395         * modules/socketlib: New file.
61396         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
61397         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
61398         * modules/sockets (Depends-on): Add socketlib.
61399         Suggested by Sam Steingold <sds@gnu.org>.
61401 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61403         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
61405         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
61406         when one needs search access to a directory but not read access.
61407         On systems where it is available, it works in some cases where
61408         O_RDONLY does not, namely on directories that are searchable but
61409         not readable, and which need only to be searchable.  If O_SEARCH
61410         is not available, fall back to the traditional method of using
61411         O_RDONLY.
61413         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
61414         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
61415         when opening a directory that needs only to be searchable.
61416         * lib/chdir-safer.c (chdir_no_follow): Likewise.
61417         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
61418         * lib/openat-proc.c (openat_proc_name): Likewise.
61419         * lib/openat.c (openat_needs_fchdir): Likewise.
61420         * lib/save-cwd.c (save_cwd): Likewise.
61421         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
61423 2010-08-28  Bruno Haible  <bruno@clisp.org>
61425         New module 'host-cpu-c-abi'.
61426         * modules/host-cpu-c-abi: New file.
61427         * m4/host-cpu-c-abi.m4: New file, based on part of
61428         clisp/src/m4/general.m4.
61429         Requested by Sam Steingold <sds@gnu.org>.
61431 2010-08-31  Eric Blake  <eblake@redhat.com>
61432         and Jim Meyering  <meyering@redhat.com>
61434         hash: factor, and guard against misbehaving hasher function
61435         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
61436         of table->hasher's return value.  Also protect against a hash value
61437         so large that adding it to table->bucket results in a NULL pointer.
61438         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
61439         Use it in place of open-coded check-and-abort.
61441 2010-08-30  Bruno Haible  <bruno@clisp.org>
61443         hash: silence spurious clang warning
61444         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
61445         Reported by Eric Blake.
61447 2010-08-30  Eric Blake  <eblake@redhat.com>
61449         strstr, memmem, strcasestr: avoid leaked shell message
61450         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
61451         FreeBSD.
61452         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61453         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61455         tests: silence clang warning
61456         * tests/test-malloca.c (do_allocation): Avoid dead store.
61458 2010-08-29  Bruno Haible  <bruno@clisp.org>
61460         gettext: Fix recent mistake.
61461         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
61463 2010-08-29  Bruno Haible  <bruno@clisp.org>
61465         selinux-h: Offer a --without-selinux option.
61466         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
61467         --without-selinux was specified, skip all tests and define
61468         HAVE_SELINUX_SELINUX_H to 0.
61469         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
61470         set LIB_SELINUX to empty.
61471         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
61472         gl_LIBSELINUX. If --without-selinux was specified, replace
61473         selinux/context.h.
61474         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
61476 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61477             Bruno Haible  <bruno@clisp.org>
61479         Make the module 'realloc-gnu' work again on AIX and OSF/1.
61480         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
61481         of HAVE_REALLOC.
61482         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
61483         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
61484         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
61485         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
61487 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61488             Bruno Haible  <bruno@clisp.org>
61490         Make the module 'calloc-gnu' work again on AIX and OSF/1.
61491         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
61492         HAVE_CALLOC.
61493         * lib/xmalloc.c: Update accordingly.
61494         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
61495         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
61496         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
61498 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61499             Bruno Haible  <bruno@clisp.org>
61501         Make the module 'malloc-gnu' work again on AIX and OSF/1.
61502         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
61503         HAVE_MALLOC.
61504         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
61505         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
61506         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
61508 2010-08-29  Bruno Haible  <bruno@clisp.org>
61510         Update modules list.
61511         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
61512         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
61513         (String handling <string.h>): Add astrxfrm.
61514         (File system functions): Add readlinkat.
61516 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61518         Tests for module 'realloc-gnu'.
61519         * modules/realloc-gnu-tests: New file.
61520         * tests/test-realloc-gnu.c: New file.
61522         Tests for module 'calloc-gnu'.
61523         * modules/calloc-gnu-tests: New file.
61524         * tests/test-calloc-gnu.c: New file.
61526         Tests for module 'malloc-gnu'.
61527         * modules/malloc-gnu-tests: New file.
61528         * tests/test-malloc-gnu.c: New file.
61530 2010-08-28  Bruno Haible  <bruno@clisp.org>
61532         Rename module 'realloc' -> 'realloc-gnu'.
61533         * modules/realloc-gnu: New file, copied from modules/realloc.
61534         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
61535         obsolete.
61536         * modules/mgetgroups (Depends-on): Update.
61537         * doc/posix-functions/realloc.texi: Update.
61538         * NEWS: Mention the change.
61540         Rename module 'calloc' -> 'calloc-gnu'.
61541         * modules/calloc-gnu: New file, copied from modules/calloc.
61542         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
61543         obsolete.
61544         * doc/posix-functions/calloc.texi: Update.
61545         * NEWS: Mention the change.
61547         Rename module 'malloc' -> 'malloc-gnu'.
61548         * modules/malloc-gnu: New file, copied from modules/malloc.
61549         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
61550         obsolete.
61551         * modules/argp (Depends-on): Update.
61552         * modules/regex (Depends-on): Update.
61553         * doc/posix-functions/malloc.texi: Update.
61554         * NEWS: Mention the change.
61556 2010-08-28  Eric Blake  <eblake@redhat.com>
61558         pread, pwrite: add missing dependency
61559         * modules/pread (Depends-on): Add extensions.
61560         * modules/pwrite (Depends-on): Likewise.
61562 2010-08-28  Bruno Haible  <bruno@clisp.org>
61564         unistr/u*-strchr: Fix tests dependencies.
61565         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
61566         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
61567         Reported by Ian Beckwith <ianb@erislabs.net>.
61569 2010-08-28  Bruno Haible  <bruno@clisp.org>
61571         read-file: Don't occupy too much unused memory.
61572         * lib/read-file.c (fread_file): Shrink the buffer at the end.
61574 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
61575             Eric Blake  <eblake@redhat.com>
61576             Bruno Haible  <bruno@clisp.org>
61578         read-file: Avoid memory reallocations with regular files.
61579         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
61580         (fread_file): With regular files, use the remaining length as the
61581         initial buffer size.  Check against overflow.
61582         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
61583         sys_stat.
61585 2010-08-28  Bruno Haible  <bruno@clisp.org>
61587         ftello: Relax license.
61588         * modules/ftello (License): Relax to LGPLv2+.
61589         Reported by Eric Blake.
61591 2010-08-28  Bruno Haible  <bruno@clisp.org>
61593         Avoid relocwrapper link errors due to gnulib replacement functions.
61594         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
61595         function.
61596         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61598 2010-08-28  Bruno Haible  <bruno@clisp.org>
61600         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
61601         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
61602         defined.
61603         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
61604         Suggested by Eric Blake.
61606 2010-08-28  Bruno Haible  <bruno@clisp.org>
61608         sys_socket, netdb: Ensure socklen_t gets defined.
61609         * modules/sys_socket (Depends-on): Add socklen.
61610         * modules/netdb (Depends-on): Likewise.
61611         * modules/getaddrinfo (Depends-on): Remove socklen.
61612         * modules/getsockopt (Depends-on): Likewise.
61613         * modules/setsockopt (Depends-on): Likewise.
61614         * tests/test-sys_socket.c: Check that socklen_t is defined.
61615         * tests/test-netdb.c: Likewise.
61616         * m4/socklen.m4: Update comments.
61617         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61619 2010-08-27  Eric Blake  <eblake@redhat.com>
61621         login_tty: add missing dependency
61622         * modules/login_tty (Depends-on): Add pty.
61624 2010-08-26  Eric Blake  <eblake@redhat.com>
61626         lib-symbol-versions: fix m4 quoting
61627         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
61628         format for AC_LINK_IFELSE.
61630         glob: fix compile test
61631         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
61633         btowc: fix missing file
61634         * modules/btowc (Files): Also ship locale-fr.m4.
61636         lseek: fix link test
61637         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
61638         AC_LINK_IFELSE.
61640         include_next: silence autoconf 2.68 warning
61641         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
61642         AC_COMPILE_IFELSE as special.
61643         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
61644         autoconf < 2.68.
61646         acl: fix compilation test
61647         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
61648         AC_COMPILE_IFELSE.
61650 2010-08-26  Bruno Haible  <bruno@clisp.org>
61652         Modernize AC_TRY_RUN invocations.
61653         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
61654         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
61655         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
61656         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
61657         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
61658         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
61659         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
61660         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61661         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
61662         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61663         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
61664         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
61665         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
61666         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
61667         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
61668         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
61669         gl_MBRLEN_NUL_RETVAL): Likewise.
61670         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61671         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
61672         Likewise.
61673         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61674         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61675         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
61676         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
61677         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
61678         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
61679         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
61680         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
61681         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
61682         Likewise.
61683         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
61684         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
61685         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61686         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
61687         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61688         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
61689         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61690         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
61691         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61692         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61694 2010-08-26  Bruno Haible  <bruno@clisp.org>
61696         Modernize AC_TRY_LINK invocations.
61697         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
61698         AC_TRY_LINK.
61699         * m4/argp.m4 (gl_ARGP): Likewise.
61700         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
61701         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
61702         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61703         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61704         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61705         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
61706         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
61707         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
61708         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61709         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
61710         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61711         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
61712         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
61713         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
61714         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
61715         * m4/hostent.m4 (gl_HOSTENT): Likewise.
61716         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61717         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
61718         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
61719         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
61720         Likewise.
61721         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
61722         Likewise.
61723         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
61724         Likewise.
61725         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
61726         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
61727         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
61728         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
61729         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
61730         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
61731         * m4/servent.m4 (gl_SERVENT): Likewise.
61732         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
61733         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
61734         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
61735         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
61736         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
61737         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
61738         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
61739         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61740         * modules/tsearch-tests (configure.ac): Likewise.
61742 2010-08-26  Bruno Haible  <bruno@clisp.org>
61744         Modernize AC_TRY_COMPILE invocations.
61745         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
61746         AC_TRY_COMPILE.
61747         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
61748         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
61749         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
61750         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61751         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
61752         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61753         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
61754         * m4/lock.m4 (gl_LOCK): Likewise.
61755         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
61756         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61757         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
61758         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
61759         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
61760         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
61761         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
61762         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
61763         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
61764         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
61765         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
61766         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61767         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
61768         extraneous semicolon.
61770 2010-08-26  Jim Meyering  <meyering@redhat.com>
61772         stat-time: relax license LGPL
61773         * modules/stat-time (License): Change from GPL to LGPL,
61774         with consent from all contributors, for use in libguile.
61775         Requested by Ludovic Courtès.
61777 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
61779         poll: return immediately on POLLHUP.
61780         * lib/poll.c (poll): Always set timeout before wait_timeout is
61781         computed.
61783 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61785         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
61786         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
61787         rmdir ("dir/.//"), unlinkat.
61789 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61791         stdbool: avoid spurious failure with modern xlc
61792         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
61794 2010-08-24  Bruno Haible  <bruno@clisp.org>
61796         getloadavg: simplify code
61797         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
61798         gl_have_func. Update comments.
61800 2010-08-24  Eric Blake  <eblake@redhat.com>
61802         getloadavg: don't define SVR4 on cygwin
61803         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
61804         only define SVR4 when -lkvm is required.
61805         Reported by Yaakov Selkowitz.
61807 2010-08-24  Bruno Haible  <bruno@clisp.org>
61809         priv-set: fix comment
61810         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
61812 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61814         priv-set: fix comments
61815         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
61816         to match code, as suggested by David Bartley in:
61817         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
61819 2010-08-23  Eric Blake  <eblake@redhat.com>
61821         stdbool: avoid rejecting clang
61822         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
61823         * tests/test-stdbool.c: Enable more tests if using the system
61824         <stdbool.h> instead of the gnulib replacement.
61825         (main): Move xlc bug test to a runtime test for all compilers.
61826         Reported by Anders Kaseorg.
61828         argz: fix shell quoting issue
61829         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
61830         Reported by Charles Wilson.
61832 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
61833             Erik Faye-Lund <kusmabite@gmail.com>
61835         poll, select: handle ERROR_BROKEN_PIPE.
61836         * lib/poll.c (win32_compute_revents): Return POLLHUP when
61837         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
61838         * lib/select.c (win32_compute_revents): Do not mark a pipe
61839         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
61841 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
61843         fts: allow compilation with C++
61844         * lib/fts_.h: Specify extern "C" linkage with C++.
61846 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61848         Fix gnulib-tool sed script de-commentation for AIX sed.
61849         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
61850         sed.
61852 2010-08-17  Eric Blake  <eblake@redhat.com>
61854         test-stddef: test for (some) offsetof bugs
61855         * tests/test-stddef.c: Enhance test to ensure correct type of
61856         offsetof.
61857         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
61858         that we are not fixing at this time.
61860 2010-08-15  Bruno Haible  <bruno@clisp.org>
61862         stpncpy: Allow stpncpy to be defined as a macro.
61863         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
61864         if it's already correctly declared.
61865         * lib/string.in.h (stpncpy): Undefine before redefining.
61866         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
61868 2010-08-14  Bruno Haible  <bruno@clisp.org>
61870         Rename module 'memxfrm' to 'amemxfrm'.
61871         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
61872         (amemxfrm): Renamed from memxfrm.
61873         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
61874         (amemxfrm): Renamed from memxfrm.
61875         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
61876         * NEWS: Mention the change.
61877         * MODULES.html.sh (String handling <string.h>): Update.
61878         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
61879         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
61880         * lib/unicase/u16-casexfrm.c: Likewise.
61881         * lib/unicase/u32-casexfrm.c: Likewise.
61882         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
61883         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
61884         * lib/uninorm/u16-normxfrm.c: Likewise.
61885         * lib/uninorm/u32-normxfrm.c: Likewise.
61886         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
61887         memxfrm.
61888         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
61889         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
61890         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
61891         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
61892         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
61893         Suggested by Paul Eggert.
61895 2010-08-14  Bruno Haible  <bruno@clisp.org>
61897         Tests for module 'astrxfrm'.
61898         * modules/astrxfrm-tests: New file.
61899         * tests/test-astrxfrm.c: New file.
61901         New module 'astrxfrm'.
61902         * lib/astrxfrm.h: New file.
61903         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
61904         * modules/astrxfrm: New file.
61906 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
61908         regex: Tweak doc.
61909         * doc/regex.texi (Overview): Don't mention regex.c.
61910         (GNU Regular Expression Compiling): Likewise.
61911         (Match-end-of-line Operator): Mention 'not_eol'.
61913 2010-08-14  Brian Gough  <bjg@gnu.org>
61914             Bruno Haible  <bruno@clisp.org>
61916         git-merge-changelog: add doc relating to use with bzr and hg.
61917         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
61919 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
61921         pthread: fix pthread.h creation for srcdir != builddir
61922         * modules/pthread (Makefile.am): Fix the rule to work also in a
61923         non-srcdir build.
61925 2010-08-13  Karl Berry  <karl@gnu.org>
61927         * doc/regex.texi (Predefined Syntaxes): @smallexample.
61928         * doc/posix-*/*: force line break before @url of POSIX
61929         specifications.
61930         Suggested by Werner Lemberg.
61932 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61934         strtod: fix const diagnostic
61935         * lib/strtod.c (strtod): Don't assign const char * to char *,
61936         as this elicits a warning from GCC when warnings are enabled.
61938 2010-08-10  Pádraig Brady  <P@draigbrady.com>
61939         and Eric Blake  <eblake@redhat.com>
61941         copy-acl: ignore ENOTSUP on HP-UX
61942         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
61943         so that it is available for HP-UX.
61944         * lib/copy-acl.c (qcopy_acl): Use it.
61945         Reported by Patrick M. Callahan.
61947 2010-08-10  Eric Blake  <eblake@redhat.com>
61949         open, chown: relax license
61950         * modules/open (License): Change to LGPLv2+, with consent by all
61951         authors, for use in augeas.
61952         * modules/chown (License): Likewise.
61953         * modules/lchown (Likewise): Likewise.
61954         Requested by Adam Stokes.
61956 2010-08-09  Karl Berry  <karl@gnu.org>
61958         * build-aux/ar-lib: new file, import from Automake.
61959         * config/srclist.txt: autocheck for updates.
61961 2010-08-09  Eric Blake  <eblake@redhat.com>
61963         readlinkat: adjust client modules
61964         * modules/areadlinkat (Depends-on): Use readlinkat, not
61965         symlinkat.
61966         * modules/areadlinkat-with-size (Depends-on): Likewise.
61968         mknod: be more vocal about danger of running tests as root
61969         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
61970         root, since that is just asking for problems.
61971         Suggested by Bruno Haible, based on a report by Rainer Tammer.
61973         readlinkat: split into its own module
61974         * modules/symlinkat: Split readlinkat...
61975         * modules/readlinkat: ...into separate module.
61976         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
61977         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
61978         * lib/symlinkat.c (readlinkat): Move...
61979         * lib/readlinkat.c: ...into new file.
61980         * modules/symlinkat-tests: Split readlinkat test...
61981         * modules/readlinkat-tests: ...into separate module.
61982         * tests/test-symlinkat.c: Split...
61983         * tests/test-readlinkat.c: ...into new file.
61984         * NEWS: Document the split.
61985         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61986         * lib/unistd.in.h (readlinkat): Likewise.
61987         Suggested by Bruno Haible.
61989 2010-08-08  Bruno Haible  <bruno@clisp.org>
61991         memxfrm: Speed up.
61992         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
61993         that usually only one call to strxfrm is necessary for each string
61994         part.
61995         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61997 2010-08-07  Karl Berry  <karl@gnu.org>
61999         * doc/posix-headers/limits.texi,
62000         * doc/posix-functions/malloc.texi,
62001         * doc/posix-functions/strsignal.texi: missing @item.
62002         * doc/ld-version-script.texi: spurious leading i.
62003         * doc/regex.texi (Interval Operators): no commas inside @var.
62005 2010-08-01  Bruno Haible  <bruno@clisp.org>
62007         Integrate the regex documentation.
62008         * doc/gnulib.texi: Define 'cn' index.
62009         (Regular expressions): New a chapter that includes regex.texi and
62010         regexprops-generic.texi.
62011         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
62012         syntax.
62014         Whitespace cleanup.
62015         * doc/regex.texi: Remove trailing spaces.
62017         Add regex documentation.
62018         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
62019         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
62020         Written by Kathy A. Hargreaves and Karl Berry.
62022 2010-08-01  Bruno Haible  <bruno@clisp.org>
62024         link: Update documentation.
62025         * doc/posix-functions/link.texi: Update regarding Solaris.
62027 2010-07-31  Bruno Haible  <bruno@clisp.org>
62029         Update modules list.
62030         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
62031         (String handling <string.h>): Add memcmp2, memxfrm.
62032         (Container data structures): Add xlist, xsublist, xoset.
62033         (Core language properties): Add alignof, unused-parameter.
62034         (Process control, Numeric conversion functions <stdlib.h>): Renamed
62035         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
62036         (Unibyte characters <ctype.h>): New section.
62037         (String handling <string.h>): New section.
62038         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
62039         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
62040         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
62041         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
62042         tan, tanh, tanl, y0, y1, yn.
62043         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
62044         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
62045         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
62046         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
62047         unlockpt, vdprintf, vdprintf-posix.
62048         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
62049         (File system functions): Add concat-filename, sys_file, sys_ioctl,
62050         xconcat-filename.
62051         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
62052         getdtablesize, pipe2, pipe2-safer.
62053         (Security): New section.
62054         (Networking functions): Add accept4.
62055         (Signal handling): Add sigpipe.
62056         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
62057         mbmemcasecoll.
62058         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
62059         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
62060         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
62061         pipe-filter-ii.
62062         (Misc): Add argp-version-etc, login_tty, parse-duration.
62064 2010-07-31  Bruno Haible  <bruno@clisp.org>
62066         Improve doc in MODULES.html.
62067         * modules/linkat (Description): Add the word "function".
62068         * modules/mkfifo (Description): Likewise.
62069         * modules/mknod (Description): Likewise.
62070         * modules/remove (Description): Likewise.
62071         * modules/renameat (Description): Likewise.
62072         * modules/stat (Description): Likewise.
62073         * modules/symlink (Description): Likewise.
62074         * modules/unlink (Description): Likewise.
62076 2010-07-31  Bruno Haible  <bruno@clisp.org>
62078         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
62079         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
62080         option --enable/disable-c++ instead of --enable/disable-cxx.
62081         * NEWS: Mention the change.
62083 2010-07-31  Bruno Haible  <bruno@clisp.org>
62085         readlink, areadlink: Relax test a bit.
62086         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
62087         alternative to ENOTDIR.
62088         * tests/test-areadlink.h (test_areadlink): Likewise.
62089         Reported by Rainer Tammer.
62091 2010-07-31  Bruno Haible  <bruno@clisp.org>
62093         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
62094         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
62095         character, perform the search using U_STRCHR.
62096         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
62097         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
62098         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
62099         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
62100         Suggested by Paolo Bonzini.
62102 2010-07-31  Bruno Haible  <bruno@clisp.org>
62104         unistr/u*-strstr: Fix dependencies.
62105         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
62106         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
62107         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
62109 2010-07-31  Bruno Haible  <bruno@clisp.org>
62111         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
62112         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
62113         the beginning of the loop.
62114         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
62115         cases in 'switch' statement.
62117         unistr/u8-strchr: Fix several bugs.
62118         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
62119         the string. When not found, return NULL, not a pointer near the end.
62121         More tests for unistr/u8-strchr.
62122         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
62123         that the function does not read past the first occurrence of the byte
62124         being searched.
62125         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
62126         * tests/unistr/test-u16-strchr.c (main): New function.
62127         * tests/unistr/test-u32-strchr.c (main): New function.
62129 2010-07-31  Bruno Haible  <bruno@clisp.org>
62131         posix-modules: Ignore backup files of documentation files.
62132         * posix-modules: grep only through files named *.texi.
62134 2010-07-31  Bruno Haible  <bruno@clisp.org>
62136         symlinkat: Fix documentation.
62137         * doc/posix-functions/readlinkat.texi: Fix module name.
62139 2010-07-31  Bruno Haible  <bruno@clisp.org>
62141         fchownat: Replace also when chown has the trailing slash bug.
62142         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
62143         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
62144         introduced on 2010-04-10.
62145         Reported by Rainer Tammer.
62147 2010-07-31  Bruno Haible  <bruno@clisp.org>
62149         linkat: Work around AIX 7.1 bug.
62150         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
62151         whether linkat handles trailing slash correctly. If not, replace linkat
62152         and define LINKAT_TRAILING_SLASH_BUG.
62153         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
62154         check whether (fd1,file1) points to a directory if file1 or file2 ends
62155         in a slash. Code taken from lib/link.c.
62156         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
62157         Reported by Rainer Tammer.
62159 2010-07-31  Bruno Haible  <bruno@clisp.org>
62161         Correctly determine whether pow is available in libc on AIX 7 with xlc.
62162         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
62163         This disables an xlc optimization that was causing wrong test results.
62164         Reported by Rainer Tammer.
62166 2010-07-31  Bruno Haible  <bruno@clisp.org>
62168         iconv: Work around AIX 6.1..7.1 bug.
62169         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
62170         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
62171         cross-compiling, guess no on all versions of AIX.
62172         Reported by Rainer Tammer.
62174 2010-07-31  Bruno Haible  <bruno@clisp.org>
62176         readlink: Relax test a bit.
62177         * tests/test-readlink.h (test_readlink): Allow different errno value
62178         when readlink is called with a file name that ends in / and refers to
62179         a file.
62180         Suggested by Eric Blake.
62181         Reported by Rainer Tammer.
62183 2010-07-31  Bruno Haible  <bruno@clisp.org>
62185         copysign: Does not require -lm on glibc systems.
62186         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
62187         gl_COMMON_DOUBLE_MATHFUNC.
62188         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
62190 2010-07-31  Bruno Haible  <bruno@clisp.org>
62192         duplocale: Work around AIX 7.1 bug.
62193         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
62194         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
62195         * lib/duplocale.c (rpl_duplocale): Update comment.
62196         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
62197         Reported by Rainer Tammer.
62199 2010-07-30  Bruno Haible  <bruno@clisp.org>
62201         dirfd: Avoid link error on AIX 7.1.
62202         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
62203         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
62204         exist, set REPLACE_DIRFD.
62205         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
62206         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
62207         * doc/posix-functions/dirfd.texi: Update.
62208         Reported by Rainer Tammer.
62210 2010-07-30  Eric Blake  <eblake@redhat.com>
62212         strtod: next round of AIX fixes
62213         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
62214         exponent.
62215         * tests/test-strtod.c (main): Enhance tests.
62216         * doc/posix-functions/strtod.texi (strtod): Document next bug.
62217         Reported by Rainer Tammer.
62219         futimens: fix configure check
62220         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
62221         Reported by Bruno Haible.
62223 2010-07-30  Bruno Haible  <bruno@clisp.org>
62225         getline: Update regarding AIX.
62226         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
62227         Reported by Rainer Tammer.
62229 2010-07-30  Bruno Haible  <bruno@clisp.org>
62231         wcwidth: Drop replacement on AIX 7.
62232         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
62233         AIX 7.
62234         Reported by Rainer Tammer.
62236 2010-07-30  Bruno Haible  <bruno@clisp.org>
62238         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
62239         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
62240         a 'char *'.
62241         Reported by Rainer Tammer.
62243 2010-07-30  Bruno Haible  <bruno@clisp.org>
62245         unlink: Update regarding AIX.
62246         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
62247         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
62248         Reported by Rainer Tammer.
62250 2010-07-30  Bruno Haible  <bruno@clisp.org>
62252         symlink: Update regarding AIX.
62253         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
62254         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
62255         Reported by Rainer Tammer.
62257 2010-07-30  Bruno Haible  <bruno@clisp.org>
62259         strndup: Update regarding AIX.
62260         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
62261         AIX 7.
62262         Reported by Rainer Tammer.
62264 2010-07-30  Bruno Haible  <bruno@clisp.org>
62266         stat: Update regarding AIX.
62267         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
62268         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
62269         Reported by Rainer Tammer.
62271 2010-07-30  Bruno Haible  <bruno@clisp.org>
62273         truncl: Fix autoconf test.
62274         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
62275         whether truncl works.
62276         Reported by Rainer Tammer.
62278 2010-07-30  Bruno Haible  <bruno@clisp.org>
62280         round: Update regarding AIX.
62281         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
62282         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
62283         Reported by Rainer Tammer.
62285 2010-07-30  Bruno Haible  <bruno@clisp.org>
62287         rename: Update regarding AIX.
62288         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
62289         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
62290         Reported by Rainer Tammer.
62292 2010-07-30  Bruno Haible  <bruno@clisp.org>
62294         printf.m4: Update regarding AIX.
62295         * m4/printf.m4: Update comments regarding AIX.
62296         Reported by Rainer Tammer.
62298 2010-07-30  Bruno Haible  <bruno@clisp.org>
62300         iconv: Update regarding AIX.
62301         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
62302         AIX 7.
62303         Reported by Rainer Tammer.
62305 2010-07-30  Bruno Haible  <bruno@clisp.org>
62307         getopt: Update regarding AIX.
62308         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
62309         no on AIX.
62310         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
62311         Reported by Rainer Tammer.
62313 2010-07-30  Bruno Haible  <bruno@clisp.org>
62315         ldexpl; Update regarding AIX.
62316         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
62317         on AIX 7.
62318         Reported by Rainer Tammer.
62320 2010-07-30  Bruno Haible  <bruno@clisp.org>
62322         frexpl: Update regarding AIX.
62323         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
62324         on AIX 7.
62325         Reported by Rainer Tammer.
62327 2010-07-30  Bruno Haible  <bruno@clisp.org>
62329         open, fopen: Update regarding AIX.
62330         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
62331         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
62332         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
62333         * doc/posix-functions/fopen.texi: Likewise.
62334         Reported by Rainer Tammer.
62336 2010-07-30  Bruno Haible  <bruno@clisp.org>
62338         chown: Update doc regarding AIX.
62339         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
62340         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
62341         Reported by Rainer Tammer.
62343 2010-07-30  Eric Blake  <eblake@redhat.com>
62345         strtod: fix bug in replacement function on AIX
62346         * lib/strtod.c (strtod): Special case broken "0x" parse in
62347         underlying strtod.
62348         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
62349         * doc/posix-functions/strtod.texi (strtod): Likewise.
62350         Reported by Rainer Tammer.
62352 2010-07-30  Bruno Haible  <bruno@clisp.org>
62354         mbrlen: Fix cross-compilation guess for AIX.
62355         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
62356         guess. Leftover from 2008-12-22.
62358 2010-07-30  Bruno Haible  <bruno@clisp.org>
62360         mbrtowc: Fix cross-compilation guess for AIX.
62361         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
62362         guess. Leftover from 2008-12-21.
62364 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
62366         init.sh: work around trap limitation of some shells
62367         * tests/init.sh (setup_): Move exit trap outside of shell function.
62369 2010-07-29  Eric Blake  <eblake@redhat.com>
62371         strtod: aid debugging
62372         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
62373         understanding why strtod is rejected.
62375 2010-07-28  Bruno Haible  <bruno@clisp.org>
62377         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
62378         * lib/unistr/u8-chr.c: Include <string.h>.
62379         * tests/unistr/test-u8-chr.c: Likewise.
62380         * tests/unistr/test-u16-chr.c: Likewise.
62381         * tests/unistr/test-u32-chr.c: Likewise.
62382         * tests/unistr/test-u8-strchr.c: Likewise.
62383         * tests/unistr/test-u16-strchr.c: Likewise.
62384         * tests/unistr/test-u32-strchr.c: Likewise.
62385         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
62386         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
62387         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
62388         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
62390 2010-07-28  Bruno Haible  <bruno@clisp.org>
62392         Use spaces for indentation, not tabs.
62393         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
62395 2010-07-27  Bruno Haible  <bruno@clisp.org>
62397         mbspcasecmp: Fix function specification.
62398         * lib/string.in.h (mbspcasecmp): Fix specification comment.
62399         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
62400         Reported by Eric Blake <eblake@redhat.com>.
62402 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
62404         timespec: use cast and not conditional, as truncation isn't possible
62405         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
62406         instead of a conditional.  Comment about the situation in more detail.
62407         This undoes most of the 2009-10-29 patch.
62409 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
62411         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
62412         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
62413         * lib/unistr/u8-strchr.c: Likewise.
62414         * modules/unistr/u8-chr: Depend on memchr.
62416         unistr/u*-strchr: add tests
62417         * modules/unistr/u8-strchr-tests: New file.
62418         * modules/unistr/u16-strchr-tests: New file.
62419         * modules/unistr/u32-strchr-tests: New file.
62420         * tests/unistr/test-strchr.h: New file.
62421         * tests/unistr/test-u8-strchr.c: New file.
62422         * tests/unistr/test-u16-strchr.c: New file.
62423         * tests/unistr/test-u32-strchr.c: New file.
62425         unistr/u*-chr: test multibyte sequences more
62426         * tests/unistr/test-chr.h: Do complete testing of the characters in the
62427         test vector.
62428         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
62429         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
62430         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
62432         unistr/u*-chr: test multibyte sequences
62433         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
62435         unistr/u*-chr: prepare for multibyte tests
62436         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
62437         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
62438         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
62439         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
62440         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
62441         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
62443 2010-07-18  Bruno Haible  <bruno@clisp.org>
62445         unistr/u8-strchr: Optimize non-ASCII argument case.
62446         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
62447         because the first byte often matches anyway.
62448         Reported by Pádraig Brady <P@draigbrady.com>.
62450 2010-07-15  Karl Berry  <karl@gnu.org>
62452         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
62454 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
62456         getcwd: on Solaris, work better if ancestors are inaccessible
62457         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
62458         buffer and size, try again with a large buffer.  This works better
62459         on Solaris, since its getcwd succeeds even if the path to the root
62460         is inaccessible, and this is helpful in common cases such as .zfs
62461         hidden directories.  Problem reported by J Chapman Flack in
62462         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
62463         Use system getcwd if it's declared, not merely if it's partly
62464         working; use the partly-working test only to avoid needless effort
62465         if the system getcwd fails.
62466         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
62467         comment that was already obsolete and is now even more obsolete.
62468         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
62469         now might call strdup.
62471 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
62473         pthread: Add enough so that coreutils/src/sort.c compiles.
62474         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
62475         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
62476         gnulib. Include <sched.h> and <time.h>, as per POSIX.
62477         Include <sys/types.h>, in case it defines pthread_t.
62478         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
62479         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
62480         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
62481         (pthread_rwlockattr_t, pthread_spinlock_t):
62482         New typedefs, if HAVE_PTHREAD_T is not defined.
62483         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
62484         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
62485         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
62486         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
62487         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
62488         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
62489         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
62490         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
62491         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
62492         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
62493         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
62494         New macros.
62495         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
62496         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
62497         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
62498         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
62499         (pthread_spin_unlock): New dummy functions.
62500         (pthread_create): Return EAGAIN; don't set errno.
62501         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
62502         require AC_C_INLINE.
62503         * modules/pthread (Depends-on): Add sched, time.
62504         (pthread.h): Use AM_V_GEN.
62506 2010-07-13  Bruno Haible  <bruno@clisp.org>
62508         striconveh: Don't malloc memory if the result buffer is sufficient.
62509         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
62510         buffer if its size is sufficient.
62511         Reported by Ludovic Courtès <ludo@gnu.org>.
62513 2010-07-13  Bruno Haible  <bruno@clisp.org>
62515         strtod: Add safety check.
62516         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
62518 2010-07-12  Bruno Haible  <bruno@clisp.org>
62520         Unify tests that set gl_cv_func_ldexpl_no_libm.
62521         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
62522         gl_FUNC_LDEXPL.
62523         (gl_FUNC_LDEXPL): Invoke it.
62524         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62526 2010-07-12  Bruno Haible  <bruno@clisp.org>
62528         Unify tests that set gl_cv_func_ldexp_no_libm.
62529         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
62530         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
62531         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
62532         (configure.ac): Simply invoke gl_FUNC_LDEXP.
62533         * modules/strtod (Files): Add m4/ldexp.m4.
62535 2010-07-12  Bruno Haible  <bruno@clisp.org>
62537         Unify tests that set gl_cv_func_frexpl_no_libm.
62538         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
62539         gl_FUNC_FREXPL_NO_LIBM.
62540         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
62541         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62543 2010-07-12  Bruno Haible  <bruno@clisp.org>
62545         Unify tests that set gl_cv_func_frexp_no_libm.
62546         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
62547         gl_FUNC_FREXP_NO_LIBM.
62548         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
62549         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
62551 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
62553         memcoll: clarify sizes versus lengths, document better, and tweak perf
62554         * lib/memcoll.c (strcoll_loop, memcoll0):
62555         Improve quality of descriptive comments.  Name variables
62556         consistently as to whether they are lengths (which do not include
62557         terminating null) versus sizes (which do).
62558         * lib/xmemcoll.c (xmemcoll0): Likewise.
62559         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
62560         returned when s1size == 0; this is easier to compile and saves
62561         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
62563 2010-07-12  Bruno Haible  <bruno@clisp.org>
62565         Tests for module '_Exit'.
62566         * modules/_Exit-tests: New file.
62567         * tests/test-_Exit.sh: New file.
62568         * tests/test-_Exit.c: New file.
62570         New module '_Exit'.
62571         * lib/stdlib.in.h (__attribute__): New macro.
62572         (_Exit): New declaration.
62573         * lib/_Exit.c: New file.
62574         * m4/_Exit.m4: New file.
62575         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
62576         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
62577         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
62578         * modules/_Exit: New file.
62579         * tests/test-stdlib-c++.cc (_Exit): Check signature.
62580         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
62582 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
62584         strtod: make it more-accurate typically, and don't require libm
62585         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
62586         Include limits.h.  Don't include string.h.
62587         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
62588         (locale_isspace): New function, so that no casts are needed to
62589         check whether *s is a space.
62590         (ldexp): Provide an unused dummy if not available.
62591         (scale_radix_exp, parse_number, underlying_strtod): New functions.
62592         (strtod): Use them.  This implementation prefers to use the
62593         underlying strtod if available, falling back on our own code
62594         only to fix known bugs.  This is more likely to produce an
62595         accurate result.  Also, it avoids the use of libm functions.
62596         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
62597         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
62598         was absent, but it caused a test failure with coreutils.
62599         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
62600         with libm.
62601         * modules/strtod (Makefile.am, Link): libm is no longer needed.
62602         * modules/strtod-tests (Makefile.am): Likewise.
62604 2010-07-11  Pádraig Brady  <P@draigBrady.com>
62605             Bruno Haible  <bruno@clisp.org>
62607         unistr/u8-strchr: Optimize ASCII argument case.
62608         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
62610 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62612         (x)memcoll: minor tweaks
62613         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
62614         is after the type that it qualifies.
62615         (memcoll0): Likewise.
62616         * lib/memcoll.h (memcoll0): Likewise.
62617         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
62618         * lib/xmemcoll.h (xmemcoll0): Likewise.
62619         * lib/memcoll.c (memcoll0): Correct the comment.  This function
62620         differs from memcoll in that the NUL byte is part of the argument.
62621         Omit the abort-checks, as performance is a real issue here.  Plus,
62622         the checks were wrong anyway (an off-by-one error).  Omit local
62623         variable 'diff', as it's a bit clearer that way.
62624         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
62625         no longer needed.
62627 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
62629         (x)memcoll: speedup when input is known to be NUL delimited
62630         * lib/memcoll.c: Include stdlib.
62631         (memcoll0): New function.
62632         (strcoll_loop): New function, refactored for use in both memcoll
62633         and memcoll0.
62634         * lib/memcoll.h (memcoll0): Add prototype.
62635         * lib/xmemcoll.c (xmemcoll0): New function.
62636         (collate_error): New function, refactored for use in both xmemcoll
62637         and xmemcoll0.
62638         * lib/xmemcoll.h (xmemcoll0): Add prototype.
62639         * m4/memcoll.m4: add inline invocation.
62641 2010-07-06  Pádraig Brady  <P@draigBrady.com>
62643         * build-aux/bootstrap: Remove any local translations
62644         from the translation project synchronization directory,
62645         so that local only translations are not distributed.
62647 2010-07-04  Bruno Haible  <bruno@clisp.org>
62649         fsusage: Clarify which code applies to which platforms.
62650         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
62651         platform.
62652         * lib/fsusage.c (get_fs_usage): Likewise.
62654 2010-07-04  Bruno Haible  <bruno@clisp.org>
62656         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
62657         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
62658         Reported by Martin Lambers <marlam@marlam.de>.
62660 2010-07-04  Jim Meyering  <meyering@redhat.com>
62662         hash: once again explicitly disallow insertion of NULL
62663         * lib/hash.c (hash_insert0): Reinstate just-removed test:
62664         inserting a NULL pointer cannot work with these functions.
62665         Add a comment with details.
62666         This reverts part of the 2010-07-01 commit, 5bef1a35
62667         "hash: extend module to deal with non-pointer keys".
62669 2010-07-01  Bruno Haible  <bruno@clisp.org>
62671         stdbool: Update doc.
62672         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
62673         Info from Christian Weisgerber <naddy@mips.inka.de>.
62675 2010-07-01  Jim Meyering  <meyering@redhat.com>
62677         hash: extend module to deal with non-pointer keys
62678         * lib/hash.c (hash_insert0): New interface, much like hash_insert
62679         but that allows insertion of non-pointer entries.
62680         Do not disallow an ENTRY value of NULL.
62681         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
62682         * lib/hash.h (hash_insert0): Declare.
62684 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62686         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
62687         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
62688         not present (i.e. with autoconf 2.59 and when using gettextize, not
62689         gnulib), require AC_GNU_SOURCE instead.
62691 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
62693         idpriv-drop: Fix tests.
62694         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
62695         not to the test-idpriv-droptemp program.
62697 2010-06-29  Bruno Haible  <bruno@clisp.org>
62699         string: Fix syntax error with g++ 2.96.
62700         * lib/string.in.h (__pure__): Remove definition.
62701         (_GL_ATTRIBUTE_PURE): New macro.
62702         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
62703         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
62704         Reported by Christian Weisgerber <naddy@mips.inka.de>.
62706 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
62708         unitypes: Fix bug introduced on 2010-05-18.
62709         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
62711 2010-06-22  Eric Blake  <eblake@redhat.com>
62713         memmem: slight optimization
62714         * lib/str-two-way.h (critical_factorization): Update comments.
62715         Reduce work during factorization phase.
62716         Reported by Carlos Bueno <carlos@bueno.org>.
62718 2010-06-21  Bruno Haible  <bruno@clisp.org>
62720         Fix HAVE_CALLOC_POSIX misnomer.
62721         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
62722         !HAVE_CALLOC_POSIX.
62723         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
62724         HAVE_CALLOC_POSIX.
62725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
62726         instead of HAVE_CALLOC_POSIX.
62727         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
62728         HAVE_CALLOC_POSIX.
62730         Use modern idiom for calloc() replacement.
62731         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
62732         AC_FUNC_CALLOC.
62733         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
62734         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
62735         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62736         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
62737         (gl_REPLACE_CALLOC): New macro.
62739 2010-06-21  Bruno Haible  <bruno@clisp.org>
62741         Fix HAVE_REALLOC_POSIX misnomer.
62742         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
62743         !HAVE_REALLOC_POSIX.
62744         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
62745         HAVE_REALLOC_POSIX.
62746         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
62747         instead of HAVE_REALLOC_POSIX.
62748         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
62749         HAVE_REALLOC_POSIX.
62751         Use modern idiom for realloc() replacement.
62752         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
62753         AC_FUNC_REALLOC.
62754         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
62755         Autoconf's AC_FUNC_REALLOC.
62756         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62757         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
62758         (gl_REPLACE_REALLOC): New macro.
62759         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
62761 2010-06-21  Bruno Haible  <bruno@clisp.org>
62763         Fix HAVE_MALLOC_POSIX misnomer.
62764         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
62765         !HAVE_MALLOC_POSIX.
62766         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
62767         HAVE_MALLOC_POSIX.
62768         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
62769         instead of HAVE_MALLOC_POSIX.
62770         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
62771         HAVE_MALLOC_POSIX.
62773         Use modern idiom for malloc() replacement.
62774         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
62775         AC_FUNC_MALLOC.
62776         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
62777         Autoconf's AC_FUNC_MALLOC.
62778         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62779         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
62780         (gl_REPLACE_MALLOC): New macro.
62781         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
62783 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
62785         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
62786         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
62787         This macro takes 3 arguments, not 4.
62789 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
62791         ipv6: fix detection under mingw
62792         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
62793         in6_addr.
62795 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
62797         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
62798         that strtod() works when cross-compiling to a glibc version known
62799         to work.
62801 2010-06-15  Bruno Haible  <bruno@clisp.org>
62803         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
62805 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
62807         select: Correct timeout.
62808         * lib/select.c (rpl_select): Compute wait_timeout correctly.
62810 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62812         git-version-gen: init shell var to avoid env var influence
62813         * build-aux/git-version-gen (v): Init shell var to empty.
62815 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
62817         priv-set: Don't assume that priv.h exists merely because getppriv does.
62818         See Jan Andersen's bug report about AIX 5L in
62819         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
62820         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
62821         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
62822         * lib/priv-set.h: Likewise.
62823         * tests/test-priv-set.c: Likewise.
62825 2010-06-13  Bruno Haible  <bruno@clisp.org>
62827         relocatable: Make it easier to test whether to install wrappers.
62828         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
62829         RELOCATABLE_VIA_WRAPPER.
62831 2010-06-13  Bruno Haible  <bruno@clisp.org>
62833         gnulib-tool: Display specified modules and dependencies differently.
62834         * gnulib-tool (func_show_module_list): New function.
62835         (func_import, func_create_testdir): Invoke it.
62836         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62838 2010-06-13  Bruno Haible  <bruno@clisp.org>
62840         gnulib-tool: Align code of func_import and func_create_testdir.
62841         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
62842         specified_modules.
62844 2010-06-12  Jim Meyering  <meyering@redhat.com>
62846         test-inttostr: avoid spurious failure on Solaris 9
62847         * tests/test-inttostr.c (main): Skip the test when snprintf fails
62848         to accept "%ju".  Reported by Bruno Haible.
62850 2010-06-11  Jim Meyering  <meyering@redhat.com>
62852         test-sys_socket: mark variables as used more readably
62853         * tests/test-sys_socket.c (main): Mark otherwise unused variables
62854         as "used" explicitly via (void) statement casts.  This is more
62855         readable than using them in an artificial return expression.
62856         Suggestion from Bruno Haible.
62858 2010-06-11  Bruno Haible  <bruno@clisp.org>
62860         Avoid some more warnings from "gcc -Wwrite-strings".
62861         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
62862         to 'const char *'.
62863         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
62864         * tests/test-c-strcasestr.c (main): Likewise.
62865         * tests/test-mbscasestr1.c (main): Likewise.
62866         * tests/test-mbscasestr2.c (main): Likewise.
62867         * tests/test-memmem.c (main): Likewise.
62868         * tests/test-strstr.c (main): Likewise.
62869         * tests/test-strcasestr.c (main): Likewise.
62871 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62873         init.sh: change framework_failure_ to fail with status 99, not 1
62874         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
62875         automake's parallel-tests rule that this is an unexpected failure,
62876         even if the test is listed in XFAIL_TESTS.
62878 2010-06-11  Jim Meyering  <meyering@redhat.com>
62880         test-inttostr: avoid warnings about 4-6KB literal strings
62881         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
62882         Include "macros.h", for its definition of ASSERT.
62883         (CK): s/assert/ASSERT/
62884         * modules/inttostr-tests (Files): Add macros.h.
62886         init.sh: don't use $ME_ or skip_ before they are defined
62887         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
62888         their first uses.  Also hoist their companions: warn_, fail_,
62889         framework_failure_, $stderr_fileno.  Prompted by a patch from
62890         Stefano Lattarini.
62892         test-sys_socket: avoid set-but-not-used warnings from gcc
62893         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
62894         avoid warning about set-but-not-used variables.
62896         test-xvasprintf: avoid 'const' discard warnings
62897         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
62898         "const" when assigning from literal strings.
62899         (test_xasprintf): Add "void" in function argument list to placate
62900         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
62902         tests: avoid compilation warnings in argmatch and exclude tests...
62903         in packages that define ARGMATCH_DIE_DECL, like coreutils.
62904         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
62905         Since it always exits, declare with the "noreturn" attribute.
62906         * tests/test-argmatch.c: Likewise.
62908         tests: avoid 'const' discard warnings in mbsstr tests
62909         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
62910         * tests/test-mbsstr2.c (main): Likewise.
62912         test-verify: avoid warning from gcc's -Wmissing-declarations
62913         * tests/test-verify.c (function): Declare to be static.
62915         test-inttostr.c: include <string.h> for use of strcmp
62916         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
62918         test-linkat: avoid failed assertion on "other" architectures
62919         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
62920         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
62921         sparc: https://bugs.launchpad.net/bugs/591968
62923 2010-06-11  Jim Meyering  <meyering@redhat.com>
62925         printf.m4: avoid autoconf's "Expanded Before Required" warning
62926         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
62927         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
62928         autoconf warning.
62930 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
62932         Replacement header templates are now named with ".in", not "_".
62933         * doc/gnulib-intro.texi: Correct.
62935 2010-06-10  Jim Meyering  <meyering@redhat.com>
62937         inttostr-tests: depend on snprintf, not snprintf-posix
62938         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
62939         snprintf-posix, to avoid this aclocal failure:
62940           missing file gnulib-tests/vasnprintf.c
62941           configure.ac:45: error: expected source file, required through \
62942           AC_LIBSOURCES, not found
62944 2010-06-10  Jim Meyering  <meyering@redhat.com>
62946         inttostr: add a new function, inttostr, and tests
62947         The namesake function was not available.  The existence of the
62948         template file, inttostr.c makes its addition nontrivial.
62949         * lib/anytostr.c: Rename from inttostr.c.
62950         (anytostr): Rename from inttostr.
62951         * lib/inttostr.c: New file.
62952         * modules/inttostr (Files): Add anytostr.c.
62953         (Makefile.am): Set lib_SOURCES instead of ...
62954         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
62955         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
62956         * lib/offtostr.c: Likewise.
62957         * lib/uinttostr.c: Likewise.
62958         * lib/umaxtostr.c: Likewise.
62959         * modules/inttostr-tests: New file.
62960         * tests/test-inttostr.c: New file.  Test these functions.
62962 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
62963             Bruno Haible  <bruno@clisp.org>
62965         Add "Extending Gnulib" chapter to manual.
62966         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
62967         chapter.
62968         (Extending Gnulib): New chapter.
62969         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
62970         chapter.
62972 2010-06-09  Bruno Haible  <bruno@clisp.org>
62974         Avoid relocwrapper link errors due to gnulib replacement functions.
62975         * lib/areadlink.c: Use the system's malloc, realloc functions.
62976         (areadlink): Set errno to ENOMEM explicitly.
62977         * modules/areadlink (Depends-on): Remove malloc-posix.
62978         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62980 2010-06-09  Bruno Haible  <bruno@clisp.org>
62982         Avoid relocwrapper link errors due to gnulib replacement functions.
62983         * lib/canonicalize-lgpl.c: Use the system's malloc function.
62984         * lib/malloca.c: Likewise.
62985         * lib/relocatable.c: Likewise.
62986         * lib/progreloc.c: Use the system's malloc, sprintf functions.
62987         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
62988         * lib/setenv.c: Use the system's malloc, realloc functions.
62989         * lib/strerror.c: Use the system's sprintf function.
62990         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62992 2010-06-04  Bruno Haible  <bruno@clisp.org>
62994         Prefer documented low-level autoconf macro names.
62995         * m4/lib-link.m4: Use m4_translit instead of translit.
62996         * m4/environ.m4: Likewise.
62997         * m4/mathfunc.m4: Likewise.
62998         * m4/onceonly.m4: Likewise.
62999         * m4/stdint.m4: Likewise.
63000         Suggested by Eric Blake.
63002 2010-06-04  Martin Lambers  <marlam@marlam.de>
63003             Bruno Haible  <bruno@clisp.org>
63005         havelib: Allow library names with '+' characters.
63006         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
63007         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
63009 2010-06-09  Bruno Haible  <bruno@clisp.org>
63011         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
63012         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
63013         realloc failed.
63015 2010-06-08  Peter Simons  <simons@cryp.to>
63017         maint.mk: make the news-check rule more configurable
63018         * top/maint.mk (news-check-lines-spec): New variable.
63019         (news-check): Use "sed -n 1,10p" in place of "head".
63021 2010-06-07  Jim Meyering  <meyering@redhat.com>
63023         do-release-commit-and-tag: fix typo in --help
63024         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
63026         regex: avoid new dead-code warning with gcc-4.6.0
63027         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
63028         if-block containing a while-loop.  It's been unused for at least
63029         5 years.
63031 2010-06-05  Bruno Haible  <bruno@clisp.org>
63033         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
63034         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
63036 2010-06-04  Bruno Haible  <bruno@clisp.org>
63038         Update to GNU gettext 0.18.1.
63039         * modules/gettext (configure.ac): Require gettext infrastructure from
63040         version 0.18.1.
63042 2010-06-03  Bruno Haible  <bruno@clisp.org>
63044         Don't use AC_LIBOBJ with file names in subdirectories.
63045         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
63046         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
63047         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
63048         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
63049         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
63050         gl_LIBUNISTRING_LIBSOURCE.
63051         (Makefile.am): Augment lib_SOURCES here, conditionally.
63052         * NEWS: Drop requirement for Automake option 'subdir-objects'.
63054 2010-06-03  Bruno Haible  <bruno@clisp.org>
63056         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
63057         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
63058         expansion does not end with a newline.
63059         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
63060         unnecessary newline.
63062 2010-06-03  Bruno Haible  <bruno@clisp.org>
63064         Reduce dependencies.
63065         * tests/test-quotearg.h: New file, extracted from
63066         tests/test-quotearg.c.
63067         * tests/test-quotearg-simple.c: New file, extracted from
63068         tests/test-quotearg.c.
63069         * tests/test-quotearg.c: Don't include <ctype.h>.
63070         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
63071         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
63072         use_quote_double_quotes, use_quotearg_colon): Moved to
63073         tests/test-quotearg.h.
63074         (results_g, flag_results, custom_quotes, custom_results): Moved
63075         to tests/test-quotearg-simple.c.
63076         (main): Moved the part that does not depend on gettext to
63077         tests/test-quotearg-simple.c. Return 77 if the test cannot be
63078         performed.
63079         * modules/quotearg-simple: New file.
63080         * modules/quotearg-simple-tests: New file.
63081         * modules/quotearg (Depends-on): Add quotearg-simple.
63082         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
63083         (Files): Add tests/test-quotearg.h.
63084         Reported by Paolo Bonzini.
63086 2010-06-03  Bruno Haible  <bruno@clisp.org>
63088         Reduce dependencies.
63089         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
63091 2010-06-03  Bruno Haible  <bruno@clisp.org>
63093         time: Undefine more broken macros.
63094         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
63095         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
63096         Reported by Eric Blake.
63098 2010-06-03  Bruno Haible  <bruno@clisp.org>
63100         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
63101         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
63102         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
63103         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
63104         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
63105         Reported by Ludovic Courtès <ludo@gnu.org>.
63107 2010-06-02  Eric Blake  <eblake@redhat.com>
63109         time: work with mingw + pthreads-win32 library
63110         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
63111         if timespec is defined only in pthread.h.
63112         * modules/time (Makefile.am): Substitute it.
63113         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
63114         <pthread.h>, when needed.
63115         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
63116         from the library.
63118 2010-05-31  Bruno Haible  <bruno@clisp.org>
63120         Avoid expanding two macros in the wrong order.
63121         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
63122         gl_LIBUNISTRING if it is defined.
63123         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
63124         autoconf >= 2.64.
63125         Reported by Ludovic Courtès <ludo@gnu.org>.
63127 2010-05-27  Jim Meyering  <meyering@redhat.com>
63129         maint.mk: also prohibit "#undef" of always-defined symbols
63130         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
63131         Allow more than one space before the symbol name.
63132         (sc_prohibit_always-defined_macros): Use grep's -E, now that
63133         the regexp uses alternation.
63135 2010-05-26  Eric Blake  <eblake@redhat.com>
63137         maint.mk: avoid echo -e
63138         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
63139         Convert all uses of echo -* to printf.
63140         Reported by Matthias Bolte.
63142 2010-05-25  Bruno Haible  <bruno@clisp.org>
63144         Update to GNU gettext 0.18, part 2.
63145         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
63146         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
63148 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63150         Add missing include in test-pwrite.c.
63151         * tests/test-pwrite.c: Include string.h, for strcmp.
63153 2010-05-24  Bruno Haible  <bruno@clisp.org>
63155         * NEWS: Mention requirement for Automake option 'subdir-objects'.
63157 2010-05-24  Bruno Haible  <bruno@clisp.org>
63159         Don't use conversion with transliteration in u{8,16,32}_strcoll.
63160         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
63161         iconveh_error argument.
63162         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
63163         U_STRCONV_TO_LOCALE.
63164         * lib/unistr/u16-strcoll.c: Likewise.
63165         * lib/unistr/u32-strcoll.c: Likewise.
63166         * modules/unistr/u8-strcoll (Depends-on): Add
63167         uniconv/u8-strconv-to-enc, localcharset. Remove
63168         uniconv/u8-strconv-to-locale.
63169         (configure.ac): Bump version number.
63170         * modules/unistr/u16-strcoll (Depends-on): Add
63171         uniconv/u16-strconv-to-enc, localcharset. Remove
63172         uniconv/u16-strconv-to-locale.
63173         (configure.ac): Bump version number.
63174         * modules/unistr/u32-strcoll (Depends-on): Add
63175         uniconv/u32-strconv-to-enc, localcharset. Remove
63176         uniconv/u32-strconv-to-locale.
63177         (configure.ac): Bump version number.
63179 2010-05-24  Bruno Haible  <bruno@clisp.org>
63181         Avoid a test failure on NetBSD 5.0.
63182         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
63183         an iconv() bug.
63185 2010-05-24  Bruno Haible  <bruno@clisp.org>
63187         Adjust #include directive style.
63188         * modules/regex (Includes): Recommend to write <regex.h>.
63190 2010-05-24  Bruno Haible  <bruno@clisp.org>
63192         regex: Don't require alloca.
63193         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
63194         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
63195         only inside if (0).
63197 2010-05-23  Jim Meyering  <meyering@redhat.com>
63199         test-renameat.c: include <sys/stat.h>
63200         * tests/test-renameat.c: Include <sys/stat.h>; required for
63201         definition of S_IS* macros.
63203 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
63205         Update maintainer documentation for 'relocatable-prog' module.
63206         * doc/relocatable-maint.texi: Update.
63207         Comments by Bruno Haible.
63209 2010-05-23  Bruno Haible  <bruno@clisp.org>
63211         git-merge-changelog: Enable --split-merged-entry by default.
63212         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
63213         (usage): Don't mention this option any more.
63214         Reported by Ralf Wildenhues.
63216 2010-05-23  Jim Meyering  <meyering@redhat.com>
63218         test-pwrite: do not leave behind a test file named "out"
63219         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
63220         The trivial-looking use of init.sh is really necessary.
63221         It ensures that the temporary file, "out", is created in
63222         a temporary directory, and removed upon termination.
63223         * tests/test-pwrite.sh: Re-add file.
63224         * modules/pwrite-tests: Reference it.
63226 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63228         Fix output redirection buglet in init.sh.
63229         * tests/init.sh: Fix redirection of stderr.
63231 2010-05-20  Simon Josefsson  <simon@josefsson.org>
63233         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
63235 2010-05-17  Simon Josefsson  <simon@josefsson.org>
63237         * modules/valgrind-tests: New file.
63238         * m4/valgrind-tests.m4: New file.
63239         * doc/valgrind-tests.texi: New file.
63240         * doc/gnulib.texi (Running self-tests under valgrind): New
63241         section.
63243 2010-05-19  Bruno Haible  <bruno@clisp.org>
63245         Clean up dead code in recent commit.
63246         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
63247         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
63248         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
63249         Suggested by Paolo Bonzini.
63251 2010-05-19  Bruno Haible  <bruno@clisp.org>
63253         Avoid valgrind error reports from libunistring.
63254         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
63255         * modules/libunistring (Files): Add it.
63256         * modules/libunistring-optional (Files): Likewise.
63258 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
63259             Bruno Haible  <bruno@clisp.org>
63261         New module 'libunistring-optional'.
63262         * modules/libunistring-optional: New file.
63263         * m4/libunistring-base.m4: New file.
63264         * m4/libunistring-optional.m4: New file.
63265         * lib/unicase.in.h: Renamed from lib/unicase.h.
63266         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
63267         * lib/unictype.in.h: Renamed from lib/unictype.h.
63268         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
63269         * lib/uniname.in.h: Renamed from lib/uniname.h.
63270         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
63271         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
63272         * lib/unistr.in.h: Renamed from lib/unistr.h.
63273         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
63274         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
63275         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
63276         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
63277         gl_LIBUNISTRING. If the library was found, determine the installed
63278         version and set LIBUNISTRING_VERSION.
63279         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
63280         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
63281         handle a configuration option --with-included-libunistring.
63282         * modules/libunistring (Files): Add m4/absolute-header.m4.
63283         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
63284         Add m4/libunistring-base.m4.
63285         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63286         (Makefile.am): Build unicase.h from unicase.in.h.
63287         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
63288         Add m4/libunistring-base.m4.
63289         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63290         (Makefile.am): Build uniconv.h from uniconv.in.h.
63291         * modules/unictype/base (Files): Use unictype.in.h instead of
63292         unictype.h. Add m4/libunistring-base.m4.
63293         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63294         (Makefile.am): Build unictype.h from unictype.in.h.
63295         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
63296         Add m4/libunistring-base.m4.
63297         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63298         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
63299         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
63300         Add m4/libunistring-base.m4.
63301         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63302         (Makefile.am): Build uniname.h from uniname.in.h.
63303         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
63304         Add m4/libunistring-base.m4.
63305         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63306         (Makefile.am): Build uninorm.h from uninorm.in.h.
63307         * modules/unistdio/base (Files): Use unistdio.in.h instead of
63308         unistdio.h. Add m4/libunistring-base.m4.
63309         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63310         (Makefile.am): Build unistdio.h from unistdio.in.h.
63311         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
63312         Add m4/libunistring-base.m4.
63313         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63314         (Makefile.am): Build unistr.h from unistr.in.h.
63315         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
63316         Add m4/libunistring-base.m4.
63317         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63318         (Makefile.am): Build unitypes.h from unitypes.in.h.
63319         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
63320         Add m4/libunistring-base.m4.
63321         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63322         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
63323         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
63324         uniwidth.h. Add m4/libunistring-base.m4.
63325         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63326         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
63327         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
63328         instead of augmenting lib_SOURCES.
63329         * modules/unicase/empty-suffix-context: Likewise.
63330         * modules/unicase/locale-language: Likewise.
63331         * modules/unicase/tolower: Likewise.
63332         * modules/unicase/totitle: Likewise.
63333         * modules/unicase/toupper: Likewise.
63334         * modules/unicase/u8-casecmp: Likewise.
63335         * modules/unicase/u8-casecoll: Likewise.
63336         * modules/unicase/u8-casefold: Likewise.
63337         * modules/unicase/u8-casexfrm: Likewise.
63338         * modules/unicase/u8-ct-casefold: Likewise.
63339         * modules/unicase/u8-ct-tolower: Likewise.
63340         * modules/unicase/u8-ct-totitle: Likewise.
63341         * modules/unicase/u8-ct-toupper: Likewise.
63342         * modules/unicase/u8-is-cased: Likewise.
63343         * modules/unicase/u8-is-casefolded: Likewise.
63344         * modules/unicase/u8-is-lowercase: Likewise.
63345         * modules/unicase/u8-is-titlecase: Likewise.
63346         * modules/unicase/u8-is-uppercase: Likewise.
63347         * modules/unicase/u8-prefix-context: Likewise.
63348         * modules/unicase/u8-suffix-context: Likewise.
63349         * modules/unicase/u8-tolower: Likewise.
63350         * modules/unicase/u8-totitle: Likewise.
63351         * modules/unicase/u8-toupper: Likewise.
63352         * modules/unicase/u16-casecmp: Likewise.
63353         * modules/unicase/u16-casecoll: Likewise.
63354         * modules/unicase/u16-casefold: Likewise.
63355         * modules/unicase/u16-casexfrm: Likewise.
63356         * modules/unicase/u16-ct-casefold: Likewise.
63357         * modules/unicase/u16-ct-tolower: Likewise.
63358         * modules/unicase/u16-ct-totitle: Likewise.
63359         * modules/unicase/u16-ct-toupper: Likewise.
63360         * modules/unicase/u16-is-cased: Likewise.
63361         * modules/unicase/u16-is-casefolded: Likewise.
63362         * modules/unicase/u16-is-lowercase: Likewise.
63363         * modules/unicase/u16-is-titlecase: Likewise.
63364         * modules/unicase/u16-is-uppercase: Likewise.
63365         * modules/unicase/u16-prefix-context: Likewise.
63366         * modules/unicase/u16-suffix-context: Likewise.
63367         * modules/unicase/u16-tolower: Likewise.
63368         * modules/unicase/u16-totitle: Likewise.
63369         * modules/unicase/u16-toupper: Likewise.
63370         * modules/unicase/u32-casecmp: Likewise.
63371         * modules/unicase/u32-casecoll: Likewise.
63372         * modules/unicase/u32-casefold: Likewise.
63373         * modules/unicase/u32-casexfrm: Likewise.
63374         * modules/unicase/u32-ct-casefold: Likewise.
63375         * modules/unicase/u32-ct-tolower: Likewise.
63376         * modules/unicase/u32-ct-totitle: Likewise.
63377         * modules/unicase/u32-ct-toupper: Likewise.
63378         * modules/unicase/u32-is-cased: Likewise.
63379         * modules/unicase/u32-is-casefolded: Likewise.
63380         * modules/unicase/u32-is-lowercase: Likewise.
63381         * modules/unicase/u32-is-titlecase: Likewise.
63382         * modules/unicase/u32-is-uppercase: Likewise.
63383         * modules/unicase/u32-prefix-context: Likewise.
63384         * modules/unicase/u32-suffix-context: Likewise.
63385         * modules/unicase/u32-tolower: Likewise.
63386         * modules/unicase/u32-totitle: Likewise.
63387         * modules/unicase/u32-toupper: Likewise.
63388         * modules/unicase/ulc-casecmp: Likewise.
63389         * modules/unicase/ulc-casecoll: Likewise.
63390         * modules/unicase/ulc-casexfrm: Likewise.
63391         * modules/uniconv/u8-conv-from-enc: Likewise.
63392         * modules/uniconv/u8-conv-to-enc: Likewise.
63393         * modules/uniconv/u8-strconv-from-enc: Likewise.
63394         * modules/uniconv/u8-strconv-from-locale: Likewise.
63395         * modules/uniconv/u8-strconv-to-enc: Likewise.
63396         * modules/uniconv/u8-strconv-to-locale: Likewise.
63397         * modules/uniconv/u16-conv-from-enc: Likewise.
63398         * modules/uniconv/u16-conv-to-enc: Likewise.
63399         * modules/uniconv/u16-strconv-from-enc: Likewise.
63400         * modules/uniconv/u16-strconv-from-locale: Likewise.
63401         * modules/uniconv/u16-strconv-to-enc: Likewise.
63402         * modules/uniconv/u16-strconv-to-locale: Likewise.
63403         * modules/uniconv/u32-conv-from-enc: Likewise.
63404         * modules/uniconv/u32-conv-to-enc: Likewise.
63405         * modules/uniconv/u32-strconv-from-enc: Likewise.
63406         * modules/uniconv/u32-strconv-from-locale: Likewise.
63407         * modules/uniconv/u32-strconv-to-enc: Likewise.
63408         * modules/uniconv/u32-strconv-to-locale: Likewise.
63409         * modules/unictype/bidicategory-byname: Likewise.
63410         * modules/unictype/bidicategory-name: Likewise.
63411         * modules/unictype/bidicategory-of: Likewise.
63412         * modules/unictype/bidicategory-test: Likewise.
63413         * modules/unictype/block-list: Likewise.
63414         * modules/unictype/block-test: Likewise.
63415         * modules/unictype/category-C: Likewise.
63416         * modules/unictype/category-Cc: Likewise.
63417         * modules/unictype/category-Cf: Likewise.
63418         * modules/unictype/category-Cn: Likewise.
63419         * modules/unictype/category-Co: Likewise.
63420         * modules/unictype/category-Cs: Likewise.
63421         * modules/unictype/category-L: Likewise.
63422         * modules/unictype/category-Ll: Likewise.
63423         * modules/unictype/category-Lm: Likewise.
63424         * modules/unictype/category-Lo: Likewise.
63425         * modules/unictype/category-Lt: Likewise.
63426         * modules/unictype/category-Lu: Likewise.
63427         * modules/unictype/category-M: Likewise.
63428         * modules/unictype/category-Mc: Likewise.
63429         * modules/unictype/category-Me: Likewise.
63430         * modules/unictype/category-Mn: Likewise.
63431         * modules/unictype/category-N: Likewise.
63432         * modules/unictype/category-Nd: Likewise.
63433         * modules/unictype/category-Nl: Likewise.
63434         * modules/unictype/category-No: Likewise.
63435         * modules/unictype/category-P: Likewise.
63436         * modules/unictype/category-Pc: Likewise.
63437         * modules/unictype/category-Pd: Likewise.
63438         * modules/unictype/category-Pe: Likewise.
63439         * modules/unictype/category-Pf: Likewise.
63440         * modules/unictype/category-Pi: Likewise.
63441         * modules/unictype/category-Po: Likewise.
63442         * modules/unictype/category-Ps: Likewise.
63443         * modules/unictype/category-S: Likewise.
63444         * modules/unictype/category-Sc: Likewise.
63445         * modules/unictype/category-Sk: Likewise.
63446         * modules/unictype/category-Sm: Likewise.
63447         * modules/unictype/category-So: Likewise.
63448         * modules/unictype/category-Z: Likewise.
63449         * modules/unictype/category-Zl: Likewise.
63450         * modules/unictype/category-Zp: Likewise.
63451         * modules/unictype/category-Zs: Likewise.
63452         * modules/unictype/category-and: Likewise.
63453         * modules/unictype/category-and-not: Likewise.
63454         * modules/unictype/category-byname: Likewise.
63455         * modules/unictype/category-name: Likewise.
63456         * modules/unictype/category-none: Likewise.
63457         * modules/unictype/category-of: Likewise.
63458         * modules/unictype/category-or: Likewise.
63459         * modules/unictype/category-test: Likewise.
63460         * modules/unictype/combining-class: Likewise.
63461         * modules/unictype/ctype-alnum: Likewise.
63462         * modules/unictype/ctype-alpha: Likewise.
63463         * modules/unictype/ctype-blank: Likewise.
63464         * modules/unictype/ctype-cntrl: Likewise.
63465         * modules/unictype/ctype-digit: Likewise.
63466         * modules/unictype/ctype-graph: Likewise.
63467         * modules/unictype/ctype-lower: Likewise.
63468         * modules/unictype/ctype-print: Likewise.
63469         * modules/unictype/ctype-punct: Likewise.
63470         * modules/unictype/ctype-space: Likewise.
63471         * modules/unictype/ctype-upper: Likewise.
63472         * modules/unictype/ctype-xdigit: Likewise.
63473         * modules/unictype/decimal-digit: Likewise.
63474         * modules/unictype/digit: Likewise.
63475         * modules/unictype/mirror: Likewise.
63476         * modules/unictype/numeric: Likewise.
63477         * modules/unictype/property-alphabetic: Likewise.
63478         * modules/unictype/property-ascii-hex-digit: Likewise.
63479         * modules/unictype/property-bidi-arabic-digit: Likewise.
63480         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
63481         * modules/unictype/property-bidi-block-separator: Likewise.
63482         * modules/unictype/property-bidi-boundary-neutral: Likewise.
63483         * modules/unictype/property-bidi-common-separator: Likewise.
63484         * modules/unictype/property-bidi-control: Likewise.
63485         * modules/unictype/property-bidi-embedding-or-override: Likewise.
63486         * modules/unictype/property-bidi-eur-num-separator: Likewise.
63487         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
63488         * modules/unictype/property-bidi-european-digit: Likewise.
63489         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
63490         * modules/unictype/property-bidi-left-to-right: Likewise.
63491         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
63492         * modules/unictype/property-bidi-other-neutral: Likewise.
63493         * modules/unictype/property-bidi-pdf: Likewise.
63494         * modules/unictype/property-bidi-segment-separator: Likewise.
63495         * modules/unictype/property-bidi-whitespace: Likewise.
63496         * modules/unictype/property-byname: Likewise.
63497         * modules/unictype/property-combining: Likewise.
63498         * modules/unictype/property-composite: Likewise.
63499         * modules/unictype/property-currency-symbol: Likewise.
63500         * modules/unictype/property-dash: Likewise.
63501         * modules/unictype/property-decimal-digit: Likewise.
63502         * modules/unictype/property-default-ignorable-code-point: Likewise.
63503         * modules/unictype/property-deprecated: Likewise.
63504         * modules/unictype/property-diacritic: Likewise.
63505         * modules/unictype/property-extender: Likewise.
63506         * modules/unictype/property-format-control: Likewise.
63507         * modules/unictype/property-grapheme-base: Likewise.
63508         * modules/unictype/property-grapheme-extend: Likewise.
63509         * modules/unictype/property-grapheme-link: Likewise.
63510         * modules/unictype/property-hex-digit: Likewise.
63511         * modules/unictype/property-hyphen: Likewise.
63512         * modules/unictype/property-id-continue: Likewise.
63513         * modules/unictype/property-id-start: Likewise.
63514         * modules/unictype/property-ideographic: Likewise.
63515         * modules/unictype/property-ids-binary-operator: Likewise.
63516         * modules/unictype/property-ids-trinary-operator: Likewise.
63517         * modules/unictype/property-ignorable-control: Likewise.
63518         * modules/unictype/property-iso-control: Likewise.
63519         * modules/unictype/property-join-control: Likewise.
63520         * modules/unictype/property-left-of-pair: Likewise.
63521         * modules/unictype/property-line-separator: Likewise.
63522         * modules/unictype/property-logical-order-exception: Likewise.
63523         * modules/unictype/property-lowercase: Likewise.
63524         * modules/unictype/property-math: Likewise.
63525         * modules/unictype/property-non-break: Likewise.
63526         * modules/unictype/property-not-a-character: Likewise.
63527         * modules/unictype/property-numeric: Likewise.
63528         * modules/unictype/property-other-alphabetic: Likewise.
63529         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
63530         * modules/unictype/property-other-grapheme-extend: Likewise.
63531         * modules/unictype/property-other-id-continue: Likewise.
63532         * modules/unictype/property-other-id-start: Likewise.
63533         * modules/unictype/property-other-lowercase: Likewise.
63534         * modules/unictype/property-other-math: Likewise.
63535         * modules/unictype/property-other-uppercase: Likewise.
63536         * modules/unictype/property-paired-punctuation: Likewise.
63537         * modules/unictype/property-paragraph-separator: Likewise.
63538         * modules/unictype/property-pattern-syntax: Likewise.
63539         * modules/unictype/property-pattern-white-space: Likewise.
63540         * modules/unictype/property-private-use: Likewise.
63541         * modules/unictype/property-punctuation: Likewise.
63542         * modules/unictype/property-quotation-mark: Likewise.
63543         * modules/unictype/property-radical: Likewise.
63544         * modules/unictype/property-sentence-terminal: Likewise.
63545         * modules/unictype/property-soft-dotted: Likewise.
63546         * modules/unictype/property-space: Likewise.
63547         * modules/unictype/property-terminal-punctuation: Likewise.
63548         * modules/unictype/property-test: Likewise.
63549         * modules/unictype/property-titlecase: Likewise.
63550         * modules/unictype/property-unassigned-code-value: Likewise.
63551         * modules/unictype/property-unified-ideograph: Likewise.
63552         * modules/unictype/property-uppercase: Likewise.
63553         * modules/unictype/property-variation-selector: Likewise.
63554         * modules/unictype/property-white-space: Likewise.
63555         * modules/unictype/property-xid-continue: Likewise.
63556         * modules/unictype/property-xid-start: Likewise.
63557         * modules/unictype/property-zero-width: Likewise.
63558         * modules/unictype/scripts: Likewise.
63559         * modules/unictype/syntax-c-ident: Likewise.
63560         * modules/unictype/syntax-c-whitespace: Likewise.
63561         * modules/unictype/syntax-java-ident: Likewise.
63562         * modules/unictype/syntax-java-whitespace: Likewise.
63563         * modules/unilbrk/u8-possible-linebreaks: Likewise.
63564         * modules/unilbrk/u8-width-linebreaks: Likewise.
63565         * modules/unilbrk/u16-possible-linebreaks: Likewise.
63566         * modules/unilbrk/u16-width-linebreaks: Likewise.
63567         * modules/unilbrk/u32-possible-linebreaks: Likewise.
63568         * modules/unilbrk/u32-width-linebreaks: Likewise.
63569         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
63570         * modules/unilbrk/ulc-width-linebreaks: Likewise.
63571         * modules/uniname/uniname: Likewise.
63572         * modules/uninorm/canonical-decomposition: Likewise.
63573         * modules/uninorm/composition: Likewise.
63574         * modules/uninorm/decomposing-form: Likewise.
63575         * modules/uninorm/decomposition: Likewise.
63576         * modules/uninorm/filter: Likewise.
63577         * modules/uninorm/nfc: Likewise.
63578         * modules/uninorm/nfd: Likewise.
63579         * modules/uninorm/nfkc: Likewise.
63580         * modules/uninorm/nfkd: Likewise.
63581         * modules/uninorm/u8-normalize: Likewise.
63582         * modules/uninorm/u8-normcmp: Likewise.
63583         * modules/uninorm/u8-normcoll: Likewise.
63584         * modules/uninorm/u8-normxfrm: Likewise.
63585         * modules/uninorm/u16-normalize: Likewise.
63586         * modules/uninorm/u16-normcmp: Likewise.
63587         * modules/uninorm/u16-normcoll: Likewise.
63588         * modules/uninorm/u16-normxfrm: Likewise.
63589         * modules/uninorm/u32-normalize: Likewise.
63590         * modules/uninorm/u32-normcmp: Likewise.
63591         * modules/uninorm/u32-normcoll: Likewise.
63592         * modules/uninorm/u32-normxfrm: Likewise.
63593         * modules/unistdio/u8-asnprintf: Likewise.
63594         * modules/unistdio/u8-asprintf: Likewise.
63595         * modules/unistdio/u8-snprintf: Likewise.
63596         * modules/unistdio/u8-sprintf: Likewise.
63597         * modules/unistdio/u8-u8-asnprintf: Likewise.
63598         * modules/unistdio/u8-u8-asprintf: Likewise.
63599         * modules/unistdio/u8-u8-snprintf: Likewise.
63600         * modules/unistdio/u8-u8-sprintf: Likewise.
63601         * modules/unistdio/u8-u8-vasnprintf: Likewise.
63602         * modules/unistdio/u8-u8-vasprintf: Likewise.
63603         * modules/unistdio/u8-u8-vsnprintf: Likewise.
63604         * modules/unistdio/u8-u8-vsprintf: Likewise.
63605         * modules/unistdio/u8-vasnprintf: Likewise.
63606         * modules/unistdio/u8-vasprintf: Likewise.
63607         * modules/unistdio/u8-vsnprintf: Likewise.
63608         * modules/unistdio/u8-vsprintf: Likewise.
63609         * modules/unistdio/u16-asnprintf: Likewise.
63610         * modules/unistdio/u16-asprintf: Likewise.
63611         * modules/unistdio/u16-snprintf: Likewise.
63612         * modules/unistdio/u16-sprintf: Likewise.
63613         * modules/unistdio/u16-u16-asnprintf: Likewise.
63614         * modules/unistdio/u16-u16-asprintf: Likewise.
63615         * modules/unistdio/u16-u16-snprintf: Likewise.
63616         * modules/unistdio/u16-u16-sprintf: Likewise.
63617         * modules/unistdio/u16-u16-vasnprintf: Likewise.
63618         * modules/unistdio/u16-u16-vasprintf: Likewise.
63619         * modules/unistdio/u16-u16-vsnprintf: Likewise.
63620         * modules/unistdio/u16-u16-vsprintf: Likewise.
63621         * modules/unistdio/u16-vasnprintf: Likewise.
63622         * modules/unistdio/u16-vasprintf: Likewise.
63623         * modules/unistdio/u16-vsnprintf: Likewise.
63624         * modules/unistdio/u16-vsprintf: Likewise.
63625         * modules/unistdio/u32-asnprintf: Likewise.
63626         * modules/unistdio/u32-asprintf: Likewise.
63627         * modules/unistdio/u32-snprintf: Likewise.
63628         * modules/unistdio/u32-sprintf: Likewise.
63629         * modules/unistdio/u32-u32-asnprintf: Likewise.
63630         * modules/unistdio/u32-u32-asprintf: Likewise.
63631         * modules/unistdio/u32-u32-snprintf: Likewise.
63632         * modules/unistdio/u32-u32-sprintf: Likewise.
63633         * modules/unistdio/u32-u32-vasnprintf: Likewise.
63634         * modules/unistdio/u32-u32-vasprintf: Likewise.
63635         * modules/unistdio/u32-u32-vsnprintf: Likewise.
63636         * modules/unistdio/u32-u32-vsprintf: Likewise.
63637         * modules/unistdio/u32-vasnprintf: Likewise.
63638         * modules/unistdio/u32-vasprintf: Likewise.
63639         * modules/unistdio/u32-vsnprintf: Likewise.
63640         * modules/unistdio/u32-vsprintf: Likewise.
63641         * modules/unistdio/ulc-asnprintf: Likewise.
63642         * modules/unistdio/ulc-asprintf: Likewise.
63643         * modules/unistdio/ulc-fprintf: Likewise.
63644         * modules/unistdio/ulc-snprintf: Likewise.
63645         * modules/unistdio/ulc-sprintf: Likewise.
63646         * modules/unistdio/ulc-vasnprintf: Likewise.
63647         * modules/unistdio/ulc-vasprintf: Likewise.
63648         * modules/unistdio/ulc-vfprintf: Likewise.
63649         * modules/unistdio/ulc-vsnprintf: Likewise.
63650         * modules/unistdio/ulc-vsprintf: Likewise.
63651         * modules/unistr/u8-check: Likewise.
63652         * modules/unistr/u8-chr: Likewise.
63653         * modules/unistr/u8-cmp: Likewise.
63654         * modules/unistr/u8-cmp2: Likewise.
63655         * modules/unistr/u8-cpy: Likewise.
63656         * modules/unistr/u8-cpy-alloc: Likewise.
63657         * modules/unistr/u8-endswith: Likewise.
63658         * modules/unistr/u8-mblen: Likewise.
63659         * modules/unistr/u8-mbsnlen: Likewise.
63660         * modules/unistr/u8-mbtouc: Likewise.
63661         * modules/unistr/u8-mbtouc-unsafe: Likewise.
63662         * modules/unistr/u8-mbtoucr: Likewise.
63663         * modules/unistr/u8-move: Likewise.
63664         * modules/unistr/u8-next: Likewise.
63665         * modules/unistr/u8-prev: Likewise.
63666         * modules/unistr/u8-set: Likewise.
63667         * modules/unistr/u8-startswith: Likewise.
63668         * modules/unistr/u8-stpcpy: Likewise.
63669         * modules/unistr/u8-stpncpy: Likewise.
63670         * modules/unistr/u8-strcat: Likewise.
63671         * modules/unistr/u8-strchr: Likewise.
63672         * modules/unistr/u8-strcmp: Likewise.
63673         * modules/unistr/u8-strcoll: Likewise.
63674         * modules/unistr/u8-strcpy: Likewise.
63675         * modules/unistr/u8-strcspn: Likewise.
63676         * modules/unistr/u8-strdup: Likewise.
63677         * modules/unistr/u8-strlen: Likewise.
63678         * modules/unistr/u8-strmblen: Likewise.
63679         * modules/unistr/u8-strmbtouc: Likewise.
63680         * modules/unistr/u8-strncat: Likewise.
63681         * modules/unistr/u8-strncmp: Likewise.
63682         * modules/unistr/u8-strncpy: Likewise.
63683         * modules/unistr/u8-strnlen: Likewise.
63684         * modules/unistr/u8-strpbrk: Likewise.
63685         * modules/unistr/u8-strrchr: Likewise.
63686         * modules/unistr/u8-strspn: Likewise.
63687         * modules/unistr/u8-strstr: Likewise.
63688         * modules/unistr/u8-strtok: Likewise.
63689         * modules/unistr/u8-to-u16: Likewise.
63690         * modules/unistr/u8-to-u32: Likewise.
63691         * modules/unistr/u8-uctomb: Likewise.
63692         * modules/unistr/u16-check: Likewise.
63693         * modules/unistr/u16-chr: Likewise.
63694         * modules/unistr/u16-cmp: Likewise.
63695         * modules/unistr/u16-cmp2: Likewise.
63696         * modules/unistr/u16-cpy: Likewise.
63697         * modules/unistr/u16-cpy-alloc: Likewise.
63698         * modules/unistr/u16-endswith: Likewise.
63699         * modules/unistr/u16-mblen: Likewise.
63700         * modules/unistr/u16-mbsnlen: Likewise.
63701         * modules/unistr/u16-mbtouc: Likewise.
63702         * modules/unistr/u16-mbtouc-unsafe: Likewise.
63703         * modules/unistr/u16-mbtoucr: Likewise.
63704         * modules/unistr/u16-move: Likewise.
63705         * modules/unistr/u16-next: Likewise.
63706         * modules/unistr/u16-prev: Likewise.
63707         * modules/unistr/u16-set: Likewise.
63708         * modules/unistr/u16-startswith: Likewise.
63709         * modules/unistr/u16-stpcpy: Likewise.
63710         * modules/unistr/u16-stpncpy: Likewise.
63711         * modules/unistr/u16-strcat: Likewise.
63712         * modules/unistr/u16-strchr: Likewise.
63713         * modules/unistr/u16-strcmp: Likewise.
63714         * modules/unistr/u16-strcoll: Likewise.
63715         * modules/unistr/u16-strcpy: Likewise.
63716         * modules/unistr/u16-strcspn: Likewise.
63717         * modules/unistr/u16-strdup: Likewise.
63718         * modules/unistr/u16-strlen: Likewise.
63719         * modules/unistr/u16-strmblen: Likewise.
63720         * modules/unistr/u16-strmbtouc: Likewise.
63721         * modules/unistr/u16-strncat: Likewise.
63722         * modules/unistr/u16-strncmp: Likewise.
63723         * modules/unistr/u16-strncpy: Likewise.
63724         * modules/unistr/u16-strnlen: Likewise.
63725         * modules/unistr/u16-strpbrk: Likewise.
63726         * modules/unistr/u16-strrchr: Likewise.
63727         * modules/unistr/u16-strspn: Likewise.
63728         * modules/unistr/u16-strstr: Likewise.
63729         * modules/unistr/u16-strtok: Likewise.
63730         * modules/unistr/u16-to-u32: Likewise.
63731         * modules/unistr/u16-to-u8: Likewise.
63732         * modules/unistr/u16-uctomb: Likewise.
63733         * modules/unistr/u32-check: Likewise.
63734         * modules/unistr/u32-chr: Likewise.
63735         * modules/unistr/u32-cmp: Likewise.
63736         * modules/unistr/u32-cmp2: Likewise.
63737         * modules/unistr/u32-cpy: Likewise.
63738         * modules/unistr/u32-cpy-alloc: Likewise.
63739         * modules/unistr/u32-endswith: Likewise.
63740         * modules/unistr/u32-mblen: Likewise.
63741         * modules/unistr/u32-mbsnlen: Likewise.
63742         * modules/unistr/u32-mbtouc: Likewise.
63743         * modules/unistr/u32-mbtouc-unsafe: Likewise.
63744         * modules/unistr/u32-mbtoucr: Likewise.
63745         * modules/unistr/u32-move: Likewise.
63746         * modules/unistr/u32-next: Likewise.
63747         * modules/unistr/u32-prev: Likewise.
63748         * modules/unistr/u32-set: Likewise.
63749         * modules/unistr/u32-startswith: Likewise.
63750         * modules/unistr/u32-stpcpy: Likewise.
63751         * modules/unistr/u32-stpncpy: Likewise.
63752         * modules/unistr/u32-strcat: Likewise.
63753         * modules/unistr/u32-strchr: Likewise.
63754         * modules/unistr/u32-strcmp: Likewise.
63755         * modules/unistr/u32-strcoll: Likewise.
63756         * modules/unistr/u32-strcpy: Likewise.
63757         * modules/unistr/u32-strcspn: Likewise.
63758         * modules/unistr/u32-strdup: Likewise.
63759         * modules/unistr/u32-strlen: Likewise.
63760         * modules/unistr/u32-strmblen: Likewise.
63761         * modules/unistr/u32-strmbtouc: Likewise.
63762         * modules/unistr/u32-strncat: Likewise.
63763         * modules/unistr/u32-strncmp: Likewise.
63764         * modules/unistr/u32-strncpy: Likewise.
63765         * modules/unistr/u32-strnlen: Likewise.
63766         * modules/unistr/u32-strpbrk: Likewise.
63767         * modules/unistr/u32-strrchr: Likewise.
63768         * modules/unistr/u32-strspn: Likewise.
63769         * modules/unistr/u32-strstr: Likewise.
63770         * modules/unistr/u32-strtok: Likewise.
63771         * modules/unistr/u32-to-u16: Likewise.
63772         * modules/unistr/u32-to-u8: Likewise.
63773         * modules/unistr/u32-uctomb: Likewise.
63774         * modules/uniwbrk/u8-wordbreaks: Likewise.
63775         * modules/uniwbrk/u16-wordbreaks: Likewise.
63776         * modules/uniwbrk/u32-wordbreaks: Likewise.
63777         * modules/uniwbrk/ulc-wordbreaks: Likewise.
63778         * modules/uniwbrk/wordbreak-property: Likewise.
63779         * modules/uniwidth/u8-strwidth: Likewise.
63780         * modules/uniwidth/u8-width: Likewise.
63781         * modules/uniwidth/u16-strwidth: Likewise.
63782         * modules/uniwidth/u16-width: Likewise.
63783         * modules/uniwidth/u32-strwidth: Likewise.
63784         * modules/uniwidth/u32-width: Likewise.
63785         * modules/uniwidth/width: Likewise.
63786         * modules/unicase/cased-tests (Makefile.am): Link all test programs
63787         with $(LIBUNISTRING).
63788         * modules/unicase/ignorable-tests: Likewise.
63789         * modules/unicase/locale-language-tests: Likewise.
63790         * modules/unicase/tolower-tests: Likewise.
63791         * modules/unicase/totitle-tests: Likewise.
63792         * modules/unicase/toupper-tests: Likewise.
63793         * modules/unicase/u8-casecmp-tests: Likewise.
63794         * modules/unicase/u8-casecoll-tests: Likewise.
63795         * modules/unicase/u8-casefold-tests: Likewise.
63796         * modules/unicase/u8-is-cased-tests: Likewise.
63797         * modules/unicase/u8-is-casefolded-tests: Likewise.
63798         * modules/unicase/u8-is-lowercase-tests: Likewise.
63799         * modules/unicase/u8-is-titlecase-tests: Likewise.
63800         * modules/unicase/u8-is-uppercase-tests: Likewise.
63801         * modules/unicase/u8-tolower-tests: Likewise.
63802         * modules/unicase/u8-totitle-tests: Likewise.
63803         * modules/unicase/u8-toupper-tests: Likewise.
63804         * modules/unicase/u16-casecmp-tests: Likewise.
63805         * modules/unicase/u16-casecoll-tests: Likewise.
63806         * modules/unicase/u16-casefold-tests: Likewise.
63807         * modules/unicase/u16-is-cased-tests: Likewise.
63808         * modules/unicase/u16-is-casefolded-tests: Likewise.
63809         * modules/unicase/u16-is-lowercase-tests: Likewise.
63810         * modules/unicase/u16-is-titlecase-tests: Likewise.
63811         * modules/unicase/u16-is-uppercase-tests: Likewise.
63812         * modules/unicase/u16-tolower-tests: Likewise.
63813         * modules/unicase/u16-totitle-tests: Likewise.
63814         * modules/unicase/u16-toupper-tests: Likewise.
63815         * modules/unicase/u32-casecmp-tests: Likewise.
63816         * modules/unicase/u32-casecoll-tests: Likewise.
63817         * modules/unicase/u32-casefold-tests: Likewise.
63818         * modules/unicase/u32-is-cased-tests: Likewise.
63819         * modules/unicase/u32-is-casefolded-tests: Likewise.
63820         * modules/unicase/u32-is-lowercase-tests: Likewise.
63821         * modules/unicase/u32-is-titlecase-tests: Likewise.
63822         * modules/unicase/u32-is-uppercase-tests: Likewise.
63823         * modules/unicase/u32-tolower-tests: Likewise.
63824         * modules/unicase/u32-totitle-tests: Likewise.
63825         * modules/unicase/u32-toupper-tests: Likewise.
63826         * modules/unicase/ulc-casecmp-tests: Likewise.
63827         * modules/unicase/ulc-casecoll-tests: Likewise.
63828         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
63829         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
63830         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
63831         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
63832         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
63833         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
63834         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
63835         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
63836         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
63837         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
63838         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
63839         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
63840         * modules/unictype/bidicategory-byname-tests: Likewise.
63841         * modules/unictype/bidicategory-name-tests: Likewise.
63842         * modules/unictype/bidicategory-of-tests: Likewise.
63843         * modules/unictype/bidicategory-test-tests: Likewise.
63844         * modules/unictype/block-list-tests: Likewise.
63845         * modules/unictype/block-of-tests: Likewise.
63846         * modules/unictype/block-test-tests: Likewise.
63847         * modules/unictype/category-C-tests: Likewise.
63848         * modules/unictype/category-Cc-tests: Likewise.
63849         * modules/unictype/category-Cf-tests: Likewise.
63850         * modules/unictype/category-Cn-tests: Likewise.
63851         * modules/unictype/category-Co-tests: Likewise.
63852         * modules/unictype/category-Cs-tests: Likewise.
63853         * modules/unictype/category-L-tests: Likewise.
63854         * modules/unictype/category-Ll-tests: Likewise.
63855         * modules/unictype/category-Lm-tests: Likewise.
63856         * modules/unictype/category-Lo-tests: Likewise.
63857         * modules/unictype/category-Lt-tests: Likewise.
63858         * modules/unictype/category-Lu-tests: Likewise.
63859         * modules/unictype/category-M-tests: Likewise.
63860         * modules/unictype/category-Mc-tests: Likewise.
63861         * modules/unictype/category-Me-tests: Likewise.
63862         * modules/unictype/category-Mn-tests: Likewise.
63863         * modules/unictype/category-N-tests: Likewise.
63864         * modules/unictype/category-Nd-tests: Likewise.
63865         * modules/unictype/category-Nl-tests: Likewise.
63866         * modules/unictype/category-No-tests: Likewise.
63867         * modules/unictype/category-P-tests: Likewise.
63868         * modules/unictype/category-Pc-tests: Likewise.
63869         * modules/unictype/category-Pd-tests: Likewise.
63870         * modules/unictype/category-Pe-tests: Likewise.
63871         * modules/unictype/category-Pf-tests: Likewise.
63872         * modules/unictype/category-Pi-tests: Likewise.
63873         * modules/unictype/category-Po-tests: Likewise.
63874         * modules/unictype/category-Ps-tests: Likewise.
63875         * modules/unictype/category-S-tests: Likewise.
63876         * modules/unictype/category-Sc-tests: Likewise.
63877         * modules/unictype/category-Sk-tests: Likewise.
63878         * modules/unictype/category-Sm-tests: Likewise.
63879         * modules/unictype/category-So-tests: Likewise.
63880         * modules/unictype/category-Z-tests: Likewise.
63881         * modules/unictype/category-Zl-tests: Likewise.
63882         * modules/unictype/category-Zp-tests: Likewise.
63883         * modules/unictype/category-Zs-tests: Likewise.
63884         * modules/unictype/category-and-not-tests: Likewise.
63885         * modules/unictype/category-and-tests: Likewise.
63886         * modules/unictype/category-byname-tests: Likewise.
63887         * modules/unictype/category-name-tests: Likewise.
63888         * modules/unictype/category-none-tests: Likewise.
63889         * modules/unictype/category-of-tests: Likewise.
63890         * modules/unictype/category-or-tests: Likewise.
63891         * modules/unictype/category-test-withtable-tests: Likewise.
63892         * modules/unictype/combining-class-tests: Likewise.
63893         * modules/unictype/ctype-alnum-tests: Likewise.
63894         * modules/unictype/ctype-alpha-tests: Likewise.
63895         * modules/unictype/ctype-blank-tests: Likewise.
63896         * modules/unictype/ctype-cntrl-tests: Likewise.
63897         * modules/unictype/ctype-digit-tests: Likewise.
63898         * modules/unictype/ctype-graph-tests: Likewise.
63899         * modules/unictype/ctype-lower-tests: Likewise.
63900         * modules/unictype/ctype-print-tests: Likewise.
63901         * modules/unictype/ctype-punct-tests: Likewise.
63902         * modules/unictype/ctype-space-tests: Likewise.
63903         * modules/unictype/ctype-upper-tests: Likewise.
63904         * modules/unictype/ctype-xdigit-tests: Likewise.
63905         * modules/unictype/decimal-digit-tests: Likewise.
63906         * modules/unictype/digit-tests: Likewise.
63907         * modules/unictype/mirror-tests: Likewise.
63908         * modules/unictype/numeric-tests: Likewise.
63909         * modules/unictype/property-alphabetic-tests: Likewise.
63910         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
63911         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
63912         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
63913         * modules/unictype/property-bidi-block-separator-tests: Likewise.
63914         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
63915         * modules/unictype/property-bidi-common-separator-tests: Likewise.
63916         * modules/unictype/property-bidi-control-tests: Likewise.
63917         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
63918         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
63919         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
63920         * modules/unictype/property-bidi-european-digit-tests: Likewise.
63921         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
63922         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
63923         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
63924         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
63925         * modules/unictype/property-bidi-pdf-tests: Likewise.
63926         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
63927         * modules/unictype/property-bidi-whitespace-tests: Likewise.
63928         * modules/unictype/property-byname-tests: Likewise.
63929         * modules/unictype/property-combining-tests: Likewise.
63930         * modules/unictype/property-composite-tests: Likewise.
63931         * modules/unictype/property-currency-symbol-tests: Likewise.
63932         * modules/unictype/property-dash-tests: Likewise.
63933         * modules/unictype/property-decimal-digit-tests: Likewise.
63934         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
63935         * modules/unictype/property-deprecated-tests: Likewise.
63936         * modules/unictype/property-diacritic-tests: Likewise.
63937         * modules/unictype/property-extender-tests: Likewise.
63938         * modules/unictype/property-format-control-tests: Likewise.
63939         * modules/unictype/property-grapheme-base-tests: Likewise.
63940         * modules/unictype/property-grapheme-extend-tests: Likewise.
63941         * modules/unictype/property-grapheme-link-tests: Likewise.
63942         * modules/unictype/property-hex-digit-tests: Likewise.
63943         * modules/unictype/property-hyphen-tests: Likewise.
63944         * modules/unictype/property-id-continue-tests: Likewise.
63945         * modules/unictype/property-id-start-tests: Likewise.
63946         * modules/unictype/property-ideographic-tests: Likewise.
63947         * modules/unictype/property-ids-binary-operator-tests: Likewise.
63948         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
63949         * modules/unictype/property-ignorable-control-tests: Likewise.
63950         * modules/unictype/property-iso-control-tests: Likewise.
63951         * modules/unictype/property-join-control-tests: Likewise.
63952         * modules/unictype/property-left-of-pair-tests: Likewise.
63953         * modules/unictype/property-line-separator-tests: Likewise.
63954         * modules/unictype/property-logical-order-exception-tests: Likewise.
63955         * modules/unictype/property-lowercase-tests: Likewise.
63956         * modules/unictype/property-math-tests: Likewise.
63957         * modules/unictype/property-non-break-tests: Likewise.
63958         * modules/unictype/property-not-a-character-tests: Likewise.
63959         * modules/unictype/property-numeric-tests: Likewise.
63960         * modules/unictype/property-other-alphabetic-tests: Likewise.
63961         * modules/unictype/property-other-default-ignorable-code-point-tests:
63962         Likewise.
63963         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
63964         * modules/unictype/property-other-id-continue-tests: Likewise.
63965         * modules/unictype/property-other-id-start-tests: Likewise.
63966         * modules/unictype/property-other-lowercase-tests: Likewise.
63967         * modules/unictype/property-other-math-tests: Likewise.
63968         * modules/unictype/property-other-uppercase-tests: Likewise.
63969         * modules/unictype/property-paired-punctuation-tests: Likewise.
63970         * modules/unictype/property-paragraph-separator-tests: Likewise.
63971         * modules/unictype/property-pattern-syntax-tests: Likewise.
63972         * modules/unictype/property-pattern-white-space-tests: Likewise.
63973         * modules/unictype/property-private-use-tests: Likewise.
63974         * modules/unictype/property-punctuation-tests: Likewise.
63975         * modules/unictype/property-quotation-mark-tests: Likewise.
63976         * modules/unictype/property-radical-tests: Likewise.
63977         * modules/unictype/property-sentence-terminal-tests: Likewise.
63978         * modules/unictype/property-soft-dotted-tests: Likewise.
63979         * modules/unictype/property-space-tests: Likewise.
63980         * modules/unictype/property-terminal-punctuation-tests: Likewise.
63981         * modules/unictype/property-test-tests: Likewise.
63982         * modules/unictype/property-titlecase-tests: Likewise.
63983         * modules/unictype/property-unassigned-code-value-tests: Likewise.
63984         * modules/unictype/property-unified-ideograph-tests: Likewise.
63985         * modules/unictype/property-uppercase-tests: Likewise.
63986         * modules/unictype/property-variation-selector-tests: Likewise.
63987         * modules/unictype/property-white-space-tests: Likewise.
63988         * modules/unictype/property-xid-continue-tests: Likewise.
63989         * modules/unictype/property-xid-start-tests: Likewise.
63990         * modules/unictype/property-zero-width-tests: Likewise.
63991         * modules/unictype/scripts-tests: Likewise.
63992         * modules/unictype/syntax-c-ident-tests: Likewise.
63993         * modules/unictype/syntax-c-whitespace-tests: Likewise.
63994         * modules/unictype/syntax-java-ident-tests: Likewise.
63995         * modules/unictype/syntax-java-whitespace-tests: Likewise.
63996         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
63997         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
63998         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
63999         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
64000         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
64001         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
64002         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
64003         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
64004         * modules/uniname/uniname-tests: Likewise.
64005         * modules/uninorm/canonical-decomposition-tests: Likewise.
64006         * modules/uninorm/compat-decomposition-tests: Likewise.
64007         * modules/uninorm/composition-tests: Likewise.
64008         * modules/uninorm/decomposing-form-tests: Likewise.
64009         * modules/uninorm/decomposition-tests: Likewise.
64010         * modules/uninorm/filter-tests: Likewise.
64011         * modules/uninorm/nfc-tests: Likewise.
64012         * modules/uninorm/nfd-tests: Likewise.
64013         * modules/uninorm/nfkc-tests: Likewise.
64014         * modules/uninorm/nfkd-tests: Likewise.
64015         * modules/uninorm/u8-normcmp-tests: Likewise.
64016         * modules/uninorm/u8-normcoll-tests: Likewise.
64017         * modules/uninorm/u16-normcmp-tests: Likewise.
64018         * modules/uninorm/u16-normcoll-tests: Likewise.
64019         * modules/uninorm/u32-normcmp-tests: Likewise.
64020         * modules/uninorm/u32-normcoll-tests: Likewise.
64021         * modules/unistdio/u8-asnprintf-tests: Likewise.
64022         * modules/unistdio/u8-vasnprintf-tests: Likewise.
64023         * modules/unistdio/u8-vasprintf-tests: Likewise.
64024         * modules/unistdio/u8-vsnprintf-tests: Likewise.
64025         * modules/unistdio/u8-vsprintf-tests: Likewise.
64026         * modules/unistdio/u16-asnprintf-tests: Likewise.
64027         * modules/unistdio/u16-vasnprintf-tests: Likewise.
64028         * modules/unistdio/u16-vasprintf-tests: Likewise.
64029         * modules/unistdio/u16-vsnprintf-tests: Likewise.
64030         * modules/unistdio/u16-vsprintf-tests: Likewise.
64031         * modules/unistdio/u32-asnprintf-tests: Likewise.
64032         * modules/unistdio/u32-vasnprintf-tests: Likewise.
64033         * modules/unistdio/u32-vasprintf-tests: Likewise.
64034         * modules/unistdio/u32-vsnprintf-tests: Likewise.
64035         * modules/unistdio/u32-vsprintf-tests: Likewise.
64036         * modules/unistdio/ulc-asnprintf-tests: Likewise.
64037         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
64038         * modules/unistdio/ulc-vasprintf-tests: Likewise.
64039         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
64040         * modules/unistdio/ulc-vsprintf-tests: Likewise.
64041         * modules/unistr/u8-check-tests: Likewise.
64042         * modules/unistr/u8-chr-tests: Likewise.
64043         * modules/unistr/u8-cmp-tests: Likewise.
64044         * modules/unistr/u8-cmp2-tests: Likewise.
64045         * modules/unistr/u8-cpy-alloc-tests: Likewise.
64046         * modules/unistr/u8-cpy-tests: Likewise.
64047         * modules/unistr/u8-mblen-tests: Likewise.
64048         * modules/unistr/u8-mbsnlen-tests: Likewise.
64049         * modules/unistr/u8-mbtouc-tests: Likewise.
64050         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
64051         * modules/unistr/u8-mbtoucr-tests: Likewise.
64052         * modules/unistr/u8-move-tests: Likewise.
64053         * modules/unistr/u8-next-tests: Likewise.
64054         * modules/unistr/u8-prev-tests: Likewise.
64055         * modules/unistr/u8-set-tests: Likewise.
64056         * modules/unistr/u8-stpcpy-tests: Likewise.
64057         * modules/unistr/u8-stpncpy-tests: Likewise.
64058         * modules/unistr/u8-strcat-tests: Likewise.
64059         * modules/unistr/u8-strcmp-tests: Likewise.
64060         * modules/unistr/u8-strcoll-tests: Likewise.
64061         * modules/unistr/u8-strcpy-tests: Likewise.
64062         * modules/unistr/u8-strdup-tests: Likewise.
64063         * modules/unistr/u8-strlen-tests: Likewise.
64064         * modules/unistr/u8-strmblen-tests: Likewise.
64065         * modules/unistr/u8-strmbtouc-tests: Likewise.
64066         * modules/unistr/u8-strncat-tests: Likewise.
64067         * modules/unistr/u8-strncmp-tests: Likewise.
64068         * modules/unistr/u8-strncpy-tests: Likewise.
64069         * modules/unistr/u8-strnlen-tests: Likewise.
64070         * modules/unistr/u8-to-u16-tests: Likewise.
64071         * modules/unistr/u8-to-u32-tests: Likewise.
64072         * modules/unistr/u8-uctomb-tests: Likewise.
64073         * modules/unistr/u16-check-tests: Likewise.
64074         * modules/unistr/u16-chr-tests: Likewise.
64075         * modules/unistr/u16-cmp-tests: Likewise.
64076         * modules/unistr/u16-cmp2-tests: Likewise.
64077         * modules/unistr/u16-cpy-alloc-tests: Likewise.
64078         * modules/unistr/u16-cpy-tests: Likewise.
64079         * modules/unistr/u16-mblen-tests: Likewise.
64080         * modules/unistr/u16-mbsnlen-tests: Likewise.
64081         * modules/unistr/u16-mbtouc-tests: Likewise.
64082         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
64083         * modules/unistr/u16-mbtoucr-tests: Likewise.
64084         * modules/unistr/u16-move-tests: Likewise.
64085         * modules/unistr/u16-next-tests: Likewise.
64086         * modules/unistr/u16-prev-tests: Likewise.
64087         * modules/unistr/u16-set-tests: Likewise.
64088         * modules/unistr/u16-stpcpy-tests: Likewise.
64089         * modules/unistr/u16-stpncpy-tests: Likewise.
64090         * modules/unistr/u16-strcat-tests: Likewise.
64091         * modules/unistr/u16-strcmp-tests: Likewise.
64092         * modules/unistr/u16-strcoll-tests: Likewise.
64093         * modules/unistr/u16-strcpy-tests: Likewise.
64094         * modules/unistr/u16-strdup-tests: Likewise.
64095         * modules/unistr/u16-strlen-tests: Likewise.
64096         * modules/unistr/u16-strmblen-tests: Likewise.
64097         * modules/unistr/u16-strmbtouc-tests: Likewise.
64098         * modules/unistr/u16-strncat-tests: Likewise.
64099         * modules/unistr/u16-strncmp-tests: Likewise.
64100         * modules/unistr/u16-strncpy-tests: Likewise.
64101         * modules/unistr/u16-strnlen-tests: Likewise.
64102         * modules/unistr/u16-to-u32-tests: Likewise.
64103         * modules/unistr/u16-to-u8-tests: Likewise.
64104         * modules/unistr/u16-uctomb-tests: Likewise.
64105         * modules/unistr/u32-check-tests: Likewise.
64106         * modules/unistr/u32-chr-tests: Likewise.
64107         * modules/unistr/u32-cmp-tests: Likewise.
64108         * modules/unistr/u32-cmp2-tests: Likewise.
64109         * modules/unistr/u32-cpy-alloc-tests: Likewise.
64110         * modules/unistr/u32-cpy-tests: Likewise.
64111         * modules/unistr/u32-mblen-tests: Likewise.
64112         * modules/unistr/u32-mbsnlen-tests: Likewise.
64113         * modules/unistr/u32-mbtouc-tests: Likewise.
64114         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
64115         * modules/unistr/u32-mbtoucr-tests: Likewise.
64116         * modules/unistr/u32-move-tests: Likewise.
64117         * modules/unistr/u32-next-tests: Likewise.
64118         * modules/unistr/u32-prev-tests: Likewise.
64119         * modules/unistr/u32-set-tests: Likewise.
64120         * modules/unistr/u32-stpcpy-tests: Likewise.
64121         * modules/unistr/u32-stpncpy-tests: Likewise.
64122         * modules/unistr/u32-strcat-tests: Likewise.
64123         * modules/unistr/u32-strcmp-tests: Likewise.
64124         * modules/unistr/u32-strcoll-tests: Likewise.
64125         * modules/unistr/u32-strcpy-tests: Likewise.
64126         * modules/unistr/u32-strdup-tests: Likewise.
64127         * modules/unistr/u32-strlen-tests: Likewise.
64128         * modules/unistr/u32-strmblen-tests: Likewise.
64129         * modules/unistr/u32-strmbtouc-tests: Likewise.
64130         * modules/unistr/u32-strncat-tests: Likewise.
64131         * modules/unistr/u32-strncmp-tests: Likewise.
64132         * modules/unistr/u32-strncpy-tests: Likewise.
64133         * modules/unistr/u32-strnlen-tests: Likewise.
64134         * modules/unistr/u32-to-u16-tests: Likewise.
64135         * modules/unistr/u32-to-u8-tests: Likewise.
64136         * modules/unistr/u32-uctomb-tests: Likewise.
64137         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
64138         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
64139         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
64140         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
64141         * modules/uniwidth/u8-strwidth-tests: Likewise.
64142         * modules/uniwidth/u8-width-tests: Likewise.
64143         * modules/uniwidth/u16-strwidth-tests: Likewise.
64144         * modules/uniwidth/u16-width-tests: Likewise.
64145         * modules/uniwidth/u32-strwidth-tests: Likewise.
64146         * modules/uniwidth/u32-width-tests: Likewise.
64147         * modules/uniwidth/width-tests: Likewise.
64149 2010-05-18  Richard Jones  <rjones@redhat.com>
64151         doc: users.txt: list hivex
64152         * users.txt: Add hivex.
64154 2010-05-18  Richard Jones  <rjones@redhat.com>
64156         doc: users.txt: list febootstrap
64157         * users.txt: Add febootstrap.
64159 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
64161         bootstrap: fix an error when gnulib is not used as a git submodule
64162         * build-aux/bootstrap (gnulib_path): If its length is zero then
64163         assign "gnulib" to it.
64164         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
64166 2010-05-16  Bruno Haible  <bruno@clisp.org>
64168         Avoid autoconf warnings about AM_ICONV.
64169         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
64170         2.64.
64172 2010-05-16  Bruno Haible  <bruno@clisp.org>
64174         absolute-header: Make the macro usable in more situations.
64175         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
64176         from gl_ABSOLUTE_HEADER.
64177         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
64179 2010-05-16  James Youngman  <jay@gnu.org>
64181         doc: update users.txt
64182         * users.txt: Add CSSC.
64184 2010-05-16  Jim Meyering  <meyering@redhat.com>
64186         init.sh: fix an error in the previous change; add more comments
64187         * tests/init.sh: Compare exit code in loop against 9, not 2.
64188         Patch by Bruno Haible.
64189         Make the two tests more similar by adding an empty "then" clause.
64190         Add comments.
64192         init.sh: avoid unnecessary shell re-exec
64193         * tests/init.sh: Improve the re-exec-required check to first test the
64194         current shell.  If it passes the test, do not search for a shell that
64195         does pass, and do not re-exec.  This test is particularly contorted to
64196         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
64197         of $(...) evokes a syntax error and causes immediate shell exit with
64198         status 2.  Bruno Haible reported that the re-exec made it impossible
64199         to single-step through any init.sh-using script.
64201 2010-05-16  Bruno Haible  <bruno@clisp.org>
64203         Fix collision between gnulib's and libintl's printf replacements.
64204         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
64205         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
64206         (printf): When using GNU C, map the __printf__ function to rpl_printf
64207         via __asm__. When not using GNU C, define rpl_printf instead of
64208         __printf__.
64209         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
64210         commit.
64211         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
64212         commit.
64213         * m4/asm-underscore.m4: New file.
64214         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
64215         * modules/stdio (Files): Add m4/asm-underscore.m4.
64216         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
64217         Reported by Ben Pfaff.
64219 2010-05-16  Bruno Haible  <bruno@clisp.org>
64221         verify: Avoid skipping the test on openSUSE 11.0.
64222         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
64224 2010-05-13  Bruno Haible  <bruno@clisp.org>
64226         Avoid useless warnings from G++.
64227         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
64228         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
64229         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64231 2010-05-11  Jim Meyering  <meyering@redhat.com>
64233         maint.mk: tweak preceding change
64234         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
64235         regexps tighter by anchoring at EOL, and make the new group "shy"
64236         for slightly decreased overhead.
64238 2010-05-11  Eric Blake  <eblake@redhat.com>
64240         maint.mk: gnulib doesn't guarantee NSIG
64241         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
64243 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
64245         test-pwrite.c: Remove unused variable declaration.
64246         * tests/test-pwrite.c (main): Remove read_buf declaration.
64248         Remove useless test-pwrite.sh file.
64249         * tests/test-pwrite.sh: Delete file.
64250         * modules/pwrite-tests: Remove references.
64251         Reported by Bruno Haible.
64253 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
64255         init.sh: fix a typo
64256         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
64258 2010-05-10  Jim Meyering  <meyering@redhat.com>
64260         maint.mk: avoid using a temporary file in the always-defined-macros check
64261         * top/maint.mk (.re-defmac): Remove rule.
64262         (gl_trap_): Remove definition.
64263         (sc_prohibit_always-defined_macros): Rewrite not to create and
64264         depend on a temporary file.  Instead, depend on GNU grep's ability
64265         to read a list of regular expressions from stdin when given "-f -".
64267 2010-05-09  Bruno Haible  <bruno@clisp.org>
64269         Update to GNU gettext 0.18, part 1.
64270         * m4/gettext.m4: Update to GNU gettext 0.18.
64271         * m4/intl.m4: Likewise.
64272         * m4/po.m4: Likewise.
64273         * modules/gettext (Files): Add m4/fcntl-o.m4.
64274         (configure.ac): Require gettext infrastructure from version 0.18.
64276 2010-05-09  Jim Meyering  <meyering@redhat.com>
64278         init.sh: enable MALLOC_PERTURB_
64279         * tests/init.sh: Enable glibc's malloc-perturbing option.
64281         maint.mk: improve sc_cross_check_PATH_usage_in_tests
64282         With my recent change in init.sh from the two-line form:
64283             -#   : ${srcdir=.}
64284             -#   . "$srcdir/init.sh"; path_prepend_ .
64285             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
64286         I noticed that using the one-line form would cause this test
64287         to fail with a false-positive, or to stop working altogether,
64288         depending on whether help-version changed or all the tests did.
64289         * top/maint.mk (_hv_regex): Remove this definition.
64290         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
64291         (_hv_regex_strong): Use a stronger regex to check for conformance.
64292         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
64293         Give a separate diagnostic for lack of conforming use.
64295         maint.mk: prohibit definition of symbols defined by gnulib
64296         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
64297         definition of symbols defined by gnulib.
64299 2010-05-09  Bruno Haible  <bruno@clisp.org>
64301         acl: Avoid test failure on Cygwin-hosted mingw.
64302         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
64304 2010-05-09  Bruno Haible  <bruno@clisp.org>
64306         error: Use system's fcntl function.
64307         * lib/error.c (fcntl): Undefine.
64309 2010-05-09  Jim Meyering  <meyering@redhat.com>
64311         verify: adjust formatting to be more consistent
64312         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
64313         argument-list '('s, and after one comma.
64315 2010-05-09  Bruno Haible  <bruno@clisp.org>
64317         error: More reliable output on mingw.
64318         * lib/error.c: Include <windows.h>.
64319         (is_open): New function.
64320         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
64321         defined.
64323 2010-05-09  Bruno Haible  <bruno@clisp.org>
64325         vasnprintf: Fix syntax errors in libintl build on mingw.
64326         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
64327         pad_ourselves and prec_ourselves after use.
64329 2010-05-08  Bruno Haible  <bruno@clisp.org>
64331         * lib/config.charset: Update comments for Cygwin 1.7.
64332         * lib/localcharset.c: Likewise.
64334 2010-05-07  Jim Meyering  <meyering@redhat.com>
64336         init.sh: improve comments
64337         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
64338         . "${srcdir=.}/init.sh"; path_prepend_ .
64339         Add a note about path_prepend_ and the alternative of using
64340         TESTS_ENVIRONMENT.
64342 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64344         exclude: Unescape hashed patterns in wildcard mode.
64345         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
64346         to the hash list.
64347         * tests/test-exclude8.sh: New test case.
64348         * modules/exclude-tests: Add new test.
64350 2010-05-05  Eric Blake  <eblake@redhat.com>
64352         verify: automate tests
64353         * modules/verify-tests: New module.
64354         * tests/test-verify.sh: New file.
64355         * tests/test-verify.c: Guard each negative test with a unique id.
64356         Also avoid warning about unused left hand of comma expressions.
64358 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
64360         Further improvements to verify.h, suggested by Eric Blake.
64361         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
64362         the GL_* versions, to avoid collision with OpenGL.
64363         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
64364         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
64365         than testing merely whether it's defined.
64367         Modify verify.h to pacify gcc -Wredundant_decls.
64368         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
64369         These use the prefix "GL_" since they're likely to be useful elsewhere.
64370         We may need to break them out into a different .h file.
64371         (__COUNTER__): Define to 0 if the compiler doesn't support it.
64372         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
64373         of verify_function__.
64375 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64377         Tests for module pwrite.
64378         * modules/pwrite-tests: New file.
64379         * tests/test-pwrite.sh: New file.
64380         * tests/test-pwrite.c: New file.
64382         New module pwrite.
64383         * lib/unistd.in.h (pwrite): New declaration.
64384         * lib/pwrite.c: New file, from glibc with modifications.
64385         * m4/pwrite.m4: New file.
64386         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
64387         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
64388         REPLACE_PWRITE.
64389         * modules/pwrite: New file.
64390         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
64391         REPLACE_PWRITE.
64392         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
64393         * doc/posix-functions/pwrite.texi: Mention the new module.
64395 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64397         pread: Update documentation.
64398         * doc/posix-functions/pread.texi: Mention the 'pread' module.
64400 2010-05-04  Eric Blake  <eblake@redhat.com>
64402         docs: update cygwin progress
64403         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
64404         this bug.
64405         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
64406         Added in cygwin 1.7.2.
64407         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
64408         Likewise.
64409         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
64410         Likewise.
64411         * doc/glibc-functions/dup3.texi (dup3): Likewise.
64412         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
64413         * doc/glibc-functions/accept4.texi (accept4): Likewise.
64414         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
64415         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
64416         Mention nproc module.
64417         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
64418         bug in cygwin 1.7.5 addition.
64419         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
64420         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
64421         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
64422         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
64423         1.7.5.
64424         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
64425         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
64426         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
64427         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
64428         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
64429         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
64430         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
64431         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
64432         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
64433         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
64434         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
64435         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
64436         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
64437         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
64438         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
64439         Likewise.
64440         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
64441         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
64442         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
64443         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
64444         Likewise.
64445         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
64446         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
64447         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
64448         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
64449         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
64450         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
64451         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
64452         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
64453         Likewise.
64454         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
64455         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
64456         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
64457         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
64458         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
64459         Likewise.
64460         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
64461         Likewise.
64462         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
64463         Likewise.
64464         * doc/glibc-functions/xdrrec_endofrecord.texi
64465         (xdrrec_endofrecord): Likewise.
64466         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
64467         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
64468         Likewise.
64469         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
64470         Likewise.
64472 2010-05-04  Jim Meyering  <meyering@redhat.com>
64474         gendocs.sh: make its "-s FILE" option more useful
64475         * build-aux/gendocs.sh: When honoring the -s FILE option, update
64476         $PACKAGE to reflect the probably-different basename of "FILE".
64478 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
64480         bootstrap: don't ignore download_po_files failure
64481         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
64482         failure.
64484 2010-05-03  Jim Meyering  <meyering@redhat.com>
64486         maint.mk: allow to pass options to gendocs.sh
64487         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
64488         (gendocs_options_): New overridable variable.
64490         gnu-web-doc-update: don't ignore configure or build failure
64491         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
64493         announce-gen: backslash-escape '@'s in --help output
64494         * build-aux/announce-gen: Fix syntax errors.
64496         maint.mk, announce-gen: allow project-specific announcement mail headers
64497         * top/maint.mk (translation_project_): Define default.
64498         (announcement_Cc_, announcement_mail_headers_): Likewise.
64499         (announcement): Invoke announce-gen with new --mail-headers option.
64500         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
64502         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
64503         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
64504         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
64505         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
64506         line in the "err2" output file when running "make check" in verbose
64507         mode (i.e., with set -x enabled).
64509 2010-05-03  Bruno Haible  <bruno@clisp.org>
64511         wctob: Fix for weird platforms.
64512         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
64513         argument value.
64515 2010-05-03  Jim Meyering  <meyering@redhat.com>
64517         maint.mk: prohibit unwarranted use of <strings.h>
64518         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
64519         strings.h in a file that does not also use strcasecmp, strncasecmp,
64520         ffs or ffsll.
64522         maint.mk: remove obsolete comments
64523         * top/maint.mk: Remove stale, commented-out rules.
64525 2010-05-02  Bruno Haible  <bruno@clisp.org>
64527         wcwidth: Declare also when it's aliased.
64528         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
64529         macro.
64531 2010-05-02  Bruno Haible  <bruno@clisp.org>
64533         Fix regression from 2010-04-25.
64534         * gnulib-tool (func_modules_transitive_closure): Check the status of
64535         all modules, not only of the tests that are of the form foo-tests where
64536         foo is a module.
64538 2010-05-02  Bruno Haible  <bruno@clisp.org>
64540         wctob: Work around nasty Cygwin 1.7.2 bug.
64541         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
64542         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
64544 2010-05-01  Bruno Haible  <bruno@clisp.org>
64546         fpurge: Sharper test.
64547         * tests/test-fpurge.c (main): Add one more ftell check.
64548         * modules/fpurge-tests (Depends-on): Add ftell.
64549         Suggested by Eric Blake.
64551 2010-05-01  Bruno Haible  <bruno@clisp.org>
64553         ftello: Another test.
64554         * tests/test-ftello3.c: New file.
64555         * modules/ftello-tests (Files): Add it.
64556         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
64557         MOSTLYCLEANFILES.
64559         ftell: Another test.
64560         * tests/test-ftell3.c: New file.
64561         * modules/ftell-tests (Files): Add it.
64562         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
64563         MOSTLYCLEANFILES.
64565 2010-05-01  Bruno Haible  <bruno@clisp.org>
64567         ftell, ftello: Work around Solaris bug.
64568         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
64569         * lib/ftello.c: Include stdio-impl.h.
64570         (ftello): On Solaris, when _IOWRT is set, compute the result without
64571         looking at _IOREAD.
64572         * modules/ftello (Files): Add lib/stdio-impl.h.
64573         * doc/posix-functions/ftell.texi: Mention Solaris bug.
64574         * doc/posix-functions/ftello.texi: Likewise.
64575         Reported by Eric Blake.
64577 2010-05-01  Bruno Haible  <bruno@clisp.org>
64579         freading: Adapt to special meaning of _IOREAD flag on Solaris.
64580         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
64581         the _IOWRT flag is also set.
64583 2010-05-01  Bruno Haible  <bruno@clisp.org>
64585         Fix doc about a HP-UX stdio bug.
64586         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
64587         * doc/posix-functions/ftello.texi: Likewise.
64589 2010-05-01  Bruno Haible  <bruno@clisp.org>
64591         lseek test: Fix failure on Solaris.
64592         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
64593         output.
64595 2010-04-30  Jim Meyering  <meyering@redhat.com>
64597         bootstrap: don't ignore failure to generate po*/Makevars
64598         * build-aux/bootstrap (with_gettext): Don't ignore failure
64599         to create po/Makevars or runtime-po/Makevars.
64601 2010-04-29  Eric Blake  <eblake@redhat.com>
64603         headers: relax license to LGPLv2+
64604         * modules/fcntl-h (License): Relax license.
64605         * modules/getopt-posix (License): Likewise.
64606         * modules/locale (License): Likewise.
64607         * modules/math (License): Likewise.
64608         * modules/pty (License): Likewise.
64609         * modules/sched (License): Likewise.
64610         * modules/search (License): Likewise.
64611         * modules/spawn (License): Likewise.
64612         * modules/stdarg (License): Likewise.
64613         * modules/sysexits (License): Likewise.
64615 2010-04-29  Jim Meyering  <meyering@redhat.com>
64617         inttypes: relax license to LGPLv2+
64618         * modules/inttypes (License): Relax license.
64620 2010-04-29  Simon Josefsson  <simon@josefsson.org>
64622         * top/maint.mk (indent): Run twice to produce idempotent results.
64624 2010-04-28  Bruno Haible  <bruno@clisp.org>
64626         getdate: Generate getdate.c in the source directory.
64627         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
64628         MOSTLYCLEANFILES.
64629         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
64631 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
64633         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
64634         is not declared as a const *; avoid warnings in that case.
64636 2010-04-28  Eric Blake  <eblake@redhat.com>
64638         canonicalize-lgpl: avoid compiler warning
64639         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
64640         declaration' / 'extraneous semicolon' warning with some compilers.
64641         Reported by Andreas Gruenbacher.
64643 2010-04-28  Jim Meyering  <meyering@redhat.com>
64645         init.sh: ensure a more reliable exit status when exiting via trap
64646         * tests/init.sh (setup_): Don't rely on $? in signal handler.
64647         Inspired by patches from Dmitry V. Levin.
64648         Also trap on signal 3 (SIGQUIT).
64650 2010-04-27  Bruno Haible  <bruno@clisp.org>
64652         Update doc about utimes().
64653         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
64654         'utimens' module.
64655         Reported by Andreas Gruenbacher <agruen@suse.de>.
64657 2010-04-27  Eric Blake  <eblake@redhat.com>
64659         full-read, full-write: relax license
64660         * modules/full-read (License): Drop to LGPLv2+.
64661         * modules/full-write (License): Likewise.
64662         * modules/safe-read (License): Likewise.
64663         * modules/safe-write (License): Likewise.
64665         pthread: mention library for linking
64666         * modules/pthread (Link): Mention $(LIB_PTHREAD).
64668 2010-04-27  Jim Meyering  <meyering@redhat.com>
64670         maint.mk: fix a bug introduced in last change
64671         * top/maint.mk (gl_assured_headers_): Now that all names are on
64672         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
64673         is not anchored to end of word, it should be adequate.
64675         maint.mk: avoid side-effect in latest syntax-check
64676         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
64677         to run commands via $(shell...), and hence to incur cost only when
64678         the new rule is actually run.
64680         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
64681         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
64682         and use that to create a regexp used to detect all #if HAVE_..._H uses.
64683         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
64684         (gl_assured_headers_, az_, AZ_): Define.
64685         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
64687 2010-04-26  Jim Meyering  <jim@meyering.net>
64688             Bruno Haible  <bruno@clisp.org>
64690         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
64691         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
64692         Prompted by an exchange with Gilles Espinasse.
64694 2010-04-26  Jim Meyering  <meyering@redhat.com>
64696         git-version-gen: aesthetic tweak
64697         * build-aux/git-version-gen: Use "$nl" rather than a literal,
64698         so that the command remains on a single line.
64700 2010-04-26  Eric Blake  <eblake@redhat.com>
64702         git-version-gen: allow use on EBCDIC hosts
64703         * build-aux/git-version-gen (dirty): Use literal rather than tying
64704         ourselves to ascii.
64705         Reported by Steve Goetze.
64707 2010-04-25  Bruno Haible  <bruno@clisp.org>
64709         netdb: Add support for GNULIB_POSIXCHECK.
64710         * lib/netdb.in.h: Include warn-on-use.h.
64711         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
64712         functions are used when GNULIB_POSIXCHECK is defined and the
64713         getaddrinfo module is not in use.
64714         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
64715         freeaddrinfo, gai_strerror, getnameinfo are declared.
64716         * modules/netdb (Depends-on): Add warn-on-use.
64717         (Makefile.am): Include warn-on-use.h in netdb.h.
64719 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
64721         build: avoid "make check" failure without .git/ directory
64722         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
64723         there is no .git/ directory.
64725 2010-04-25  Bruno Haible  <bruno@clisp.org>
64727         ptsname: Fix misuse of ttyname_r.
64728         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
64729         of errno.
64731 2010-04-25  Bruno Haible  <bruno@clisp.org>
64733         ttyname_r: Make it work on Solaris 10.
64734         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
64735         if the system function has the POSIX declaration. Test whether the
64736         function fails if the buffer is less than 128 bytes large.
64737         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
64738         system's ttyname_r function. Provide a reasonably large buffer.
64739         * modules/ttyname_r (Depends-on): Add extensions.
64740         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
64742 2010-04-25  Bruno Haible  <bruno@clisp.org>
64744         Use the 'extensions' module for some more functions on Solaris.
64745         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
64746         module.
64747         * doc/posix-functions/ctime_r.texi: Likewise.
64748         * doc/posix-functions/getgrgid_r.texi: Likewise.
64749         * doc/posix-functions/getgrnam_r.texi: Likewise.
64750         * doc/posix-functions/getpwnam_r.texi: Likewise.
64751         * doc/posix-functions/getpwuid_r.texi: Likewise.
64752         * doc/posix-functions/readdir_r.texi: Likewise.
64753         * doc/posix-functions/sigwait.texi: Likewise.
64754         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
64755         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
64757 2010-04-25  Bruno Haible  <bruno@clisp.org>
64759         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
64760         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
64761         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
64762         * lib/ttyname_r.c: Include <limits.h>.
64763         (ttyname_r): Define using the system's ttyname_r function, if it exists
64764         and not on Solaris.
64765         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
64766         set.
64767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
64768         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
64769         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
64770         Reported by Simon Josefsson.
64772 2010-04-25  Bruno Haible  <bruno@clisp.org>
64774         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
64775         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
64776         * doc/posix-functions/ctime_r.texi: Likewise.
64777         * doc/posix-functions/getgrgid_r.texi: Likewise.
64778         * doc/posix-functions/getgrnam_r.texi: Likewise.
64779         * doc/posix-functions/getlogin_r.texi: Likewise.
64780         * doc/posix-functions/getpwnam_r.texi: Likewise.
64781         * doc/posix-functions/getpwuid_r.texi: Likewise.
64782         * doc/posix-functions/readdir_r.texi: Likewise.
64783         * doc/posix-functions/sigwait.texi: Likewise.
64784         * doc/posix-functions/ttyname_r.texi: Likewise.
64785         Reported by Simon Josefsson.
64787 2010-04-25  Bruno Haible  <bruno@clisp.org>
64789         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
64790         * gnulib-tool (func_usage): Document that --with-*-tests options apply
64791         also to --create-testdir.
64792         (func_acceptable): Don't consider the status of *-tests modules here.
64793         (func_modules_transitive_closure): Consider it here, before including a
64794         test module.
64795         (func_import, func_create_testdir): Set inc_all_direct_tests,
64796         inc_all_indirect_tests.
64797         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
64798         --create-testdir and --create-megatestdir.
64800 2010-04-25  Bruno Haible  <bruno@clisp.org>
64802         gnulib-tool: Add --without-*-tests options.
64803         * gnulib-tool (func_usage): Document the --without-*-tests options.
64804         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
64805         excl_unportable_tests): New variables.
64806         Fail if they are specified with --import or --update.
64807         (func_acceptable): Respect the excl_*_tests variables.
64808         (func_import): Set the excl_*_tests variables to empty.
64810 2010-04-25  Simon Josefsson  <simon@josefsson.org>
64811             Bruno Haible  <bruno@clisp.org>
64813         Work around a MacOS X 10.4 bug with openpty.
64814         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
64815         * tests/test-openpty.c (main): Close the master side explicitly.
64817 2010-04-25  Bruno Haible  <bruno@clisp.org>
64819         strnlen: Fix a C++ test error on MacOS X and Solaris.
64820         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
64821         the function is not declared.
64822         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
64823         Simon Josefsson.
64825 2010-04-24  Bruno Haible  <bruno@clisp.org>
64827         Avoid a gcc warning.
64828         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
64829         of correct type for %08lx directive.
64830         Reported by Eric Blake.
64832 2010-04-24  Bruno Haible  <bruno@clisp.org>
64834         vasnprintf: Correct errno value in case of out-of-memory.
64835         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
64836         or sprintf. Use the errno value from SNPRINTF or sprintf.
64837         Reported by Ian Beckwith <ianb@erislabs.net>.
64839 2010-04-24  Bruno Haible  <bruno@clisp.org>
64841         ansi-c++-opt: Find correct compiler when cross-compiling.
64842         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
64843         AC_CHECK_PROGS.
64844         Reported by Simon Josefsson.
64846 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
64848         vc-list-files: Add support for subversion
64849         * build-aux/vc-list-files: Use "svn list" to generate the list of
64850         files controlled by subversion.
64852 2010-04-23  Jim Meyering  <meyering@redhat.com>
64854         vc-list-files tests: convert to use init.sh
64855         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
64856         path_prepend_.
64857         Use Exit, not exit.
64858         Use skip_ rather than open coding it.
64859         Remove trap set-up and compare definitions.
64860         * tests/test-vc-list-files-git.sh: Likewise.
64861         * modules/vc-list-files-tests (Files): Add tests/init.sh.
64863 2010-04-22  Simon Josefsson  <simon@josefsson.org>
64865         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
64866         backup files.
64868 2010-04-21  Simon Josefsson  <simon@josefsson.org>
64870         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
64872 2010-04-20  Eric Blake  <eblake@redhat.com>
64874         tests: be robust to ignored SIGPIPE
64875         * tests/test-select-in.sh: Consume all output.
64876         * tests/test-lseek.sh: Check correct exit status, while avoiding
64877         EPIPE.
64879 2010-04-20  Simon Josefsson  <simon@josefsson.org>
64880             Bruno Haible  <bruno@clisp.org>
64882         visibility: Don't use -fvisibility if it leads to a warning.
64883         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
64884         yes, don't pretend that visibility works if it leads to a warning.
64885         Reported by Mike Gran <spk121@yahoo.com>.
64887 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
64889         * build-aux/bootstrap: Use "git -h" for testing for supported options
64890         instead of "git --help".  The short-form option only shows a summary,
64891         and doesn't layout the full man page.  Grep for the full option name
64892         in the summary, too.
64894 2010-04-19  Bruno Haible  <bruno@clisp.org>
64896         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
64897         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
64898         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
64899         mention of RELOCATABLE_STRIP.
64900         Reported by Sylvain Beucler <beuc@beuc.net>.
64902 2010-04-19  Bruno Haible  <bruno@clisp.org>
64904         * lib/diffseq.h: Fix typo in comment.
64905         Reported by Eric Blake.
64907 2010-04-19  Bruno Haible  <bruno@clisp.org>
64909         ioctl: Move autoconf macro to a .m4 file.
64910         * m4/ioctl.m4: New file, extracted from modules/ioctl.
64911         * modules/ioctl (Files): Add it.
64912         (configure.ac): Simply invoke gl_FUNC_IOCTL.
64913         Reported by Ian Beckwith <ianb@erislabs.net>.
64915 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
64916             Bruno Haible  <bruno@clisp.org>
64918         diffseq: Accommodate use-case with abstract arrays.
64919         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
64920         is not defined.
64921         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
64922         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
64924 2010-04-18  Bruno Haible  <bruno@clisp.org>
64926         * doc/posix-headers/stdbool.texi: More precise wording.
64928 2010-04-17  Jim Meyering  <meyering@redhat.com>
64930         maint.mk: use gnu-style indentation in an embedded perl script
64931         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
64932         Rename variable: s/two/last_two_bytes/
64934 2010-04-16  Eric Blake  <eblake@redhat.com>
64936         test-stdbool: skip test that fails with Solaris CC
64937         * tests/test-stdbool.c (f): Skip test that causes compilation
64938         error under buggy C++ compiler.
64939         * lib/stdbool.in.h: Document the limitation.
64940         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
64942         setenv: allow compilation with C++
64943         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
64944         register keyword.
64946         stdint: allow test to pass with C++
64947         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
64949         getopt: allow compilation with C++
64950         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
64951         struct.
64952         * lib/getopt.c (_getopt_internal_r): Use correct type.
64953         Reported by Dagobert Michelson, via Joel E. Denny.
64955 2010-04-16  Bruno Haible  <bruno@clisp.org>
64957         Override netdb.h always.
64958         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
64959         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
64960         Reported by Ludovic Courtès <ludo@gnu.org>.
64962 2010-04-15  Bruno Haible  <bruno@clisp.org>
64964         openpty: Fix mistake from 2010-03-21.
64965         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
64966         Reported by Simon Josefsson.
64968 2010-04-15  Eric Blake  <eblake@redhat.com>
64970         test-forkpty: fix expected signature
64971         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
64972         Reported by Simon Josefsson.
64974 2010-04-15  Jim Meyering  <meyering@redhat.com>
64976         maint.mk: texinfo_suffix_re_: correct the default regexp
64977         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
64979         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
64980         make it configurable via texinfo_suffix_re_.
64982 2010-04-14  Eric Blake  <eblake@redhat.com>
64984         strtok_r: relax license to LGPLv2+
64985         * modules/strtok_r (License): Relax license.
64986         Reported by Matthias Bolte.
64988 2010-04-14  Simon Josefsson  <simon@josefsson.org>
64990         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
64991         version 1.4.4 by default instead of requiring the libgcrypt
64992         version used during build.  This makes it possible to use the
64993         application with older but still binary compatible libgcrypt
64994         versions.
64996 2010-04-13  Eric Blake  <eblake@redhat.com>
64998         getopt-gnu: match recent glibc fixes and posix ruling
64999         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
65000         '+' handling, when requesting extensions.
65001         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
65002         'W;' handling.
65003         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
65004         * doc/posix-functions/getopt.texi (getopt): Document this.
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: merge bug fixes from glibc
65010         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
65011         diagnostics.  Honor '+:' correctly.  Reject ';'.
65013         getopt-posix: detect MacOS bug
65014         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
65015         optind when missing a required argument.
65016         * doc/posix-functions/getopt.texi (getopt): Document the bug.
65017         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
65018         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65019         Likewise.
65021         getopt-posix: avoid spurious failure on Solaris
65022         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
65023         an indicator that setting optind=1 is sufficient for reset.
65025         getopt-posix: avoid spurious failure on FreeBSD
65026         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
65027         in POSIX mode, since the m4 test uses it.
65029         gnulib-tool: silence warning on BSD sh
65030         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
65032 2010-04-13  Jim Meyering  <meyering@redhat.com>
65034         doc: users.txt: GNU patch now uses gnulib
65035         * users.txt: Add patch.
65037 2010-04-12  Jim Meyering  <meyering@redhat.com>
65039         maint.mk: generate more concise timing data for syntax-check rules
65040         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
65041         " done" from each line that reports a syntax-check test duration.
65043 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
65045         git-version-gen: use "git update-index..." rather than "git status"
65046         * build-aux/git-version-gen: Use git update-index --refresh, not
65047         "git status".  With some versions of git, "git status" would fail
65048         to update the index and result in an unwarranted "-dirty" suffix.
65050 2010-04-11  Jim Meyering  <meyering@redhat.com>
65052         openat: correct formatting (no semantic change)
65053         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
65054         Suggested by Bruno Haible.
65056 2010-04-11  Bruno Haible  <bruno@clisp.org>
65058         Stricter declaration checking in testdirs.
65059         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65060         If for_tests is true, augment AM_CPPFLAGS to define
65061         GNULIB_STRICT_CHECKING.
65062         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
65063         GNULIB_STRICT_CHECKING is defined, verify that the function is
65064         declared.
65066 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
65067             Bruno Haible  <bruno@clisp.org>
65069         libunistring: Improve configure output.
65070         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
65071         Don't say "consider installing GNU libunistring" when checking again
65072         with libiconv.
65074 2010-04-11  Bruno Haible  <bruno@clisp.org>
65076         libunistring: Correct value of $LTLIBUNISTRING.
65077         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
65078         correct the value of $LTLIBUNISTRING.
65080 2010-04-11  Bruno Haible  <bruno@clisp.org>
65082         havelib: Add static libraries to LIBS in the right order.
65083         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
65084         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
65086 2010-04-11  Bruno Haible  <bruno@clisp.org>
65088         libunistring: Detect libunistring also when it depends on libiconv.
65089         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
65090         the second AC_LIB_HAVE_LINKFLAGS invocation.
65092 2010-04-11  James Youngman  <jay@gnu.org>
65094         close-stream: declare local scalars to be "const"
65095         * lib/close-stream.c (close_stream): Make boolean variables const
65096         to document the fact that we set but do not change them.
65098 2010-04-11  Bruno Haible  <bruno@clisp.org>
65100         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
65102 2010-04-11  Jim Meyering  <meyering@redhat.com>
65104         maint.mk: don't include dist-check.mk
65105         * top/maint.mk: Remove bogus include directive.
65107         maint.mk: improve empty-line-at-EOF check
65108         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
65109         solution, rather than tail+Perl-based one.  The latter would read
65110         a few kilobytes from the end of each file, and did not handle empty
65111         files properly.
65113         maint.mk: print the elapsed time for each syntax-check rule
65114         * top/maint.mk (sc_m_rules_): Save start time in a file.
65115         (sc_z_rules_): New rules: remove temp file and print elapsed time.
65116         (local-check): Interpose the .z rules
65118 2010-04-11  Jim Meyering  <meyering@redhat.com>
65120         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
65121         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
65122         empty file with one that ends in an empty line.
65124 2010-04-10  Bruno Haible  <bruno@clisp.org>
65126         mkdir: Make it work on mingw64.
65127         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
65128         * lib/mkdir.c: Update comment.
65129         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
65131 2010-04-10  Bruno Haible  <bruno@clisp.org>
65133         Don't override improved macro from newer autoconf.
65134         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
65135         autoconf >= 2.62.
65136         Reported by Joel E. Denny <jdenny@clemson.edu>.
65138 2010-04-10  Jim Meyering  <meyering@redhat.com>
65140         maint.mk: new syntax-check rule: prohibit empty lines at end of file
65141         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
65143         maint.mk: correct a diagnostic
65144         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
65145         in diagnostic; now use $prohibit.
65147 2010-04-10  Bruno Haible  <address@hidden>
65149         fchownat: Fix a C++ test error on Solaris 8.
65150         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
65151         the function does not exist.
65153 2010-04-10  Bruno Haible  <bruno@clisp.org>
65155         vasnprintf: Add more tests.
65156         * tests/test-vasnprintf-posix.c: Include <errno.h>.
65157         (test_function): Test converting an invalid wide string.
65159         vasnprintf: Correct handling of unconvertible wide string arguments.
65160         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
65161         VASNPRINTF.
65162         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
65163         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
65164         smaller than the expected maximum need for the directive. Set errno to
65165         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
65166         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
65167         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
65168         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
65169         * modules/vasnprintf (Files): Add m4/printf.m4.
65170         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65172 2010-04-10  Bruno Haible  <bruno@clisp.org>
65174         vasnprintf: Fix crash in %ls directive.
65175         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
65176         string is passed as argument to %ls, with no precision and no width.
65177         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65179 2010-04-10  Bruno Haible  <bruno@clisp.org>
65181         vasnprintf: Fix multiple test failures on mingw.
65182         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
65183         _snprintf, or snwprintf, not _snwprintf.
65185 2010-04-10  Bruno Haible  <bruno@clisp.org>
65187         write: Fix a C++ test error on mingw.
65188         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
65190 2010-04-10  Bruno Haible  <bruno@clisp.org>
65192         vasnprintf test: Reduce code duplication.
65193         * tests/test-vasnprintf.c (test_function): New function, extracted from
65194         test_vasnprintf.
65195         (test_vasnprintf, test_asnprintf): Invoke it.
65197 2010-04-10  Bruno Haible  <bruno@clisp.org>
65199         strnlen: Fix warning in C++ mode on MacOS X.
65200         * lib/string.in.h (strnlen): Use the modern idiom.
65201         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
65202         defining strnlen as a macro already in <config.h>.
65203         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65204         REPLACE_STRNLEN.
65205         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
65206         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65208 2010-04-08  James Youngman  <jay@gnu.org>
65210         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
65211         the example.
65213 2010-04-09  Jim Meyering  <meyering@redhat.com>
65215         maint.mk: print better diagnostic when there is no $(_hv_file)
65216         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
65217         announce that when $(_hv_file) (aka help-version) does not exist.
65219         init.sh: run tr in the "C" locale to avoid multibyte interpretation
65220         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
65221         not try to interpret its random input bytes.  Jarno Rajahalme reported
65222         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
65223         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
65224         (mktempd_): Likewise, just in case.
65226         ftruncate: add two years to projected module removal date: 2012
65227         * m4/ftruncate.m4: Adjust comments.
65229         ftruncate: mark module as obsolete; even MinGW provides it, now
65230         * modules/ftruncate (Status): Obsolete.
65231         (Notice): Say that.
65232         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
65233         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
65235 2010-04-08  Bruno Haible  <bruno@clisp.org>
65237         Fix side effects from tests-related modules.
65238         * modules/dprintf-posix (Comment): New section.
65239         * modules/fprintf-posix (Comment): Likewise.
65240         * modules/obstack-printf-posix (Comment): Likewise.
65241         * modules/printf-posix (Comment): Likewise.
65242         * modules/snprintf-posix (Comment): Likewise.
65243         * modules/sprintf-posix (Comment): Likewise.
65244         * modules/vasnprintf-posix (Comment): Likewise.
65245         * modules/vasprintf-posix (Comment): Likewise.
65246         * modules/vdprintf-posix (Comment): Likewise.
65247         * modules/vfprintf-posix (Comment): Likewise.
65248         * modules/vprintf-posix (Comment): Likewise.
65249         * modules/vsnprintf-posix (Comment): Likewise.
65250         * modules/vsprintf-posix (Comment): Likewise.
65251         * modules/xprintf-posix (Comment): Likewise.
65252         * modules/xvasprintf-posix (Comment): Likewise.
65253         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
65254         * modules/floorf-tests (Depends-on): Likewise.
65255         * modules/round-tests (Depends-on): Likewise.
65256         * modules/roundf-tests (Depends-on): Likewise.
65257         * modules/trunc-tests (Depends-on): Likewise.
65258         * modules/truncf-tests (Depends-on): Likewise.
65259         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
65260         'fprintf-posix' module is not present.
65261         * tests/test-floorf2.c (check): Likewise.
65262         * tests/test-trunc2.c (check): Likewise.
65263         * tests/test-truncf2.c (check): Likewise.
65264         * tests/test-round2.c (equal): Likewise.
65265         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65267 2010-04-07  Karl Berry  <karl@gnu.org>
65269         * config/srclist.txt,
65270         * config/srclistvars.sh,
65271         * config/srclist-update: doc fixes.
65273 2010-04-07  Jim Meyering  <meyering@redhat.com>
65275         maint.mk: add a PATH crosschecking syntax-check rule
65276         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
65277         Useful if you use a test like the one in help-version (coreutils,
65278         diffutils, grep, gzip) that ensures $(VERSION) matches what is
65279         printed by prog --version.
65281 2010-04-06  Bruno Haible  <bruno@clisp.org>
65283         Fix link error on mingw.
65284         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
65285         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
65287 2010-04-06  Bruno Haible  <bruno@clisp.org>
65289         Assume rmdir exists.
65290         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
65292 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
65294         doc: update users.txt
65295         * users.txt: Add gcal.
65297 2010-04-06  Jim Meyering  <meyering@redhat.com>
65299         init.sh: simply unset TMPDIR rather than risking env -i
65300         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
65301         although it probably works fine on all Unix-based systems, some
65302         systems (Cygwin?) cannot tolerate a totally cleared environment.
65303         Suggestion from Eric Blake.
65305 2010-04-06  Jim Meyering  <meyering@redhat.com>
65307         init.sh: portability fix: use env's POSIX-specified -i option not -u
65308         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
65309         than unportable env -u.  Solaris 5.11's env lacks support for -u.
65311 2010-04-05  Bruno Haible  <bruno@clisp.org>
65313         btowc: Work around Cygwin 1.7.2 bug.
65314         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
65315         does not map NUL to 0.
65316         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
65318 2010-04-05  Bruno Haible  <bruno@clisp.org>
65320         Make the multithread modules work on Cygwin 1.7.2.
65321         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
65322         imported symbols can be declared weak, so that it returns "no" on
65323         Cygwin 1.7.2.
65325 2010-04-05  Bruno Haible  <bruno@clisp.org>
65327         Use the module 'strncat'.
65328         * modules/unistr/u8-strncat (Depends-on): Add strncat.
65330         Tests for module 'strncat'.
65331         * modules/strncat-tests: New file.
65332         * tests/test-strncat.c: New file.
65334         New module 'strncat'.
65335         * lib/string.in.h (strncat): New declaration.
65336         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
65337         * m4/strncat.m4: New file, based on m4/memchr.m4.
65338         * modules/strncat: New file.
65339         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
65340         is declared.
65341         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
65342         REPLACE_STRNCAT.
65343         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
65344         REPLACE_STRNCAT.
65345         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
65346         module.
65347         * tests/test-string-c++.cc: Check signature of strncat.
65349 2010-04-05  Jim Meyering  <meyering@redhat.com>
65351         xstrtoumax-tests: convert to use init.sh
65352         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
65353         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65354         Use Exit, not exit.
65355         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65357         xstrtoimax-tests: convert to use init.sh
65358         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
65359         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65360         Use Exit, not exit.
65361         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65363 2010-04-05  Bruno Haible  <bruno@clisp.org>
65365         sys_socket: Avoid #define replacements in C++ mode.
65366         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
65367         warning to the function if possible, rather than #defining the symbol
65368         to a dysfunctional alias.
65370 2010-04-05  Bruno Haible  <bruno@clisp.org>
65372         fseeko: Fix C++ test error on mingw.
65373         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
65374         gl_FUNC_FSEEKO.
65375         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
65376         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
65377         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
65378         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
65380 2010-04-05  Bruno Haible  <bruno@clisp.org>
65382         duplocale: Improve test output.
65383         * tests/test-duplocale.c (main): Print reason for skipped test.
65385 2010-04-05  Bruno Haible  <bruno@clisp.org>
65387         Assume rmdir exists.
65388         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
65389         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
65391 2010-04-05  Bruno Haible  <bruno@clisp.org>
65393         Fix link error on Solaris 8 with cc.
65394         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
65396 2010-04-05  Bruno Haible  <bruno@clisp.org>
65398         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
65399         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
65401 2010-04-05  Bruno Haible  <bruno@clisp.org>
65403         vasprintf: Update documentation.
65404         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
65406 2010-04-05  Bruno Haible  <bruno@clisp.org>
65408         ptsname: Improve test.
65409         * tests/test-ptsname.c (main): Also try the various master names of BSD
65410         systems.
65412 2010-04-05  Bruno Haible  <bruno@clisp.org>
65414         memchr: Avoid a possible C++ test error.
65415         * lib/string.in.h (memchr): Provide declaration if function is missing.
65416         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
65417         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
65418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
65419         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
65421 2010-04-05  Bruno Haible  <bruno@clisp.org>
65423         strtok_r: Improve idiom.
65424         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
65425         AC_LIBOBJ is used.
65427 2010-04-05  Bruno Haible  <bruno@clisp.org>
65429         strdup: Improve idiom.
65430         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
65431         AC_LIBOBJ is used.
65432         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
65433         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
65434         when AC_LIBOBJ is used.
65436 2010-04-05  Bruno Haible  <bruno@clisp.org>
65438         mbsinit, mbrtowc, wcrtomb: Improve idioms.
65439         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
65440         don't set REPLACE_MBSINIT to 1.
65441         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
65442         don't set REPLACE_MBRTOWC to 1.
65443         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
65444         exist, don't set REPLACE_MBSRTOWCS to 1.
65445         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
65446         exist, don't set REPLACE_MBSNRTOWCS to 1.
65447         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
65448         don't set REPLACE_WCRTOMB to 1.
65449         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
65450         exist, don't set REPLACE_WCSRTOMBS to 1.
65451         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
65452         exist, don't set REPLACE_WCSNRTOMBS to 1.
65454 2010-04-05  Bruno Haible  <bruno@clisp.org>
65456         ldexpl: Improve idiom.
65457         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
65458         make sure to set HAVE_DECL_LDEXPL to 0.
65460 2010-04-05  Jim Meyering  <meyering@redhat.com>
65462         xstrtol-tests: convert to use init.sh
65463         * modules/xstrtol-tests (Files): Add tests/init.sh.
65464         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65465         Use Exit, not exit.
65466         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65468         atexit-tests: convert to use init.sh
65469         * modules/atexit-tests (Files): Add tests/init.sh.
65470         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65471         Use Exit, not exit.
65472         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65474         init.sh: fix typo
65475         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
65477         init.sh: make it easier for a test script to write to the tty, ...
65478         when using automake's parallel-tests mode.
65479         * tests/init.sh (stderr_fileno_): Define overridable variable.
65480         (warn_): New function, to use it.
65481         (fail_, skip_, framework_failure_): Use warn_.
65483 2010-04-04  Bruno Haible  <bruno@clisp.org>
65485         btowc: Avoid warning.
65486         * lib/btowc.c: Include <stdlib.h>.
65487         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
65489 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
65490             Bruno Haible  <bruno@clisp.org>
65492         wchar: Port to NetBSD 1.5.
65493         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
65494         * lib/wctype.in.h (WEOF): Likewise.
65496 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
65497             Bruno Haible  <bruno@clisp.org>
65499         Port extended stdio to NetBSD 1.5.
65500         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
65501         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
65502         older.
65504 2010-04-04  Bruno Haible  <bruno@clisp.org>
65506         string: Remove unused substitution.
65507         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65508         HAVE_DECL_STRERROR.
65509         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
65511 2010-04-04  Bruno Haible  <bruno@clisp.org>
65513         strtod: Avoid a possible C++ test error.
65514         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
65515         set REPLACE_STRTOD.
65517 2010-04-04  Bruno Haible  <bruno@clisp.org>
65519         strerror: Update documentation.
65520         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
65522 2010-04-04  Bruno Haible  <bruno@clisp.org>
65524         stdio: Fix some C++ test errors on Solaris 8 with GCC.
65525         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
65526         _GL_CXXALIAS_SYS_CAST.
65528 2010-04-04  Bruno Haible  <bruno@clisp.org>
65530         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
65531         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
65532         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
65533         REPLACE_FREXPL to 1.
65534         * doc/posix-functions/frexpl.texi: Update documentation.
65536 2010-04-04  Bruno Haible  <bruno@clisp.org>
65538         math: Fix some C++ test errors on Solaris 8 and Cygwin.
65539         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
65541 2010-04-04  Bruno Haible  <bruno@clisp.org>
65543         Implement nanosleep for native Windows.
65544         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
65546 2010-04-04  Bruno Haible  <bruno@clisp.org>
65548         math: Fix some C++ test errors on Solaris 8.
65549         * lib/math.in.h (truncf, trunc): Use simpler idiom.
65551 2010-04-04  Bruno Haible  <bruno@clisp.org>
65553         math: Fix some C++ test errors on Cygwin.
65554         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
65555         truncl): Provide declaration if the system does not have it.
65556         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
65557         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
65558         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
65559         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
65560         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
65561         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
65562         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
65563         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
65564         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
65565         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
65566         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
65567         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
65568         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
65569         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
65570         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
65571         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
65572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
65573         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
65574         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
65575         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
65576         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
65577         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
65579 2010-04-04  Bruno Haible  <bruno@clisp.org>
65581         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
65582         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
65583         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
65584         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65585         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
65586         * m4/isinf.m4 (gl_ISINF): Likewise.
65587         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65589 2010-04-04  Bruno Haible  <bruno@clisp.org>
65591         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
65592         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
65594 2010-04-04  Bruno Haible  <bruno@clisp.org>
65596         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
65597         * modules/tmpfile (configure.ac): Update.
65599         tmpfile: Fix C++ test error on mingw.
65600         * lib/stdio.in.h (tmpfile): New declaration.
65601         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
65602         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
65603         * modules/tmpfile (Depends-on): Add stdio.
65604         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65605         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
65606         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
65607         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
65608         REPLACE_TMPFILE.
65609         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
65611 2010-04-04  Bruno Haible  <bruno@clisp.org>
65613         ioctl: Fix C++ test error on mingw.
65614         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
65615         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
65616         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
65618 2010-04-03  Bruno Haible  <bruno@clisp.org>
65620         wcwidth: Fix C++ test error on mingw.
65621         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
65622         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
65623         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
65625 2010-04-03  Bruno Haible  <bruno@clisp.org>
65627         nanosleep: Fix C++ test error on mingw.
65628         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
65629         * lib/time.in.h (nanosleep): Use modern idiom.
65630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
65631         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
65632         REPLACE_NANOSLEEP to 1.
65633         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
65634         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
65636 2010-04-03  Bruno Haible  <bruno@clisp.org>
65638         strptime: Fix C++ test error on mingw.
65639         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
65640         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
65641         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
65642         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
65643         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
65644         not REPLACE_STRPTIME.
65645         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
65646         REPLACE_STRPTIME.
65648 2010-04-03  Bruno Haible  <bruno@clisp.org>
65650         timegm: Fix C++ test error on mingw.
65651         * lib/time.in.h (timegm): Use modern idiom.
65652         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
65653         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
65654         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
65655         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
65657 2010-04-03  Bruno Haible  <bruno@clisp.org>
65659         timegm: Assume declaration if function exists.
65660         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
65661         if it exists. Don't clobber ac_cv_func_timegm.
65663 2010-04-03  Bruno Haible  <bruno@clisp.org>
65665         time_r: Fix C++ test error on mingw.
65666         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
65667         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
65668         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
65669         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
65670         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
65672 2010-04-03  Bruno Haible  <bruno@clisp.org>
65674         time_r: Minor updates.
65675         * modules/time_r (Description): Mention the provided functions.
65676         * lib/time_r.c: Don't include <string.h>.
65677         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
65678         * doc/posix-functions/localtime_r.texi: Likewise.
65680 2010-04-03  Bruno Haible  <bruno@clisp.org>
65682         time: Fix regression introduced on 2010-03-08.
65683         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
65684         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
65686 2010-04-03  Jim Meyering  <meyering@redhat.com>
65688         maint.mk: don't silently disable project-specific syntax-check rules
65689         * top/maint.mk (_prohibit_regexp): Define, to help people realize
65690         that they need to convert their project-specific syntax-check rules
65691         to use the new _sc_search_regexp.
65693 2010-04-03  Bruno Haible  <bruno@clisp.org>
65695         fchdir: Fix regression introduced on 2010-03-08.
65696         * lib/unistd.in.h (fchdir): Fix declaration.
65697         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
65698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
65699         REPLACE_FCHDIR.
65700         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
65701         REPLACE_FCHDIR.
65703 2010-04-03  Bruno Haible  <bruno@clisp.org>
65705         getpagesize: Fix C++ test error on mingw.
65706         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
65707         system does not declare the function.
65708         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
65709         declared.
65710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65711         HAVE_DECL_GETPAGESIZE.
65712         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
65714 2010-04-03  Bruno Haible  <bruno@clisp.org>
65716         stdio: Make C++ tests work on mingw.
65717         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
65718         does not declare the function.
65720 2010-04-03  Bruno Haible  <bruno@clisp.org>
65722         ftello: Fix C++ test error on mingw.
65723         * lib/stdio.in.h (ftello): Use modern idiom.
65724         * lib/ftello.c (ftello): Renamed from rpl_ftello.
65725         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
65726         is missing and that it needs to be replaced.
65727         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
65728         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
65729         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
65731 2010-04-03  Bruno Haible  <bruno@clisp.org>
65733         fseeko: Fix C++ test error on mingw.
65734         * lib/stdio.in.h (fseeko): Use modern idiom.
65735         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
65736         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
65737         is missing and that it needs to be replaced.
65738         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
65739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
65740         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
65742 2010-04-03  Bruno Haible  <bruno@clisp.org>
65744         mkstemp: Fix C++ test error on mingw.
65745         * lib/stdlib.in.h (mkstemp): Use modern idiom.
65746         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
65747         function is missing and that it needs to be replaced.
65748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
65749         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
65751 2010-04-03  Bruno Haible  <bruno@clisp.org>
65753         stpncpy: Fix C++ test error on mingw.
65754         * lib/string.in.h (stpncpy): Use modern idiom.
65755         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
65756         function is missing and that it needs to be replaced.
65757         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65758         REPLACE_STPNCPY.
65759         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
65761 2010-04-03  Bruno Haible  <bruno@clisp.org>
65763         sys_stat: Fix C++ test error on mingw.
65764         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
65765         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
65767 2010-04-03  Bruno Haible  <bruno@clisp.org>
65769         pty: Update doc.
65770         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
65772 2010-04-03  Bruno Haible  <bruno@clisp.org>
65774         unistd: Fix C++ test error on mingw.
65775         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
65777 2010-04-03  Bruno Haible  <bruno@clisp.org>
65779         Update doc regarding mingw.
65780         * doc/glibc-functions/openpty.texi: Update regarding mingw.
65781         * doc/glibc-functions/login_tty.texi: Likewise.
65782         * doc/glibc-functions/forkpty.texi: Likewise.
65784 2010-04-03  Bruno Haible  <bruno@clisp.org>
65786         stdlib: Avoid compilation failure of c-strtold on mingw.
65787         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
65789 2010-04-03  Bruno Haible  <bruno@clisp.org>
65791         locale: Make C++ tests work on Cygwin and mingw.
65792         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
65793         cannot provide the function.
65794         Reported by Simon Josefsson.
65796 2010-04-03  Bruno Haible  <bruno@clisp.org>
65798         localename: Port to MacOS X 10.6.
65799         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
65800         memory layout of the locales in MacOS X 10.6 as well.
65801         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
65803 2010-04-02  Bruno Haible  <bruno@clisp.org>
65805         gnulib-tool: Ensure that long-running tests are executed last.
65806         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
65807         running tests after the one for the other tests.
65809 2010-04-02  Bruno Haible  <bruno@clisp.org>
65811         gnulib-tool: Ensure the tests in the main directory are executed first.
65812         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
65813         start with the current directory.
65815 2010-04-02  Bruno Haible  <bruno@clisp.org>
65817         Tests for module 'havelib', moved here from GNU gettext.
65818         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
65819         modifications.
65820         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
65821         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
65822         with modifications.
65823         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
65824         modifications.
65825         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
65826         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
65827         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
65828         with modifications.
65829         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
65830         with modifications.
65831         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
65832         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
65833         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
65834         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
65835         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
65836         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
65837         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
65838         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
65839         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
65840         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
65841         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
65842         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
65843         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
65844         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
65845         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
65846         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
65847         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
65848         with modifications.
65849         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
65850         with modifications.
65851         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
65852         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
65853         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
65854         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
65855         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
65856         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
65857         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
65858         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
65859         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
65860         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
65861         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
65862         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
65863         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
65864         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
65865         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
65866         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
65867         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
65868         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
65869         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
65870         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
65871         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
65872         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
65873         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
65874         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
65875         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
65876         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
65877         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
65878         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
65879         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
65880         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
65881         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
65882         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
65883         * tests/havelib/rpathx/rpathx.c: New file, from
65884         gettext/autoconf-lib-link.
65885         * tests/havelib/rpathx/Makefile.am: New file, from
65886         gettext/autoconf-lib-link.
65887         * tests/havelib/rpathx/configure.ac: New file, from
65888         gettext/autoconf-lib-link with modifications.
65889         * tests/havelib/rpathy/rpathy.c: New file, from
65890         gettext/autoconf-lib-link.
65891         * tests/havelib/rpathy/Makefile.am: New file, from
65892         gettext/autoconf-lib-link.
65893         * tests/havelib/rpathy/configure.ac: New file, from
65894         gettext/autoconf-lib-link with modifications.
65895         * tests/havelib/rpathz/rpathz.c: New file, from
65896         gettext/autoconf-lib-link.
65897         * tests/havelib/rpathz/Makefile.am: New file, from
65898         gettext/autoconf-lib-link.
65899         * tests/havelib/rpathz/configure.ac: New file, from
65900         gettext/autoconf-lib-link with modifications.
65901         * tests/havelib/rpathlx/usex.c: New file, from
65902         gettext/autoconf-lib-link.
65903         * tests/havelib/rpathlx/Makefile.am: New file, from
65904         gettext/autoconf-lib-link.
65905         * tests/havelib/rpathlx/configure.ac: New file, from
65906         gettext/autoconf-lib-link with modifications.
65907         * tests/havelib/rpathly/usey.c: New file, from
65908         gettext/autoconf-lib-link.
65909         * tests/havelib/rpathly/Makefile.am: New file, from
65910         gettext/autoconf-lib-link.
65911         * tests/havelib/rpathly/configure.ac: New file, from
65912         gettext/autoconf-lib-link with modifications.
65913         * tests/havelib/rpathlz/usez.c: New file, from
65914         gettext/autoconf-lib-link.
65915         * tests/havelib/rpathlz/Makefile.am: New file, from
65916         gettext/autoconf-lib-link.
65917         * tests/havelib/rpathlz/configure.ac: New file, from
65918         gettext/autoconf-lib-link with modifications.
65919         * tests/havelib/rpathlyx/usey.c: New file, from
65920         gettext/autoconf-lib-link.
65921         * tests/havelib/rpathlyx/Makefile.am: New file, from
65922         gettext/autoconf-lib-link.
65923         * tests/havelib/rpathlyx/configure.ac: New file, from
65924         gettext/autoconf-lib-link with modifications.
65925         * tests/havelib/rpathlzyx/usez.c: New file, from
65926         gettext/autoconf-lib-link.
65927         * tests/havelib/rpathlzyx/Makefile.am: New file, from
65928         gettext/autoconf-lib-link.
65929         * tests/havelib/rpathlzyx/configure.ac: New file, from
65930         gettext/autoconf-lib-link with modifications.
65931         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
65932         with modifications.
65934 2010-04-02  Bruno Haible  <bruno@clisp.org>
65936         gnulib-tool: Create distributed built sources also for the tests.
65937         * gnulib-tool (func_create_testdir): Also generate distributed built
65938         sources in the tests directory.
65940 2010-04-02  Bruno Haible  <bruno@clisp.org>
65942         gnulib-tool: Obey user's environment variables.
65943         * gnulib-tool (func_create_testdir): When creating built sources,
65944         respect the environment variables for autoconf, automake, etc. given by
65945         the user.
65947 2010-04-02  Bruno Haible  <bruno@clisp.org>
65949         gnulib-tool: Provide the value of --m4-base to modules.
65950         * gnulib-tool (func_import, func_create_testdir): Emit a definition
65951         of gl_m4_base.
65953 2010-04-02  Eric Blake  <eblake@redhat.com>
65955         maint.mk: fix some fallout
65956         * NEWS: Document the incompatible change, and its effect on cfg.mk.
65957         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
65959 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
65961         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
65962         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
65963         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
65964         (sc_cast_of_x_alloc_return_value): Likewise.
65965         (sc_cast_of_alloca_return_value): Likewise.
65966         (sc_space_tab): Likewise.
65967         (sc_prohibit_atoi_atof): Likewise.
65968         (sc_prohibit_magic_number_exit): Likewise.
65969         (sc_error_exit_success): Likewise.
65970         (sc_file_system): Likewise.
65971         (sc_prohibit_have_config_h): Likewise.
65972         (sc_require_config_h): Likewise.
65973         (sc_prohibit_HAVE_MBRTOWC): Likewise.
65974         (sc_obsolete_symbols): Likewise.
65975         (sc_changelog): Likewise.
65976         (sc_program_name): Likewise.
65977         (sc_the_the): Likewise.
65978         (sc_trailing_blank): Likewise.
65979         (sc_two_space_separator_in_usage): Likewise.
65980         (sc_useless_cpp_parens): Likewise.
65981         (sc_GPL_version): Likewise.
65982         (sc_GFDL_version): Likewise.
65983         (sc_texinfo_acronym): Likewise.
65984         (sc_prohibit_cvs_keyword): Likewise.
65985         (sc_prohibit_stat_st_blocks): Likewise.
65986         (sc_prohibit_S_IS_definition): Likewise.
65987         (sc_redundant_const): Likewise.
65988         (sc_makefile_TAB_only_indentation): Likewise.
65989         (sc_m4_quote_check): Likewise.
65990         (sc_makefile_path_separator_check): Likewise.
65991         (sc_copyright_check): Likewise.
65992         (sc_Wundef_boolean): Likewise.
65993         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
65995         maint.mk: match 0 or more whitespace-before-function-call '('
65996         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
65997         that have zero or two-and-more spaces between the function name
65998         and the open parenthesis.
65999         (sc_error_message_warn_fatal): Likewise.
66000         (sc_error_message_uppercase): Likewise.
66001         (sc_error_message_period): Likewise.
66003 2010-03-31  Eric Blake  <eblake@redhat.com>
66005         maint.mk: check for [ as well as test
66006         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
66007         Based on a libvirt report by Matthias Bolte.
66009         gnumakefile: don't squelch _version output
66010         * top/GNUmakefile (_version): Create one-shot dependency rather
66011         than using $(shell) when version must be regenerated.
66012         (_autoreconf): Run verbosely, by default.
66014         sys_time: avoid compiler warnings
66015         * lib/sys_time.in.h (includes): Ensure gcc pragma is
66016         unconditional, fixing regression from 2010-03-29.
66017         Reported by Simon Josefsson.
66019 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
66021         maint.mk: s/_header_without_use/_sc_header_without_use/
66022         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
66023         (sc_prohibit_assert_without_use): Use the new name.
66024         (sc_prohibit_close_stream_without_use): Likewise.
66025         (sc_prohibit_getopt_without_use): Likewise.
66026         (sc_prohibit_quotearg_without_use): Likewise.
66027         (sc_prohibit_quote_without_use): Likewise.
66028         (sc_prohibit_long_options_without_use): Likewise.
66029         (sc_prohibit_inttostr_without_use): Likewise.
66030         (sc_prohibit_ignore_value_without_use): Likewise.
66031         (sc_prohibit_error_without_use): Likewise.
66032         (sc_prohibit_xalloc_without_use): Likewise.
66033         (sc_prohibit_hash_without_use): Likewise.
66034         (sc_prohibit_hash_pjw_without_use): Likewise.
66035         (sc_prohibit_safe_read_without_use): Likewise.
66036         (sc_prohibit_argmatch_without_use): Likewise.
66037         (sc_prohibit_canonicalize_without_use): Likewise.
66038         (sc_prohibit_root_dev_ino_without_use): Likewise.
66039         (sc_prohibit_openat_without_use): Likewise.
66040         (sc_prohibit_c_ctype_without_use): Likewise.
66041         (sc_prohibit_signal_without_use): Likewise.
66042         (sc_prohibit_intprops_without_use): Likewise.
66044 2010-03-30  Eric Blake  <eblake@redhat.com>
66046         maint: improve module indicators
66047         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
66048         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
66049         columns, and avoid extra macro expansion.
66051         fdopendir: work around FreeBSD bug
66052         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
66053         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
66054         * modules/dirent (Makefile.am): Substitute it.
66055         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
66056         declaration.
66057         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
66058         fix.
66059         Reported by Christian Weisgerber <naddy@mips.inka.de>.
66061 2010-03-29  Bruno Haible  <bruno@clisp.org>
66063         Emit #pragma system_header after the inclusion guard, not before.
66064         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
66065         guard that spans the entire file, not before. This enables an
66066         optimization in GCC's preprocessor.
66067         * lib/ctype.in.h: Likewise.
66068         * lib/dirent.in.h: Likewise.
66069         * lib/errno.in.h: Likewise.
66070         * lib/float.in.h: Likewise.
66071         * lib/getopt.in.h: Likewise.
66072         * lib/iconv.in.h: Likewise.
66073         * lib/langinfo.in.h: Likewise.
66074         * lib/locale.in.h: Likewise.
66075         * lib/math.in.h: Likewise.
66076         * lib/netdb.in.h: Likewise.
66077         * lib/netinet_in.in.h: Likewise.
66078         * lib/pty.in.h: Likewise.
66079         * lib/sched.in.h: Likewise.
66080         * lib/se-selinux.in.h: Likewise.
66081         * lib/search.in.h: Likewise.
66082         * lib/spawn.in.h: Likewise.
66083         * lib/stdarg.in.h: Likewise.
66084         * lib/stdint.in.h: Likewise.
66085         * lib/string.in.h: Likewise.
66086         * lib/strings.in.h: Likewise.
66087         * lib/sys_file.in.h: Likewise.
66088         * lib/sys_ioctl.in.h: Likewise.
66089         * lib/sys_time.in.h: Likewise.
66090         * lib/sys_times.in.h: Likewise.
66091         * lib/sys_utsname.in.h: Likewise.
66092         * lib/sys_wait.in.h: Likewise.
66093         * lib/sysexits.in.h: Likewise.
66094         * lib/wctype.in.h: Likewise.
66096 2010-03-28  James Youngman  <jay@gnu.org>
66098         save-cwd: don't leak a file descriptor when the caller execs.
66099         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
66100         saved file descriptor.
66101         * modules/save-cwd (Depends-on): Depend on cloexec.
66103 2010-03-29  Bruno Haible  <bruno@clisp.org>
66105         Remove vestiges of fts-lgpl module.
66106         * lib/fts_.h: Assume GNULIB_FTS is 1.
66107         * lib/fts.c: Likewise.
66108         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
66110 2010-03-28  Bruno Haible  <bruno@clisp.org>
66112         Fix definition of tests witness macro.
66113         * gnulib-tool (func_import): Fix definition of witness macro.
66115 2010-03-28  Bruno Haible  <bruno@clisp.org>
66117         Fix ioctl's protoype on glibc systems.
66118         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
66119         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
66120         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
66121         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
66122         signature. If not, arrange to replace the ioctl function.
66123         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
66124         REPLACE_IOCTL.
66125         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
66126         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
66127         Reported by Ludovic Courtès <ludo@gnu.org>.
66129 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
66131         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
66132         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
66133         made it so grep -r --include=GLOB* ... did not work.
66135 2010-03-26  Jim Meyering  <meyering@redhat.com>
66136             Eric Blake  <eblake@redhat.com>
66138         maint.mk: prohibit use of test's -o and -a operators
66139         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
66141 2010-03-28  Bruno Haible  <bruno@clisp.org>
66143         Remove unused GNULIB_XYZ macro definitions.
66144         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
66145         invocation.
66147 2010-03-28  Bruno Haible  <bruno@clisp.org>
66149         Mark privileged tests modules.
66150         * modules/idpriv-drop-tests (Status): New section.
66151         * modules/idpriv-droptemp-tests (Status): New section.
66153 2010-03-28  Bruno Haible  <bruno@clisp.org>
66155         Split C++ tests into separate tests modules.
66156         * modules/dirent-c++-tests: New file, extracted from
66157         modules/dirent-tests.
66158         * modules/dirent-tests: Depend on it.
66159         * modules/fcntl-h-c++-tests: New file, extracted from
66160         modules/fcntl-h-tests.
66161         * modules/fcntl-h-tests: Depend on it.
66162         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
66163         * modules/glob-tests: Depend on it.
66164         * modules/iconv-h-c++-tests: New file, extracted from
66165         modules/iconv-h-tests.
66166         * modules/iconv-h-tests: Depend on it.
66167         * modules/langinfo-c++-tests: New file, extracted from
66168         modules/langinfo-tests.
66169         * modules/langinfo-tests: Depend on it.
66170         * modules/locale-c++-tests: New file, extracted from
66171         modules/locale-tests.
66172         * modules/locale-tests: Depend on it.
66173         * modules/math-c++-tests: New file, extracted from modules/math-tests.
66174         * modules/math-tests: Depend on it.
66175         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
66176         * modules/pty-tests: Depend on it.
66177         * modules/search-c++-tests: New file, extracted from
66178         modules/search-tests.
66179         * modules/search-tests: Depend on it.
66180         * modules/signal-c++-tests: New file, extracted from
66181         modules/signal-tests.
66182         * modules/signal-tests: Depend on it.
66183         * modules/spawn-c++-tests: New file, extracted from
66184         modules/spawn-tests.
66185         * modules/spawn-tests: Depend on it.
66186         * modules/stdio-c++-tests: New file, extracted from
66187         modules/stdio-tests.
66188         * modules/stdio-tests: Depend on it.
66189         * modules/stdlib-c++-tests: New file, extracted from
66190         modules/stdlib-tests.
66191         * modules/stdlib-tests: Depend on it.
66192         * modules/string-c++-tests: New file, extracted from
66193         modules/string-tests.
66194         * modules/string-tests: Depend on it.
66195         * modules/sys_ioctl-c++-tests: New file, extracted from
66196         modules/sys_ioctl-tests.
66197         * modules/sys_ioctl-tests: Depend on it.
66198         * modules/sys_select-c++-tests: New file, extracted from
66199         modules/sys_select-tests.
66200         * modules/sys_select-tests: Depend on it.
66201         * modules/sys_socket-c++-tests: New file, extracted from
66202         modules/sys_socket-tests.
66203         * modules/sys_socket-tests: Depend on it.
66204         * modules/sys_stat-c++-tests: New file, extracted from
66205         modules/sys_stat-tests.
66206         * modules/sys_stat-tests: Depend on it.
66207         * modules/sys_time-c++-tests: New file, extracted from
66208         modules/sys_time-tests.
66209         * modules/sys_time-tests: Depend on it.
66210         * modules/time-c++-tests: New file, extracted from modules/time-tests.
66211         * modules/time-tests: Depend on it.
66212         * modules/unistd-c++-tests: New file, extracted from
66213         modules/unistd-tests.
66214         * modules/unistd-tests: Depend on it.
66215         * modules/wchar-c++-tests: New file, extracted from
66216         modules/wchar-tests.
66217         * modules/wchar-tests: Depend on it.
66218         * modules/wctype-c++-tests: New file, extracted from
66219         modules/wctype-tests.
66220         * modules/wctype-tests: Depend on it.
66221         Reported by Simon Josefsson.
66223 2010-03-28  Bruno Haible  <bruno@clisp.org>
66225         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
66226         * gnulib-tool (func_exists_module): New function, extracted from
66227         func_verify_module.
66228         (func_verify_module): Use it.
66229         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
66230         'foo' only if 'foo' exists.
66231         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
66232         module.
66234 2010-03-28  Bruno Haible  <bruno@clisp.org>
66236         gnulib-tool: Add support for special categories of tests.
66237         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
66238         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
66239         (func_usage): Document them.
66240         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
66241         inc_unportable_tests, inc_all_tests): New variables.
66242         (func_acceptable): Consider these variables.
66243         (func_modules_transitive_closure): Make it work when the 'Status' field
66244         consists of multiple words.
66245         (func_import): Store and restore the values of inc_cxx_tests,
66246         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
66247         inc_all_tests in gnulib-comp.m4.
66248         (func_create_testdir): Set inc_all_tests to true.
66249         * doc/gnulib.texi (Extra tests modules): New section.
66250         Suggested by Jim Meyering.
66252 2010-03-28  Bruno Haible  <bruno@clisp.org>
66254         ansi-c++-opt: Allow turning off the C++ build by default.
66255         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
66256         gl_CXX_CHOICE_DEFAULT_NO is defined.
66257         Requested by Eric Blake.
66259 2010-03-28  Bruno Haible  <bruno@clisp.org>
66261         unistd: Avoid #define replacements in C++ mode.
66262         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
66263         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
66264         setsockopt, shutdown, select): In C++, attach a warning to the function
66265         if possible, rather than #defining the symbol to a dysfunctional alias.
66266         Reported by John W. Eaton <jwe@gnu.org>.
66268 2010-03-28  Bruno Haible  <bruno@clisp.org>
66270         Fix link errors on mingw.
66271         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
66272         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
66273         $(LIBSOCKET).
66274         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
66275         $(LIBSOCKET).
66277 2010-03-28  Bruno Haible  <bruno@clisp.org>
66278             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66280         lib-ignore: Determine different options for different compilers.
66281         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
66282         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
66283         Add comments.
66284         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
66285         * NEWS: Mention the change.
66287 2010-03-27  Bruno Haible  <bruno@clisp.org>
66289         Remove unused GNULIB_XYZ macro definitions.
66290         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
66291         * modules/fseek (configure.ac): Likewise.
66292         * modules/ioctl (configure.ac): Likewise.
66293         * modules/open (configure.ac): Likewise.
66294         * modules/stdlib-safer (configure.ac): Likewise.
66296 2010-03-27  Bruno Haible  <bruno@clisp.org>
66298         Add a remark about certain modules.
66299         * modules/malloc (Comment): New section.
66300         * modules/realloc (Comment): Likewise.
66301         * modules/sigpipe (Comment): Likewise.
66303 2010-03-27  Bruno Haible  <bruno@clisp.org>
66305         Resolve conflict between the two kinds of module indicators.
66306         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
66307         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
66308         * modules/canonicalize (configure.ac): Invoke
66309         gl_MODULE_INDICATOR_FOR_TESTS.
66310         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
66311         GNULIB_XYZ.
66312         * tests/test-dirent-c++.cc: Likewise.
66313         * tests/test-dirent-safer.c: Likewise.
66314         * tests/test-dup2.c: Likewise.
66315         * tests/test-fchdir.c: Likewise.
66316         * tests/test-fcntl-h-c++.cc: Likewise.
66317         * tests/test-getopt.c: Likewise.
66318         * tests/test-getopt.h: Likewise.
66319         * tests/test-langinfo-c++.cc: Likewise.
66320         * tests/test-locale-c++.cc: Likewise.
66321         * tests/test-math-c++.cc: Likewise.
66322         * tests/test-pty-c++.cc: Likewise.
66323         * tests/test-search-c++.cc: Likewise.
66324         * tests/test-signal-c++.cc: Likewise.
66325         * tests/test-spawn-c++.cc: Likewise.
66326         * tests/test-stdio-c++.cc: Likewise.
66327         * tests/test-stdlib-c++.cc: Likewise.
66328         * tests/test-string-c++.cc: Likewise.
66329         * tests/test-sys_ioctl-c++.cc: Likewise.
66330         * tests/test-sys_select-c++.cc: Likewise.
66331         * tests/test-sys_socket-c++.cc: Likewise.
66332         * tests/test-sys_stat-c++.cc: Likewise.
66333         * tests/test-sys_time-c++.cc: Likewise.
66334         * tests/test-time-c++.cc: Likewise.
66335         * tests/test-unistd-c++.cc: Likewise.
66336         * tests/test-wchar-c++.cc: Likewise.
66337         * tests/uninorm/test-u8-nfc.c: Likewise.
66338         * tests/uninorm/test-u8-nfd.c: Likewise.
66339         * tests/uninorm/test-u8-nfkc.c: Likewise.
66340         * tests/uninorm/test-u8-nfkd.c: Likewise.
66341         * tests/uninorm/test-u16-nfc.c: Likewise.
66342         * tests/uninorm/test-u16-nfd.c: Likewise.
66343         * tests/uninorm/test-u16-nfkc.c: Likewise.
66344         * tests/uninorm/test-u16-nfkd.c: Likewise.
66345         * tests/uninorm/test-u32-nfc.c: Likewise.
66346         * tests/uninorm/test-u32-nfc-big.c: Likewise.
66347         * tests/uninorm/test-u32-nfd.c: Likewise.
66348         * tests/uninorm/test-u32-nfd-big.c: Likewise.
66349         * tests/uninorm/test-u32-nfkc.c: Likewise.
66350         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
66351         * tests/uninorm/test-u32-nfkd.c: Likewise.
66352         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
66353         * tests/uninorm/test-u32-normalize-big.c: Likewise.
66355 2010-03-27  Bruno Haible  <bruno@clisp.org>
66357         Distinguish two kinds of module indicators.
66358         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
66359         gl_MODULE_INDICATOR.
66360         (gl_MODULE_INDICATOR): New macro.
66361         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
66362         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
66363         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66364         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
66365         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
66366         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
66367         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
66368         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
66369         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
66370         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
66371         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
66372         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
66373         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
66374         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
66375         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
66376         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
66377         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
66378         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
66379         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
66380         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
66381         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
66382         * modules/cloexec (configure.ac): Likewise.
66383         * modules/getopt-gnu (configure.ac): Likewise.
66384         * modules/uninorm/u8-normalize (configure.ac): Likewise.
66385         * modules/uninorm/u16-normalize (configure.ac): Likewise.
66386         * modules/uninorm/u32-normalize (configure.ac): Likewise.
66387         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
66389 2010-03-27  Bruno Haible  <bruno@clisp.org>
66391         New module description field 'Comment'.
66392         * gnulib-tool: New option --extract-comment.
66393         (func_usage): Document it.
66394         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
66395         (func_get_comment): New function.
66396         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
66398 2010-03-27  Bruno Haible  <bruno@clisp.org>
66400         Addendum to 2010-02-07 commit.
66401         * gnulib-tool (func_usage): Document --extract-applicability option.
66403 2010-03-27  Bruno Haible  <bruno@clisp.org>
66405         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
66406         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
66407         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
66408         rather than link errors.
66410 2010-03-27  Bruno Haible  <bruno@clisp.org>
66412         Avoid side effects from tests-related modules on the compilation of lib.
66413         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
66414         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
66415         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
66416         parameter. Emit into AM_CPPFLAGS a definition of the designated C
66417         macro.
66418         (func_import): Define a witness macro. Assign it a value that depends
66419         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
66420         tests-related modules.
66421         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
66422         Reported by Jim Meyering.
66424 2010-03-27  Bruno Haible  <bruno@clisp.org>
66426         Factorize common .m4 code.
66427         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
66428         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
66429         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
66430         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
66431         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66432         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
66433         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
66434         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
66435         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
66436         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
66437         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
66438         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
66439         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
66440         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
66441         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
66442         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
66443         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
66444         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
66445         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
66446         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
66447         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
66448         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
66449         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
66450         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
66451         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
66452         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
66453         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
66454         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
66455         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
66456         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
66457         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
66458         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
66460 2010-03-27  Bruno Haible  <bruno@clisp.org>
66462         Fix a compilation error on Cygwin with g++ >= 4.3.
66463         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
66464         if it is undefined or if we alias it to chmod.
66465         (lstat): Don't warn about the use of this function if it is undefined
66466         or if we alias it to stat.
66467         Reported by Simon Josefsson.
66469 2010-03-27  Bruno Haible  <bruno@clisp.org>
66471         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
66472         * modules/getlogin (configure.ac): Update.
66474         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
66475         * modules/getlogin_r (configure.ac): Update.
66477         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
66478         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
66479         * modules/inet_ntop (configure.ac): Update.
66481         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
66482         * modules/inet_pton (configure.ac): Update.
66484         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
66485         * modules/mbslen (configure.ac): Update.
66487         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
66488         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
66489         * modules/forkpty (configure.ac): Update.
66490         * modules/openpty (configure.ac): Update.
66492 2010-03-26  Simon Josefsson  <simon@josefsson.org>
66494         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
66495         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
66497 2010-03-25  Eric Blake  <eblake@redhat.com>
66499         maint: use pragma consistently across replacement headers
66500         * lib/ctype.in.h (system_header): Hoist for consistent placement.
66501         * lib/dirent.in.h (system_header): Likewise.
66502         * lib/errno.in.h (system_header): Likewise.
66503         * lib/float.in.h (system_header): Likewise.
66504         * lib/getopt.in.h (system_header): Likewise.
66505         * lib/iconv.in.h (system_header): Likewise.
66506         * lib/inttypes.in.h (system_header): Likewise.
66507         * lib/langinfo.in.h (system_header): Likewise.
66508         * lib/locale.in.h (system_header): Likewise.
66509         * lib/math.in.h (system_header): Likewise.
66510         * lib/netdb.in.h (system_header): Likewise.
66511         * lib/netinet_in.in.h (system_header): Likewise.
66512         * lib/pty.in.h (system_header): Likewise.
66513         * lib/sched.in.h (system_header): Likewise.
66514         * lib/se-selinux.in.h (system_header): Likewise.
66515         * lib/search.in.h (system_header): Likewise.
66516         * lib/spawn.in.h (system_header): Likewise.
66517         * lib/stdarg.in.h (system_header): Likewise.
66518         * lib/stdint.in.h (system_header): Likewise.
66519         * lib/string.in.h (system_header): Likewise.
66520         * lib/strings.in.h (system_header): Likewise.
66521         * lib/sys_file.in.h (system_header): Likewise.
66522         * lib/sys_ioctl.in.h (system_header): Likewise.
66523         * lib/sys_socket.in.h (system_header): Likewise.
66524         * lib/sys_times.in.h (system_header): Likewise.
66525         * lib/sys_utsname.in.h (system_header): Likewise.
66526         * lib/sys_wait.in.h (system_header): Likewise.
66527         * lib/sysexits.in.h (system_header): Likewise.
66528         * lib/unistd.in.h (system_header): Likewise.
66529         * lib/wctype.in.h (system_header): Likewise.
66531         arpa/inet: fix mingw compilation warning
66532         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
66533         Reported by Matthew Bolte.
66535 2010-03-25  Bruno Haible  <bruno@clisp.org>
66537         Avoid collision between gnulib wrapper and libintl wrapper.
66538         * lib/printf.c (printf): Don't define if a printf wrapper is already
66539         defined in intl/printf.c.
66540         Reported by Michel Boaventura <michel@michelboaventura.com>.
66542 2010-03-25  Bruno Haible  <bruno@clisp.org>
66544         Use ANSI C.
66545         * lib/readutmp.h (getutent): Provide ANSI C prototype.
66547 2010-03-25  Bruno Haible  <bruno@clisp.org>
66549         Minor formatting changes.
66550         * lib/acosl.c: Insert space before function argument list.
66551         * lib/argz.c: Likewise.
66552         * lib/asinl.c: Likewise.
66553         * lib/expl.c: Likewise.
66554         * lib/gen-uni-tables.c: Likewise.
66555         * lib/gettext.h: Likewise.
66556         * lib/glthread/lock.h: Likewise.
66557         * lib/tanl.c: Likewise.
66558         * lib/uniname/uniname.c: Likewise.
66559         * tests/test-idpriv-drop.c: Likewise.
66560         * tests/test-idpriv-droptemp.c: Likewise.
66561         * tests/test-lock.c: Likewise.
66562         * tests/test-tls.c: Likewise.
66563         * lib/argp-help.c: Insert space before function-like macro argument
66564         list.
66565         * lib/memcmp.c: Likewise.
66566         * tests/test-base64.c: Likewise.
66567         * lib/localename.c: Insert space before sizeof's argument list.
66568         * lib/safe-alloc.h: Likewise.
66569         * lib/file-set.h: Insert space before macro argument list.
66570         * tests/test-argp.c: Likewise.
66571         * lib/argp-namefrob.h: Insert space before function parameter list.
66572         * lib/getaddrinfo.c: Likewise.
66573         * lib/netdb.in.h: Likewise.
66574         * lib/parse-duration.h: Likewise.
66575         * lib/parse-duration.c: Likewise.
66576         * lib/poll.c: Likewise.
66577         * lib/select.c: Likewise.
66578         * lib/trim.h: Likewise.
66579         * tests/test-usleep.c: Likewise.
66580         * lib/ldexpl.c: Insert space before function parameter list and before
66581         function argument list.
66582         * lib/logl.c: Likewise.
66583         * lib/sqrtl.c: Likewise.
66584         * lib/trim.c: Likewise.
66585         * lib/cosl.c: Use GNU style indentation. Insert space before function
66586         argument list.
66587         * lib/sinl.c: Likewise.
66588         * lib/tsearch.c: Insert space after 'for'.
66589         Reported by Jim Meyering.
66591 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
66593         * maint.mk (sc_Wundef_boolean): Check for the presence of the
66594         config header before grepping, as it's not present before
66595         autoreconf/configure are run.  Reported by Simon Josefsson.
66597 2010-03-23  Bruno Haible  <bruno@clisp.org>
66599         pt_chown: Make it work with automake < 1.11.
66600         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
66601         Reported by Simon Josefsson.
66603 2010-03-23  Bruno Haible  <bruno@clisp.org>
66605         pt_chown: Don't depend on GPLed modules.
66606         * lib/pt_chown.c: Don't include idpriv.h.
66607         (main): Don't drop privileges.
66608         * modules/pt_chown (Depends-on): Remove idpriv-drop.
66609         Reported by Simon Josefsson.
66611 2010-03-24  Simon Josefsson  <simon@josefsson.org>
66613         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
66614         suggestions from karl@freefriends.org (Karl Berry).
66616 2010-03-22  Eric Blake  <eblake@redhat.com>
66618         gethostname: further tweaks
66619         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
66620         are overriding gethostname.
66621         Suggested by Bruno Haible.
66623 2010-03-21  Bruno Haible  <bruno@clisp.org>
66625         Fix comments.
66626         * lib/forkpty.c (rpl_forkpty): Fix comment.
66627         * lib/openpty.c (rpl_openpty): Likewise.
66628         Reported by Eric Blake.
66630 2010-03-22  Eric Blake  <eblake@redhat.com>
66632         gethostname: fix build on mingw
66633         * lib/unistd.in.h (includes): Work around fact that mingw
66634         <winsock2.h> re-includes <unistd.h>, by avoiding any
66635         redeclarations if we are being included by <winsock2.h>.
66636         Reported by Matthias Bolte.
66638 2010-03-21  Bruno Haible  <bruno@clisp.org>
66640         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
66641         * lib/forkpty.c (forkpty): New replacement function, from glibc with
66642         modifications.
66643         * lib/pty.in.h (forkpty): Update declaration. Add comments.
66644         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
66645         provide the replacement.
66646         * modules/forkpty (Depends-on): Add openpty, login_tty.
66647         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
66648         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
66649         * doc/glibc-functions/forkpty.texi: More supported platforms.
66650         * config/srclist.txt: Add forkpty.c (commented).
66652 2010-03-21  Bruno Haible  <bruno@clisp.org>
66654         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
66655         (Makefile.am): Verify that PTY_LIB is defined.
66657         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
66659 2010-03-21  Bruno Haible  <bruno@clisp.org>
66661         Tests for module 'login_tty'.
66662         * modules/login_tty-tests: New file.
66663         * tests/test-login_tty.c: New file.
66665         New module 'login_tty'.
66666         * lib/login_tty.c: New file.
66667         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
66668         * modules/login_tty: New file.
66669         * doc/glibc-functions/login_tty.texi: Mention the new module.
66671 2010-03-21  Bruno Haible  <bruno@clisp.org>
66673         login_tty: Documentation.
66674         * doc/glibc-functions/login_tty.texi: New file.
66675         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
66677 2010-03-21  Bruno Haible  <bruno@clisp.org>
66679         pty: Consistent macro naming.
66680         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
66681         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
66682         * modules/pty (configure.ac): Update.
66684 2010-03-21  Bruno Haible  <bruno@clisp.org>
66686         Tests for openpty: Make stricter.
66687         * tests/test-openpty.c (main): Add test of canonical processing and
66688         erase.
66689         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
66691         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
66692         * lib/openpty.c (openpty): New replacement function.
66693         * lib/pty.in.h: Include <termios.h>.
66694         (openpty): Update declaration. Add comments.
66695         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
66696         is not declared, arrange to provide the replacement. Check for _getpty
66697         and posix_openpt.
66698         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
66699         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
66700         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
66701         * modules/pty-tests (test_pty_c___LDADD): New variable.
66702         * doc/glibc-functions/openpty.texi: More supported platforms.
66704 2010-03-21  Bruno Haible  <bruno@clisp.org>
66706         setenv: Tweaks.
66707         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
66708         the test program.
66709         * doc/posix-functions/setenv.texi: Update platforms list.
66711 2010-03-21  Bruno Haible  <bruno@clisp.org>
66713         New module 'unlockpt'.
66714         * lib/unlockpt.c: New file, from glibc with modifications.
66715         * m4/unlockpt.m4: New file.
66716         * modules/unlockpt: New file.
66717         * lib/stdlib.in.h (unlockpt): New declaration.
66718         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
66719         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
66720         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
66721         HAVE_UNLOCKPT.
66722         * doc/posix-functions/unlockpt.texi: Mention the new module.
66723         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
66724         * config/srclist.txt: Add unlockpt.c (commented).
66726 2010-03-21  Jim Meyering  <meyering@redhat.com>
66728         maint.mk: prohibit inclusion of "intprops.h" without use
66729         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
66731 2010-03-21  Bruno Haible  <bruno@clisp.org>
66733         New module 'grantpt'.
66734         * lib/grantpt.c: New file, from glibc with modifications.
66735         * m4/grantpt.m4: New file.
66736         * modules/grantpt: New file.
66737         * lib/stdlib.in.h (grantpt): New declaration.
66738         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
66739         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
66740         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
66741         HAVE_GRANTPT.
66742         * doc/posix-functions/grantpt.texi: Mention the new module.
66743         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
66744         * config/srclist.txt: Add grantpt.c (commented).
66746 2010-03-21  Bruno Haible  <bruno@clisp.org>
66748         New module 'pt_chown'.
66749         * lib/pt_chown.c: New file, from glibc with modifications.
66750         * lib/pty-private.h: New file, from glibc with modifications.
66751         * modules/pt_chown: New file.
66752         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
66754 2010-03-21  Bruno Haible  <bruno@clisp.org>
66756         Tests for module 'ptsname'.
66757         * modules/ptsname-tests: New file.
66758         * tests/test-ptsname.c: New file.
66760         New module 'ptsname'.
66761         * lib/ptsname.c: New file, from glibc with modifications.
66762         * m4/ptsname.m4: New file.
66763         * modules/ptsname: New file.
66764         * lib/stdlib.in.h (ptsname): New declaration.
66765         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
66766         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
66767         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
66768         HAVE_PTSNAME.
66769         * doc/posix-functions/ptsname.texi: Mention the new module.
66770         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
66771         * config/srclist.txt: Add ptsname.c (commented).
66773 2010-03-21  Bruno Haible  <bruno@clisp.org>
66775         Tests for module 'ttyname_r'.
66776         * modules/ttyname_r-tests: New file.
66777         * tests/test-ttyname_r.c: New file.
66779         New module 'ttyname_r'.
66780         * lib/ttyname_r.c: New file.
66781         * m4/ttyname_r.m4: New file.
66782         * modules/ttyname_r: New file.
66783         * lib/unistd.in.h (ttyname_r): New declaration.
66784         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
66785         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
66786         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
66787         HAVE_TTYNAME_R.
66788         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
66789         * doc/posix-functions/ttyname_r.texi: Mention the new module.
66791 2010-03-20  Bruno Haible  <bruno@clisp.org>
66793         signal: Undefine macro definitions in C++ mode.
66794         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
66795         sigfillset): Undefine macro definitions from the system header in C++
66796         mode.
66797         Reported by John W. Eaton <jwe@gnu.org>.
66799 2010-03-20  Bruno Haible  <bruno@clisp.org>
66801         Ensure no #include statements inside extern "C" { ... }.
66802         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
66803         contain #include statements.
66804         * lib/time.in.h: Likewise.
66806 2010-03-20  Bruno Haible  <bruno@clisp.org>
66808         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
66809         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
66810         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
66811         Reported by John W. Eaton <jwe@gnu.org>.
66813 2010-03-20  Bruno Haible  <bruno@clisp.org>
66815         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
66816         Reported by Jim Meyering.
66818 2010-03-20  Bruno Haible  <bruno@clisp.org>
66820         pipe: Set errno upon failure.
66821         * lib/pipe.h: Specify that when -1 is returned, errno is set.
66822         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
66823         errno value in error message.
66825 2010-03-20  Bruno Haible  <bruno@clisp.org>
66826             Jim Meyering  <meyering@redhat.com>
66828         lchown: Avoid "unused variable" warning.
66829         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
66831 2010-03-20  Bruno Haible  <bruno@clisp.org>
66833         Work around unlink() bug on MacOS X 10.5.6.
66834         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
66835         attempting to unlink a parent directory.
66836         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
66837         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
66838         activate for the replacement function.
66839         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
66841 2010-03-20  Bruno Haible  <bruno@clisp.org>
66843         Fix link errors on Solaris 8.
66844         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
66845         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
66847 2010-03-19  Jim Meyering  <meyering@redhat.com>
66849         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
66850         The _LIBC implementation of build_range_exp correctly honors the
66851         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
66852         However, the non-_LIBC implementation would ignore that syntax-bit
66853         flag and return REG_ERANGE unconditionally.
66854         This change makes it honor that flag.
66855         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
66856         Make two pointer parameters "const".
66857         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
66858         (parse_bracket_exp): Update caller.
66860         regex.m4: correct the reversed range endpoint ([b-a]) test
66861         * m4/regex.m4: When requiring that [b-a] evoke failure,
66862         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
66863         test pass once again for x86-based systems.
66865 2010-03-19  Bruno Haible  <bruno@clisp.org>
66867         scandir: Fix link error on Solaris 8.
66868         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
66869         macros.
66871 2010-03-19  Bruno Haible  <bruno@clisp.org>
66873         getusershell: Fix documentation.
66874         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
66875         module.
66876         * doc/glibc-functions/setusershell.texi: Likewise.
66878         getusershell: Provide declaration, missing on Solaris 9.
66879         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
66880         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
66881         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
66882         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
66883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66884         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
66885         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
66886         HAVE_GETUSERSHELL.
66887         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
66889 2010-03-19  Bruno Haible  <bruno@clisp.org>
66891         wctype: Provide iswblank function.
66892         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
66893         exists and is fine.
66894         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
66895         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
66896         * tests/test-wctype.c (main): Re-enable the iswblank tests.
66897         * doc/posix-functions/iswblank.texi: Update.
66899 2010-03-19  Bruno Haible  <bruno@clisp.org>
66901         Tests of module 'pty' in C++ mode.
66902         * modules/pty-tests: New file.
66903         * tests/test-pty-c++.cc: New file.
66904         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
66906 2010-03-19  Eric Blake  <eblake@redhat.com>
66908         logb: fix documentation
66909         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
66910         1.5 declaration bug.
66912         forkpty, openpty: prefer glibc's const-safe prototype
66913         * lib/forkpty.c (rpl_forkpty): New file.
66914         * lib/openpty.c (rpl_openpty): Likewise.
66915         * modules/forkpty (Files): Distribute it.
66916         * modules/openpty (Files): Likewise.
66917         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
66918         check...
66919         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
66920         replacement for non-const BSD signature.
66921         * modules/pty (Makefile.am): Substitute witnesses.
66922         * lib/pty.in.h (forkpty, openpty): Declare replacements.
66923         * tests/test-forkpty.c: Update signature check.
66924         * tests/test-openpty.c: Likewise.
66925         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
66926         * doc/glibc-functions/openpty.texi (openpty): Likewise.
66928         forkpty, openpty: split functions into new modules
66929         * modules/pty (Makefile.am): Substitute new witnesses.
66930         (Libraries): Move library detection...
66931         * modules/forkpty: ...into new module.
66932         * modules/openpty: Another new module.
66933         * modules/pty-tests: Rename and split...
66934         * modules/forkpty-tests: ...to this...
66935         * modules/openpty-tests: ...and this.
66936         * tests/test-pty.c: Rename and split...
66937         * tests/test-forkpty.c: ...to this...
66938         * tests/test-openpty.c: ...and this.
66939         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
66940         (gl_PTY): Split library searching...
66941         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
66942         (gl_FORKPTY, gl_OPENPTY): New macros.
66943         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
66944         * NEWS: Mention the split.
66945         * MODULES.html.sh (Misc): Document the modules.
66946         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
66947         * doc/glibc-functions/openpty.texi (openpty): Likewise.
66949         pty: improve replacement header
66950         * lib/pty.in.h: New file.
66951         * modules/pty (Files): Ship it.
66952         (Makefile.am): Always build replacement.
66953         * m4/pty.m4: Rename...
66954         * m4/pty_h.m4: ...to this.
66955         (gl_PTY): Modernize setting of witness macros; update check of
66956         forkpty to take proper advantage of cache.
66957         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
66959         getopt: avoid compiler warning
66960         * lib/getopt.c (attribute_hidden): Remove unused macro.
66962 2010-03-18  Bruno Haible  <bruno@clisp.org>
66964         Fix link errors on Solaris 8.
66965         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
66966         * modules/search-tests (test_search_c___LDADD): Likewise.
66967         * modules/signal-tests (test_signal_c___LDADD): Likewise.
66968         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
66969         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
66970         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
66971         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
66972         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
66973         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
66975 2010-03-18  Bruno Haible  <bruno@clisp.org>
66977         Fix bug introduced on 2010-03-14.
66978         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
66979         (gl_SPAWN_H): Require it.
66980         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
66981         Reported by Simon Josefsson.
66983 2010-03-18  Bruno Haible  <bruno@clisp.org>
66985         Fix typo introduced on 2009-12-31.
66986         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
66987         posix_spawn_file_actions_adddup2.
66989 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
66990         and Eric Blake  <eblake@redhat.com>
66992         test-vc-list-files-git: make more robust
66993         * tests/test-vc-list-files-git.sh: Unset problematic environment
66994         variables.  Chain commands together.
66996 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
66998         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
66999         `AC_CHECK_DECL' invocation.
67001 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
67003         * lib/inttostr.c (inttostr): Make sure the invocation of verify
67004         appears before executable statements. Suggested by Petr Sumbera
67005         <Petr.Sumbera@Sun.COM>.
67007 2010-03-14  Bruno Haible  <bruno@clisp.org>
67009         * tests/test-flock.c (test_exclusive): Comment out a test that causes
67010         portability problems. Instead use a simpler test.
67011         (main): Check that invalid arguments are rejected only on Linux.
67013 2010-03-14  Bruno Haible  <bruno@clisp.org>
67015         Fix bug introduced on 2009-12-31.
67016         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
67017         gl_PREREQ_SYS_H_WINSOCK2 always.
67018         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
67019         SYS_SOCKET_H variable.
67020         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
67021         Update comments.
67022         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
67023         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
67024         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
67025         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
67026         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
67028 2010-03-14  Bruno Haible  <bruno@clisp.org>
67030         Fix values returned by sinl, cosl.
67031         * lib/trigl.h: Add specification comments.
67032         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
67033         that combines the values from the precomputed table with the values of
67034         the Chebyshev polynomials.
67036 2010-03-14  Bruno Haible  <bruno@clisp.org>
67038         Fix compilation error when modules 'posix_spawn[p]' are not used.
67039         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
67040         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
67042 2010-03-14  Bruno Haible  <bruno@clisp.org>
67044         Fix compilation error on mingw when module 'time_r' is not used.
67045         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
67046         is 1.
67047         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
67048         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67049         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
67050         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
67052 2010-03-14  Bruno Haible  <bruno@clisp.org>
67054         Fix compilation error with Sun C.
67055         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
67056         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
67057         instead of GCC specific ULONG_LONG_MAX.
67058         * lib/xstrtoll.c: Likewise.
67059         * lib/xstrtoull.c: Likewise.
67061 2010-03-13  Bruno Haible  <bruno@clisp.org>
67063         Allow the user to disable C++ code and tests.
67064         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
67065         (gl_PROG_ANSI_CXX): Require it.
67067 2010-03-13  Bruno Haible  <bruno@clisp.org>
67069         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
67070         cases.
67072 2010-03-13  Bruno Haible  <bruno@clisp.org>
67074         Test that gnulib does not break the standard C++ headers.
67075         * tests/test-locale-c++2.cc: New file.
67076         * modules/locale-tests (Files): Add it.
67077         (Makefile.am): Compile it for test-locale-c++.
67078         * tests/test-math-c++2.cc: New file.
67079         * modules/math-tests (Files): Add it.
67080         (Makefile.am): Compile it for test-math-c++.
67081         * tests/test-signal-c++2.cc: New file.
67082         * modules/signal-tests (Files): Add it.
67083         (Makefile.am): Compile it for test-signal-c++.
67084         * tests/test-stdio-c++2.cc: New file.
67085         * modules/stdio-tests (Files): Add it.
67086         (Makefile.am): Compile it for test-stdio-c++.
67087         * tests/test-stdlib-c++2.cc: New file.
67088         * modules/stdlib-tests (Files): Add it.
67089         (Makefile.am): Compile it for test-stdlib-c++.
67090         * tests/test-string-c++2.cc: New file.
67091         * modules/string-tests (Files): Add it.
67092         (Makefile.am): Compile it for test-string-c++.
67093         * tests/test-time-c++2.cc: New file.
67094         * modules/time-tests (Files): Add it.
67095         (Makefile.am): Compile it for test-time-c++.
67096         Reported by John W. Eaton <jwe@gnu.org>.
67098 2010-03-13  Bruno Haible  <bruno@clisp.org>
67100         * gnulib-tool (func_usage): Clarify which options are available for
67101         --create-testdir and --create-megatestdir.
67103 2010-03-13  Bruno Haible  <bruno@clisp.org>
67105         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
67106         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
67107         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
67108         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
67109         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
67110         when appropriate.
67111         Reported by Jim Meyering.
67113 2010-03-12  Simon Josefsson  <simon@josefsson.org>
67115         * gnulib-tool (func_import): Explain origin of code.
67117 2010-03-12  Bruno Haible  <bruno@clisp.org>
67119         Fix problem with automake's definition of CXXLINK.
67120         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
67121         Reported by Simon Josefsson and Ludovic Courtès.
67123 2010-03-12  Bruno Haible  <bruno@clisp.org>
67125         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
67126         stable releases.
67128 2010-03-11  Bruno Haible  <bruno@clisp.org>
67130         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
67131         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
67132         whether the system provides one variant or multiple variants of the
67133         function.
67134         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
67135         C++ compilers.
67136         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
67137         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
67138         Reported by Jim Meyering.
67140 2010-03-09  Simon Josefsson  <simon@josefsson.org>
67142         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
67144 2010-03-08  Bruno Haible  <bruno@clisp.org>
67146         gnulib-tool: Add support for --libtool in --create-testdir.
67147         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
67148         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
67150 2010-03-08  Eric Blake  <eblake@redhat.com>
67152         gnulib-tool.texi: mention possibility of git submodule
67153         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
67154         submodules.
67155         * doc/.gitignore: Ignore another generated file.
67157 2010-03-08  Karl Berry  <karl@gnu.org>
67159         * doc/gnulib-tool.texi (VCS Issues): Mention third option
67160         of committing gnulib files while skipping others.
67162 2010-03-07  Bruno Haible  <bruno@clisp.org>
67164         Tests of module 'wctype' in C++ mode.
67165         * tests/test-wctype-c++.cc: New file.
67166         * modules/wctype-tests (Files): Add it and tests/signature.h.
67167         (Depends-on): Add ansi-c++-opt.
67168         (Makefile.am): Arrange to compile and run test-wctype-c++.
67170         Tests of module 'wchar' in C++ mode.
67171         * tests/test-wchar-c++.cc: New file.
67172         * modules/wchar-tests (Files): Add it and tests/signature.h.
67173         (Depends-on): Add ansi-c++-opt.
67174         (Makefile.am): Arrange to compile and run test-wchar-c++.
67175         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
67176         gl_MODULE_INDICATOR.
67178         Tests of module 'unistd' in C++ mode.
67179         * tests/test-unistd-c++.cc: New file.
67180         * modules/unistd-tests (Files): Add it and tests/signature.h.
67181         (Depends-on): Add ansi-c++-opt.
67182         (Makefile.am): Arrange to compile and run test-unistd-c++.
67183         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
67184         gl_MODULE_INDICATOR.
67186         Tests of module 'time' in C++ mode.
67187         * tests/test-time-c++.cc: New file.
67188         * modules/time-tests (Files): Add it and tests/signature.h.
67189         (Depends-on): Add ansi-c++-opt.
67190         (Makefile.am): Arrange to compile and run test-time-c++.
67191         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67193         Tests of module 'sys_time' in C++ mode.
67194         * tests/test-sys_time-c++.cc: New file.
67195         * modules/sys_time-tests (Files): Add it and tests/signature.h.
67196         (Depends-on): Add ansi-c++-opt.
67197         (Makefile.am): Arrange to compile and run test-sys_time-c++.
67198         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
67199         gl_MODULE_INDICATOR.
67201         Tests of module 'sys_stat' in C++ mode.
67202         * tests/test-sys_stat-c++.cc: New file.
67203         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
67204         (Depends-on): Add ansi-c++-opt.
67205         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
67206         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
67207         gl_MODULE_INDICATOR.
67209         Tests of module 'sys_socket' in C++ mode.
67210         * tests/test-sys_socket-c++.cc: New file.
67211         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
67212         (Depends-on): Add ansi-c++-opt.
67213         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
67214         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
67215         gl_MODULE_INDICATOR.
67217         Tests of module 'sys_select' in C++ mode.
67218         * tests/test-sys_select-c++.cc: New file.
67219         * modules/sys_select-tests (Files): Add it and tests/signature.h.
67220         (Depends-on): Add ansi-c++-opt.
67221         (Makefile.am): Arrange to compile and run test-sys_select-c++.
67222         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
67223         gl_MODULE_INDICATOR.
67225         Tests of module 'sys_ioctl' in C++ mode.
67226         * tests/test-sys_ioctl-c++.cc: New file.
67227         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
67228         (Depends-on): Add ansi-c++-opt.
67229         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
67230         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
67231         gl_MODULE_INDICATOR.
67233         Tests of module 'string' in C++ mode.
67234         * tests/test-string-c++.cc: New file.
67235         * modules/string-tests (Files): Add it and tests/signature.h.
67236         (Depends-on): Add ansi-c++-opt.
67237         (Makefile.am): Arrange to compile and run test-string-c++.
67238         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
67239         gl_MODULE_INDICATOR.
67241         Tests of module 'stdlib' in C++ mode.
67242         * tests/test-stdlib-c++.cc: New file.
67243         * modules/stdlib-tests (Files): Add it and tests/signature.h.
67244         (Depends-on): Add ansi-c++-opt.
67245         (Makefile.am): Arrange to compile and run test-stdlib-c++.
67246         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
67247         gl_MODULE_INDICATOR.
67249         Tests of module 'stdio' in C++ mode.
67250         * tests/test-stdio-c++.cc: New file.
67251         * modules/stdio-tests (Files): Add it and tests/signature.h.
67252         (Depends-on): Add ansi-c++-opt.
67253         (Makefile.am): Arrange to compile and run test-stdio-c++.
67254         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
67255         gl_MODULE_INDICATOR.
67257         Tests of module 'spawn' in C++ mode.
67258         * tests/test-spawn-c++.cc: New file.
67259         * modules/spawn-tests (Files): Add it and tests/signature.h.
67260         (Depends-on): Add ansi-c++-opt.
67261         (Makefile.am): Arrange to compile and run test-spawn-c++.
67262         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
67263         gl_MODULE_INDICATOR.
67265         Tests of module 'signal' in C++ mode.
67266         * tests/test-signal-c++.cc: New file.
67267         * modules/signal-tests (Files): Add it and tests/signature.h.
67268         (Depends-on): Add ansi-c++-opt.
67269         (Makefile.am): Arrange to compile and run test-signal-c++.
67270         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
67271         gl_MODULE_INDICATOR.
67273         Tests of module 'search' in C++ mode.
67274         * tests/test-search-c++.cc: New file.
67275         * modules/search-tests (Files): Add it and tests/signature.h.
67276         (Depends-on): Add ansi-c++-opt.
67277         (Makefile.am): Arrange to compile and run test-search-c++.
67278         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
67279         gl_MODULE_INDICATOR.
67281         Tests of module 'math' in C++ mode.
67282         * tests/test-math-c++.cc: New file.
67283         * modules/math-tests (Files): Add it and tests/signature.h.
67284         (Depends-on): Add ansi-c++-opt.
67285         (Makefile.am): Arrange to compile and run test-math-c++.
67286         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67288         Tests of module 'locale' in C++ mode.
67289         * tests/test-locale-c++.cc: New file.
67290         * modules/locale-tests (Files): Add it and tests/signature.h.
67291         (Depends-on): Add ansi-c++-opt.
67292         (Makefile.am): Arrange to compile and run test-locale-c++.
67293         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
67294         gl_MODULE_INDICATOR.
67296         Tests of module 'langinfo' in C++ mode.
67297         * tests/test-langinfo-c++.cc: New file.
67298         * modules/langinfo-tests (Files): Add it and tests/signature.h.
67299         (Depends-on): Add ansi-c++-opt.
67300         (Makefile.am): Arrange to compile and run test-langinfo-c++.
67301         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
67302         gl_MODULE_INDICATOR.
67304         Tests of module 'iconv-h' in C++ mode.
67305         * tests/test-iconv-h-c++.cc: New file.
67306         * modules/iconv-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-iconv-h-c++.
67310         Tests of module 'glob' in C++ mode.
67311         * tests/test-glob-c++.cc: New file.
67312         * modules/glob-tests (Files): Add it.
67313         (Depends-on): Add ansi-c++-opt.
67314         (Makefile.am): Arrange to compile and run test-glob-c++.
67316         Tests of module 'fcntl-h' in C++ mode.
67317         * tests/test-fcntl-h-c++.cc: New file.
67318         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
67319         (Depends-on): Add ansi-c++-opt.
67320         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
67321         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
67322         gl_MODULE_INDICATOR.
67324         Tests of module 'dirent' in C++ mode.
67325         * tests/test-dirent-c++.cc: New file.
67326         * modules/dirent-tests (Files): Add it and tests/signature.h.
67327         (Depends-on): Add ansi-c++-opt.
67328         (Makefile.am): Arrange to compile and run test-dirent-c++.
67329         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
67330         gl_MODULE_INDICATOR.
67332         New module 'ansi-c++-opt'.
67333         * modules/ansi-c++-opt: New file.
67334         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
67336         Document C++ namespace mode.
67337         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
67339         wctype: Avoid #define replacements in C++ mode.
67340         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
67341         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
67342         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
67343         In C++, define a namespaced alias symbol.
67344         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
67345         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
67346         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
67347         rule.
67349         wchar: Avoid #define replacements in C++ mode.
67350         * lib/wchar.in.h: Include c++defs.h.
67351         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
67352         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
67353         symbol.
67354         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
67355         * modules/wchar (Depends-on): Add c++defs.
67356         (Makefile.am): Update wchar.h rule.
67358         unistd: Avoid #define replacements in C++ mode.
67359         * lib/unistd.in.h: Include c++defs.h.
67360         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
67361         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
67362         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
67363         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
67364         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
67365         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
67366         symbol.
67367         (environ): Update.
67368         * modules/unistd (Depends-on): Add c++defs.
67369         (Makefile.am): Update unistd.h rule.
67371         time: Avoid #define replacements in C++ mode.
67372         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
67373         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
67374         define a namespaced alias symbol.
67375         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
67376         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
67377         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
67378         * modules/time (Depends-on): Add c++defs, warn-on-use.
67379         (Makefile.am): Update time.h rule.
67380         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67381         * modules/nanosleep (configure.ac): Likewise.
67382         * modules/strptime (configure.ac): Likewise.
67383         * modules/timegm (configure.ac): Likewise.
67385         sys_time: Avoid #define replacements in C++ mode.
67386         * lib/sys_time.in.h: Include c++defs.h.
67387         (gettimeofday): In C++, define a namespaced alias symbol.
67388         * modules/sys_time (Depends-on): Add c++defs.
67389         (Makefile.am): Update sys/time.h rule.
67391         sys_stat: Avoid #define replacements in C++ mode.
67392         * lib/sys_stat.in.h: Include c++defs.h.
67393         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
67394         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
67395         namespaced alias symbol.
67396         In C++, define a namespaced alias symbol.
67397         * modules/sys_stat (Depends-on): Add c++defs.
67398         (Makefile.am): Update sys/stat.h rule.
67400         sys_socket: Avoid #define replacements in C++ mode.
67401         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
67402         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
67403         definitions also when the system has a <sys/socket.h>.
67404         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
67405         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
67406         In C++, define a namespaced alias symbol.
67407         * modules/sys_socket (Depends-on): Add c++defs.
67408         (Makefile.am): Update sys/socket.h rule.
67410         sys_select: Avoid #define replacements in C++ mode.
67411         * lib/sys_select.in.h: Include c++defs.h. Enable the function
67412         definitions also when the system has a <sys/select.h>.
67413         (select): In C++, define a namespaced alias symbol.
67414         * modules/sys_select (Depends-on): Add c++defs.
67415         (Makefile.am): Update sys/select.h rule.
67417         sys_ioctl: Avoid #define replacements in C++ mode.
67418         * lib/sys_ioctl.in.h: Include c++defs.h.
67419         (ioctl): In C++, define a namespaced alias symbol.
67420         * modules/sys_ioctl (Depends-on): Add c++defs.
67421         (Makefile.am): Update sys/ioctl.h rule.
67423         string: Avoid #define replacements in C++ mode.
67424         * lib/string.in.h: Include c++defs.h.
67425         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
67426         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
67427         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
67428         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
67429         strsignal, strverscmp): In C++, define a namespaced alias symbol.
67430         * modules/string (Depends-on): Add c++defs.
67431         (Makefile.am): Update string.h rule.
67433         stdlib: Avoid #define replacements in C++ mode.
67434         * lib/stdlib.in.h: Include c++defs.h.
67435         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
67436         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
67437         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
67438         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
67439         symbol.
67440         * modules/stdlib (Depends-on): Add c++defs.
67441         (Makefile.am): Update stdlib.h rule.
67443         stdio: Avoid #define replacements in C++ mode.
67444         * lib/stdio.in.h: Include c++defs.h.
67445         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
67446         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
67447         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
67448         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
67449         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
67450         namespaced alias symbol.
67451         * modules/stdio (Depends-on): Add c++defs.
67452         (Makefile.am): Update stdio.h rule.
67454         spawn: Avoid #define replacements in C++ mode.
67455         * lib/spawn.in.h: Include c++defs.h.
67456         (posix_spawn, posix_spawnp, posix_spawnattr_init,
67457         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
67458         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
67459         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
67460         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
67461         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
67462         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
67463         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
67464         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
67465         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
67466         In C++, define a namespaced alias symbol.
67467         * modules/spawn (Depends-on): Add c++defs.
67468         (Makefile.am): Update spawn.h rule.
67470         signal: Avoid #define replacements in C++ mode.
67471         * lib/signal.in.h: Include c++defs.h.
67472         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
67473         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
67474         namespaced alias symbol.
67475         * modules/signal (Depends-on): Add c++defs.
67476         (Makefile.am): Update signal.h rule.
67478         search: Avoid #define replacements in C++ mode.
67479         * lib/search.in.h: Include c++defs.h.
67480         (_gl_search_compar_fn, _gl_search_action_fn): New types.
67481         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
67482         symbol.
67483         * modules/search (Depends-on): Add c++defs.
67484         (Makefile.am): Update search.h rule.
67486         math: Avoid #define replacements in C++ mode.
67487         * lib/math.in.h: Include c++defs.h.
67488         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
67489         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
67490         trunc, truncl): In C++, define a namespaced alias symbol.
67491         * modules/math (Depends-on): Add c++defs.
67492         (Makefile.am): Update math.h rule.
67494         locale: Avoid #define replacements in C++ mode.
67495         * lib/locale.in.h: Include c++defs.h.
67496         (duplocale): In C++, define a namespaced alias symbol.
67497         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
67498         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
67499         * modules/locale (Depends-on): Add c++defs.
67500         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
67502         langinfo: Avoid #define replacements in C++ mode.
67503         * lib/langinfo.in.h: Include c++defs.h.
67504         (nl_langinfo): In C++, define a namespaced alias symbol.
67505         * modules/langinfo (Depends-on): Add c++defs.
67506         (Makefile.am): Update langinfo.h rule.
67508         iconv-h: Avoid #define replacements in C++ mode.
67509         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
67510         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
67511         symbol.
67512         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
67513         whenever iconv is present.
67514         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
67515         (Makefile.am): Update iconv.h rule.
67517         glob: Avoid #define replacements in C++ mode.
67518         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
67519         (_gl_glob_errfunc_fn): New type.
67520         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
67521         symbol.
67522         * modules/glob (Depends-on): Add c++defs, warn-on-use.
67523         (Makefile.am): Update glob.h rule.
67525         fcntl-h: Avoid #define replacements in C++ mode.
67526         * lib/fcntl.in.h: Include c++defs.h.
67527         (fcntl, open, openat): In C++, define a namespaced alias symbol.
67528         * modules/fcntl-h (Depends-on): Add c++defs.
67529         (Makefile.am): Update fcntl.h rule.
67531         dirent: Avoid #define replacements in C++ mode.
67532         * lib/dirent.in.h: Include c++defs.h.
67533         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
67534         namespaced alias symbol.
67535         (dirfd): Update declaration.
67536         * modules/dirent (Depends-on): Add c++defs.
67537         (Makefile.am): Update dirent.h rule.
67539         ctype: Make it usable in C++ code.
67540         * lib/ctype.in.h: Include c++defs.h.
67541         (isblank): Declare as extern "C".
67542         * modules/ctype (Depends-on): Add c++defs.
67543         (Makefile.am): Update ctype.h rule.
67545         New module 'c++defs'.
67546         * modules/c++defs: New file.
67547         * build-aux/c++defs.h: New file.
67548         Reported by John W. Eaton <jwe@gnu.org>.
67550 2010-03-07  Bruno Haible  <bruno@clisp.org>
67552         logb: Provide missing declaration for Cygwin.
67553         * lib/math.in.h (logb): New declaration.
67554         * m4/logb.m4: New file.
67555         * modules/logb (Files): Add m4/logb.m4.
67556         (Depends-on): Add math.
67557         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
67558         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
67559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
67560         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
67561         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
67563 2010-03-07  Bruno Haible  <bruno@clisp.org>
67565         Fix test-cond link error.
67566         * tests/test-cond.c: Include <stdio.h>.
67568 2010-03-07  Bruno Haible  <bruno@clisp.org>
67570         Fix test-dirent-safer link error.
67571         * modules/dirent-safer-tests (Makefile.am): Define
67572         test_dirent_safer_LDADD.
67574 2010-03-07  Bruno Haible  <bruno@clisp.org>
67576         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
67577         among default module list.
67579 2010-03-07  Bruno Haible  <bruno@clisp.org>
67581         Fix link error on platforms with GNU libiconv.
67582         * modules/unistr/u8-strcoll-tests (Makefile): Define
67583         test_u8_strcoll_LDADD.
67584         * modules/unistr/u16-strcoll-tests (Makefile): Define
67585         test_u16_strcoll_LDADD.
67586         * modules/unistr/u32-strcoll-tests (Makefile): Define
67587         test_u32_strcoll_LDADD.
67589 2010-03-07  Bruno Haible  <bruno@clisp.org>
67591         Use POSIX declarations for socket functions.
67592         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
67593         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
67594         rpl_sendto): Change declaration to match POSIX.
67595         * lib/connect.c (rpl_connect): Likewise.
67596         * lib/accept.c (rpl_accept): Likewise.
67597         * lib/bind.c (rpl_bind): Likewise.
67598         * lib/getpeername.c (rpl_getpeername): Likewise.
67599         * lib/getsockname.c (rpl_getsockname): Likewise.
67600         * lib/recv.c (rpl_recv): Likewise.
67601         * lib/send.c (rpl_send): Likewise.
67602         * lib/recvfrom.c (rpl_recvfrom): Likewise.
67603         * lib/sendto.c (rpl_sendto): Likewise.
67605 2010-03-06  Bruno Haible  <bruno@clisp.org>
67607         Clarify access, euidaccess, faccessat.
67608         * doc/posix-functions/faccessat.texi: Mention security problem under
67609         "Other problems", not "Portability problems".
67610         * doc/posix-functions/access.texi: Likewise. Mention a related security
67611         problem.
67612         * doc/glibc-functions/euidaccess.texi: Mention security problems.
67613         * lib/euidaccess.c: Add comments about platforms.
67614         * lib/unistd.in.h (access, euidaccess): Add warnings.
67616 2010-03-07  Bruno Haible  <bruno@clisp.org>
67618         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
67619         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
67620         (POSIX_SPAWN_SETSCHEDULER): Likewise.
67621         (POSIX_SPAWN_USEVFORK): Define in a way that works when
67622         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
67623         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
67624         declare when POSIX_SPAWN_SETSCHEDULER is zero.
67625         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
67626         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
67627         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
67628         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
67629         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
67630         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
67631         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
67632         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
67633         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
67634         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
67635         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
67636         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
67637         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
67638         Likewise.
67639         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
67640         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
67641         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
67642         Likewise.
67643         * tests/test-spawn.c (main): Make it work when
67644         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
67646 2010-03-07  Bruno Haible  <bruno@clisp.org>
67648         Fix incorrect Makefile.am generation in German locale.
67649         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67650         Execute sed command with character range in C locale.
67652 2010-03-06  Bruno Haible  <bruno@clisp.org>
67654         Tests for module 'iconv-h'.
67655         * modules/iconv-h-tests: New file.
67656         * tests/test-iconv-h.c: New file.
67658         New module 'iconv-h'.
67659         * modules/iconv-h: New file.
67660         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
67661         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
67662         (configure.ac): Remove gl_ICONV_H.
67663         (Makefile.am): Remove rule for iconv.h.
67665 2010-03-06  Bruno Haible  <bruno@clisp.org>
67667         More consistent naming of *.m4 files.
67668         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
67669         * modules/wctype (Files): Update.
67671         More consistent naming of *.m4 files.
67672         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
67673         * modules/wchar (Files): Update.
67675 2010-03-06  Jim Meyering  <meyering@redhat.com>
67677         euidaccess: relax license to LGPLv2+
67678         * modules/euidaccess (License): Relax to LGPLv2+.
67680 2010-03-06  Bruno Haible  <bruno@clisp.org>
67682         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
67683         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
67684         (Makefile.am): Augment lib_SOURCES instead.
67686 2010-03-04  Jim Meyering  <meyering@redhat.com>
67688         utime: remove obsolete module
67689         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
67690         unnecessary for years, and has been marked as obsolete for 10 months.
67691         * modules/utime: Remove file.
67692         * lib/utime.c: Remove file.
67693         * m4/utime.m4: Remove file.
67694         * m4/utimes-null.m4: Remove file.
67695         * doc/posix-functions/utime.texi (utime): Remove reference to
67696         the module.  Move the sole "fixed by gnulib" item into the
67697         "problems not fixed by Gnulib" list.
67698         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
67700 2010-03-05  Simon Josefsson  <simon@josefsson.org>
67702         * modules/exit (License): Relax license to LGPLv2+.
67703         (Status): Mark as obsolete.
67704         * NEWS: Mention deprecated 'exit' module.
67705         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
67706         of now obsolete 'exit'.
67708 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67710         fts-lgpl: remove unused module
67711         * modules/fts-lgpl: Remove.
67712         * MODULES.html.sh (func_all_modules): Adjust.
67713         * check-module (find_included_lib_files): Adjust.
67714         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
67716 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
67718         copy-acl: enhance Solaris ACL error handling
67719         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
67720         * lib/set-mode-acl.c (qset_acl): Likewise.
67722 2010-03-02  Bruno Haible  <bruno@clisp.org>
67724         spawn: Don't override the system defined values on FreeBSD 8.
67725         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
67726         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
67727         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
67728         if HAVE_POSIX_SPAWN is 1.
67729         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
67731 2010-03-01  Bruno Haible  <bruno@clisp.org>
67733         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
67734         regarding Automake.
67736 2010-02-25  Bruno Haible  <bruno@clisp.org>
67738         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
67739         * gnulib-tool: Define 'echo' as a function only before the ksh alias
67740         setting, not afterwards.
67741         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
67743 2010-02-24  Eric Blake  <eblake@redhat.com>
67745         bootstrap, git-version-gen: use timestamp
67746         * build-aux/git-version-gen (scriptversion): Force UTC.
67747         * build-aux/bootstrap (scriptversion): New variable.
67749         bootstrap: allow older git
67750         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
67751         older than 1.6.4.  Requested by the libvirt project.
67753 2010-02-23  Eric Blake  <eblake@redhat.com>
67755         warn-on-use: work with old autoconf
67756         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
67757         AS_VAR semantics of autoconf 2.60.
67758         Reported by Bruno Haible.
67760         bootstrap: improve some comments
67761         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
67762         clarification comments.
67764         gettimeofday: provide correct function
67765         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
67766         when replacement is declared, otherwise provide gettimeofday.
67767         Reported by Michael Goffioul.
67769 2010-02-23  Jim Meyering  <meyering@redhat.com>
67771         lib-ignore: relax license to "unlimited", not LGPLv2+
67772         * modules/lib-ignore (License): Relax to "unlimited".
67774 2010-02-23  Jim Meyering  <meyering@redhat.com>
67776         lib-ignore: relax license to LGPLv2+
67777         * modules/lib-ignore (License): Relax to LGPLv2+.
67779 2010-02-22  Eric Blake  <eblake@redhat.com>
67781         lseek: avoid bash 3.2 broken pipe bug
67782         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
67783         warning from bash 3.2.
67784         Reported by Ben Pfaff, with analysis from Bruno Haible.
67786         bootstrap: support non-FSF copyright holder
67787         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
67788         bootstrap.conf override of COPYRIGHT_HOLDER.
67789         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
67791         bootstrap: interoperate with gettext 0.14.1
67792         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
67794         bootstrap: allow for alternate submodule location
67795         * build-aux/bootstrap (gnulib_path): New variable; use instead of
67796         hardcoding submodule location.
67797         (gnulib_mk): Allow direct use of Makefile.am.
67799         bootstrap: use GNULIB_SRCDIR to reduce disk usage
67800         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
67801         rather than reconfiguring where the submodule points.
67803         gettimeofday: restore support for platforms that lack function
67804         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
67805         replacement if function is missing.
67806         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
67807         * modules/sys_time (Makefile.am): Substitute it.
67808         * lib/sys_time.in.h (gettimeofday): Check it.
67809         Reported by Michael Goffioul.
67811 2010-02-21  Bruno Haible  <bruno@clisp.org>
67813         * lib/stdio.in.h (obstack_printf): Fix typo.
67815 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
67817         vc-list-files: use bzr ls's -R option
67818         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
67819         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
67821 2010-02-21  Jim Meyering  <meyering@redhat.com>
67823         init.sh: fix EXEEXT shims to work also for names like test-prog
67824         * tests/init.sh: Re-exec a better shell, when needed.
67825         If the current shell lacks support for posix $(...), an init.sh-using
67826         test will now try to find a shell that supports that.  If EXEEXT is
67827         nonempty, we also require support for hyphen-in-alias-name and shell
67828         substitutions like ${var#glob}.  Failure to find such a shell results
67829         in a skipped test.
67831 2010-02-21  Bruno Haible  <bruno@clisp.org>
67833         Really work around "broken pipe" error message from bash 3.2.
67834         * gnulib-tool (func_reset_sigpipe): Remove function.
67835         (echo): In bash 3.2, define to a function that uses printf.
67836         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
67838 2010-02-20  Bruno Haible  <bruno@clisp.org>
67840         Restore support for automake 1.9.6 with autoconf 2.61.
67841         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
67842         Reported by James Youngman <jay@gnu.org>.
67844 2010-02-20  Bruno Haible  <bruno@clisp.org>
67846         Improve *printf warning condition.
67847         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
67848         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
67849         and the function is overridden due to SIGPIPE emulation.
67851 2010-02-20  Bruno Haible  <bruno@clisp.org>
67853         * lib/stdio.in.h: Tweak comments.
67855 2010-02-19  Bruno Haible  <bruno@clisp.org>
67857         Make it easier to find modules. New gnulib-tool option '--find'.
67858         * gnulib-tool: New option --find.
67859         (func_usage): Document it.
67860         (func_sanitize_modulelist): New function, extracted from
67861         func_all_modules.
67862         (func_all_modules): Invoke it.
67863         * doc/gnulib-tool.texi (Which modules?): New node.
67865 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
67867         * lib/sys_select.in.h: Provide select replacement even if
67868         sys/select.h exists on a system, for Interix.
67870 2010-02-18  Jim Meyering  <meyering@redhat.com>
67872         init.sh: don't use $(...) just yet
67873         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
67874         to accommodate e.g., Solaris' /bin/sh.
67876 2010-02-17  Bruno Haible  <bruno@clisp.org>
67878         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
67879         Reported by Ludovic Courtès <ludo@gnu.org>.
67881 2010-02-16  Simon Josefsson  <simon@josefsson.org>
67883         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
67884         linking with -lintl.
67886 2010-02-17  Simon Josefsson  <simon@josefsson.org>
67888         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
67889         if not provided by the system's netdb.h.  Reported by
67890         ludo@gnu.org (Ludovic Courtès).
67892 2010-02-15  Jim Meyering  <meyering@redhat.com>
67894         init.sh: improve portability and efficiency
67895         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
67896         "dummy" in a for loop.
67897         Use '!', not '^' to select the complement of a character set used
67898         in a "case" statement.
67899         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
67900         Suggestions from Eric Blake.
67902         init.sh: automatically accommodate programs with the .exe suffix
67903         Automatically arrange for an invocation of "prog" to execute the
67904         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
67905         may use the simpler "prog", yet still work when built on a system
67906         that requires specifying the added suffix.
67907         Do this by constructing a function named "prog" that invokes
67908         "prog.exe" for each .exe file in selected directories.
67909         * tests/init.sh (find_exe_basenames_): New function.
67910         (create_exe_shim_functions_): New function.
67911         (path_prepend_): Use it.
67913         maint.mk: mark syntax-check sc_*.m rules as .PHONY
67914         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
67915         "make -t syntax-check" doesn't create a ton of sc_*.m files.
67917 2010-02-14  Jim Meyering  <meyering@redhat.com>
67919         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
67920         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
67921         (sc_prohibit_hash_pjw_without_use): New rule.
67923         maint.mk: allow the default upload destination dir to be overridden
67924         * top/maint.mk (upload_dest_dir_): Define with a default that
67925         preserves the status quo.
67926         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
67927         Reported by Peter Simons.
67929         maint.mk: prohibit inclusion of "hash.h" without_use
67930         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
67932 2010-02-10  Jim Meyering  <meyering@redhat.com>
67934         maint.mk: prohibit inclusion of "ignore-value.h" without_use
67935         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
67937 2010-02-09  Eric Blake  <ebb9@byu.net>
67938         and Bruno Haible  <bruno@clisp.org>
67940         obstack-printf-posix: ensure declaration
67941         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
67942         extracted from gl_FUNC_OBSTACK_PRINTF.
67943         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
67944         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
67945         Likewise.
67946         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
67947         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
67948         0.
67950 2010-02-08  Bruno Haible  <bruno@clisp.org>
67952         gnulib-tool: Fix typo in 2010-02-07 commit.
67953         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
67954         Reported by Eric Blake.
67956 2010-02-07  Bruno Haible  <bruno@clisp.org>
67958         gnulib-tool: Fix up caching patches.
67959         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
67960         option --no-cache. Use associative arrays when supported by the shell.
67961         (sed_comments): New variable.
67962         (modcache): Renamed from do_cache.
67963         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
67964         abbreviate unnecessarily.
67965         (have_associative): New variable.
67966         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
67967         way also for ksh and zsh.
67968         (func_init_sed_convert_to_cache_statements): New function, extracted
67969         from func_cache_lookup_module. Add support for associative arrays.
67970         Don't set the c_MODULE_cached variable here. Ignore all lines before
67971         the first field header. Remove only the final newline, not all trailing
67972         newlines. Support empty fields correctly. Limit the use of 'eval' to
67973         assignments.
67974         (func_get_description, func_get_status, func_get_notice,
67975         func_get_applicability, func_get_filelist, func_get_dependencies,
67976         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
67977         func_get_automake_snippet, func_get_include_directive,
67978         func_get_link_directive, func_get_license, func_get_maintainer):
67979         Update documentation. List the unoptimized code first. Add support for
67980         associative arrays. Limit the use of 'eval' to assignments.
67981         (func_get_applicability): Undo stylistic pessimisations.
67982         (func_get_automake_snippet, func_get_include_directive): Reduce code
67983         duplication.
67984         (func_modules_transitive_closure, func_modules_add_dummy,
67985         func_modules_notice, func_modules_to_filelist, func_add_file,
67986         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
67987         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
67988         func_create_testdir, func_create_megatestdir): Update documentation.
67990 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67992         * gnulib-tool (func_cache_lookup_module): Store the module name
67993         belonging to the cache variable; error out if two different
67994         module names map to the same cache variable name.
67996 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67998         gnulib-tool: Make caching optional.
67999         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
68000         Update matching short versions of --no-changelog.
68001         (func_usage): Update.
68002         (sed_extract_cache_prog): Renamed from ...
68003         (sed_extract_prog): ... this; revert to old extraction script.
68004         (func_get_description, func_get_status)
68005         (func_get_notice, func_get_applicability, func_get_filelist)
68006         (func_get_dependencies, func_get_autoconf_early_snippet)
68007         (func_get_autoconf_snippet, func_get_automake_snippet)
68008         (func_get_include_directive, func_get_link_directive)
68009         (func_get_license, func_get_maintainer): If $do_cache is false,
68010         use old, non-caching extraction scripts.
68011         Suggestion by Bruno Haible.
68013 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68015         gnulib-tool: cache module metainformation.
68016         * gnulib-tool (sed_extract_prog): Match newline before each
68017         header, and rewrite header to a shell variable suffix.
68018         (func_cache_var, func_cache_lookup_module): New functions,
68019         to turn a module name into a cache variable prefix, and to
68020         look up and cache module metainformation.
68021         (func_get_description, func_get_status)
68022         (func_get_notice, func_get_applicability, func_get_filelist)
68023         (func_get_dependencies, func_get_autoconf_early_snippet)
68024         (func_get_autoconf_snippet, func_get_automake_snippet)
68025         (func_get_include_directive, func_get_link_directive)
68026         (func_get_license, func_get_maintainer): Use
68027         func_cache_lookup_module.
68029 2010-02-07  Bruno Haible  <bruno@clisp.org>
68031         fnctl: Fix missing dependency.
68032         * modules/fcntl (Depends-on): Add getdtablesize.
68033         Reported by John W. Eaton <jwe@gnu.org>.
68035 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68037         Argp: fix recognition of short alias options.
68039         * lib/argp-parse.c (convert_options): Fix improper use of
68040         `|' between character values.
68041         * tests/test-argp.c (group1_option): New alias option
68042         --read (-r).
68043         (group1_parser): Special handling for 'r'.
68044         (test15): New test case.
68045         (test_fun): Add test15.
68046         * tests/test-argp-2.sh: Update expected --help and --usage
68047         outputs.
68049 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68051         * tests/test-argp.c: Fix indentation.
68053 2010-02-04  Eric Blake  <ebb9@byu.net>
68055         gettimeofday: expose type of second argument
68056         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
68057         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
68058         * tests/test-gettimeofday.c: Use it to silence warning.
68059         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
68060         the issue.
68062 2010-02-03  Jim Meyering  <meyering@redhat.com>
68064         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
68065         * lib/regcomp.c (TYPE_SIGNED): Define.
68066         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
68068         regcomp.c: avoid a new -Wshadow warning
68069         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
68071 2010-02-01  Jim Meyering  <meyering@redhat.com>
68073         removing useless parentheses in cpp #define directives
68074         For motivation, see commit c0221df4, "define STREQ(a,b)
68075         consistently, removing useless parentheses"
68076         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
68077         * lib/mountlist.c (MNT_IGNORE): Likewise.
68078         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
68080 2010-02-01  Eric Blake  <ebb9@byu.net>
68082         sys_time: use link-warning
68083         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
68084         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
68085         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
68086         * modules/sys_time (Depends-on): Add warn-on-use.
68087         (Makefile.am): Always build replacement.
68088         (configure.ac): Update substitutions.
68089         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
68090         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
68091         bother with SYS_TIME_H.
68092         * modules/gettimeofday (configure.ac): Declare indicator.
68093         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
68094         in use.
68096         closein-tests: silence compiler warning
68097         * tests/test-closein.c (main): Ignore fread result.
68098         * modules/closein-tests (Depends-on): Add ignore-value.
68100         tests: silence warning about system return
68101         * tests/test-areadlink-with-size.c (main): Ignore system result.
68102         * tests/test-areadlink.c (main): Likewise.
68103         * tests/test-areadlinkat-with-size.c (main): Likewise.
68104         * tests/test-areadlinkat.c (main): Likewise.
68105         * tests/test-canonicalize-lgpl.c (main): Likewise.
68106         * tests/test-canonicalize.c (main): Likewise.
68107         * tests/test-chown.c (main): Likewise.
68108         * tests/test-fchownat.c (main): Likewise.
68109         * tests/test-fdutimensat.c (main): Likewise.
68110         * tests/test-fstatat.c (main): Likewise.
68111         * tests/test-futimens.c (main): Likewise.
68112         * tests/test-lchown.c (main): Likewise.
68113         * tests/test-link.c (main): Likewise.
68114         * tests/test-linkat.c (main): Likewise.
68115         * tests/test-lstat.c (main): Likewise.
68116         * tests/test-mkdir.c (main): Likewise.
68117         * tests/test-mkdirat.c (main): Likewise.
68118         * tests/test-mkfifo.c (main): Likewise.
68119         * tests/test-mkfifoat.c (main): Likewise.
68120         * tests/test-mknod.c (main): Likewise.
68121         * tests/test-readlink.c (main): Likewise.
68122         * tests/test-remove.c (main): Likewise.
68123         * tests/test-rename.c (main): Likewise.
68124         * tests/test-renameat.c (main): Likewise.
68125         * tests/test-rmdir.c (main): Likewise.
68126         * tests/test-symlink.c (main): Likewise.
68127         * tests/test-symlinkat.c (main): Likewise.
68128         * tests/test-unlink.c (main): Likewise.
68129         * tests/test-unlinkat.c (main): Likewise.
68130         * tests/test-utimens.c (main): Likewise.
68131         * tests/test-utimensat.c (main): Likewise.
68132         * modules/areadlink-tests (Depends-on): Add ignore-value.
68133         * modules/areadlink-with-size-tests (Depends-on): Likewise.
68134         * modules/areadlinkat-tests (Depends-on): Likewise.
68135         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
68136         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
68137         * modules/canonicalize-tests (Depends-on): Likewise.
68138         * modules/chown-tests (Depends-on): Likewise.
68139         * modules/fdutimensat-tests (Depends-on): Likewise.
68140         * modules/futimens-tests (Depends-on): Likewise.
68141         * modules/lchown-tests (Depends-on): Likewise.
68142         * modules/link-tests (Depends-on): Likewise.
68143         * modules/linkat-tests (Depends-on): Likewise.
68144         * modules/lstat-tests (Depends-on): Likewise.
68145         * modules/mkdir-tests (Depends-on): Likewise.
68146         * modules/mkfifo-tests (Depends-on): Likewise.
68147         * modules/mkfifoat-tests (Depends-on): Likewise.
68148         * modules/mknod-tests (Depends-on): Likewise.
68149         * modules/openat-tests (Depends-on): Likewise.
68150         * modules/readlink-tests (Depends-on): Likewise.
68151         * modules/remove-tests (Depends-on): Likewise.
68152         * modules/rename-tests (Depends-on): Likewise.
68153         * modules/renameat-tests (Depends-on): Likewise.
68154         * modules/rmdir-tests (Depends-on): Likewise.
68155         * modules/symlink-tests (Depends-on): Likewise.
68156         * modules/symlinkat-tests (Depends-on): Likewise.
68157         * modules/unlink-tests (Depends-on): Likewise.
68158         * modules/utimens-tests (Depends-on): Likewise.
68159         * modules/utimensat-tests (Depends-on): Likewise.
68161 2010-01-31  Bruno Haible  <bruno@clisp.org>
68163         Perform the same test for many <math.h> functions.
68164         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
68165         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
68166         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
68167         of gl_MATHFUNC.
68168         * modules/acos (configure.ac): Likewise.
68169         * modules/asin (configure.ac): Likewise.
68170         * modules/atan (configure.ac): Likewise.
68171         * modules/atan2 (configure.ac): Likewise.
68172         * modules/cbrt (configure.ac): Likewise.
68173         * modules/copysign (configure.ac): Likewise.
68174         * modules/cos (configure.ac): Likewise.
68175         * modules/cosh (configure.ac): Likewise.
68176         * modules/erf (configure.ac): Likewise.
68177         * modules/erfc (configure.ac): Likewise.
68178         * modules/exp (configure.ac): Likewise.
68179         * modules/fmod (configure.ac): Likewise.
68180         * modules/hypot (configure.ac): Likewise.
68181         * modules/j0 (configure.ac): Likewise.
68182         * modules/j1 (configure.ac): Likewise.
68183         * modules/jn (configure.ac): Likewise.
68184         * modules/lgamma (configure.ac): Likewise.
68185         * modules/log (configure.ac): Likewise.
68186         * modules/log10 (configure.ac): Likewise.
68187         * modules/log1p (configure.ac): Likewise.
68188         * modules/pow (configure.ac): Likewise.
68189         * modules/remainder (configure.ac): Likewise.
68190         * modules/sin (configure.ac): Likewise.
68191         * modules/sinh (configure.ac): Likewise.
68192         * modules/tan (configure.ac): Likewise.
68193         * modules/tanh (configure.ac): Likewise.
68194         * modules/y0 (configure.ac): Likewise.
68195         * modules/y1 (configure.ac): Likewise.
68196         * modules/yn (configure.ac): Likewise.
68197         Suggested by Paolo Bonzini.
68199 2010-01-31  Bruno Haible  <bruno@clisp.org>
68201         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
68203 2010-01-31  Bruno Haible  <bruno@clisp.org>
68205         Work around getdelim() bug on FreeBSD 8.0.
68206         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
68207         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
68208         not work.
68209         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
68210         is 1.
68211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
68212         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
68213         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
68214         a non-zero size.
68215         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
68217 2010-01-31  Bruno Haible  <bruno@clisp.org>
68219         Work around getline() bug on FreeBSD 8.0.
68220         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
68221         and a non-zero size.
68222         * tests/test-getline.c (main): Likewise.
68223         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
68224         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
68226 2010-01-28  Eric Blake  <ebb9@byu.net>
68228         regex: fix build failure
68229         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
68230         platforms.
68232 2010-01-28  Jim Meyering  <meyering@redhat.com>
68234         regex: do not ignore memory allocation failure
68235         * lib/regex_internal.c (create_cd_newstate): Detect
68236         re_node_set_init_copy failure.   Extracted from glibc commit
68237         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68239         regex: sync more white-space changes from libc
68240         * lib/regex_internal.c: White-space only changes.
68241         * lib/regexec.c: Likewise.
68243         regex: add many uses of __attribute_warn_unused_result__
68244         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
68245         * lib/regexec.c: Likewise.
68246         Extracted from a messy glibc commit.
68248         regcomp.c: spelling and merge-artifact from glibc
68249         * lib/regcomp.c: Merge remainder of glibc's
68250         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68252         regcomp.c: sync white-space changes from glibc
68253         * lib/regcomp.c: Merge to accommodate white space
68254         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68256         regcomp.c: do not ignore internal return values
68257         * lib/regcomp.c: Do not ignore internal return values.
68258         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
68259         but without its white-space changes and spelling fixes.
68261         regex_internal.h: define __attribute_warn_unused_result__
68262         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
68264         maint: add a syntax-check rule to check for vulnerable Makefile.in
68265         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
68267 2010-01-27  Jim Meyering  <meyering@redhat.com>
68269         ncftpput-ftp: clean up spaces
68270         * build-aux/ncftpput-ftp: Make Copyright line consistent.
68271         Remove trailing blanks.
68273 2010-01-27  Simon Josefsson  <simon@josefsson.org>
68275         * build-aux/git-version-gen: Fix copyright statement.
68276         * build-aux/gnupload: Likewise.
68277         * tests/test-arcfour.c: Likewise.
68278         * tests/test-arctwo.c: Likewise.
68279         * tests/test-count-one-bits.c: Likewise.
68280         * tests/test-crc.c: Likewise.
68281         * tests/test-des.c: Likewise.
68282         * tests/test-gc-arcfour.c: Likewise.
68283         * tests/test-gc-arctwo.c: Likewise.
68284         * tests/test-gc-des.c: Likewise.
68285         * tests/test-gc-hmac-md5.c: Likewise.
68286         * tests/test-gc-hmac-sha1.c: Likewise.
68287         * tests/test-gc-md2.c: Likewise.
68288         * tests/test-gc-md4.c: Likewise.
68289         * tests/test-gc-md5.c: Likewise.
68290         * tests/test-gc-pbkdf2-sha1.c: Likewise.
68291         * tests/test-gc-rijndael.c: Likewise.
68292         * tests/test-gc-sha1.c: Likewise.
68293         * tests/test-gc.c: Likewise.
68294         * tests/test-gethostname.c: Likewise.
68295         * tests/test-gettimeofday.c: Likewise.
68296         * tests/test-hash.c: Likewise.
68297         * tests/test-hmac-md5.c: Likewise.
68298         * tests/test-hmac-sha1.c: Likewise.
68299         * tests/test-md2.c: Likewise.
68300         * tests/test-md4.c: Likewise.
68301         * tests/test-md5.c: Likewise.
68302         * tests/test-memchr.c: Likewise.
68303         * tests/test-memchr2.c: Likewise.
68304         * tests/test-memcmp.c: Likewise.
68305         * tests/test-memmem.c: Likewise.
68306         * tests/test-memrchr.c: Likewise.
68307         * tests/test-rawmemchr.c: Likewise.
68308         * tests/test-read-file.c: Likewise.
68309         * tests/test-rijndael.c: Likewise.
68310         * tests/test-sockets.c: Likewise.
68311         * tests/test-strchrnul.c: Likewise.
68312         * tests/test-strstr.c: Likewise.
68313         * tests/test-strtod.c: Likewise.
68314         * build-aux/ncftpput-ftp: Likewise.
68316 2010-01-26  Eric Blake  <ebb9@byu.net>
68318         ignore-value: update recommended header name
68319         * modules/ignore-value (Include): Only use <> for headers that
68320         exist in glibc.
68322 2010-01-26  Jim Meyering  <meyering@redhat.com>
68324         test-userspec.c: avoid compiler warnings
68325         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
68326         and "initialization discards qualifiers..." warnings.
68327         Put the first "uid" in its own scope, and make char* members "const".
68329 2010-01-25  Bruno Haible  <bruno@clisp.org>
68331         gnulib-tool: Make warning diagnostics consistent.
68332         * gnulib-tool (func_warning): New function.
68333         Use it everywhere where gnulib-tool produces output to stderr and it is
68334         not a fatal error.
68336 2010-01-25  Bruno Haible  <bruno@clisp.org>
68338         Fix test dependencies.
68339         * modules/xstrtol-tests (Depends-on): Add inttypes.
68340         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
68342 2010-01-25  Pádraig Brady  <P@draigBrady.com>
68344         syntax-check: detect incorrect boolean macro values in config.h
68345         * modules/maintainer-makefile (configure.ac): Parameterize the location
68346         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
68347         The logic is from Eric Blake and the location indicated by Jim Meyering.
68348         Note the more natural CONFIG_HEADER name is prohibited by automake
68349         for backwards compatibility reasons.
68350         * top/maint.mk (sc_Wundef_boolean): New rule.
68352 2010-01-25  Jim Meyering  <meyering@redhat.com>
68354         bootstrap: detect MacOS 10.6's shasum, too
68355         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
68356         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
68358 2010-01-23  Jim Meyering  <meyering@redhat.com>
68360         xstrtoll: new module
68361         * modules/xstrtoll: New file.
68362         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
68363         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
68364         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
68365         ./configure fails if you use this module and lack "long long".
68366         * modules/xstrtoll-tests: New module.
68367         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
68368         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
68369         new init.sh-based test framework.
68371 2010-01-24  Bruno Haible  <bruno@clisp.org>
68373         Tests for module 'yn'.
68374         * modules/yn-tests: New file.
68375         * tests/test-yn.c: New file.
68377         Tests for module 'y1'.
68378         * modules/y1-tests: New file.
68379         * tests/test-y1.c: New file.
68381         Tests for module 'y0'.
68382         * modules/y0-tests: New file.
68383         * tests/test-y0.c: New file.
68385         Tests for module 'tanh'.
68386         * modules/tanh-tests: New file.
68387         * tests/test-tanh.c: New file.
68389         Tests for module 'tan'.
68390         * modules/tan-tests: New file.
68391         * tests/test-tan.c: New file.
68393         Tests for module 'sqrt'.
68394         * modules/sqrt-tests: New file.
68395         * tests/test-sqrt.c: New file.
68397         Tests for module 'sinh'.
68398         * modules/sinh-tests: New file.
68399         * tests/test-sinh.c: New file.
68401         Tests for module 'sin'.
68402         * modules/sin-tests: New file.
68403         * tests/test-sin.c: New file.
68405         Tests for module 'rint'.
68406         * modules/rint-tests: New file.
68407         * tests/test-rint.c: New file.
68409         Tests for module 'remainder'.
68410         * modules/remainder-tests: New file.
68411         * tests/test-remainder.c: New file.
68413         Tests for module 'pow'.
68414         * modules/pow-tests: New file.
68415         * tests/test-pow.c: New file.
68417         Tests for module 'nextafter'.
68418         * modules/nextafter-tests: New file.
68419         * tests/test-nextafter.c: New file.
68421         Tests for module 'modf'.
68422         * modules/modf-tests: New file.
68423         * tests/test-modf.c: New file.
68425         Tests for module 'logb'.
68426         * modules/logb-tests: New file.
68427         * tests/test-logb.c: New file.
68429         Tests for module 'log1p'.
68430         * modules/log1p-tests: New file.
68431         * tests/test-log1p.c: New file.
68433         Tests for module 'log10'.
68434         * modules/log10-tests: New file.
68435         * tests/test-log10.c: New file.
68437         Tests for module 'log'.
68438         * modules/log-tests: New file.
68439         * tests/test-log.c: New file.
68441         Tests for module 'lgamma'.
68442         * modules/lgamma-tests: New file.
68443         * tests/test-lgamma.c: New file.
68445         Tests for module 'ldexp'.
68446         * modules/ldexp-tests: New file.
68447         * tests/test-ldexp.c: New file.
68449         Tests for module 'jn'.
68450         * modules/jn-tests: New file.
68451         * tests/test-jn.c: New file.
68453         Tests for module 'j1'.
68454         * modules/j1-tests: New file.
68455         * tests/test-j1.c: New file.
68457         Tests for module 'j0'.
68458         * modules/j0-tests: New file.
68459         * tests/test-j0.c: New file.
68461         Tests for module 'hypot'.
68462         * modules/hypot-tests: New file.
68463         * tests/test-hypot.c: New file.
68465         Tests for module 'fmod'.
68466         * modules/fmod-tests: New file.
68467         * tests/test-fmod.c: New file.
68469         Tests for module 'fabs'.
68470         * modules/fabs-tests: New file.
68471         * tests/test-fabs.c: New file.
68473         Tests for module 'exp'.
68474         * modules/exp-tests: New file.
68475         * tests/test-exp.c: New file.
68477         Tests for module 'erfc'.
68478         * modules/erfc-tests: New file.
68479         * tests/test-erfc.c: New file.
68481         Tests for module 'erf'.
68482         * modules/erf-tests: New file.
68483         * tests/test-erf.c: New file.
68485         Tests for module 'cosh'.
68486         * modules/cosh-tests: New file.
68487         * tests/test-cosh.c: New file.
68489         Tests for module 'cos'.
68490         * modules/cos-tests: New file.
68491         * tests/test-cos.c: New file.
68493         Tests for module 'copysign'.
68494         * modules/copysign-tests: New file.
68495         * tests/test-copysign.c: New file.
68497         Tests for module 'cbrt'.
68498         * modules/cbrt-tests: New file.
68499         * tests/test-cbrt.c: New file.
68501         Tests for module 'atan2'.
68502         * modules/atan2-tests: New file.
68503         * tests/test-atan2.c: New file.
68505         Tests for module 'atan'.
68506         * modules/atan-tests: New file.
68507         * tests/test-atan.c: New file.
68509         Tests for module 'asin'.
68510         * modules/asin-tests: New file.
68511         * tests/test-asin.c: New file.
68513         Tests for module 'acos'.
68514         * modules/acos-tests: New file.
68515         * tests/test-acos.c: New file.
68517 2010-01-24  Bruno Haible  <bruno@clisp.org>
68519         Fix tests for common <math.h> functions.
68520         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
68521         code snippet that references the function pointer, rather than merely
68522         calling the function. Substitute the FUNC_LIBM variable.
68523         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
68524         * modules/acos (configure.ac): Likewise.
68525         * modules/asin (configure.ac): Likewise.
68526         * modules/atan (configure.ac): Likewise.
68527         * modules/atan2 (configure.ac): Likewise.
68528         * modules/cbrt (configure.ac): Likewise.
68529         * modules/copysign (configure.ac): Likewise.
68530         * modules/cos (configure.ac): Likewise.
68531         * modules/cosh (configure.ac): Likewise.
68532         * modules/erf (configure.ac): Likewise.
68533         * modules/erfc (configure.ac): Likewise.
68534         * modules/exp (configure.ac): Likewise.
68535         * modules/fabs (configure.ac): Likewise.
68536         * modules/fmod (configure.ac): Likewise.
68537         * modules/hypot (configure.ac): Likewise.
68538         * modules/j0 (configure.ac): Likewise.
68539         * modules/j1 (configure.ac): Likewise.
68540         * modules/jn (configure.ac): Likewise.
68541         * modules/ldexp (configure.ac): Likewise.
68542         * modules/lgamma (configure.ac): Likewise.
68543         * modules/log (configure.ac): Likewise.
68544         * modules/log10 (configure.ac): Likewise.
68545         * modules/log1p (configure.ac): Likewise.
68546         * modules/logb (configure.ac): Likewise.
68547         * modules/modf (configure.ac): Likewise.
68548         * modules/nextafter (configure.ac): Likewise.
68549         * modules/pow (configure.ac): Likewise.
68550         * modules/remainder (configure.ac): Likewise.
68551         * modules/rint (configure.ac): Likewise.
68552         * modules/sin (configure.ac): Likewise.
68553         * modules/sinh (configure.ac): Likewise.
68554         * modules/tan (configure.ac): Likewise.
68555         * modules/tanh (configure.ac): Likewise.
68556         * modules/y0 (configure.ac): Likewise.
68557         * modules/y1 (configure.ac): Likewise.
68558         * modules/yn (configure.ac): Likewise.
68560 2010-01-24  Bruno Haible  <bruno@clisp.org>
68562         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
68563         * tests/test-acosl.c (x): New variable.
68564         (main): Store argument in x and fetch it from x.
68565         * tests/test-asinl.c (x): New variable.
68566         (main): Store argument in x and fetch it from x.
68567         * tests/test-atanl.c (x): New variable.
68568         (main): Store argument in x and fetch it from x.
68569         * tests/test-cosl.c (x): New variable.
68570         (main): Store argument in x and fetch it from x.
68571         * tests/test-expl.c (x): New variable.
68572         (main): Store argument in x and fetch it from x.
68573         * tests/test-logl.c (x): New variable.
68574         (main): Store argument in x and fetch it from x.
68575         * tests/test-sinl.c (x): New variable.
68576         (main): Store argument in x and fetch it from x.
68577         * tests/test-sqrtl.c (x): New variable.
68578         (main): Store argument in x and fetch it from x.
68579         * tests/test-tanl.c (x): New variable.
68580         (main): Store argument in x and fetch it from x.
68582 2010-01-24  Bruno Haible  <bruno@clisp.org>
68584         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
68585         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
68586         assignments to the initial TESTS_ENVIRONMENT.
68587         * doc/gnulib.texi (Unit test modules): Document it.
68588         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
68589         TESTS_ENVIRONMENT.
68590         * modules/btowc-tests (Makefile.am): Likewise.
68591         * modules/c-stack-tests (Makefile.am): Likewise.
68592         * modules/c-strcase-tests (Makefile.am): Likewise.
68593         * modules/copy-file-tests (Makefile.am): Likewise.
68594         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
68595         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
68596         * modules/mbrtowc-tests (Makefile.am): Likewise.
68597         * modules/mbscasecmp-tests (Makefile.am): Likewise.
68598         * modules/mbscasestr-tests (Makefile.am): Likewise.
68599         * modules/mbschr-tests (Makefile.am): Likewise.
68600         * modules/mbscspn-tests (Makefile.am): Likewise.
68601         * modules/mbsinit-tests (Makefile.am): Likewise.
68602         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
68603         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
68604         * modules/mbspbrk-tests (Makefile.am): Likewise.
68605         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
68606         * modules/mbsrchr-tests (Makefile.am): Likewise.
68607         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
68608         * modules/mbsspn-tests (Makefile.am): Likewise.
68609         * modules/mbsstr-tests (Makefile.am): Likewise.
68610         * modules/nl_langinfo-tests (Makefile.am): Likewise.
68611         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
68612         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
68613         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
68614         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
68615         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
68616         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
68617         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
68618         * modules/wcrtomb-tests (Makefile.am): Likewise.
68619         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
68620         * modules/wcsrtombs-tests (Makefile.am): Likewise.
68621         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
68622         assignments from TESTS_ENVIRONMENT.
68623         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
68624         augmentation.
68625         * modules/argp-version-etc-tests (Makefile.am): Likewise.
68626         * modules/atexit-tests (Makefile.am): Likewise.
68627         * modules/binary-io-tests (Makefile.am): Likewise.
68628         * modules/closein-tests (Makefile.am): Likewise.
68629         * modules/dprintf-posix-tests (Makefile.am): Likewise.
68630         * modules/exclude-tests (Makefile.am): Likewise.
68631         * modules/fflush-tests (Makefile.am): Likewise.
68632         * modules/fpending-tests (Makefile.am): Likewise.
68633         * modules/fprintf-posix-tests (Makefile.am): Likewise.
68634         * modules/freadahead-tests (Makefile.am): Likewise.
68635         * modules/freadptr-tests (Makefile.am): Likewise.
68636         * modules/freadseek-tests (Makefile.am): Likewise.
68637         * modules/fseek-tests (Makefile.am): Likewise.
68638         * modules/fseeko-tests (Makefile.am): Likewise.
68639         * modules/ftell-tests (Makefile.am): Likewise.
68640         * modules/ftello-tests (Makefile.am): Likewise.
68641         * modules/idpriv-drop-tests (Makefile.am): Likewise.
68642         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
68643         * modules/lseek-tests (Makefile.am): Likewise.
68644         * modules/parse-duration-tests (Makefile.am): Likewise.
68645         * modules/perror-tests (Makefile.am): Likewise.
68646         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
68647         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
68648         * modules/pipe-tests (Makefile.am): Likewise.
68649         * modules/pread-tests (Makefile.am): Likewise.
68650         * modules/printf-posix-tests (Makefile.am): Likewise.
68651         * modules/select-tests (Makefile.am): Likewise.
68652         * modules/sigpipe-tests (Makefile.am): Likewise.
68653         * modules/tsearch-tests (Makefile.am): Likewise.
68654         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
68655         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
68656         * modules/uniname/uniname-tests (Makefile.am): Likewise.
68657         * modules/uniwidth/width-tests (Makefile.am): Likewise.
68658         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
68659         * modules/version-etc-tests (Makefile.am): Likewise.
68660         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
68661         * modules/vprintf-posix-tests (Makefile.am): Likewise.
68662         * modules/xalloc-die-tests (Makefile.am): Likewise.
68663         * modules/xprintf-posix-tests (Makefile.am): Likewise.
68664         * modules/xstrtoimax-tests (Makefile.am): Likewise.
68665         * modules/xstrtol-tests (Makefile.am): Likewise.
68666         * modules/xstrtoumax-tests (Makefile.am): Likewise.
68667         * modules/yesno-tests (Makefile.am): Likewise.
68668         Suggested by Jim Meyering.
68670 2010-01-24  Bruno Haible  <bruno@clisp.org>
68672         More documentation.
68673         * doc/gnulib.texi (Writing modules): New chapter.
68674         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
68675         the new chapter.
68677 2010-01-24  Jim Meyering  <meyering@redhat.com>
68679         maint.mk: do not prepend "./" after filtering
68680         * top/maint.mk (_prepend_srcdir_prefix): New variable
68681         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
68682         "./" when $(srcdir) is ".".
68684         define STREQ(a,b) consistently, removing useless parentheses
68685         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
68686         since the only risk is that "a" or "b" contains an unparenthesized
68687         comma, but if either did that, STREQ would have 3 or more arguments.
68688         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
68689         * lib/fts.c (STREQ): Remove unnecessary parentheses.
68690         * lib/hash-triple.c (STREQ): Likewise.
68691         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
68692         * lib/getugroups.c (STREQ): Likewise.
68694 2010-01-23  Jim Meyering  <meyering@redhat.com>
68696         maint.mk: fix syntax-check in a non-srcdir build directory
68697         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
68698         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
68700 2010-01-22  Jim Meyering  <meyering@redhat.com>
68702         userspec: add unit tests
68703         * tests/test-userspec.c: New file.
68704         * modules/userspec-tests: Likewise.
68706 2010-01-21  Jim Meyering  <meyering@redhat.com>
68708         maint.mk: handle source file names containing "." robustly
68709         * top/maint.mk (_dot_escaped_srcdir): Define.
68710         (VC_LIST): Use it in LHS of sed substitution.
68712 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
68714         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
68715         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
68716         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
68717         from a non-srcdir build.
68719 2010-01-20  Eric Blake  <ebb9@byu.net>
68721         warn-on-use: use instead of link-warning
68722         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
68723         * modules/unistd (Depends-on, Makefile.am): Likewise.
68724         * modules/arpa_inet (Depends-on): Replace link-warning with
68725         warn-on-use.
68726         (Makefile.am): Update rules accordingly.
68727         * modules/ctype (Depends-on, Makefile.am): Likewise.
68728         * modules/dirent (Depends-on, Makefile.am): Likewise.
68729         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
68730         * modules/inttypes (Depends-on, Makefile.am): Likewise.
68731         * modules/langinfo (Depends-on, Makefile.am): Likewise.
68732         * modules/locale (Depends-on, Makefile.am): Likewise.
68733         * modules/math (Depends-on, Makefile.am): Likewise.
68734         * modules/search (Depends-on, Makefile.am): Likewise.
68735         * modules/signal (Depends-on, Makefile.am): Likewise.
68736         * modules/spawn (Depends-on, Makefile.am): Likewise.
68737         * modules/stdlib (Depends-on, Makefile.am): Likewise.
68738         * modules/string (Depends-on, Makefile.am): Likewise.
68739         * modules/strings (Depends-on, Makefile.am): Likewise.
68740         * modules/sys_file (Depends-on, Makefile.am): Likewise.
68741         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
68742         * modules/sys_select (Depends-on, Makefile.am): Likewise.
68743         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
68744         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
68745         * modules/sys_times (Depends-on, Makefile.am): Likewise.
68746         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
68747         * modules/wchar (Depends-on, Makefile.am): Likewise.
68748         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
68749         should be poisoned.
68750         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
68751         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
68752         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
68753         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68754         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
68755         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68756         * m4/math_h.m4 (gl_MATH_H): Likewise.
68757         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68758         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68759         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
68760         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68761         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68762         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68763         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
68764         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
68765         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
68766         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68767         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68768         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68769         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
68770         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
68771         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68772         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68773         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
68774         GL_LINK_WARNING.
68775         * lib/ctype.in.h: Likewise.
68776         * lib/dirent.in.h: Likewise.
68777         * lib/fcntl.in.h: Likewise.
68778         * lib/inttypes.in.h: Likewise.
68779         * lib/langinfo.in.h: Likewise.
68780         * lib/locale.in.h: Likewise.
68781         * lib/math.in.h: Likewise.
68782         * lib/search.in.h: Likewise.
68783         * lib/signal.in.h: Likewise.
68784         * lib/spawn.in.h: Likewise.
68785         * lib/stdio.in.h: Likewise.
68786         * lib/stdlib.in.h: Likewise.
68787         * lib/string.in.h: Likewise.
68788         * lib/strings.in.h: Likewise.
68789         * lib/sys_file.in.h: Likewise.
68790         * lib/sys_ioctl.in.h: Likewise.
68791         * lib/sys_select.in.h: Likewise.
68792         * lib/sys_socket.in.h: Likewise.
68793         * lib/sys_stat.in.h: Likewise.
68794         * lib/sys_times.in.h: Likewise.
68795         * lib/sys_utsname.in.h: Likewise.
68796         * lib/unistd.in.h: Likewise.
68797         * lib/wchar.in.h: Likewise.
68799 2010-01-20  Bruno Haible  <bruno@clisp.org>
68801         Avoid duplicate -lm.
68802         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
68803         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
68804         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
68805         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
68806         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
68807         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
68808         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
68809         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
68810         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
68811         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
68812         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
68813         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
68814         Reported by Paolo Bonzini.
68816 2010-01-19  Bruno Haible  <bruno@clisp.org>
68818         langinfo, nl_langinfo: Relicense under LGPLv2+.
68819         * modules/langinfo (License): Change to LGPLv2+.
68820         * modules/nl_langinfo (License): Likewise.
68821         Patch by David Lutterkort <lutter@redhat.com>.
68823 2010-01-19  Bruno Haible  <bruno@clisp.org>
68825         Avoid compilation error with cc on OSF/1 5.1.
68826         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
68827         statement, not before.
68828         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68830 2010-01-18  Bruno Haible  <bruno@clisp.org>
68832         Avoid a link error due to the __printf__ symbol.
68833         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
68834         and 2.6.x.
68835         (__format__, __printf__): Remove definitions.
68836         * lib/argp-fmtstream.h: Likewise.
68837         * lib/argp.h: Likewise.
68838         * lib/error.h: Likewise.
68839         * lib/vasnprintf.h: Likewise.
68840         * lib/xprintf.h: Likewise.
68841         * lib/xvasprintf.h: Likewise.
68842         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68844 2010-01-18  Bruno Haible  <bruno@clisp.org>
68846         Tests for module 'tanl'.
68847         * modules/tanl-tests: New file.
68848         * tests/test-tanl.c: New file.
68850         Tests for module 'sqrtl'.
68851         * modules/sqrtl-tests: New file.
68852         * tests/test-sqrtl.c: New file.
68854         Tests for module 'sinl'.
68855         * modules/sinl-tests: New file.
68856         * tests/test-sinl.c: New file.
68858         Tests for module 'logl'.
68859         * modules/logl-tests: New file.
68860         * tests/test-logl.c: New file.
68862         Tests for module 'expl'.
68863         * modules/expl-tests: New file.
68864         * tests/test-expl.c: New file.
68866         Tests for module 'cosl'.
68867         * modules/cosl-tests: New file.
68868         * tests/test-cosl.c: New file.
68870         Tests for module 'atanl'.
68871         * modules/atanl-tests: New file.
68872         * tests/test-atanl.c: New file.
68874         Tests for module 'asinl'.
68875         * modules/asinl-tests: New file.
68876         * tests/test-asinl.c: New file.
68878         Tests for module 'acosl'.
68879         * modules/acosl-tests: New file.
68880         * tests/test-acosl.c: New file.
68882         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
68883         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
68884         tanl): Use the standard gnulib idiom.
68885         * lib/cosl.c: Don't include trigl.c and sincosl.c.
68886         * lib/sinl.c: Likewise.
68887         * lib/tanl.c: Don't include trigl.c.
68888         (kernel_tanl): Make static.
68889         * lib/sincosl.c: Include trigl.h first.
68890         * lib/trigl.c: Likewise.
68891         * m4/acosl.m4: New file.
68892         * m4/asinl.m4: New file.
68893         * m4/atanl.m4: New file.
68894         * m4/cosl.m4: New file.
68895         * m4/expl.m4: New file.
68896         * m4/logl.m4: New file.
68897         * m4/sinl.m4: New file.
68898         * m4/sqrtl.m4: New file.
68899         * m4/tanl.m4: New file.
68900         * m4/mathl.m4: Remove file.
68901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
68902         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
68903         Don't initialize GNULIB_MATHL.
68904         * modules/acosl: New file.
68905         * modules/asinl: New file.
68906         * modules/atanl: New file.
68907         * modules/cosl: New file.
68908         * modules/expl: New file.
68909         * modules/logl: New file.
68910         * modules/sinl: New file.
68911         * modules/sqrtl: New file.
68912         * modules/tanl: New file.
68913         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
68914         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
68915         substitute GNULIB_MATHL.
68916         * modules/mathl: Rewritten.
68917         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
68918         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
68919         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
68920         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
68921         * doc/posix-functions/expl.texi: Mention the 'expl' module.
68922         * doc/posix-functions/logl.texi: Mention the 'logl' module.
68923         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
68924         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
68925         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
68927 2010-01-18  Bruno Haible  <bruno@clisp.org>
68929         sqrt: Make gl_FUNC_SQRT requirable.
68930         * m4/sqrt.m4: New file.
68931         * modules/sqrt (Files): Add it.
68932         (configure.ac): Invoke gl_FUNC_SQRT.
68934 2010-01-18  Bruno Haible  <bruno@clisp.org>
68936         New modules for common <math.h> functions.
68937         * m4/mathfunc.m4: New file.
68938         * modules/acos: New file.
68939         * modules/asin: New file.
68940         * modules/atan: New file.
68941         * modules/atan2: New file.
68942         * modules/cbrt: New file.
68943         * modules/copysign: New file.
68944         * modules/cos: New file.
68945         * modules/cosh: New file.
68946         * modules/erf: New file.
68947         * modules/erfc: New file.
68948         * modules/exp: New file.
68949         * modules/fabs: New file.
68950         * modules/fmod: New file.
68951         * modules/hypot: New file.
68952         * modules/j0: New file.
68953         * modules/j1: New file.
68954         * modules/jn: New file.
68955         * modules/ldexp: New file.
68956         * modules/lgamma: New file.
68957         * modules/log: New file.
68958         * modules/log10: New file.
68959         * modules/log1p: New file.
68960         * modules/logb: New file.
68961         * modules/modf: New file.
68962         * modules/nextafter: New file.
68963         * modules/pow: New file.
68964         * modules/remainder: New file.
68965         * modules/rint: New file.
68966         * modules/sin: New file.
68967         * modules/sinh: New file.
68968         * modules/sqrt: New file.
68969         * modules/tan: New file.
68970         * modules/tanh: New file.
68971         * modules/y0: New file.
68972         * modules/y1: New file.
68973         * modules/yn: New file.
68974         * doc/posix-functions/acos.texi: Mention the 'acos' module.
68975         * doc/posix-functions/asin.texi: Mention the 'asin' module.
68976         * doc/posix-functions/atan.texi: Mention the 'atan' module.
68977         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
68978         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
68979         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
68980         * doc/posix-functions/cos.texi: Mention the 'cos' module.
68981         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
68982         * doc/posix-functions/erf.texi: Mention the 'erf' module.
68983         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
68984         * doc/posix-functions/exp.texi: Mention the 'exp' module.
68985         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
68986         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
68987         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
68988         * doc/posix-functions/j0.texi: Mention the 'j0' module.
68989         * doc/posix-functions/j1.texi: Mention the 'j1' module.
68990         * doc/posix-functions/jn.texi: Mention the 'jn' module.
68991         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
68992         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
68993         * doc/posix-functions/log.texi: Mention the 'log' module.
68994         * doc/posix-functions/log10.texi: Mention the 'log10' module.
68995         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
68996         * doc/posix-functions/logb.texi: Mention the 'logb' module.
68997         * doc/posix-functions/modf.texi: Mention the 'modf' module.
68998         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
68999         * doc/posix-functions/pow.texi: Mention the 'pow' module.
69000         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
69001         * doc/posix-functions/rint.texi: Mention the 'rint' module.
69002         * doc/posix-functions/sin.texi: Mention the 'sin' module.
69003         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
69004         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
69005         * doc/posix-functions/tan.texi: Mention the 'tan' module.
69006         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
69007         * doc/posix-functions/y0.texi: Mention the 'y0' module.
69008         * doc/posix-functions/y1.texi: Mention the 'y1' module.
69009         * doc/posix-functions/yn.texi: Mention the 'yn' module.
69011 2010-01-18  Jim Meyering  <meyering@redhat.com>
69013         ignore-value: relax license to LGPLv2+
69014         * modules/ignore-value (License): Relax to LGPLv2+.
69016         getdate: don't leak when TZ contains two or more '"'s
69017         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
69018         double quote in TZ after the first one.
69020         readtokens: do not leak internal token_lengths buffer
69021         * lib/readtokens.c (readtokens): Free the local, lengths,
69022         when the supplied "token_lengths" parameter is NULL.
69024 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69026         Fix a couple of missing LIBTHREAD link failures on AIX.
69027         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
69028         $(LIBTHREAD).
69029         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
69031         Link test-poll against INET_PTON_LIB.
69032         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
69033         for inet_pton on Solaris 10.
69035 2010-01-17  Bruno Haible  <bruno@clisp.org>
69037         unistdio/*-sprintf: Fix typo in module description.
69038         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
69039         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
69040         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
69041         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
69042         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
69043         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
69044         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
69045         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69047 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69049         gnulib-tool: fix filelist for AIX, HP-UX ksh.
69050         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
69051         variables in shell case patterns, for AIX and HP-UX ksh.
69053         Split large sed scripts, for HP-UX sed.
69054         * modules/stdio: Split sed scripts around 50 sed commands,
69055         to avoid HP-UX limit of 99 commands, in the near future.
69056         * modules/string: Likewise.
69057         * modules/unistd: Likewise.
69059         gnulib-tool: avoid writing in the current directory.
69060         * gnulib-tool (func_emit_lib_Makefile_am)
69061         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
69062         not in the current directory, so concurrent gnulib-tool
69063         instances do not interfere.
69065 2010-01-16  Jim Meyering  <meyering@redhat.com>
69067         doc: update users.txt
69068         * users.txt: Add grep.
69069         (diffutils, gzip): Update URLs.
69071 2010-01-12  Bruno Haible  <bruno@clisp.org>
69073         posix_spawn: Avoid test failure on Cygwin.
69074         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
69075         characters.
69076         Reported by Simon Josefsson.
69078 2010-01-12  Bruno Haible  <bruno@clisp.org>
69080         * tests/test-cond.c (main): When skipping the test, show the reason.
69082 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69084         * lib/striconv.c (str_cd_iconv): Avoid if before free.
69086 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69088         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
69089         VC_LIST_ALWAYS_EXCLUDE_REGEX.
69091 2010-01-12  Eric Blake  <ebb9@byu.net>
69093         build: guarantee AS_VAR_IF
69094         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
69095         (gl_AS_VAR_IF): Move...
69096         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
69097         Reported by Simon Josefsson.
69099 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69101         * lib/stdio.in.h: Fix typo.
69103 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69105         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
69106         libgpg-error.
69108 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69110         * tests/test-xalloc-die.sh: Use $EXEEXT.
69112 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69113             Bruno Haible  <bruno@clisp.org>
69115         getlogin, getlogin_r: Avoid test failure.
69116         * tests/test-getlogin.c: Include <stdio.h>.
69117         (main): Skip the test when the function fails because stdin is not a
69118         tty.
69119         * tests/test-getlogin_r.c: Include <stdio.h>.
69120         (main): Skip the test when the function fails because stdin is not a
69121         tty.
69123 2010-01-11  Eric Blake  <ebb9@byu.net>
69125         tests: avoid more large file warnings
69126         * tests/test-fflush.c: Avoid warning about ftell use.
69127         * tests/test-fseek.c: Avoid warning about fseek use.
69129 2010-01-10  Bruno Haible  <bruno@clisp.org>
69131         nproc: Work better on Linux when /proc and /sys are not mounted.
69132         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
69133         as lower bound when, on glibc/Linux systems,
69134         sysconf (_SC_NPROCESSORS_CONF) returns 1.
69135         Suggested by Pádraig Brady <P@draigbrady.com>.
69136         Reported by Dmitry V. Levin <ldv@altlinux.org>.
69138         nproc: Refactor.
69139         * lib/nproc.c (num_processors_via_affinity_mask): New function,
69140         extracted from num_processors.
69141         (num_processors): Call it.
69143 2010-01-11  Jim Meyering  <meyering@redhat.com>
69145         utimecmp: avoid new warning from upcoming gcc-4.5.0
69146         * lib/utimecmp.c (BILLION): Define using #define rather than an
69147         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
69149 2010-01-11  Eric Blake  <ebb9@byu.net>
69151         math: add portability warnings for classification macros
69152         * modules/math (Depends-on): Add warn-on-use.
69153         (Makefile.am): Provide new substitutions.
69154         * m4/math_h.m4 (gl_MATH_H): Require inline.
69155         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
69156         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
69157         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
69158         implement warnings.
69160         unistd: warn on use of environ without module
69161         * modules/unistd (Depends-on): Add warn-on-use.
69162         (Makefile.am): Provide new substitutions.
69163         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
69164         * lib/unistd.in.h (environ): Wrap with a warning helper function.
69166         stdio: warn on suspicious uses
69167         * modules/stdio (Depends-on): Add warn-on-use.
69168         (Makefile.am): Provide new substitutions.
69169         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
69170         fseeko.
69171         * lib/stdio.in.h (gets): Always warn on use.
69172         (fseek, ftell): Adjust when warnings are issued, and honor
69173         _GL_NO_LARGE_FILES as a way to silence the warning.
69174         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
69175         any warning about large file offsets.
69176         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
69177         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
69178         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
69179         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
69180         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
69181         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
69182         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
69183         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
69185         warn-on-use: new module
69186         * modules/warn-on-use: New file.
69187         * build-aux/warn-on-use.h: Likewise.
69188         * m4/warn-on-use.m4: Likewise.
69189         * MODULES.html.sh (Support for building): Mention it.
69191 2010-01-10  Bruno Haible  <bruno@clisp.org>
69193         Tests for module 'unistr/u32-strdup'.
69194         * modules/unistr/u32-strdup-tests: New file.
69195         * tests/unistr/test-u32-strdup.c: New file.
69197         Tests for module 'unistr/u16-strdup'.
69198         * modules/unistr/u16-strdup-tests: New file.
69199         * tests/unistr/test-u16-strdup.c: New file.
69201         Tests for module 'unistr/u8-strdup'.
69202         * modules/unistr/u8-strdup-tests: New file.
69203         * tests/unistr/test-u8-strdup.c: New file.
69204         * tests/unistr/test-strdup.h: New file.
69206         Tests for module 'unistr/u32-strncmp'.
69207         * modules/unistr/u32-strncmp-tests: New file.
69208         * tests/unistr/test-u32-strncmp.c: New file.
69210         Tests for module 'unistr/u16-strncmp'.
69211         * modules/unistr/u16-strncmp-tests: New file.
69212         * tests/unistr/test-u16-strncmp.c: New file.
69214         Tests for module 'unistr/u8-strncmp'.
69215         * modules/unistr/u8-strncmp-tests: New file.
69216         * tests/unistr/test-u8-strncmp.c: New file.
69217         * tests/unistr/test-strncmp.h: New file.
69219         Tests for module 'unistr/u32-strcoll'.
69220         * modules/unistr/u32-strcoll-tests: New file.
69221         * tests/unistr/test-u32-strcoll.c: New file.
69223         Tests for module 'unistr/u16-strcoll'.
69224         * modules/unistr/u16-strcoll-tests: New file.
69225         * tests/unistr/test-u16-strcoll.c: New file.
69227         Tests for module 'unistr/u8-strcoll'.
69228         * modules/unistr/u8-strcoll-tests: New file.
69229         * tests/unistr/test-u8-strcoll.c: New file.
69231         Tests for module 'unistr/u32-strcmp'.
69232         * modules/unistr/u32-strcmp-tests: New file.
69233         * tests/unistr/test-u32-strcmp.c: New file.
69234         * tests/unistr/test-u32-strcmp.h: New file.
69236         Tests for module 'unistr/u16-strcmp'.
69237         * modules/unistr/u16-strcmp-tests: New file.
69238         * tests/unistr/test-u16-strcmp.c: New file.
69239         * tests/unistr/test-u16-strcmp.h: New file.
69241         Tests for module 'unistr/u8-strcmp'.
69242         * modules/unistr/u8-strcmp-tests: New file.
69243         * tests/unistr/test-u8-strcmp.c: New file.
69244         * tests/unistr/test-u8-strcmp.h: New file.
69245         * tests/unistr/test-strcmp.h: New file.
69247         Tests for module 'unistr/u32-strncat'.
69248         * modules/unistr/u32-strncat-tests: New file.
69249         * tests/unistr/test-u32-strncat.c: New file.
69251         Tests for module 'unistr/u16-strncat'.
69252         * modules/unistr/u16-strncat-tests: New file.
69253         * tests/unistr/test-u16-strncat.c: New file.
69255         Tests for module 'unistr/u8-strncat'.
69256         * modules/unistr/u8-strncat-tests: New file.
69257         * tests/unistr/test-u8-strncat.c: New file.
69258         * tests/unistr/test-strncat.h: New file.
69260         Tests for module 'unistr/u32-strcat'.
69261         * modules/unistr/u32-strcat-tests: New file.
69262         * tests/unistr/test-u32-strcat.c: New file.
69264         Tests for module 'unistr/u16-strcat'.
69265         * modules/unistr/u16-strcat-tests: New file.
69266         * tests/unistr/test-u16-strcat.c: New file.
69268         Tests for module 'unistr/u8-strcat'.
69269         * modules/unistr/u8-strcat-tests: New file.
69270         * tests/unistr/test-u8-strcat.c: New file.
69271         * tests/unistr/test-strcat.h: New file.
69273         Tests for module 'unistr/u32-stpncpy'.
69274         * modules/unistr/u32-stpncpy-tests: New file.
69275         * tests/unistr/test-u32-stpncpy.c: New file.
69277         Tests for module 'unistr/u16-stpncpy'.
69278         * modules/unistr/u16-stpncpy-tests: New file.
69279         * tests/unistr/test-u16-stpncpy.c: New file.
69281         Tests for module 'unistr/u8-stpncpy'.
69282         * modules/unistr/u8-stpncpy-tests: New file.
69283         * tests/unistr/test-u8-stpncpy.c: New file.
69284         * tests/unistr/test-stpncpy.h: New file.
69286         Tests for module 'unistr/u32-strncpy'.
69287         * modules/unistr/u32-strncpy-tests: New file.
69288         * tests/unistr/test-u32-strncpy.c: New file.
69290         Tests for module 'unistr/u16-strncpy'.
69291         * modules/unistr/u16-strncpy-tests: New file.
69292         * tests/unistr/test-u16-strncpy.c: New file.
69294         Tests for module 'unistr/u8-strncpy'.
69295         * modules/unistr/u8-strncpy-tests: New file.
69296         * tests/unistr/test-u8-strncpy.c: New file.
69297         * tests/unistr/test-strncpy.h: New file.
69299         Tests for module 'unistr/u32-stpcpy'.
69300         * modules/unistr/u32-stpcpy-tests: New file.
69301         * tests/unistr/test-u32-stpcpy.c: New file.
69303         Tests for module 'unistr/u16-stpcpy'.
69304         * modules/unistr/u16-stpcpy-tests: New file.
69305         * tests/unistr/test-u16-stpcpy.c: New file.
69307         Tests for module 'unistr/u8-stpcpy'.
69308         * modules/unistr/u8-stpcpy-tests: New file.
69309         * tests/unistr/test-u8-stpcpy.c: New file.
69310         * tests/unistr/test-stpcpy.h: New file.
69312         Tests for module 'unistr/u32-strcpy'.
69313         * modules/unistr/u32-strcpy-tests: New file.
69314         * tests/unistr/test-u32-strcpy.c: New file.
69316         Tests for module 'unistr/u16-strcpy'.
69317         * modules/unistr/u16-strcpy-tests: New file.
69318         * tests/unistr/test-u16-strcpy.c: New file.
69320         Tests for module 'unistr/u8-strcpy'.
69321         * modules/unistr/u8-strcpy-tests: New file.
69322         * tests/unistr/test-u8-strcpy.c: New file.
69323         * tests/unistr/test-strcpy.h: New file.
69325         Tests for module 'unistr/u32-strnlen'.
69326         * modules/unistr/u32-strnlen-tests: New file.
69327         * tests/unistr/test-u32-strnlen.c: New file.
69329         Tests for module 'unistr/u16-strnlen'.
69330         * modules/unistr/u16-strnlen-tests: New file.
69331         * tests/unistr/test-u16-strnlen.c: New file.
69333         Tests for module 'unistr/u8-strnlen'.
69334         * modules/unistr/u8-strnlen-tests: New file.
69335         * tests/unistr/test-u8-strnlen.c: New file.
69336         * tests/unistr/test-strnlen.h: New file.
69338         Tests for module 'unistr/u32-strlen'.
69339         * modules/unistr/u32-strlen-tests: New file.
69340         * tests/unistr/test-u32-strlen.c: New file.
69342         Tests for module 'unistr/u16-strlen'.
69343         * modules/unistr/u16-strlen-tests: New file.
69344         * tests/unistr/test-u16-strlen.c: New file.
69346         Tests for module 'unistr/u8-strlen'.
69347         * modules/unistr/u8-strlen-tests: New file.
69348         * tests/unistr/test-u8-strlen.c: New file.
69350         Tests for module 'unistr/u32-prev'.
69351         * modules/unistr/u32-prev-tests: New file.
69352         * tests/unistr/test-u32-prev.c: New file.
69354         Tests for module 'unistr/u16-prev'.
69355         * modules/unistr/u16-prev-tests: New file.
69356         * tests/unistr/test-u16-prev.c: New file.
69358         Tests for module 'unistr/u8-prev'.
69359         * modules/unistr/u8-prev-tests: New file.
69360         * tests/unistr/test-u8-prev.c: New file.
69362         Tests for module 'unistr/u32-next'.
69363         * modules/unistr/u32-next-tests: New file.
69364         * tests/unistr/test-u32-next.c: New file.
69366         Tests for module 'unistr/u16-next'.
69367         * modules/unistr/u16-next-tests: New file.
69368         * tests/unistr/test-u16-next.c: New file.
69370         Tests for module 'unistr/u8-next'.
69371         * modules/unistr/u8-next-tests: New file.
69372         * tests/unistr/test-u8-next.c: New file.
69374         Tests for module 'unistr/u32-strmbtouc'.
69375         * modules/unistr/u32-strmbtouc-tests: New file.
69376         * tests/unistr/test-u32-strmbtouc.c: New file.
69378         Tests for module 'unistr/u16-strmbtouc'.
69379         * modules/unistr/u16-strmbtouc-tests: New file.
69380         * tests/unistr/test-u16-strmbtouc.c: New file.
69382         Tests for module 'unistr/u8-strmbtouc'.
69383         * modules/unistr/u8-strmbtouc-tests: New file.
69384         * tests/unistr/test-u8-strmbtouc.c: New file.
69386         Tests for module 'unistr/u32-strmblen'.
69387         * modules/unistr/u32-strmblen-tests: New file.
69388         * tests/unistr/test-u32-strmblen.c: New file.
69390         Tests for module 'unistr/u16-strmblen'.
69391         * modules/unistr/u16-strmblen-tests: New file.
69392         * tests/unistr/test-u16-strmblen.c: New file.
69394         Tests for module 'unistr/u8-strmblen'.
69395         * modules/unistr/u8-strmblen-tests: New file.
69396         * tests/unistr/test-u8-strmblen.c: New file.
69398         Tests for module 'unistr/u32-cpy-alloc'.
69399         * modules/unistr/u32-cpy-alloc-tests: New file.
69400         * tests/unistr/test-u32-cpy-alloc.c: New file.
69402         Tests for module 'unistr/u16-cpy-alloc'.
69403         * modules/unistr/u16-cpy-alloc-tests: New file.
69404         * tests/unistr/test-u16-cpy-alloc.c: New file.
69406         Tests for module 'unistr/u8-cpy-alloc'.
69407         * modules/unistr/u8-cpy-alloc-tests: New file.
69408         * tests/unistr/test-u8-cpy-alloc.c: New file.
69409         * tests/unistr/test-cpy-alloc.h: New file.
69411         Tests for module 'unistr/u32-mbsnlen'.
69412         * modules/unistr/u32-mbsnlen-tests: New file.
69413         * tests/unistr/test-u32-mbsnlen.c: New file.
69415         Tests for module 'unistr/u16-mbsnlen'.
69416         * modules/unistr/u16-mbsnlen-tests: New file.
69417         * tests/unistr/test-u16-mbsnlen.c: New file.
69419         Tests for module 'unistr/u8-mbsnlen'.
69420         * modules/unistr/u8-mbsnlen-tests: New file.
69421         * tests/unistr/test-u8-mbsnlen.c: New file.
69423         Tests for module 'unistr/u32-chr'.
69424         * modules/unistr/u32-chr-tests: New file.
69425         * tests/unistr/test-u32-chr.c: New file.
69427         Tests for module 'unistr/u16-chr'.
69428         * modules/unistr/u16-chr-tests: New file.
69429         * tests/unistr/test-u16-chr.c: New file.
69431         Tests for module 'unistr/u8-chr'.
69432         * modules/unistr/u8-chr-tests: New file.
69433         * tests/unistr/test-u8-chr.c: New file.
69434         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
69436         Tests for module 'unistr/u32-cmp2'.
69437         * modules/unistr/u32-cmp2-tests: New file.
69438         * tests/unistr/test-u32-cmp2.c: New file.
69440         Tests for module 'unistr/u16-cmp2'.
69441         * modules/unistr/u16-cmp2-tests: New file.
69442         * tests/unistr/test-u16-cmp2.c: New file.
69444         Tests for module 'unistr/u8-cmp2'.
69445         * modules/unistr/u8-cmp2-tests: New file.
69446         * tests/unistr/test-u8-cmp2.c: New file.
69447         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
69449         Tests for module 'unistr/u32-cmp'.
69450         * modules/unistr/u32-cmp-tests: New file.
69451         * tests/unistr/test-u32-cmp.c: New file.
69453         Tests for module 'unistr/u16-cmp'.
69454         * modules/unistr/u16-cmp-tests: New file.
69455         * tests/unistr/test-u16-cmp.c: New file.
69457         Tests for module 'unistr/u8-cmp'.
69458         * modules/unistr/u8-cmp-tests: New file.
69459         * tests/unistr/test-u8-cmp.c: New file.
69460         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
69462         Tests for module 'unistr/u32-set'.
69463         * modules/unistr/u32-set-tests: New file.
69464         * tests/unistr/test-u32-set.c: New file.
69466         Tests for module 'unistr/u16-set'.
69467         * modules/unistr/u16-set-tests: New file.
69468         * tests/unistr/test-u16-set.c: New file.
69470         Tests for module 'unistr/u8-set'.
69471         * modules/unistr/u8-set-tests: New file.
69472         * tests/unistr/test-u8-set.c: New file.
69473         * tests/unistr/test-set.h: New file.
69475         Tests for module 'unistr/u32-move'.
69476         * modules/unistr/u32-move-tests: New file.
69477         * tests/unistr/test-u32-move.c: New file.
69479         Tests for module 'unistr/u16-move'.
69480         * modules/unistr/u16-move-tests: New file.
69481         * tests/unistr/test-u16-move.c: New file.
69483         Tests for module 'unistr/u8-move'.
69484         * modules/unistr/u8-move-tests: New file.
69485         * tests/unistr/test-u8-move.c: New file.
69486         * tests/unistr/test-move.h: New file.
69488         Tests for module 'unistr/u32-cpy'.
69489         * modules/unistr/u32-cpy-tests: New file.
69490         * tests/unistr/test-u32-cpy.c: New file.
69492         Tests for module 'unistr/u16-cpy'.
69493         * modules/unistr/u16-cpy-tests: New file.
69494         * tests/unistr/test-u16-cpy.c: New file.
69496         Tests for module 'unistr/u8-cpy'.
69497         * modules/unistr/u8-cpy-tests: New file.
69498         * tests/unistr/test-u8-cpy.c: New file.
69499         * tests/unistr/test-cpy.h: New file.
69501 2010-01-09  Bruno Haible  <bruno@clisp.org>
69503         Tests for module 'unistr/u32-uctomb'.
69504         * modules/unistr/u32-uctomb-tests: New file.
69505         * tests/unistr/test-u32-uctomb.c: New file.
69507         Tests for module 'unistr/u16-uctomb'.
69508         * modules/unistr/u16-uctomb-tests: New file.
69509         * tests/unistr/test-u16-uctomb.c: New file.
69511         Tests for module 'unistr/u8-uctomb'.
69512         * modules/unistr/u8-uctomb-tests: New file.
69513         * tests/unistr/test-u8-uctomb.c: New file.
69515         Tests for module 'unistr/u32-mbtoucr'.
69516         * modules/unistr/u32-mbtoucr-tests: New file.
69517         * tests/unistr/test-u32-mbtoucr.c: New file.
69519         Tests for module 'unistr/u16-mbtoucr'.
69520         * modules/unistr/u16-mbtoucr-tests: New file.
69521         * tests/unistr/test-u16-mbtoucr.c: New file.
69523         Tests for module 'unistr/u8-mbtoucr'.
69524         * modules/unistr/u8-mbtoucr-tests: New file.
69525         * tests/unistr/test-u8-mbtoucr.c: New file.
69527         Tests for module 'unistr/u32-mbtouc'.
69528         * modules/unistr/u32-mbtouc-tests: New file.
69529         * tests/unistr/test-u32-mbtouc.c: New file.
69531         Tests for module 'unistr/u16-mbtouc'.
69532         * modules/unistr/u16-mbtouc-tests: New file.
69533         * tests/unistr/test-u16-mbtouc.c: New file.
69535         Tests for module 'unistr/u8-mbtouc'.
69536         * modules/unistr/u8-mbtouc-tests: New file.
69537         * tests/unistr/test-u8-mbtouc.c: New file.
69539         Tests for module 'unistr/u32-mbtouc-unsafe'.
69540         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
69541         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
69542         * tests/unistr/test-u32-mbtouc.h: New file.
69544         Tests for module 'unistr/u16-mbtouc-unsafe'.
69545         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
69546         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
69547         * tests/unistr/test-u16-mbtouc.h: New file.
69549         Tests for module 'unistr/u8-mbtouc-unsafe'.
69550         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
69551         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
69552         * tests/unistr/test-u8-mbtouc.h: New file.
69554         Tests for module 'unistr/u32-mblen'.
69555         * modules/unistr/u32-mblen-tests: New file.
69556         * tests/unistr/test-u32-mblen.c: New file.
69558         Tests for module 'unistr/u16-mblen'.
69559         * modules/unistr/u16-mblen-tests: New file.
69560         * tests/unistr/test-u16-mblen.c: New file.
69562         Tests for module 'unistr/u8-mblen'.
69563         * modules/unistr/u8-mblen-tests: New file.
69564         * tests/unistr/test-u8-mblen.c: New file.
69566         Tests for module 'unistr/u32-to-u16'.
69567         * modules/unistr/u32-to-u16-tests: New file.
69568         * tests/unistr/test-u32-to-u16.c: New file.
69570         Tests for module 'unistr/u32-to-u8'.
69571         * modules/unistr/u32-to-u8-tests: New file.
69572         * tests/unistr/test-u32-to-u8.c: New file.
69574         Tests for module 'unistr/u16-to-u32'.
69575         * modules/unistr/u16-to-u32-tests: New file.
69576         * tests/unistr/test-u16-to-u32.c: New file.
69578         Tests for module 'unistr/u16-to-u8'.
69579         * modules/unistr/u16-to-u8-tests: New file.
69580         * tests/unistr/test-u16-to-u8.c: New file.
69582         Tests for module 'unistr/u8-to-u32'.
69583         * modules/unistr/u8-to-u32-tests: New file.
69584         * tests/unistr/test-u8-to-u32.c: New file.
69586         Tests for module 'unistr/u8-to-u16'.
69587         * modules/unistr/u8-to-u16-tests: New file.
69588         * tests/unistr/test-u8-to-u16.c: New file.
69590         Tests for module 'unistr/u32-check'.
69591         * modules/unistr/u32-check-tests: New file.
69592         * tests/unistr/test-u32-check.c: New file.
69594         Tests for module 'unistr/u16-check'.
69595         * modules/unistr/u16-check-tests: New file.
69596         * tests/unistr/test-u16-check.c: New file.
69598         Tests for module 'unistr/u8-check'.
69599         * modules/unistr/u8-check-tests: New file.
69600         * tests/unistr/test-u8-check.c: New file.
69602         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
69603         (category_equals): New function.
69604         (main): Add more tests.
69605         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
69607         * tests/unictype/test-bidi_byname.c (main): Add more tests.
69609 2010-01-10  Bruno Haible  <bruno@clisp.org>
69611         unistr/u*-strcoll: Try harder to distinguish different strings.
69612         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
69613         compare s1 and s2 to see if they are different.
69615 2010-01-10  Bruno Haible  <bruno@clisp.org>
69617         unistr/u*-stpncpy: Fix the return value.
69618         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
69619         description of the return value consistent with stpncpy in glibc.
69620         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
69621         written non-NUL unit.
69623 2010-01-10  Bruno Haible  <bruno@clisp.org>
69625         unistr/u*-next: Add missing dependencies.
69626         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
69627         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
69628         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
69630 2010-01-10  Bruno Haible  <bruno@clisp.org>
69632         unistr/u8-mbsnlen: Fix return value for incomplete character.
69633         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
69634         u8_mblen.
69635         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
69636         Remove unistr/u8-mblen.
69637         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
69638         u16_mblen.
69639         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
69640         Remove unistr/u16-mblen.
69642 2010-01-10  Bruno Haible  <bruno@clisp.org>
69644         wchar: Fix compilation error when <wchar.h> is used from coreutils.
69645         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
69646         Reported by Brian Gough <bjg@gnu.org> and
69647         Chris Clayton <chris2553@googlemail.com> via
69648         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
69650 2010-01-09  Bruno Haible  <bruno@clisp.org>
69652         unistr/u16-to-u32: Reject invalid input.
69653         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
69654         u16_mbtouc.
69655         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
69656         Remove unistr/u16-mbtouc.
69658         unistr/u16-to-u8: Reject invalid input.
69659         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
69660         u16_mbtouc.
69661         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
69662         Remove unistr/u16-mbtouc.
69664         unistr/u8-to-u32: Reject invalid input.
69665         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
69666         u8_mbtouc.
69667         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
69668         Remove unistr/u8-mbtouc.
69670         unistr/u8-to-u16: Reject invalid input.
69671         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
69672         u8_mbtouc.
69673         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
69674         Remove unistr/u8-mbtouc.
69676 2010-01-09  Bruno Haible  <bruno@clisp.org>
69678         Tests for module 'getlogin'.
69679         * modules/getlogin-tests: New file.
69680         * tests/test-getlogin.c: New file.
69682         New module 'getlogin'.
69683         * lib/unistd.in.h (getlogin): New declaration.
69684         * lib/getlogin.c: New file.
69685         * m4/getlogin.m4: New file.
69686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
69687         HAVE_GETLOGIN.
69688         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
69689         HAVE_GETLOGIN.
69690         * modules/getlogin: New file.
69691         * doc/posix-functions/getlogin.texi: Mention the new module.
69692         Reported by John W. Eaton <jwe@gnu.org>.
69694 2010-01-09  Bruno Haible  <bruno@clisp.org>
69696         getlogin_r: Support for native Windows.
69697         * lib/getlogin_r.c: Include <windows.h>
69698         (getlogin_r): Implement for native Windows.
69699         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
69700         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
69701         via John W. Eaton <jwe@gnu.org>.
69703 2010-01-09  Bruno Haible  <bruno@clisp.org>
69705         getlogin_r: Small fixes.
69706         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
69707         succeeds.
69708         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
69709         before testing whether getlogin_r is declared. No need to set
69710         HAVE_DECL_GETLOGIN_R to 1.
69711         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
69713 2010-01-09  Bruno Haible  <bruno@clisp.org>
69715         * lib/unistd.in.h (getlogin_r): Add comment.
69717 2010-01-09  Bruno Haible  <bruno@clisp.org>
69719         Tests for module 'getlogin_r'.
69720         * modules/getlogin_r-tests: New file.
69721         * tests/test-getlogin_r.c: New file.
69723 2010-01-09  Jim Meyering  <meyering@redhat.com>
69725         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
69726         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
69727         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
69729 2010-01-08  Simon Josefsson  <simon@josefsson.org>
69731         * lib/dup2.c (rpl_dup2): Improve comment.
69733 2010-01-08  Eric Blake  <ebb9@byu.net>
69735         maint.mk: allow packages to add makefile @@ exceptions
69736         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
69737         (sc_makefile_check): Rename...
69738         (sc_makefile_at_at_check): ...to this, and use hook.
69740         dup2: work around mingw bug
69741         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
69742         Reported by Simon Josefsson.
69744 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
69746         glob: Fix C++ compilation.
69747         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
69748         C++.
69750 2010-01-07  Bruno Haible  <bruno@clisp.org>
69752         Fix indentation of wctype.in.h, broken since 2007-01-06.
69753         * lib/wctype.in.h: Fix indentation of preprocessor directives.
69755 2010-01-07  Bruno Haible  <bruno@clisp.org>
69757         mbslen: Avoid collision with system function.
69758         * lib/string.in.h [MirBSD]: Include <wchar.h>.
69759         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
69760         * m4/mbslen.m4: New file.
69761         * modules/mbslen (Files): Add it.
69762         (configure.ac): Invoke gl_MBSLEN.
69763         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
69764         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
69765         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
69766         via Ian Beckwith <ianb@erislabs.net>.
69768 2010-01-07  Bruno Haible  <bruno@clisp.org>
69770         dirent: Document the last fix.
69771         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
69773 2010-01-07  Bruno Haible  <bruno@clisp.org>
69775         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
69776         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
69777         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
69778         va_list are defined.
69779         * doc/posix-headers/stdio.texi: Document the bug of missing types.
69780         Reported by Eric Blake.
69782 2010-01-07  Bruno Haible  <bruno@clisp.org>
69784         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
69785         * modules/xlist (Depends-on): Add 'list',
69786         * modules/xoset (Depends-on): Add 'oset'.
69787         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69789 2010-01-07  Bruno Haible  <bruno@clisp.org>
69791         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
69792         * doc/posix-functions/strncasecmp.texi: Likewise.
69794 2010-01-07  Bruno Haible  <bruno@clisp.org>
69796         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
69798 2010-01-07  John W. Eaton  <jwe@octave.org>
69800         wctype: allow C++ use
69801         * lib/wctype.in.h: Add extern "C" block for C++.
69803 2010-01-06  Eric Blake  <ebb9@byu.net>
69805         maint.mk: detect incorrect GFDL usage
69806         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
69808 2010-01-06  Jim Meyering  <meyering@redhat.com>
69809         and Eric Blake  <ebb9@byu.net>
69811         maint.mk: ignore multi-line copyright in NEWS
69812         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
69814 2010-01-06  Eric Blake  <ebb9@byu.net>
69816         select: add missing dependency
69817         * modules/select-tests (Depends-on): Move sockets dependency...
69818         * modules/select (Depends-on): ...here.
69819         Reported by Ian Beckwith.
69821         doc: regenerate INSTALL
69822         * doc/INSTALL: Reflect recent autoconf update.
69823         * doc/INSTALL.ISO: Likewise.
69824         * doc/INSTALL.UTF-8: Likewise.
69826         pread: fix compilation on glibc
69827         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
69828         Reported by Ralf Wildenhues.
69830         dirent: fix test failure
69831         * lib/dirent.in.h (includes): Guarantee ino_t.
69832         Reported by Ralf Wildenhues.
69834 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
69836         linkat, renameat: avoid bad free
69837         * lib/at-func2.c (at_func2): Fix typo.
69838         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
69840 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69842         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
69843         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
69844         to avoid failure of symlink test later.
69846 2010-01-06  Eric Blake  <ebb9@byu.net>
69848         stdio, unistd: guarantee ssize_t
69849         * lib/unistd.in.h (includes): Ensure that types required by POSIX
69850         2008 are exposed when needed.
69851         * lib/stdio.in.h (includes): Likewise.
69852         Reported by Ralf Wildenhues.
69854 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
69856         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
69857         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
69858         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
69860 2010-01-06  Jim Meyering  <meyering@redhat.com>
69862         readtokens: this module *does* require xalloc.h
69863         It uses only functions that were omitted by the old syntax-check rule.
69864         * lib/readtokens.c: Include "xalloc.h" once again.
69865         * modules/readtokens (Depends-on): Add xalloc.
69866         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
69868 2010-01-05  Eric Blake  <ebb9@byu.net>
69870         maint: support 'make announcement' from a VPATH build
69871         * top/maint.mk (announcement): Look for correct NEWS file.
69873 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
69875         utimens (fdutimens): ignore a negative FD, per contract
69876         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
69877         when we have a valid file descriptor.  Otherwise, using a brand
69878         new glibc (with just-patched futimens that now fails with EBADF)
69879         would cause this function to fail with ENOSYS.
69880         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
69881         See also http://bugzilla.redhat.com/552320.
69883 2010-01-05  Eric Blake  <ebb9@byu.net>
69885         strcase: document what it provides
69886         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
69887         gnulib module.
69888         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
69889         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
69891 2010-01-05  Jim Meyering  <meyering@redhat.com>
69893         maint: remove useless inclusions of "xalloc.h"
69894         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
69895         * lib/readtokens.c: Likewise.
69896         * lib/same.c: Likewise.
69897         * modules/getloadavg (Depends-on): Remove xalloc.
69898         * modules/readtokens: Likewise.
69899         * modules/same: Likewise.
69901         maint.mk: include 4 more function names in alloca.h-checking regexp
69902         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
69903         regexp.  Before, we would give a false-positive (saying alloca.h
69904         is included unnecessarily) when the only uses involved omitted symbols.
69906         xalloc.h: use consistent formatting
69907         * lib/xalloc.h: Move declarations to start in the first column.
69909 2010-01-05  Eric Blake  <ebb9@byu.net>
69911         mkdir: avoid xalloc
69912         * lib/mkdir.c (includes): Drop unused header.
69913         Reported by John W. Eaton.
69915 2010-01-04  Jim Meyering  <meyering@redhat.com>
69917         nl_langinfo: avoid configure-time syntax error
69918         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
69919         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
69920         the empty string.  Don't let that provoke a shell syntax error.
69922         regcomp, regexec, fnmatch: avoid array bounds read error
69923         * lib/regcomp.c (build_equiv_class): From glibc:
69924         Use only the low 24 bits of a findidx return value as an index
69925         into the weights array.  Patch by Ulrich Drepper:
69926         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
69927         * lib/regexec.c (check_node_accept_bytes): Likewise.
69928         * lib/fnmatch_loop.c (FCT): Likewise.
69930         regcomp: skip collseq lookup when there are no rules
69931         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
69932         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
69934         regcomp: recognize ill-formed { } expressions
69935         * lib/regcomp.c (parse_dup_op): From glibc:
69936         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
69938         regcomp: fix typo in comment
69939         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
69940         s/satisfy/satisfies/.
69942         regcomp: sync from glibc: remove dead store
69943         * lib/regcomp.c (duplicate_node_closure): Remove useless
69944         search_duplicated_node call and dead store.
69946         regcomp: sync from glibc; always use nl_langinfo
69947         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
69948         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
69949         * modules/regex (Depends-on): Add nl_langinfo.
69951 2010-01-04  Eric Blake  <ebb9@byu.net>
69953         fdopendir: fix configure test
69954         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
69956 2010-01-01  Bruno Haible  <bruno@clisp.org>
69958         wchar: Remove unused configure check.
69959         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
69961 2010-01-01  Eric Blake  <ebb9@byu.net>
69963         headers: make check of system header explicit
69964         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
69965         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
69966         ourselves.
69967         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69968         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69969         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69970         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
69971         internals.
69972         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
69973         missing.
69974         Suggested by Bruno Haible.
69976 2010-01-01  Jim Meyering  <meyering@redhat.com>
69978         ChangeLog: tweak to eliminate unnecessary copyright line
69979         * ChangeLog: Remove a copyright line that was mistakenly updated
69980         by today's update-copyright run.  Reported by Eric Blake.
69982         test-update-copyright: don't let envvar setting cause test failure
69983         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
69985 2010-01-01  Bruno Haible  <bruno@clisp.org>
69987         localename: Avoid gcc warning.
69988         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
69989         function if it is not used.
69991 2010-01-01  Jim Meyering  <meyering@redhat.com>
69993         update nearly all FSF copyright year lists to include 2010
69994         Use the same procedure as for 2009, outlined in
69995         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
69997         version-etc: set COPYRIGHT_YEAR to 2010
69998         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
70000 2009-12-31  Eric Blake  <ebb9@byu.net>
70002         doc: correct availability of cygwin 1.5.x getopt
70003         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
70004         variables.
70005         * doc/posix-functions/opterr.texi (opterr): Likewise.
70006         * doc/posix-functions/optind.texi (optind): Likewise.
70007         * doc/posix-functions/optopt.texi (optopt): Likewise.
70008         * doc/posix-functions/tzname.texi (tzname): Likewise.
70010         openat: update maintainer
70011         * modules/openat (Maintainer): Add myself.
70013         utimens: avoid shadowing warning
70014         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
70015         buffers into one, to avoid shadowing, as well as avoiding a
70016         redundant stat.
70017         Reported by Jim Meyering.
70019         test-dup2: avoid compiler warning
70020         * tests/test-dup2.c (is_inheritable): Only define if used.
70022 2010-01-01  Bruno Haible  <bruno@clisp.org>
70024         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
70025         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
70026         defined, use wctomb instead of wcrtomb.
70028 2010-01-01  Bruno Haible  <bruno@clisp.org>
70030         iconv: Reject native Solaris iconv.
70031         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
70032         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
70034 2009-12-31  Bruno Haible  <bruno@clisp.org>
70036         * tests/test-signal.c (main): Remove test of 'SIG'.
70038 2009-12-31  Bruno Haible  <bruno@clisp.org>
70040         spawn: Fix incomplete fix.
70041         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
70042         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
70043         warnings for GNULIB_POSIXCHECK again.
70044         Reported by Eric Blake.
70046 2009-12-31  Bruno Haible  <bruno@clisp.org>
70048         Avoid namespace pollution on glibc systems.
70049         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
70050         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
70051         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
70052         glibc systems.
70054 2009-12-31  Bruno Haible  <bruno@clisp.org>
70056         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
70057         (gl_REPLACE_WCHAR_H): Turn into a no-op.
70058         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
70059         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
70060         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
70061         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
70062         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
70064 2009-12-31  Bruno Haible  <bruno@clisp.org>
70066         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
70067         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
70068         afterwards.
70070 2009-12-31  Bruno Haible  <bruno@clisp.org>
70072         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
70073         SYS_UTSNAME_H.
70075 2009-12-31  Bruno Haible  <bruno@clisp.org>
70077         spawn: Fix misapplied patch.
70078         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
70079         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
70080         warnings for GNULIB_POSIXCHECK.
70082 2009-12-31  Bruno Haible  <bruno@clisp.org>
70084         times: Update after sys_times changed.
70085         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
70086         * modules/times (Files): Add it.
70087         (configure.ac): Invoke gl_FUNC_TIMES.
70089 2009-12-31  Bruno Haible  <bruno@clisp.org>
70091         Use AC_C_INLINE where necessary.
70092         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
70093         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
70094         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70095         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
70096         * m4/mbfile.m4 (gl_MBFILE): Likewise.
70097         * m4/mbiter.m4 (gl_MBITER): Likewise.
70098         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70099         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
70100         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
70101         * modules/u64 (configure.ac): Likewise.
70103 2009-12-31  Bruno Haible  <bruno@clisp.org>
70105         Use AC_C_INLINE instead of module 'inline' where possible.
70106         * modules/inline (Description): Clarify purpose.
70107         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
70108         * modules/count-one-bits (Depends-on): Remove inline.
70109         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
70110         * modules/openat (Depends-on): Remove inline.
70111         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
70112         instead of depending on module 'inline'.
70113         * modules/filevercmp (Depends-on, configure.ac): Likewise.
70114         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
70115         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
70116         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
70117         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
70118         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
70119         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
70120         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
70121         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
70122         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
70123         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
70124         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
70125         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
70126         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
70127         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
70128         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
70129         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
70130         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
70131         Likewise.
70132         * modules/unictype/property-ascii-hex-digit (Depends-on,
70133         configure.ac): Likewise.
70134         * modules/unictype/property-bidi-arabic-digit (Depends-on,
70135         configure.ac): Likewise.
70136         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
70137         configure.ac): Likewise.
70138         * modules/unictype/property-bidi-block-separator (Depends-on,
70139         configure.ac): Likewise.
70140         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
70141         configure.ac): Likewise.
70142         * modules/unictype/property-bidi-common-separator (Depends-on,
70143         configure.ac): Likewise.
70144         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
70145         Likewise.
70146         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
70147         configure.ac): Likewise.
70148         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
70149         configure.ac): Likewise.
70150         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
70151         configure.ac): Likewise.
70152         * modules/unictype/property-bidi-european-digit (Depends-on,
70153         configure.ac): Likewise.
70154         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
70155         configure.ac): Likewise.
70156         * modules/unictype/property-bidi-left-to-right (Depends-on,
70157         configure.ac): Likewise.
70158         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
70159         configure.ac): Likewise.
70160         * modules/unictype/property-bidi-other-neutral (Depends-on,
70161         configure.ac): Likewise.
70162         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
70163         Likewise.
70164         * modules/unictype/property-bidi-segment-separator (Depends-on,
70165         configure.ac): Likewise.
70166         * modules/unictype/property-bidi-whitespace (Depends-on,
70167         configure.ac): Likewise.
70168         * modules/unictype/property-combining (Depends-on, configure.ac):
70169         Likewise.
70170         * modules/unictype/property-composite (Depends-on, configure.ac):
70171         Likewise.
70172         * modules/unictype/property-currency-symbol (Depends-on,
70173         configure.ac): Likewise.
70174         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
70175         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
70176         Likewise.
70177         * modules/unictype/property-default-ignorable-code-point (Depends-on,
70178         configure.ac): Likewise.
70179         * modules/unictype/property-deprecated (Depends-on, configure.ac):
70180         Likewise.
70181         * modules/unictype/property-diacritic (Depends-on, configure.ac):
70182         Likewise.
70183         * modules/unictype/property-extender (Depends-on, configure.ac):
70184         Likewise.
70185         * modules/unictype/property-format-control (Depends-on, configure.ac):
70186         Likewise.
70187         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
70188         Likewise.
70189         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
70190         Likewise.
70191         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
70192         Likewise.
70193         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
70194         Likewise.
70195         * modules/unictype/property-hyphen (Depends-on, configure.ac):
70196         Likewise.
70197         * modules/unictype/property-id-continue (Depends-on, configure.ac):
70198         Likewise.
70199         * modules/unictype/property-id-start (Depends-on, configure.ac):
70200         Likewise.
70201         * modules/unictype/property-ideographic (Depends-on, configure.ac):
70202         Likewise.
70203         * modules/unictype/property-ids-binary-operator (Depends-on,
70204         configure.ac): Likewise.
70205         * modules/unictype/property-ids-trinary-operator (Depends-on,
70206         configure.ac): Likewise.
70207         * modules/unictype/property-ignorable-control (Depends-on,
70208         configure.ac): Likewise.
70209         * modules/unictype/property-iso-control (Depends-on, configure.ac):
70210         Likewise.
70211         * modules/unictype/property-join-control (Depends-on, configure.ac):
70212         Likewise.
70213         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
70214         Likewise.
70215         * modules/unictype/property-line-separator (Depends-on, configure.ac):
70216         Likewise.
70217         * modules/unictype/property-logical-order-exception (Depends-on,
70218         configure.ac): Likewise.
70219         * modules/unictype/property-lowercase (Depends-on, configure.ac):
70220         Likewise.
70221         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
70222         * modules/unictype/property-non-break (Depends-on, configure.ac):
70223         Likewise.
70224         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
70225         Likewise.
70226         * modules/unictype/property-numeric (Depends-on, configure.ac):
70227         Likewise.
70228         * modules/unictype/property-other-alphabetic (Depends-on,
70229         configure.ac): Likewise.
70230         * modules/unictype/property-other-default-ignorable-code-point
70231         (Depends-on, configure.ac): Likewise.
70232         * modules/unictype/property-other-grapheme-extend (Depends-on,
70233         configure.ac): Likewise.
70234         * modules/unictype/property-other-id-continue (Depends-on,
70235         configure.ac): Likewise.
70236         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
70237         Likewise.
70238         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
70239         Likewise.
70240         * modules/unictype/property-other-math (Depends-on, configure.ac):
70241         Likewise.
70242         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
70243         Likewise.
70244         * modules/unictype/property-paired-punctuation (Depends-on,
70245         configure.ac): Likewise.
70246         * modules/unictype/property-paragraph-separator (Depends-on,
70247         configure.ac): Likewise.
70248         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
70249         Likewise.
70250         * modules/unictype/property-pattern-white-space (Depends-on,
70251         configure.ac): Likewise.
70252         * modules/unictype/property-private-use (Depends-on, configure.ac):
70253         Likewise.
70254         * modules/unictype/property-punctuation (Depends-on, configure.ac):
70255         Likewise.
70256         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
70257         Likewise.
70258         * modules/unictype/property-radical (Depends-on, configure.ac):
70259         Likewise.
70260         * modules/unictype/property-sentence-terminal (Depends-on,
70261         configure.ac): Likewise.
70262         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
70263         Likewise.
70264         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
70265         * modules/unictype/property-terminal-punctuation (Depends-on,
70266         configure.ac): Likewise.
70267         * modules/unictype/property-titlecase (Depends-on, configure.ac):
70268         Likewise.
70269         * modules/unictype/property-unassigned-code-value (Depends-on,
70270         configure.ac): Likewise.
70271         * modules/unictype/property-unified-ideograph (Depends-on,
70272         configure.ac): Likewise.
70273         * modules/unictype/property-uppercase (Depends-on, configure.ac):
70274         Likewise.
70275         * modules/unictype/property-variation-selector (Depends-on,
70276         configure.ac): Likewise.
70277         * modules/unictype/property-white-space (Depends-on, configure.ac):
70278         Likewise.
70279         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
70280         Likewise.
70281         * modules/unictype/property-xid-start (Depends-on, configure.ac):
70282         Likewise.
70283         * modules/unictype/property-zero-width (Depends-on, configure.ac):
70284         Likewise.
70285         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
70286         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
70287         Likewise.
70289 2009-12-31  Bruno Haible  <bruno@clisp.org>
70291         Remove unnecessary AC_C_INLINE invocation.
70292         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
70293         since 2009-08-21.
70295 2009-12-31  Jim Meyering  <meyering@redhat.com>
70297         maint.mk: don't require explicit gpg_key_ID in cfg.mk
70298         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
70299         With this change, we can all remove the gpg_key_ID = ... definition
70300         from our respective cfg.mk files.
70302         maint.mk: create announcement template in ~/, not in /tmp
70303         * top/maint.mk (emit_upload_commands): Adjust.
70304         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
70305         Remove temporary file, .ci-msg.
70307 2009-12-31  Eric Blake  <ebb9@byu.net>
70309         link-warning: always build headers with link warnings
70310         * modules/arpa_inet (Makefile.am): Always build replacement
70311         header.
70312         * modules/ctype (Makefile.am): Likewise.
70313         * modules/dirent (Makefile.am): Likewise.
70314         * modules/inttypes (Makefile.am): Likewise.
70315         * modules/langinfo (Makefile.am): Likewise.
70316         * modules/locale (Makefile.am): Likewise.
70317         * modules/spawn (Makefile.am): Likewise.
70318         * modules/sys_file (Makefile.am): Likewise.
70319         * modules/sys_ioctl (Makefile.am): Likewise.
70320         * modules/sys_select (Makefile.am): Likewise.
70321         * modules/sys_socket (Makefile.am): Likewise.
70322         * modules/sys_times (Makefile.am): Likewise.
70323         * modules/sys_utsname (Makefile.am): Likewise.
70324         * modules/sys_wait (Makefile.am): Likewise.
70325         * modules/wchar (Makefile.am): Likewise.
70326         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
70327         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
70328         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
70329         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
70330         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
70331         Likewise.
70332         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
70333         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70334         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
70335         Likewise.
70336         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
70337         Likewise.
70338         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
70339         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
70340         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
70341         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70342         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70343         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70344         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70345         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
70346         (gl_WCHAR_H_DEFAULTS): Likewise.
70348 2009-12-31  Eric Blake  <ebb9@byu.net>
70350         signal, spawn: use link warnings
70351         * lib/signal.in.h (sigset_t): Make unconditional.
70352         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
70353         (sigpending, sigprocmask, sigaction): Add link warnings.
70354         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
70355         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
70356         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
70357         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
70358         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
70359         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
70360         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
70361         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
70362         (posix_spawn_file_actions_destroy)
70363         (posix_spawn_file_actions_addopen)
70364         (posix_spawn_file_actions_addclose)
70365         (posix_spawn_file_actions_adddup2): Likewise.
70366         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
70367         * tests/test-signal.c (main): Enhance test.
70369         spawn: improve wrapper support
70370         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
70371         (gl_SPAWN_H_DEFAULTS): New defaults.
70372         * modules/spawn (Makefile.am): Substitute them.
70373         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
70374         Only declare if missing or broken.
70376         sys_times, sys_utsname: use include_next
70377         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
70378         header.
70379         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
70380         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70381         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70382         * modules/sys_times (Depends-on): Add include_next.
70383         (Makefile.am): Substitute additional values.
70384         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
70385         * lib/sys_times.in.h (includes): Include native header, if
70386         available.
70387         * lib/sys_utsname.in.h (includes): Likewise.
70388         * tests/test-sys_times.c (main): Enhance test.
70390         fdutimensat: revert prior patch
70391         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
70392         utimens.h.
70393         Reported by Bruno Haible.
70395 2009-12-30  Eric Blake  <ebb9@byu.net>
70397         sys_wait: drop link-warning dependency
70398         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
70399         link-warning efforts.
70400         * lib/sys_wait.in.h: Likewise.
70402         fdutimensat: remove bogus dependency
70403         * modules/fdutimensat (Depends-on): Drop inline.
70405         unistd: fix typo
70406         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
70408 2009-12-30  Bruno Haible  <bruno@clisp.org>
70410         Fix compilation error with Solaris cc.
70411         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
70412         * lib/unicase/u16-is-invariant.c: Likewise.
70413         * lib/unicase/u32-is-invariant.c: Likewise.
70414         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70416 2009-12-30  Bruno Haible  <bruno@clisp.org>
70418         Fix test crash.
70419         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
70420         locales.
70421         Reported by Simon Josefsson <simon@josefsson.org>.
70423 2009-12-30  Bruno Haible  <bruno@clisp.org>
70425         Fix compilation error on most platforms.
70426         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
70427         Reported by Simon Josefsson <simon@josefsson.org>
70428         and Nelson H. F. Beebe <beebe@math.utah.edu>.
70430 2009-12-30  Eric Blake  <ebb9@byu.net>
70432         futimens, utimensat: work around ntfs-3g bug
70433         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
70434         a ctime bug is present, and expand workaround to cover ntfs-3g.
70435         * lib/utimens.c (fdutimens, lutimens): Likewise.
70436         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
70437         (validate_timespec): Adjust return value.
70438         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
70439         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
70440         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
70442 2009-12-29  Eric Blake  <ebb9@byu.net>
70444         link-warning: make usage consistent
70445         * modules/ctype (Depends-on): Add link-warning.
70446         (Makefile.am): Update rules accordingly.
70447         * modules/langinfo (Depends-on, Makefile.am): Likewise.
70448         * modules/locale (Depends-on, Makefile.am): Likewise.
70449         * modules/sys_file (Makefile.am): Likewise.
70450         * modules/getopt-posix (Makefile.am): Delete unused link warning
70451         efforts.
70452         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
70453         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
70454         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
70455         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
70457         stdio: remove unused variables
70458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
70459         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
70460         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
70462         tests: test more substitute headers
70463         * modules/ctype-tests: New file.
70464         * modules/dirent-tests: Likewise.
70465         * modules/spawn-tests: Likewise.
70466         * modules/sys_file-tests: Likewise.
70467         * modules/sys_ioctl-tests: Likewise.
70468         * modules/sys_wait-tests: Likewise.
70469         * tests/test-ctype.c: Likewise.
70470         * tests/test-dirent.c: Likewise.
70471         * tests/test-spawn.c: Likewise.
70472         * tests/test-sys_file.c: Likewise.
70473         * tests/test-sys_ioctl.c: Likewise.
70474         * tests/test-sys_wait.c: Likewise.
70475         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
70476         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
70477         whether or not flock is in use.
70479         tests: remove License section from module
70480         * modules/arpa_inet-tests: Remove unneeded section.
70481         * modules/byteswap-tests: Likewise.
70482         * modules/ceilf-tests: Likewise.
70483         * modules/ceill-tests: Likewise.
70484         * modules/crypto/des-tests: Likewise.
70485         * modules/crypto/gc-arcfour-tests: Likewise.
70486         * modules/crypto/gc-arctwo-tests: Likewise.
70487         * modules/crypto/gc-des-tests: Likewise.
70488         * modules/crypto/gc-hmac-md5-tests: Likewise.
70489         * modules/crypto/gc-hmac-sha1-tests: Likewise.
70490         * modules/crypto/gc-md2-tests: Likewise.
70491         * modules/crypto/gc-md4-tests: Likewise.
70492         * modules/crypto/gc-md5-tests: Likewise.
70493         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
70494         * modules/crypto/gc-rijndael-tests: Likewise.
70495         * modules/crypto/gc-sha1-tests: Likewise.
70496         * modules/crypto/gc-tests: Likewise.
70497         * modules/crypto/md2-tests: Likewise.
70498         * modules/crypto/md4-tests: Likewise.
70499         * modules/fcntl-h-tests: Likewise.
70500         * modules/floorf-tests: Likewise.
70501         * modules/floorl-tests: Likewise.
70502         * modules/frexp-nolibm-tests: Likewise.
70503         * modules/frexp-tests: Likewise.
70504         * modules/frexpl-nolibm-tests: Likewise.
70505         * modules/frexpl-tests: Likewise.
70506         * modules/getaddrinfo-tests: Likewise.
70507         * modules/inttypes-tests: Likewise.
70508         * modules/isfinite-tests: Likewise.
70509         * modules/isinf-tests: Likewise.
70510         * modules/ldexpl-tests: Likewise.
70511         * modules/locale-tests: Likewise.
70512         * modules/math-tests: Likewise.
70513         * modules/netdb-tests: Likewise.
70514         * modules/netinet_in-tests: Likewise.
70515         * modules/printf-frexp-tests: Likewise.
70516         * modules/printf-frexpl-tests: Likewise.
70517         * modules/priv-set-tests: Likewise.
70518         * modules/random_r-tests: Likewise.
70519         * modules/round-tests: Likewise.
70520         * modules/roundf-tests: Likewise.
70521         * modules/roundl-tests: Likewise.
70522         * modules/search-tests: Likewise.
70523         * modules/select-tests: Likewise.
70524         * modules/signal-tests: Likewise.
70525         * modules/stdbool-tests: Likewise.
70526         * modules/stddef-tests: Likewise.
70527         * modules/stdint-tests: Likewise.
70528         * modules/stdio-tests: Likewise.
70529         * modules/stdlib-tests: Likewise.
70530         * modules/string-tests: Likewise.
70531         * modules/strings-tests: Likewise.
70532         * modules/sys_select-tests: Likewise.
70533         * modules/sys_socket-tests: Likewise.
70534         * modules/sys_stat-tests: Likewise.
70535         * modules/sys_time-tests: Likewise.
70536         * modules/sys_utsname-tests: Likewise.
70537         * modules/sysexits-tests: Likewise.
70538         * modules/time-tests: Likewise.
70539         * modules/trunc-tests: Likewise.
70540         * modules/truncf-tests: Likewise.
70541         * modules/truncl-tests: Likewise.
70542         * modules/tsearch-tests: Likewise.
70543         * modules/unistd-tests: Likewise.
70544         * modules/wchar-tests: Likewise.
70545         * modules/wctype-tests: Likewise.
70547         tests: fix license on several tests
70548         * tests/test-des.c: Update to GPLv3+.
70549         * tests/test-flock.c: Likewise.
70550         * tests/test-fsync.c: Likewise.
70551         * tests/test-futimens.h: Likewise.
70552         * tests/test-gc-arcfour.c: Likewise.
70553         * tests/test-gc-arctwo.c: Likewise.
70554         * tests/test-gc-des.c: Likewise.
70555         * tests/test-gc-hmac-md5.c: Likewise.
70556         * tests/test-gc-hmac-sha1.c: Likewise.
70557         * tests/test-gc-md2.c: Likewise.
70558         * tests/test-gc-md4.c: Likewise.
70559         * tests/test-gc-md5.c: Likewise.
70560         * tests/test-gc-pbkdf2-sha1.c: Likewise.
70561         * tests/test-gc-rijndael.c: Likewise.
70562         * tests/test-gc-sha1.c: Likewise.
70563         * tests/test-gc.c: Likewise.
70564         * tests/test-getcwd.c: Likewise.
70565         * tests/test-link.c: Likewise.
70566         * tests/test-link.h: Likewise.
70567         * tests/test-lutimens.h: Likewise.
70568         * tests/test-md2.c: Likewise.
70569         * tests/test-md4.c: Likewise.
70570         * tests/test-mkdir.h: Likewise.
70571         * tests/test-rename.c: Likewise.
70572         * tests/test-rename.h: Likewise.
70573         * tests/test-safe-alloc.c: Likewise.
70574         * tests/test-utimens-common.h: Likewise.
70575         * tests/test-utimens.h: Likewise.
70577         maint: sync license texts
70578         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
70579         * doc/gpl-3.0.texi: Revert copyright year update.
70580         * doc/lgpl-3.0.texi: Likewise.
70582 2009-12-29  Jim Meyering  <meyering@redhat.com>
70584         update nearly all FSF copyright year lists to include 2009
70585         The files named by the following are exempted:
70586             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
70587               test -f "$dst" && { echo "$dst"; continue; }
70588               test -d "$dst" || continue
70589               echo "$dst"/$(basename "$src")
70590             done > exempt
70591             git ls-files tests/unictype >> exempt
70592         In the remaining files, convert to all-interval notation if
70593         - there is already at least one year interval like 2000-2003
70594         - the file is maintained by me
70595         - the file is in lib/uni*/, where that style already prevails
70596         Otherwise, use update-copyright's default.
70598 2009-12-29  Simon Josefsson  <simon@josefsson.org>
70599         and Eric Blake  <ebb9@byu.net>
70601         tests: don't require debug system() to pass
70602         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
70603         * tests/test-rmdir.h (test_rmdir_func): Likewise.
70604         * tests/test-unlink.h (test_unlink_func): Likewise.
70605         * tests/test-fstatat.c (main): ...into callers.
70606         * tests/test-lstat.c (main): Likewise.
70607         * tests/test-rmdir.c (main): Likewise.
70608         * tests/test-unlink.c (main): Likewise.
70609         * tests/test-unlinkat.c (main): Likewise.
70610         * tests/test-areadlink-with-size.c (main): Don't require a
70611         debug-only system call to pass, aiding cross-testing to mingw.
70612         * tests/test-areadlink.c (main): Likewise.
70613         * tests/test-areadlinkat-with-size.c (main): Likewise.
70614         * tests/test-areadlinkat.c (main): Likewise.
70615         * tests/test-canonicalize-lgpl.c (main): Likewise.
70616         * tests/test-canonicalize.c (main): Likewise.
70617         * tests/test-chown.c (main): Likewise.
70618         * tests/test-fchownat.c (main): Likewise.
70619         * tests/test-lchown.c (main): Likewise.
70620         * tests/test-fdutimensat.c (main): Likewise.
70621         * tests/test-futimens.c (main): Likewise.
70622         * tests/test-link.c (main): Likewise.
70623         * tests/test-linkat.c (main): Likewise.
70624         * tests/test-mkdir.c (main): Likewise.
70625         * tests/test-mkdirat.c (main): Likewise.
70626         * tests/test-mkfifo.c (main): Likewise.
70627         * tests/test-mkfifoat.c (main): Likewise.
70628         * tests/test-mknod.c (main): Likewise.
70629         * tests/test-readlink.c (main): Likewise.
70630         * tests/test-remove.c (main): Likewise.
70631         * tests/test-rename.c (main): Likewise.
70632         * tests/test-renameat.c (main): Likewise.
70633         * tests/test-symlink.c (main): Likewise.
70634         * tests/test-symlinkat.c (main): Likewise.
70635         * tests/test-utimens.c (main): Likewise.
70636         * tests/test-utimensat.c (main): Likewise.
70638 2009-12-29  Simon Josefsson  <simon@josefsson.org>
70640         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
70641         on $(UNUSED_PARAMETER_H) to avoid build failure.
70643 2009-12-28  Jim Meyering  <meyering@redhat.com>
70645         update-copyright: you may specify a max. line length other than 72
70646         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
70648         maint: use consistent FSF copyright line syntax
70649         * lib/posixtm.c: Add missing comma in FSF copyright line.
70650         * lib/posixtm.h: Likewise.
70651         * lib/getugroups.c: Add missing ", Inc.".
70653         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
70654         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
70655         FSF copyright line.  Remove trailing blanks.
70657 2009-12-28  Eric Blake  <ebb9@byu.net>
70659         test-dup2: reduce dependencies
70660         * modules/cloexec (Configure.ac): Set witness.
70661         * modules/dup2-tests (Depends-on): Drop cloexec.
70662         * tests/test-dup2.c (main): Skip portion of test if cloexec module
70663         not present.
70664         Suggested by Bruno Haible.
70666 2009-12-26  Bruno Haible  <bruno@clisp.org>
70668         Remove an unneeded dependency.
70669         * modules/fseterr (Depends-on): Remove dup2.
70671 2009-12-26  Eric Blake  <ebb9@byu.net>
70673         tests: use macros.h in more places
70674         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
70675         (ASSERT_STREAM): Provide default of stderr.
70676         * tests/test-dirent-safer.c: Include macros.h, using alternate
70677         stream for assertions.
70678         * tests/test-dup-safer.c: Likewise.
70679         * tests/test-freopen-safer.c: Likewise.
70680         * tests/test-getopt.c: Likewise.
70681         * tests/test-openat-safer.c: Likewise.
70682         * tests/test-pipe.c: Likewise.
70683         * tests/test-popen-safer.c: Likewise.
70684         * modules/dirent-safer-tests (Files): Include macros.h.
70685         * modules/unistd-safer-tests (Files): Likewise.
70686         * modules/freopen-safer-tests (Files): Likewise.
70687         * modules/getopt-posix-tests (Files): Likewise.
70688         * modules/openat-safer-tests (Files): Likewise.
70689         * modules/pipe-tests (Files): Likewise.
70691 2009-12-26  Bruno Haible  <bruno@clisp.org>
70693         javacomp-script: Portability fix.
70694         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
70695         that it also works on Solaris.
70697 2009-12-26  Bruno Haible  <bruno@clisp.org>
70699         localename: Fix storage allocation of gl_locale_name_thread's result.
70700         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
70701         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
70702         all platforms that have 'uselocale'.
70703         (gl_locale_name_thread_unsafe): New function, extracted from
70704         gl_locale_name_thread.
70705         (gl_locale_name_thread): Call struniq on all platforms that have
70706         'uselocale'.
70707         * tests/test-localename.c (test_locale_name_thread): Check that the
70708         resulting strings are permanently allocated.
70709         * modules/localename-tests (Depends-on): Add strdup.
70711 2009-12-26  Bruno Haible  <bruno@clisp.org>
70713         * tests/test-localename.c (categories): Fill in the strings.
70715 2009-12-26  Jim Meyering  <meyering@redhat.com>
70717         isdir: complete the removal of m4/isdir.m4
70718         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
70720         isdir: clean up, since at least grep still uses it
70721         * lib/isdir.c: Include "isdir.h".
70722         (S_ISDIR): Remove now-unneeded definition.
70723         * modules/isdir (Files): Add lib/isdir.h.
70724         * lib/isdir.h: New file, with declaration.
70725         * m4/isdir.m4: Remove file -- unneeded.
70727 2009-12-25  Bruno Haible  <bruno@clisp.org>
70729         selinux-h: Make generated .h files standalone.
70730         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
70731         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
70732         * lib/se-selinux.in.h: Likewise.
70733         * modules/selinux-h (Depends-on): Add unused-parameter.
70734         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
70735         selinux/selinux.h and selinux/context.h.
70736         Suggested by Eric Blake.
70738 2009-12-25  Bruno Haible  <bruno@clisp.org>
70740         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
70741         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
70742         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
70743         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
70744         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
70746 2009-12-24  Bruno Haible  <bruno@clisp.org>
70748         openat: Fix warning.
70749         * lib/openat-proc.c: Include <unistd.h>.
70751 2009-12-24  Bruno Haible  <bruno@clisp.org>
70753         New module 'unused-parameter'.
70754         * build-aux/unused-parameter.h: New file, extracted from earlier
70755         gnulib-common.m4.
70756         * modules/unused-parameter: New file.
70757         * lib/unistr.h: Include unused-parameter.h.
70758         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
70759         _GL_UNUSED.
70760         * modules/unistr/base (Depends-on): Add unused-parameter.
70762 2009-12-24  Bruno Haible  <bruno@clisp.org>
70764         Add missing dependencies to 'extensions' module.
70765         * m4/extensions.m4: Add comment.
70766         * modules/accept4 (Depends-on): Add extensions.
70767         * modules/dup3 (Depends-on): Likewise.
70768         * modules/fcntl (Depends-on): Likewise.
70769         * modules/futimens (Depends-on): Likewise.
70770         * modules/mknod (Depends-on): Likewise.
70771         * modules/pipe2 (Depends-on): Likewise.
70772         * modules/stat-time (Depends-on): Likewise.
70773         * modules/strcasestr-simple (Depends-on): Likewise.
70774         * modules/strsignal (Depends-on): Likewise.
70775         * modules/utimensat (Depends-on): Likewise.
70776         * modules/localcharset (Depends-on): Likewise. Needed because of
70777         gl_FCNTL_O_FLAGS.
70778         * modules/wcrtomb (Depends-on): Likewise. Needed because of
70779         AC_TYPE_MBSTATE_T.
70780         * modules/wcsnrtombs (Depends-on): Likewise.
70781         * modules/wcsrtombs (Depends-on): Likewise.
70783 2009-12-24  Bruno Haible  <bruno@clisp.org>
70785         binary-io: Avoid gcc warning due to SET_BINARY.
70786         * lib/binary-io.h (SET_BINARY): Cast the result to void.
70787         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
70789 2009-12-24  Bruno Haible  <bruno@clisp.org>
70791         Avoid future namespace pollution on glibc systems.
70792         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
70793         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
70794         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
70795         glibc systems.
70797 2009-12-24  Bruno Haible  <bruno@clisp.org>
70799         Refactor common macros used in tests.
70800         * tests/macros.h: New file.
70801         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
70802         and/or <stdlib.h>, if appropriate.
70803         (ASSERT, SIZEOF): Remove macros.
70804         * tests/test-areadlink-with-size.c: Likewise.
70805         * tests/test-areadlinkat.c: Likewise.
70806         * tests/test-areadlinkat-with-size.c: Likewise.
70807         * tests/test-argmatch.c: Likewise.
70808         * tests/test-argv-iter.c: Likewise.
70809         * tests/test-array-mergesort.c: Likewise.
70810         * tests/test-array_list.c: Likewise.
70811         * tests/test-array_oset.c: Likewise.
70812         * tests/test-avltree_list.c: Likewise.
70813         * tests/test-avltree_oset.c: Likewise.
70814         * tests/test-avltreehash_list.c: Likewise.
70815         * tests/test-base64.c: Likewise.
70816         * tests/test-binary-io.c: Likewise.
70817         * tests/test-bitrotate.c: Likewise.
70818         * tests/test-btowc.c: Likewise.
70819         * tests/test-byteswap.c: Likewise.
70820         * tests/test-c-ctype.c: Likewise.
70821         * tests/test-c-stack.c: Likewise.
70822         * tests/test-c-strcasecmp.c: Likewise.
70823         * tests/test-c-strcasestr.c: Likewise.
70824         * tests/test-c-strncasecmp.c: Likewise.
70825         * tests/test-c-strstr.c: Likewise.
70826         * tests/test-canonicalize-lgpl.c: Likewise.
70827         * tests/test-canonicalize.c: Likewise.
70828         * tests/test-carray_list.c: Likewise.
70829         * tests/test-ceilf1.c: Likewise.
70830         * tests/test-ceilf2.c: Likewise.
70831         * tests/test-ceill.c: Likewise.
70832         * tests/test-chown.c: Likewise.
70833         * tests/test-cloexec.c: Likewise.
70834         * tests/test-copy-acl.c: Likewise.
70835         * tests/test-copy-file.c: Likewise.
70836         * tests/test-count-one-bits.c: Likewise.
70837         * tests/test-dprintf-posix.c: Likewise.
70838         * tests/test-dup2.c: Likewise.
70839         * tests/test-dup3.c: Likewise.
70840         * tests/test-duplocale.c: Likewise.
70841         * tests/test-fbufmode.c: Likewise.
70842         * tests/test-fchdir.c: Likewise.
70843         * tests/test-fchownat.c: Likewise.
70844         * tests/test-fcntl-safer.c: Likewise.
70845         * tests/test-fcntl.c: Likewise.
70846         * tests/test-fdopendir.c: Likewise.
70847         * tests/test-fdutimensat.c: Likewise.
70848         * tests/test-fflush2.c: Likewise.
70849         * tests/test-file-has-acl.c: Likewise.
70850         * tests/test-filevercmp.c: Likewise.
70851         * tests/test-flock.c: Likewise.
70852         * tests/test-floorf1.c: Likewise.
70853         * tests/test-floorf2.c: Likewise.
70854         * tests/test-floorl.c: Likewise.
70855         * tests/test-fnmatch.c: Likewise.
70856         * tests/test-fopen.h: Likewise.
70857         * tests/test-fpending.c: Likewise.
70858         * tests/test-fprintf-posix.c: Likewise.
70859         * tests/test-fpurge.c: Likewise.
70860         * tests/test-freadable.c: Likewise.
70861         * tests/test-freadahead.c: Likewise.
70862         * tests/test-freading.c: Likewise.
70863         * tests/test-freadptr.c: Likewise.
70864         * tests/test-freadptr2.c: Likewise.
70865         * tests/test-freadseek.c: Likewise.
70866         * tests/test-freopen.c: Likewise.
70867         * tests/test-frexp.c: Likewise.
70868         * tests/test-frexpl.c: Likewise.
70869         * tests/test-fseek.c: Likewise.
70870         * tests/test-fseeko.c: Likewise.
70871         * tests/test-fstatat.c: Likewise.
70872         * tests/test-fstrcmp.c: Likewise.
70873         * tests/test-fsync.c: Likewise.
70874         * tests/test-ftell.c: Likewise.
70875         * tests/test-ftello.c: Likewise.
70876         * tests/test-func.c: Likewise.
70877         * tests/test-futimens.c: Likewise.
70878         * tests/test-fwritable.c: Likewise.
70879         * tests/test-fwriting.c: Likewise.
70880         * tests/test-getcwd.c: Likewise.
70881         * tests/test-getdate.c: Likewise.
70882         * tests/test-getdelim.c: Likewise.
70883         * tests/test-getdtablesize.c: Likewise.
70884         * tests/test-getgroups.c: Likewise.
70885         * tests/test-getline.c: Likewise.
70886         * tests/test-getndelim2.c: Likewise.
70887         * tests/test-glob.c: Likewise.
70888         * tests/test-hash.c: Likewise.
70889         * tests/test-i-ring.c: Likewise.
70890         * tests/test-iconv-utf.c: Likewise.
70891         * tests/test-iconv.c: Likewise.
70892         * tests/test-idpriv-drop.c: Likewise.
70893         * tests/test-idpriv-droptemp.c: Likewise.
70894         * tests/test-inet_ntop.c: Likewise.
70895         * tests/test-inet_pton.c: Likewise.
70896         * tests/test-isblank.c: Likewise.
70897         * tests/test-isfinite.c: Likewise.
70898         * tests/test-isinf.c: Likewise.
70899         * tests/test-isnan.c: Likewise.
70900         * tests/test-isnand.h: Likewise.
70901         * tests/test-isnanf.h: Likewise.
70902         * tests/test-isnanl.h: Likewise.
70903         * tests/test-lchown.c: Likewise.
70904         * tests/test-ldexpl.c: Likewise.
70905         * tests/test-link.c: Likewise.
70906         * tests/test-linkat.c: Likewise.
70907         * tests/test-linked_list.c: Likewise.
70908         * tests/test-linkedhash_list.c: Likewise.
70909         * tests/test-localename.c: Likewise.
70910         * tests/test-lseek.c: Likewise.
70911         * tests/test-lstat.c: Likewise.
70912         * tests/test-mbmemcasecmp.c: Likewise.
70913         * tests/test-mbmemcasecoll.c: Likewise.
70914         * tests/test-mbrtowc.c: Likewise.
70915         * tests/test-mbscasecmp.c: Likewise.
70916         * tests/test-mbscasestr1.c: Likewise.
70917         * tests/test-mbscasestr2.c: Likewise.
70918         * tests/test-mbscasestr3.c: Likewise.
70919         * tests/test-mbscasestr4.c: Likewise.
70920         * tests/test-mbschr.c: Likewise.
70921         * tests/test-mbscspn.c: Likewise.
70922         * tests/test-mbsinit.c: Likewise.
70923         * tests/test-mbsncasecmp.c: Likewise.
70924         * tests/test-mbsnrtowcs.c: Likewise.
70925         * tests/test-mbspbrk.c: Likewise.
70926         * tests/test-mbspcasecmp.c: Likewise.
70927         * tests/test-mbsrchr.c: Likewise.
70928         * tests/test-mbsrtowcs.c: Likewise.
70929         * tests/test-mbsspn.c: Likewise.
70930         * tests/test-mbsstr1.c: Likewise.
70931         * tests/test-mbsstr2.c: Likewise.
70932         * tests/test-mbsstr3.c: Likewise.
70933         * tests/test-memchr.c: Likewise.
70934         * tests/test-memchr2.c: Likewise.
70935         * tests/test-memcmp.c: Likewise.
70936         * tests/test-memmem.c: Likewise.
70937         * tests/test-memrchr.c: Likewise.
70938         * tests/test-mkdir.c: Likewise.
70939         * tests/test-mkdirat.c: Likewise.
70940         * tests/test-mkfifo.c: Likewise.
70941         * tests/test-mkfifoat.c: Likewise.
70942         * tests/test-mknod.c: Likewise.
70943         * tests/test-nanosleep.c: Likewise.
70944         * tests/test-nl_langinfo.c: Likewise.
70945         * tests/test-obstack-printf.c: Likewise.
70946         * tests/test-open.c: Likewise.
70947         * tests/test-openat.c: Likewise.
70948         * tests/test-pipe-filter-gi1.c: Likewise.
70949         * tests/test-pipe-filter-gi2-main.c: Likewise.
70950         * tests/test-pipe-filter-ii1.c: Likewise.
70951         * tests/test-pipe-filter-ii2-main.c: Likewise.
70952         * tests/test-pipe2.c: Likewise.
70953         * tests/test-popen.h: Likewise.
70954         * tests/test-posixtm.c: Likewise.
70955         * tests/test-pread.c: Likewise.
70956         * tests/test-printf-frexp.c: Likewise.
70957         * tests/test-printf-frexpl.c: Likewise.
70958         * tests/test-printf-posix.c: Likewise.
70959         * tests/test-priv-set.c: Likewise.
70960         * tests/test-quotearg.c: Likewise.
70961         * tests/test-random_r.c: Likewise.
70962         * tests/test-rawmemchr.c: Likewise.
70963         * tests/test-rbtree_list.c: Likewise.
70964         * tests/test-rbtree_oset.c: Likewise.
70965         * tests/test-rbtreehash_list.c: Likewise.
70966         * tests/test-readlink.c: Likewise.
70967         * tests/test-remove.c: Likewise.
70968         * tests/test-rename.c: Likewise.
70969         * tests/test-renameat.c: Likewise.
70970         * tests/test-rmdir.c: Likewise.
70971         * tests/test-round1.c: Likewise.
70972         * tests/test-roundf1.c: Likewise.
70973         * tests/test-roundl.c: Likewise.
70974         * tests/test-safe-alloc.c: Likewise.
70975         * tests/test-sameacls.c: Likewise.
70976         * tests/test-set-mode-acl.c: Likewise.
70977         * tests/test-setenv.c: Likewise.
70978         * tests/test-sigaction.c: Likewise.
70979         * tests/test-signbit.c: Likewise.
70980         * tests/test-sleep.c: Likewise.
70981         * tests/test-snprintf-posix.c: Likewise.
70982         * tests/test-snprintf.c: Likewise.
70983         * tests/test-sprintf-posix.c: Likewise.
70984         * tests/test-stat-time.c: Likewise.
70985         * tests/test-stat.c: Likewise.
70986         * tests/test-strcasestr.c: Likewise.
70987         * tests/test-strchrnul.c: Likewise.
70988         * tests/test-strerror.c: Likewise.
70989         * tests/test-striconv.c: Likewise.
70990         * tests/test-striconveh.c: Likewise.
70991         * tests/test-striconveha.c: Likewise.
70992         * tests/test-strsignal.c: Likewise.
70993         * tests/test-strstr.c: Likewise.
70994         * tests/test-strtod.c: Likewise.
70995         * tests/test-strverscmp.c: Likewise.
70996         * tests/test-symlink.c: Likewise.
70997         * tests/test-symlinkat.c: Likewise.
70998         * tests/test-trunc1.c: Likewise.
70999         * tests/test-trunc2.c: Likewise.
71000         * tests/test-truncf1.c: Likewise.
71001         * tests/test-truncf2.c: Likewise.
71002         * tests/test-truncl.c: Likewise.
71003         * tests/test-uname.c: Likewise.
71004         * tests/test-unlink.c: Likewise.
71005         * tests/test-unlinkat.c: Likewise.
71006         * tests/test-unsetenv.c: Likewise.
71007         * tests/test-usleep.c: Likewise.
71008         * tests/test-utimens.c: Likewise.
71009         * tests/test-utimensat.c: Likewise.
71010         * tests/test-vasnprintf-posix.c: Likewise.
71011         * tests/test-vasnprintf-posix2.c: Likewise.
71012         * tests/test-vasnprintf.c: Likewise.
71013         * tests/test-vasprintf-posix.c: Likewise.
71014         * tests/test-vasprintf.c: Likewise.
71015         * tests/test-vdprintf-posix.c: Likewise.
71016         * tests/test-vfprintf-posix.c: Likewise.
71017         * tests/test-vprintf-posix.c: Likewise.
71018         * tests/test-vsnprintf-posix.c: Likewise.
71019         * tests/test-vsnprintf.c: Likewise.
71020         * tests/test-vsprintf-posix.c: Likewise.
71021         * tests/test-wcrtomb.c: Likewise.
71022         * tests/test-wcsnrtombs.c: Likewise.
71023         * tests/test-wcsrtombs.c: Likewise.
71024         * tests/test-wctype.c: Likewise.
71025         * tests/test-wcwidth.c: Likewise.
71026         * tests/test-xfprintf-posix.c: Likewise.
71027         * tests/test-xmemdup0.c: Likewise.
71028         * tests/test-xprintf-posix.c: Likewise.
71029         * tests/test-xvasprintf.c: Likewise.
71030         * tests/unicase/test-locale-language.c: Likewise.
71031         * tests/unicase/test-mapping-part1.h: Likewise.
71032         * tests/unicase/test-predicate-part1.h: Likewise.
71033         * tests/unicase/test-u8-casecmp.c: Likewise.
71034         * tests/unicase/test-u8-casecoll.c: Likewise.
71035         * tests/unicase/test-u8-casefold.c: Likewise.
71036         * tests/unicase/test-u8-is-cased.c: Likewise.
71037         * tests/unicase/test-u8-is-casefolded.c: Likewise.
71038         * tests/unicase/test-u8-is-lowercase.c: Likewise.
71039         * tests/unicase/test-u8-is-titlecase.c: Likewise.
71040         * tests/unicase/test-u8-is-uppercase.c: Likewise.
71041         * tests/unicase/test-u8-tolower.c: Likewise.
71042         * tests/unicase/test-u8-totitle.c: Likewise.
71043         * tests/unicase/test-u8-toupper.c: Likewise.
71044         * tests/unicase/test-u16-casecmp.c: Likewise.
71045         * tests/unicase/test-u16-casecoll.c: Likewise.
71046         * tests/unicase/test-u16-casefold.c: Likewise.
71047         * tests/unicase/test-u16-is-cased.c: Likewise.
71048         * tests/unicase/test-u16-is-casefolded.c: Likewise.
71049         * tests/unicase/test-u16-is-lowercase.c: Likewise.
71050         * tests/unicase/test-u16-is-titlecase.c: Likewise.
71051         * tests/unicase/test-u16-is-uppercase.c: Likewise.
71052         * tests/unicase/test-u16-tolower.c: Likewise.
71053         * tests/unicase/test-u16-totitle.c: Likewise.
71054         * tests/unicase/test-u16-toupper.c: Likewise.
71055         * tests/unicase/test-u32-casecmp.c: Likewise.
71056         * tests/unicase/test-u32-casecoll.c: Likewise.
71057         * tests/unicase/test-u32-casefold.c: Likewise.
71058         * tests/unicase/test-u32-is-cased.c: Likewise.
71059         * tests/unicase/test-u32-is-casefolded.c: Likewise.
71060         * tests/unicase/test-u32-is-lowercase.c: Likewise.
71061         * tests/unicase/test-u32-is-titlecase.c: Likewise.
71062         * tests/unicase/test-u32-is-uppercase.c: Likewise.
71063         * tests/unicase/test-u32-tolower.c: Likewise.
71064         * tests/unicase/test-u32-totitle.c: Likewise.
71065         * tests/unicase/test-u32-toupper.c: Likewise.
71066         * tests/unicase/test-ulc-casecmp.c: Likewise.
71067         * tests/unicase/test-ulc-casecoll.c: Likewise.
71068         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
71069         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
71070         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
71071         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
71072         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
71073         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
71074         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
71075         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
71076         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
71077         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
71078         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
71079         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
71080         * tests/unictype/test-bidi_byname.c: Likewise.
71081         * tests/unictype/test-bidi_name.c: Likewise.
71082         * tests/unictype/test-bidi_of.c: Likewise.
71083         * tests/unictype/test-bidi_test.c: Likewise.
71084         * tests/unictype/test-block_list.c: Likewise.
71085         * tests/unictype/test-block_of.c: Likewise.
71086         * tests/unictype/test-block_test.c: Likewise.
71087         * tests/unictype/test-categ_and.c: Likewise.
71088         * tests/unictype/test-categ_and_not.c: Likewise.
71089         * tests/unictype/test-categ_byname.c: Likewise.
71090         * tests/unictype/test-categ_name.c: Likewise.
71091         * tests/unictype/test-categ_none.c: Likewise.
71092         * tests/unictype/test-categ_of.c: Likewise.
71093         * tests/unictype/test-categ_or.c: Likewise.
71094         * tests/unictype/test-categ_test_withtable.c: Likewise.
71095         * tests/unictype/test-combining.c: Likewise.
71096         * tests/unictype/test-decdigit.c: Likewise.
71097         * tests/unictype/test-digit.c: Likewise.
71098         * tests/unictype/test-mirror.c: Likewise.
71099         * tests/unictype/test-numeric.c: Likewise.
71100         * tests/unictype/test-pr_byname.c: Likewise.
71101         * tests/unictype/test-pr_test.c: Likewise.
71102         * tests/unictype/test-predicate-part1.h: Likewise.
71103         * tests/unictype/test-scripts.c: Likewise.
71104         * tests/unictype/test-sy_c_ident.c: Likewise.
71105         * tests/unictype/test-sy_java_ident.c: Likewise.
71106         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
71107         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
71108         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
71109         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
71110         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
71111         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
71112         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
71113         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
71114         * tests/uninorm/test-canonical-decomposition.c: Likewise.
71115         * tests/uninorm/test-compat-decomposition.c: Likewise.
71116         * tests/uninorm/test-composition.c: Likewise.
71117         * tests/uninorm/test-decomposing-form.c: Likewise.
71118         * tests/uninorm/test-decomposition.c: Likewise.
71119         * tests/uninorm/test-u8-nfc.c: Likewise.
71120         * tests/uninorm/test-u8-nfd.c: Likewise.
71121         * tests/uninorm/test-u8-nfkc.c: Likewise.
71122         * tests/uninorm/test-u8-nfkd.c: Likewise.
71123         * tests/uninorm/test-u8-normcmp.c: Likewise.
71124         * tests/uninorm/test-u8-normcoll.c: Likewise.
71125         * tests/uninorm/test-u16-nfc.c: Likewise.
71126         * tests/uninorm/test-u16-nfd.c: Likewise.
71127         * tests/uninorm/test-u16-nfkc.c: Likewise.
71128         * tests/uninorm/test-u16-nfkd.c: Likewise.
71129         * tests/uninorm/test-u16-normcmp.c: Likewise.
71130         * tests/uninorm/test-u16-normcoll.c: Likewise.
71131         * tests/uninorm/test-u32-nfc.c: Likewise.
71132         * tests/uninorm/test-u32-nfd.c: Likewise.
71133         * tests/uninorm/test-u32-nfkc.c: Likewise.
71134         * tests/uninorm/test-u32-nfkd.c: Likewise.
71135         * tests/uninorm/test-u32-normalize-big.c: Likewise.
71136         * tests/uninorm/test-u32-normcmp.c: Likewise.
71137         * tests/uninorm/test-u32-normcoll.c: Likewise.
71138         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
71139         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
71140         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
71141         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
71142         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
71143         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
71144         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
71145         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
71146         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
71147         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
71148         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
71149         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
71150         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
71151         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
71152         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
71153         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
71154         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
71155         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
71156         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
71157         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
71158         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
71159         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
71160         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
71161         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
71162         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
71163         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
71164         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
71165         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
71166         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
71167         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
71168         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
71169         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
71170         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
71171         * tests/uniwidth/test-u8-strwidth.c: Likewise.
71172         * tests/uniwidth/test-u8-width.c: Likewise.
71173         * tests/uniwidth/test-u16-strwidth.c: Likewise.
71174         * tests/uniwidth/test-u16-width.c: Likewise.
71175         * tests/uniwidth/test-u32-strwidth.c: Likewise.
71176         * tests/uniwidth/test-u32-width.c: Likewise.
71177         * tests/uniwidth/test-uc_width.c: Likewise.
71178         * tests/uniwidth/test-uc_width2.c: Likewise.
71179         * modules/acl-tests (Files): Add tests/macros.h.
71180         * modules/areadlink-tests (Files): Likewise.
71181         * modules/areadlink-with-size-tests (Files): Likewise.
71182         * modules/areadlinkat-tests (Files): Likewise.
71183         * modules/areadlinkat-with-size-tests (Files): Likewise.
71184         * modules/argmatch-tests (Files): Likewise.
71185         * modules/argv-iter-tests (Files): Likewise.
71186         * modules/array-list-tests (Files): Likewise.
71187         * modules/array-mergesort-tests (Files): Likewise.
71188         * modules/array-oset-tests (Files): Likewise.
71189         * modules/avltree-list-tests (Files): Likewise.
71190         * modules/avltree-oset-tests (Files): Likewise.
71191         * modules/avltreehash-list-tests (Files): Likewise.
71192         * modules/base64-tests (Files): Likewise.
71193         * modules/binary-io-tests (Files): Likewise.
71194         * modules/bitrotate-tests (Files): Likewise.
71195         * modules/btowc-tests (Files): Likewise.
71196         * modules/byteswap-tests (Files): Likewise.
71197         * modules/c-ctype-tests (Files): Likewise.
71198         * modules/c-stack-tests (Files): Likewise.
71199         * modules/c-strcase-tests (Files): Likewise.
71200         * modules/c-strcasestr-tests (Files): Likewise.
71201         * modules/c-strstr-tests (Files): Likewise.
71202         * modules/canonicalize-lgpl-tests (Files): Likewise.
71203         * modules/canonicalize-tests (Files): Likewise.
71204         * modules/carray-list-tests (Files): Likewise.
71205         * modules/ceilf-tests (Files): Likewise.
71206         * modules/ceill-tests (Files): Likewise.
71207         * modules/chown-tests (Files): Likewise.
71208         * modules/cloexec-tests (Files): Likewise.
71209         * modules/copy-file-tests (Files): Likewise.
71210         * modules/count-one-bits-tests (Files): Likewise.
71211         * modules/dprintf-posix-tests (Files): Likewise.
71212         * modules/dup2-tests (Files): Likewise.
71213         * modules/dup3-tests (Files): Likewise.
71214         * modules/duplocale-tests (Files): Likewise.
71215         * modules/fbufmode-tests (Files): Likewise.
71216         * modules/fchdir-tests (Files): Likewise.
71217         * modules/fcntl-safer-tests (Files): Likewise.
71218         * modules/fcntl-tests (Files): Likewise.
71219         * modules/fdopendir-tests (Files): Likewise.
71220         * modules/fdutimensat-tests (Files): Likewise.
71221         * modules/fflush-tests (Files): Likewise.
71222         * modules/filevercmp-tests (Files): Likewise.
71223         * modules/flock-tests (Files): Likewise.
71224         * modules/floorf-tests (Files): Likewise.
71225         * modules/floorl-tests (Files): Likewise.
71226         * modules/fnmatch-tests (Files): Likewise.
71227         * modules/fopen-safer-tests (Files): Likewise.
71228         * modules/fopen-tests (Files): Likewise.
71229         * modules/fpending-tests (Files): Likewise.
71230         * modules/fprintf-posix-tests (Files): Likewise.
71231         * modules/fpurge-tests (Files): Likewise.
71232         * modules/freadable-tests (Files): Likewise.
71233         * modules/freadahead-tests (Files): Likewise.
71234         * modules/freading-tests (Files): Likewise.
71235         * modules/freadptr-tests (Files): Likewise.
71236         * modules/freadseek-tests (Files): Likewise.
71237         * modules/freopen-tests (Files): Likewise.
71238         * modules/frexp-nolibm-tests (Files): Likewise.
71239         * modules/frexp-tests (Files): Likewise.
71240         * modules/frexpl-nolibm-tests (Files): Likewise.
71241         * modules/frexpl-tests (Files): Likewise.
71242         * modules/fseek-tests (Files): Likewise.
71243         * modules/fseeko-tests (Files): Likewise.
71244         * modules/fstrcmp-tests (Files): Likewise.
71245         * modules/fsync-tests (Files): Likewise.
71246         * modules/ftell-tests (Files): Likewise.
71247         * modules/ftello-tests (Files): Likewise.
71248         * modules/func-tests (Files): Likewise.
71249         * modules/futimens-tests (Files): Likewise.
71250         * modules/fwritable-tests (Files): Likewise.
71251         * modules/fwriting-tests (Files): Likewise.
71252         * modules/getcwd-tests (Files): Likewise.
71253         * modules/getdate-tests (Files): Likewise.
71254         * modules/getdelim-tests (Files): Likewise.
71255         * modules/getdtablesize-tests (Files): Likewise.
71256         * modules/getgroups-tests (Files): Likewise.
71257         * modules/getline-tests (Files): Likewise.
71258         * modules/getndelim2-tests (Files): Likewise.
71259         * modules/glob-tests (Files): Likewise.
71260         * modules/hash-tests (Files): Likewise.
71261         * modules/i-ring-tests (Files): Likewise.
71262         * modules/iconv-tests (Files): Likewise.
71263         * modules/iconv_open-utf-tests (Files): Likewise.
71264         * modules/idpriv-drop-tests (Files): Likewise.
71265         * modules/idpriv-droptemp-tests (Files): Likewise.
71266         * modules/inet_ntop-tests (Files): Likewise.
71267         * modules/inet_pton-tests (Files): Likewise.
71268         * modules/isblank-tests (Files): Likewise.
71269         * modules/isfinite-tests (Files): Likewise.
71270         * modules/isinf-tests (Files): Likewise.
71271         * modules/isnan-tests (Files): Likewise.
71272         * modules/isnand-nolibm-tests (Files): Likewise.
71273         * modules/isnand-tests (Files): Likewise.
71274         * modules/isnanf-nolibm-tests (Files): Likewise.
71275         * modules/isnanf-tests (Files): Likewise.
71276         * modules/isnanl-nolibm-tests (Files): Likewise.
71277         * modules/isnanl-tests (Files): Likewise.
71278         * modules/lchown-tests (Files): Likewise.
71279         * modules/ldexpl-tests (Files): Likewise.
71280         * modules/link-tests (Files): Likewise.
71281         * modules/linkat-tests (Files): Likewise.
71282         * modules/linked-list-tests (Files): Likewise.
71283         * modules/linkedhash-list-tests (Files): Likewise.
71284         * modules/localename-tests (Files): Likewise.
71285         * modules/lseek-tests (Files): Likewise.
71286         * modules/lstat-tests (Files): Likewise.
71287         * modules/mbmemcasecmp-tests (Files): Likewise.
71288         * modules/mbmemcasecoll-tests (Files): Likewise.
71289         * modules/mbrtowc-tests (Files): Likewise.
71290         * modules/mbscasecmp-tests (Files): Likewise.
71291         * modules/mbscasestr-tests (Files): Likewise.
71292         * modules/mbschr-tests (Files): Likewise.
71293         * modules/mbscspn-tests (Files): Likewise.
71294         * modules/mbsinit-tests (Files): Likewise.
71295         * modules/mbsncasecmp-tests (Files): Likewise.
71296         * modules/mbsnrtowcs-tests (Files): Likewise.
71297         * modules/mbspbrk-tests (Files): Likewise.
71298         * modules/mbspcasecmp-tests (Files): Likewise.
71299         * modules/mbsrchr-tests (Files): Likewise.
71300         * modules/mbsrtowcs-tests (Files): Likewise.
71301         * modules/mbsspn-tests (Files): Likewise.
71302         * modules/mbsstr-tests (Files): Likewise.
71303         * modules/memchr-tests (Files): Likewise.
71304         * modules/memchr2-tests (Files): Likewise.
71305         * modules/memcmp-tests (Files): Likewise.
71306         * modules/memmem-tests (Files): Likewise.
71307         * modules/memrchr-tests (Files): Likewise.
71308         * modules/mkdir-tests (Files): Likewise.
71309         * modules/mkfifo-tests (Files): Likewise.
71310         * modules/mkfifoat-tests (Files): Likewise.
71311         * modules/mknod-tests (Files): Likewise.
71312         * modules/nanosleep-tests (Files): Likewise.
71313         * modules/nl_langinfo-tests (Files): Likewise.
71314         * modules/obstack-printf-tests (Files): Likewise.
71315         * modules/open-tests (Files): Likewise.
71316         * modules/openat-tests (Files): Likewise.
71317         * modules/pipe-filter-gi-tests (Files): Likewise.
71318         * modules/pipe-filter-ii-tests (Files): Likewise.
71319         * modules/pipe2-tests (Files): Likewise.
71320         * modules/popen-safer-tests (Files): Likewise.
71321         * modules/popen-tests (Files): Likewise.
71322         * modules/posixtm-tests (Files): Likewise.
71323         * modules/pread-tests (Files): Likewise.
71324         * modules/printf-frexp-tests (Files): Likewise.
71325         * modules/printf-frexpl-tests (Files): Likewise.
71326         * modules/printf-posix-tests (Files): Likewise.
71327         * modules/priv-set-tests (Files): Likewise.
71328         * modules/quotearg-tests (Files): Likewise.
71329         * modules/random_r-tests (Files): Likewise.
71330         * modules/rawmemchr-tests (Files): Likewise.
71331         * modules/rbtree-list-tests (Files): Likewise.
71332         * modules/rbtree-oset-tests (Files): Likewise.
71333         * modules/rbtreehash-list-tests (Files): Likewise.
71334         * modules/readlink-tests (Files): Likewise.
71335         * modules/remove-tests (Files): Likewise.
71336         * modules/rename-tests (Files): Likewise.
71337         * modules/renameat-tests (Files): Likewise.
71338         * modules/rmdir-tests (Files): Likewise.
71339         * modules/round-tests (Files): Likewise.
71340         * modules/roundf-tests (Files): Likewise.
71341         * modules/roundl-tests (Files): Likewise.
71342         * modules/safe-alloc-tests (Files): Likewise.
71343         * modules/setenv-tests (Files): Likewise.
71344         * modules/sigaction-tests (Files): Likewise.
71345         * modules/signbit-tests (Files): Likewise.
71346         * modules/sleep-tests (Files): Likewise.
71347         * modules/snprintf-posix-tests (Files): Likewise.
71348         * modules/snprintf-tests (Files): Likewise.
71349         * modules/sprintf-posix-tests (Files): Likewise.
71350         * modules/stat-tests (Files): Likewise.
71351         * modules/stat-time-tests (Files): Likewise.
71352         * modules/strcasestr-tests (Files): Likewise.
71353         * modules/strchrnul-tests (Files): Likewise.
71354         * modules/strerror-tests (Files): Likewise.
71355         * modules/striconv-tests (Files): Likewise.
71356         * modules/striconveh-tests (Files): Likewise.
71357         * modules/striconveha-tests (Files): Likewise.
71358         * modules/strsignal-tests (Files): Likewise.
71359         * modules/strstr-tests (Files): Likewise.
71360         * modules/strtod-tests (Files): Likewise.
71361         * modules/strverscmp-tests (Files): Likewise.
71362         * modules/symlink-tests (Files): Likewise.
71363         * modules/symlinkat-tests (Files): Likewise.
71364         * modules/trunc-tests (Files): Likewise.
71365         * modules/truncf-tests (Files): Likewise.
71366         * modules/truncl-tests (Files): Likewise.
71367         * modules/uname-tests (Files): Likewise.
71368         * modules/unicase/cased-tests (Files): Likewise.
71369         * modules/unicase/ignorable-tests (Files): Likewise.
71370         * modules/unicase/locale-language-tests (Files): Likewise.
71371         * modules/unicase/tolower-tests (Files): Likewise.
71372         * modules/unicase/totitle-tests (Files): Likewise.
71373         * modules/unicase/toupper-tests (Files): Likewise.
71374         * modules/unicase/u8-casecmp-tests (Files): Likewise.
71375         * modules/unicase/u8-casecoll-tests (Files): Likewise.
71376         * modules/unicase/u8-casefold-tests (Files): Likewise.
71377         * modules/unicase/u8-is-cased-tests (Files): Likewise.
71378         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
71379         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
71380         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
71381         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
71382         * modules/unicase/u8-tolower-tests (Files): Likewise.
71383         * modules/unicase/u8-totitle-tests (Files): Likewise.
71384         * modules/unicase/u8-toupper-tests (Files): Likewise.
71385         * modules/unicase/u16-casecmp-tests (Files): Likewise.
71386         * modules/unicase/u16-casecoll-tests (Files): Likewise.
71387         * modules/unicase/u16-casefold-tests (Files): Likewise.
71388         * modules/unicase/u16-is-cased-tests (Files): Likewise.
71389         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
71390         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
71391         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
71392         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
71393         * modules/unicase/u16-tolower-tests (Files): Likewise.
71394         * modules/unicase/u16-totitle-tests (Files): Likewise.
71395         * modules/unicase/u16-toupper-tests (Files): Likewise.
71396         * modules/unicase/u32-casecmp-tests (Files): Likewise.
71397         * modules/unicase/u32-casecoll-tests (Files): Likewise.
71398         * modules/unicase/u32-casefold-tests (Files): Likewise.
71399         * modules/unicase/u32-is-cased-tests (Files): Likewise.
71400         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
71401         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
71402         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
71403         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
71404         * modules/unicase/u32-tolower-tests (Files): Likewise.
71405         * modules/unicase/u32-totitle-tests (Files): Likewise.
71406         * modules/unicase/u32-toupper-tests (Files): Likewise.
71407         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
71408         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
71409         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
71410         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
71411         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
71412         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
71413         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
71414         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
71415         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
71416         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
71417         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
71418         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
71419         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
71420         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
71421         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
71422         * modules/unictype/bidicategory-name-tests (Files): Likewise.
71423         * modules/unictype/bidicategory-of-tests (Files): Likewise.
71424         * modules/unictype/bidicategory-test-tests (Files): Likewise.
71425         * modules/unictype/block-list-tests (Files): Likewise.
71426         * modules/unictype/block-of-tests (Files): Likewise.
71427         * modules/unictype/block-test-tests (Files): Likewise.
71428         * modules/unictype/category-C-tests (Files): Likewise.
71429         * modules/unictype/category-Cc-tests (Files): Likewise.
71430         * modules/unictype/category-Cf-tests (Files): Likewise.
71431         * modules/unictype/category-Cn-tests (Files): Likewise.
71432         * modules/unictype/category-Co-tests (Files): Likewise.
71433         * modules/unictype/category-Cs-tests (Files): Likewise.
71434         * modules/unictype/category-L-tests (Files): Likewise.
71435         * modules/unictype/category-Ll-tests (Files): Likewise.
71436         * modules/unictype/category-Lm-tests (Files): Likewise.
71437         * modules/unictype/category-Lo-tests (Files): Likewise.
71438         * modules/unictype/category-Lt-tests (Files): Likewise.
71439         * modules/unictype/category-Lu-tests (Files): Likewise.
71440         * modules/unictype/category-M-tests (Files): Likewise.
71441         * modules/unictype/category-Mc-tests (Files): Likewise.
71442         * modules/unictype/category-Me-tests (Files): Likewise.
71443         * modules/unictype/category-Mn-tests (Files): Likewise.
71444         * modules/unictype/category-N-tests (Files): Likewise.
71445         * modules/unictype/category-Nd-tests (Files): Likewise.
71446         * modules/unictype/category-Nl-tests (Files): Likewise.
71447         * modules/unictype/category-No-tests (Files): Likewise.
71448         * modules/unictype/category-P-tests (Files): Likewise.
71449         * modules/unictype/category-Pc-tests (Files): Likewise.
71450         * modules/unictype/category-Pd-tests (Files): Likewise.
71451         * modules/unictype/category-Pe-tests (Files): Likewise.
71452         * modules/unictype/category-Pf-tests (Files): Likewise.
71453         * modules/unictype/category-Pi-tests (Files): Likewise.
71454         * modules/unictype/category-Po-tests (Files): Likewise.
71455         * modules/unictype/category-Ps-tests (Files): Likewise.
71456         * modules/unictype/category-S-tests (Files): Likewise.
71457         * modules/unictype/category-Sc-tests (Files): Likewise.
71458         * modules/unictype/category-Sk-tests (Files): Likewise.
71459         * modules/unictype/category-Sm-tests (Files): Likewise.
71460         * modules/unictype/category-So-tests (Files): Likewise.
71461         * modules/unictype/category-Z-tests (Files): Likewise.
71462         * modules/unictype/category-Zl-tests (Files): Likewise.
71463         * modules/unictype/category-Zp-tests (Files): Likewise.
71464         * modules/unictype/category-Zs-tests (Files): Likewise.
71465         * modules/unictype/category-and-not-tests (Files): Likewise.
71466         * modules/unictype/category-and-tests (Files): Likewise.
71467         * modules/unictype/category-byname-tests (Files): Likewise.
71468         * modules/unictype/category-name-tests (Files): Likewise.
71469         * modules/unictype/category-none-tests (Files): Likewise.
71470         * modules/unictype/category-of-tests (Files): Likewise.
71471         * modules/unictype/category-or-tests (Files): Likewise.
71472         * modules/unictype/category-test-withtable-tests (Files): Likewise.
71473         * modules/unictype/combining-class-tests (Files): Likewise.
71474         * modules/unictype/ctype-alnum-tests (Files): Likewise.
71475         * modules/unictype/ctype-alpha-tests (Files): Likewise.
71476         * modules/unictype/ctype-blank-tests (Files): Likewise.
71477         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
71478         * modules/unictype/ctype-digit-tests (Files): Likewise.
71479         * modules/unictype/ctype-graph-tests (Files): Likewise.
71480         * modules/unictype/ctype-lower-tests (Files): Likewise.
71481         * modules/unictype/ctype-print-tests (Files): Likewise.
71482         * modules/unictype/ctype-punct-tests (Files): Likewise.
71483         * modules/unictype/ctype-space-tests (Files): Likewise.
71484         * modules/unictype/ctype-upper-tests (Files): Likewise.
71485         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
71486         * modules/unictype/decimal-digit-tests (Files): Likewise.
71487         * modules/unictype/digit-tests (Files): Likewise.
71488         * modules/unictype/mirror-tests (Files): Likewise.
71489         * modules/unictype/numeric-tests (Files): Likewise.
71490         * modules/unictype/property-alphabetic-tests (Files): Likewise.
71491         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
71492         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
71493         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
71494         Likewise.
71495         * modules/unictype/property-bidi-block-separator-tests (Files):
71496         Likewise.
71497         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
71498         Likewise.
71499         * modules/unictype/property-bidi-common-separator-tests (Files):
71500         Likewise.
71501         * modules/unictype/property-bidi-control-tests (Files): Likewise.
71502         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
71503         Likewise.
71504         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
71505         Likewise.
71506         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
71507         Likewise.
71508         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
71509         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
71510         Likewise.
71511         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
71512         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
71513         Likewise.
71514         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
71515         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
71516         * modules/unictype/property-bidi-segment-separator-tests (Files):
71517         Likewise.
71518         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
71519         * modules/unictype/property-byname-tests (Files): Likewise.
71520         * modules/unictype/property-combining-tests (Files): Likewise.
71521         * modules/unictype/property-composite-tests (Files): Likewise.
71522         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
71523         * modules/unictype/property-dash-tests (Files): Likewise.
71524         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
71525         * modules/unictype/property-default-ignorable-code-point-tests (Files):
71526         Likewise.
71527         * modules/unictype/property-deprecated-tests (Files): Likewise.
71528         * modules/unictype/property-diacritic-tests (Files): Likewise.
71529         * modules/unictype/property-extender-tests (Files): Likewise.
71530         * modules/unictype/property-format-control-tests (Files): Likewise.
71531         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
71532         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
71533         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
71534         * modules/unictype/property-hex-digit-tests (Files): Likewise.
71535         * modules/unictype/property-hyphen-tests (Files): Likewise.
71536         * modules/unictype/property-id-continue-tests (Files): Likewise.
71537         * modules/unictype/property-id-start-tests (Files): Likewise.
71538         * modules/unictype/property-ideographic-tests (Files): Likewise.
71539         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
71540         * modules/unictype/property-ids-trinary-operator-tests (Files):
71541         Likewise.
71542         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
71543         * modules/unictype/property-iso-control-tests (Files): Likewise.
71544         * modules/unictype/property-join-control-tests (Files): Likewise.
71545         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
71546         * modules/unictype/property-line-separator-tests (Files): Likewise.
71547         * modules/unictype/property-logical-order-exception-tests (Files):
71548         Likewise.
71549         * modules/unictype/property-lowercase-tests (Files): Likewise.
71550         * modules/unictype/property-math-tests (Files): Likewise.
71551         * modules/unictype/property-non-break-tests (Files): Likewise.
71552         * modules/unictype/property-not-a-character-tests (Files): Likewise.
71553         * modules/unictype/property-numeric-tests (Files): Likewise.
71554         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
71555         * modules/unictype/property-other-default-ignorable-code-point-tests
71556         (Files): Likewise.
71557         * modules/unictype/property-other-grapheme-extend-tests (Files):
71558         Likewise.
71559         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
71560         * modules/unictype/property-other-id-start-tests (Files): Likewise.
71561         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
71562         * modules/unictype/property-other-math-tests (Files): Likewise.
71563         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
71564         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
71565         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
71566         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
71567         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
71568         * modules/unictype/property-private-use-tests (Files): Likewise.
71569         * modules/unictype/property-punctuation-tests (Files): Likewise.
71570         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
71571         * modules/unictype/property-radical-tests (Files): Likewise.
71572         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
71573         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
71574         * modules/unictype/property-space-tests (Files): Likewise.
71575         * modules/unictype/property-terminal-punctuation-tests (Files):
71576         Likewise.
71577         * modules/unictype/property-test-tests (Files): Likewise.
71578         * modules/unictype/property-titlecase-tests (Files): Likewise.
71579         * modules/unictype/property-unassigned-code-value-tests (Files):
71580         Likewise.
71581         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
71582         * modules/unictype/property-uppercase-tests (Files): Likewise.
71583         * modules/unictype/property-variation-selector-tests (Files): Likewise.
71584         * modules/unictype/property-white-space-tests (Files): Likewise.
71585         * modules/unictype/property-xid-continue-tests (Files): Likewise.
71586         * modules/unictype/property-xid-start-tests (Files): Likewise.
71587         * modules/unictype/property-zero-width-tests (Files): Likewise.
71588         * modules/unictype/scripts-tests (Files): Likewise.
71589         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
71590         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
71591         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
71592         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
71593         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
71594         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
71595         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
71596         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
71597         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
71598         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
71599         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
71600         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
71601         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
71602         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
71603         * modules/uninorm/composition-tests (Files): Likewise.
71604         * modules/uninorm/decomposing-form-tests (Files): Likewise.
71605         * modules/uninorm/decomposition-tests (Files): Likewise.
71606         * modules/uninorm/filter-tests (Files): Likewise.
71607         * modules/uninorm/nfc-tests (Files): Likewise.
71608         * modules/uninorm/nfd-tests (Files): Likewise.
71609         * modules/uninorm/nfkc-tests (Files): Likewise.
71610         * modules/uninorm/nfkd-tests (Files): Likewise.
71611         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
71612         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
71613         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
71614         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
71615         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
71616         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
71617         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
71618         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
71619         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
71620         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
71621         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
71622         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
71623         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
71624         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
71625         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
71626         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
71627         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
71628         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
71629         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
71630         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
71631         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
71632         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
71633         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
71634         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
71635         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
71636         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
71637         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
71638         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
71639         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
71640         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
71641         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
71642         * modules/uniwidth/u8-width-tests (Files): Likewise.
71643         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
71644         * modules/uniwidth/u16-width-tests (Files): Likewise.
71645         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
71646         * modules/uniwidth/u32-width-tests (Files): Likewise.
71647         * modules/uniwidth/width-tests (Files): Likewise.
71648         * modules/unlink-tests (Files): Likewise.
71649         * modules/unsetenv-tests (Files): Likewise.
71650         * modules/usleep-tests (Files): Likewise.
71651         * modules/utimens-tests (Files): Likewise.
71652         * modules/utimensat-tests (Files): Likewise.
71653         * modules/vasnprintf-posix-tests (Files): Likewise.
71654         * modules/vasnprintf-tests (Files): Likewise.
71655         * modules/vasprintf-posix-tests (Files): Likewise.
71656         * modules/vasprintf-tests (Files): Likewise.
71657         * modules/vdprintf-posix-tests (Files): Likewise.
71658         * modules/vfprintf-posix-tests (Files): Likewise.
71659         * modules/vprintf-posix-tests (Files): Likewise.
71660         * modules/vsnprintf-posix-tests (Files): Likewise.
71661         * modules/vsnprintf-tests (Files): Likewise.
71662         * modules/vsprintf-posix-tests (Files): Likewise.
71663         * modules/wcrtomb-tests (Files): Likewise.
71664         * modules/wcsnrtombs-tests (Files): Likewise.
71665         * modules/wcsrtombs-tests (Files): Likewise.
71666         * modules/wctype-tests (Files): Likewise.
71667         * modules/wcwidth-tests (Files): Likewise.
71668         * modules/xmemdup0-tests (Files): Likewise.
71669         * modules/xprintf-posix-tests (Files): Likewise.
71670         * modules/xvasprintf-tests (Files): Likewise.
71672 2009-12-24  Eric Blake  <ebb9@byu.net>
71674         test-nanosleep: fix typo
71675         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
71676         patch.
71677         Reported by Bruno Haible.
71679 2009-12-24  Bruno Haible  <bruno@clisp.org>
71681         Reduce namespace pollution on glibc systems.
71682         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
71683         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
71684         systems.
71685         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
71686         <getopt.h> on glibc systems.
71687         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
71688         systems.
71689         * lib/fcntl.c: Include <unistd.h> here instead.
71691 2009-12-24  Bruno Haible  <bruno@clisp.org>
71693         * lib/stdlib.in.h (includes): Fix typo in today's commit.
71695 2009-12-24  Eric Blake  <ebb9@byu.net>
71697         tests: add signature checks
71698         * tests/signature.h (SIGNATURE_CHECK): New file.
71699         * modules/atexit-tests (Files): Use it.
71700         * modules/btowc-tests (Files): Likewise.
71701         * modules/canonicalize-lgpl-tests (Files): Likewise.
71702         * modules/ceilf-tests (Files): Likewise.
71703         * modules/ceill-tests (Files): Likewise.
71704         * modules/chown-tests (Files): Likewise.
71705         * modules/dprintf-posix-tests (Files): Likewise.
71706         * modules/dup2-tests (Files): Likewise.
71707         * modules/dup3-tests (Files): Likewise.
71708         * modules/duplocale-tests (Files): Likewise.
71709         * modules/fchdir-tests (Files): Likewise.
71710         * modules/fcntl-tests (Files): Likewise.
71711         * modules/fdopendir-tests (Files): Likewise.
71712         * modules/fflush-tests (Files): Likewise.
71713         * modules/flock-tests (Files): Likewise.
71714         * modules/floorf-tests (Files): Likewise.
71715         * modules/floorl-tests (Files): Likewise.
71716         * modules/fnmatch-tests (Files): Likewise.
71717         * modules/fopen-tests (Files): Likewise.
71718         * modules/fprintf-posix-tests (Files): Likewise.
71719         * modules/freopen-tests (Files): Likewise.
71720         * modules/frexp-nolibm-tests (Files): Likewise.
71721         * modules/frexp-tests (Files): Likewise.
71722         * modules/frexpl-nolibm-tests (Files): Likewise.
71723         * modules/frexpl-tests (Files): Likewise.
71724         * modules/fseek-tests (Files): Likewise.
71725         * modules/fseeko-tests (Files): Likewise.
71726         * modules/fsync-tests (Files): Likewise.
71727         * modules/ftell-tests (Files): Likewise.
71728         * modules/ftello-tests (Files): Likewise.
71729         * modules/futimens-tests (Files): Likewise.
71730         * modules/getaddrinfo-tests (Files): Likewise.
71731         * modules/getcwd-tests (Files): Likewise.
71732         * modules/getdelim-tests (Files): Likewise.
71733         * modules/getdtablesize-tests (Files): Likewise.
71734         * modules/getgroups-tests (Files): Likewise.
71735         * modules/gethostname-tests (Files): Likewise.
71736         * modules/getline-tests (Files): Likewise.
71737         * modules/getopt-posix-tests (Files): Likewise.
71738         * modules/gettimeofday-tests (Files): Likewise.
71739         * modules/glob-tests (Files): Likewise.
71740         * modules/iconv-tests (Files): Likewise.
71741         * modules/inet_ntop-tests (Files): Likewise.
71742         * modules/inet_pton-tests (Files): Likewise.
71743         * modules/isblank-tests (Files): Likewise.
71744         * modules/lchown-tests (Files): Likewise.
71745         * modules/ldexpl-tests (Files): Likewise.
71746         * modules/link-tests (Files): Likewise.
71747         * modules/linkat-tests (Files): Likewise.
71748         * modules/lseek-tests (Files): Likewise.
71749         * modules/lstat-tests (Files): Likewise.
71750         * modules/mbrtowc-tests (Files): Likewise.
71751         * modules/mbsinit-tests (Files): Likewise.
71752         * modules/mbsnrtowcs-tests (Files): Likewise.
71753         * modules/mbsrtowcs-tests (Files): Likewise.
71754         * modules/memchr-tests (Files): Likewise.
71755         * modules/memcmp-tests (Files): Likewise.
71756         * modules/memmem-tests (Files): Likewise.
71757         * modules/memrchr-tests (Files): Likewise.
71758         * modules/mkdir-tests (Files): Likewise.
71759         * modules/mkfifo-tests (Files): Likewise.
71760         * modules/mkfifoat-tests (Files): Likewise.
71761         * modules/mknod-tests (Files): Likewise.
71762         * modules/nanosleep-tests (Files): Likewise.
71763         * modules/nl_langinfo-tests (Files): Likewise.
71764         * modules/obstack-printf-tests (Files): Likewise.
71765         * modules/open-tests (Files): Likewise.
71766         * modules/openat-tests (Files): Likewise.
71767         * modules/perror-tests (Files): Likewise.
71768         * modules/pipe2-tests (Files): Likewise.
71769         * modules/poll-tests (Files): Likewise.
71770         * modules/popen-tests (Files): Likewise.
71771         * modules/posix_spawn-tests (Files): Likewise.
71772         * modules/posix_spawnp-tests (Files): Likewise.
71773         * modules/pread-tests (Files): Likewise.
71774         * modules/printf-posix-tests (Files): Likewise.
71775         * modules/pty-tests (Files): Likewise.
71776         * modules/random_r-tests (Files): Likewise.
71777         * modules/rawmemchr-tests (Files): Likewise.
71778         * modules/readlink-tests (Files): Likewise.
71779         * modules/remove-tests (Files): Likewise.
71780         * modules/rename-tests (Files): Likewise.
71781         * modules/renameat-tests (Files): Likewise.
71782         * modules/rmdir-tests (Files): Likewise.
71783         * modules/round-tests (Files): Likewise.
71784         * modules/roundf-tests (Files): Likewise.
71785         * modules/roundl-tests (Files): Likewise.
71786         * modules/select-tests (Files): Likewise.
71787         * modules/setenv-tests (Files): Likewise.
71788         * modules/sigaction-tests (Files): Likewise.
71789         * modules/sleep-tests (Files): Likewise.
71790         * modules/snprintf-posix-tests (Files): Likewise.
71791         * modules/snprintf-tests (Files): Likewise.
71792         * modules/sprintf-posix-tests (Files): Likewise.
71793         * modules/stat-tests (Files): Likewise.
71794         * modules/strcasestr-tests (Files): Likewise.
71795         * modules/strchrnul-tests (Files): Likewise.
71796         * modules/strerror-tests (Files): Likewise.
71797         * modules/strsignal-tests (Files): Likewise.
71798         * modules/strstr-tests (Files): Likewise.
71799         * modules/strtod-tests (Files): Likewise.
71800         * modules/strverscmp-tests (Files): Likewise.
71801         * modules/symlink-tests (Files): Likewise.
71802         * modules/symlinkat-tests (Files): Likewise.
71803         * modules/times-tests (Files): Likewise.
71804         * modules/trunc-tests (Files): Likewise.
71805         * modules/truncf-tests (Files): Likewise.
71806         * modules/truncl-tests (Files): Likewise.
71807         * modules/tsearch-tests (Files): Likewise.
71808         * modules/uname-tests (Files): Likewise.
71809         * modules/unlink-tests (Files): Likewise.
71810         * modules/unsetenv-tests (Files): Likewise.
71811         * modules/usleep-tests (Files): Likewise.
71812         * modules/utimensat-tests (Files): Likewise.
71813         * modules/vasprintf-tests (Files): Likewise.
71814         * modules/vdprintf-posix-tests (Files): Likewise.
71815         * modules/vfprintf-posix-tests (Files): Likewise.
71816         * modules/vprintf-posix-tests (Files): Likewise.
71817         * modules/vsnprintf-posix-tests (Files): Likewise.
71818         * modules/vsnprintf-tests (Files): Likewise.
71819         * modules/vsprintf-posix-tests (Files): Likewise.
71820         * modules/wcrtomb-tests (Files): Likewise.
71821         * modules/wcsnrtombs-tests (Files): Likewise.
71822         * modules/wcsrtombs-tests (Files): Likewise.
71823         * modules/wcwidth-tests (Files): Likewise.
71824         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
71825         * tests/test-isinf.c (isinf): Likewise.
71826         * tests/test-isnan.c (isnan): Likewise.
71827         * tests/test-signbit.c (signbit): Likewise.
71828         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
71829         declaration, either as macro or with correct signature.
71830         (select): Ensure function under test is declared with correct
71831         signature in correct header.
71832         * tests/test-atexit.c (atexit): Likewise.
71833         * tests/test-btowc.c (btowc): Likewise.
71834         * tests/test-canonicalize-lgpl.c (realpath)
71835         (canonicalize_file_name): Likewise.
71836         * tests/test-ceilf1.c (ceilf): Likewise.
71837         * tests/test-ceill.c (ceill): Likewise.
71838         * tests/test-chown.c (chown): Likewise.
71839         * tests/test-dprintf-posix.c (dprintf): Likewise.
71840         * tests/test-dup2.c (dup2): Likewise.
71841         * tests/test-dup3.c (dup3): Likewise.
71842         * tests/test-duplocale.c (duplocale): Likewise.
71843         * tests/test-fchdir.c (fchdir): Likewise.
71844         * tests/test-fchownat.c (fchownat): Likewise.
71845         * tests/test-fcntl.c (fcntl): Likewise.
71846         * tests/test-fdopendir.c (fdopendir): Likewise.
71847         * tests/test-fflush.c (fflush): Likewise.
71848         * tests/test-flock.c (flock): Likewise.
71849         * tests/test-floorf1.c (floorf): Likewise.
71850         * tests/test-floorl.c (floorl): Likewise.
71851         * tests/test-fnmatch.c (fnmatch): Likewise.
71852         * tests/test-fopen.c (fopen): Likewise.
71853         * tests/test-fprintf-posix.c (fprintf): Likewise.
71854         * tests/test-freopen.c (freopen): Likewise.
71855         * tests/test-frexp.c (frexp): Likewise.
71856         * tests/test-frexpl.c (frexpl): Likewise.
71857         * tests/test-fseek.c (fseek): Likewise.
71858         * tests/test-fseeko.c (fseeko): Likewise.
71859         * tests/test-fstatat.c (fstatat): Likewise.
71860         * tests/test-fsync.c (fsync): Likewise.
71861         * tests/test-ftell.c (ftell): Likewise.
71862         * tests/test-ftello.c (ftello): Likewise.
71863         * tests/test-futimens.c (futimens): Likewise.
71864         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
71865         (gai_strerror): Likewise.
71866         * tests/test-getcwd.c (getcwd): Likewise.
71867         * tests/test-getdelim.c (getdelim): Likewise.
71868         * tests/test-getdtablesize.c (getdtablesize): Likewise.
71869         * tests/test-getgroups.c (getgroups): Likewise.
71870         * tests/test-gethostname.c (gethostname): Likewise.
71871         * tests/test-getline.c (getline): Likewise.
71872         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
71873         Likewise.
71874         * tests/test-gettimeofday.c (gettimeofday): Likewise.
71875         * tests/test-glob.c (glob, globfree): Likewise.
71876         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
71877         * tests/test-inet_ntop.c (inet_ntop): Likewise.
71878         * tests/test-inet_pton.c (inet_pton): Likewise.
71879         * tests/test-isblank.c (isblank): Likewise.
71880         * tests/test-lchown.c (lchown): Likewise.
71881         * tests/test-ldexpl.c (ldexpl): Likewise.
71882         * tests/test-link.c (link): Likewise.
71883         * tests/test-linkat.c (linkat): Likewise.
71884         * tests/test-lseek.c (lseek): Likewise.
71885         * tests/test-lstat.c (lstat): Likewise.
71886         * tests/test-mbrtowc.c (mbrtowc): Likewise.
71887         * tests/test-mbsinit.c (mbsinit): Likewise.
71888         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
71889         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
71890         * tests/test-memchr.c (memchr): Likewise.
71891         * tests/test-memcmp.c (memcmp): Likewise.
71892         * tests/test-memmem.c (memmem): Likewise.
71893         * tests/test-memrchr.c (memrchr): Likewise.
71894         * tests/test-mkdir.c (mkdir): Likewise.
71895         * tests/test-mkdirat.c (mkdirat): Likewise.
71896         * tests/test-mkfifo.c (mkfifo): Likewise.
71897         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
71898         * tests/test-mknod.c (mknod): Likewise.
71899         * tests/test-nanosleep.c (nanosleep): Likewise.
71900         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
71901         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
71902         Likewise.
71903         * tests/test-open.c (open): Likewise.
71904         * tests/test-openat.c (openat): Likewise.
71905         * tests/test-perror.c (perror): Likewise.
71906         * tests/test-pipe2.c (pipe2): Likewise.
71907         * tests/test-poll.c (poll): Likewise.
71908         * tests/test-popen.c (popen, pclose): Likewise.
71909         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
71910         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
71911         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
71912         (posix_spawn_file_actions_destroy)
71913         (posix_spawn_file_actions_addclose)
71914         (posix_spawn_file_actions_addopen)
71915         (posix_spawn_file_actions_adddup2): Likewise.
71916         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
71917         * tests/test-pread.c (pread): Likewise.
71918         * tests/test-printf-posix.c (printf): Likewise.
71919         * tests/test-pty.c (openpty, forkpty): Likewise.
71920         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
71921         (random_r): Likewise.
71922         * tests/test-rawmemchr.c (rawmemchr): Likewise.
71923         * tests/test-readlink.c (readlink): Likewise.
71924         * tests/test-remove.c (remove): Likewise.
71925         * tests/test-rename.c (rename): Likewise.
71926         * tests/test-renameat.c (renameat): Likewise.
71927         * tests/test-rmdir.c (rmdir): Likewise.
71928         * tests/test-round1.c (round): Likewise.
71929         * tests/test-roundf1.c (roundf): Likewise.
71930         * tests/test-roundl.c (roundl): Likewise.
71931         * tests/test-setenv.c (setenv): Likewise.
71932         * tests/test-sigaction.c (sigaction): Likewise.
71933         * tests/test-sleep.c (sleep): Likewise.
71934         * tests/test-snprintf.c (snprintf): Likewise.
71935         * tests/test-sprintf-posix.c (sprintf): Likewise.
71936         * tests/test-stat.c (stat): Likewise.
71937         * tests/test-stpncpy.c (stpncpy): Likewise.
71938         * tests/test-strcasestr.c (strcasestr): Likewise.
71939         * tests/test-strchrnul.c (strchrnul): Likewise.
71940         * tests/test-strerror.c (strerror): Likewise.
71941         * tests/test-strsignal.c (strsignal): Likewise.
71942         * tests/test-strstr.c (strstr): Likewise.
71943         * tests/test-strtod.c (strtod): Likewise.
71944         * tests/test-strverscmp.c (strverscmp): Likewise.
71945         * tests/test-symlink.c (symlink): Likewise.
71946         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
71947         * tests/test-times.c (times): Likewise.
71948         * tests/test-trunc1.c (trunc): Likewise.
71949         * tests/test-truncf1.c (truncf): Likewise.
71950         * tests/test-truncl.c (truncl): Likewise.
71951         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
71952         Likewise.
71953         * tests/test-uname.c (uname): Likewise.
71954         * tests/test-unlink.c (unlink): Likewise.
71955         * tests/test-unlinkat.c (unlinkat): Likewise.
71956         * tests/test-unsetenv.c (unsetenv): Likewise.
71957         * tests/test-usleep.c (usleep): Likewise.
71958         * tests/test-utimensat.c (utimensat): Likewise.
71959         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
71960         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
71961         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
71962         * tests/test-vprintf-posix.c (vprintf): Likewise.
71963         * tests/test-vsnprintf.c (vsnprintf): Likewise.
71964         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
71965         * tests/test-wcrtomb.c (wcrtomb): Likewise.
71966         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
71967         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
71968         * tests/test-wcwidth.c (wcwidth): Likewise.
71970         build: pull in conditional headers during GNULIB_POSIXCHECK
71971         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
71972         definitions from any conditionally-included headers.
71973         * lib/stdlib.in.h (includes): Likewise.
71974         * lib/unistd.in.h (includes): Likewise.
71976 2009-12-24  Bruno Haible  <bruno@clisp.org>
71978         * tests/test-argv-iter.c: Include header file being tested immediately
71979         after config.h.
71980         * tests/test-base64.c: Likewise.
71981         * tests/test-flock.c: Likewise.
71982         * tests/test-fsync.c: Likewise.
71983         * tests/test-getdate.c: Likewise.
71984         * tests/test-getndelim2.c: Likewise.
71985         * tests/test-isfinite.c: Likewise.
71986         * tests/test-isinf.c: Likewise.
71987         * tests/test-strerror.c: Likewise.
71988         * tests/test-strsignal.c: Likewise.
71990 2009-12-23  Eric Blake  <ebb9@byu.net>
71992         unistd: work around cygwin bug
71993         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
71994         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
71995         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
71997 2009-12-23  Bruno Haible  <bruno@clisp.org>
71999         localename: More tests.
72000         * tests/test-localename.c (SIZEOF): New macro.
72001         (categories): New variable.
72002         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
72003         test_locale_name_default): Add test w.r.t. thread locale.
72004         (test_locale_name_thread): New function.
72005         (main): Invoke it.
72007         localename: Make aware of thread locale.
72008         * lib/localename.h (gl_locale_name_thread): New declaration.
72009         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
72010         behaviour with respect to thread locale.
72011         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
72012         <langinfo.h>, glthread/lock.h.
72013         (SIZE_BITS): New macro.
72014         (string_hash): New function.
72015         (struct hash_node): New type.
72016         (HASH_TABLE_SIZE): New macro.
72017         (struniq_hash_table, struniq_lock): New variables.
72018         (struniq): New function.
72019         (gl_locale_name_thread): New function.
72020         (gl_locale_name): Invoke it.
72021         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
72022         * modules/localename (Depends-on): Add lock.
72023         Reported by Mike Gran <spk121@yahoo.com>.
72025 2009-12-23  Eric Blake  <ebb9@byu.net>
72027         va-args: new module
72028         * modules/va-args: New file.
72029         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
72030         * MODULES.html.sh (Core language properties): Mention it.
72032         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
72033         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
72034         named alias for __attribute__((__unused__)).
72035         * lib/chown.c: Update client.
72036         * lib/fchmodat.c: Likewise.
72037         * lib/fts.c: Likewise.
72038         * lib/getdate.y: Likewise.
72039         * lib/getgroups.c: Likewise.
72040         * lib/getopt.c: Likewise.
72041         * lib/getugroups.c: Likewise.
72042         * lib/mkdir.c: Likewise.
72043         * lib/mkfifo.c: Likewise.
72044         * lib/mkfifoat.c: Likewise.
72045         * lib/mknod.c: Likewise.
72046         * lib/mknodat.c: Likewise.
72047         * lib/readlink.c: Likewise.
72048         * lib/se-context.in.h: Likewise.
72049         * lib/se-selinux.in.h: Likewise.
72050         * lib/sockets.c: Likewise.
72051         * lib/symlink.c: Likewise.
72052         * lib/symlinkat.c: Likewise.
72053         * lib/unicodeio.c: Likewise.
72054         * lib/unistr.h: Likewise.
72055         * tests/test-areadlink.c: Likewise.
72056         * tests/test-areadlinkat.c: Likewise.
72057         * tests/test-filenamecat.c: Likewise.
72058         * tests/test-fseeko.c: Likewise.
72059         * tests/test-ftello.c: Likewise.
72060         * tests/test-getdate.c: Likewise.
72061         * tests/test-getgroups.c: Likewise.
72062         * tests/test-gethostname.c: Likewise.
72063         * tests/test-quotearg.c: Likewise.
72064         * tests/test-version-etc.c: Likewise.
72065         * tests/test-xalloc-die.c: Likewise.
72066         * tests/test-xfprintf-posix.c: Likewise.
72067         * tests/test-xprintf-posix.c: Likewise.
72068         * tests/test-xvasprintf.c: Likewise.
72070         tests: avoid compiler warnings
72071         * tests/test-fcntl.c (main): Delete unused parameters.
72072         * tests/test-freopen-safer.c (main): Likewise.
72073         * tests/test-xalloc-die.c (main): Mark unused parameters.
72074         * tests/test-fseeko.c (main): Likewise.
72075         * tests/test-ftello.c (main): Likewise.
72076         * tests/test-nanosleep.c (main): Avoid declaration warning.
72077         * tests/test-sleep.c (main): Likewise.
72078         * tests/test-unsetenv.c (main): Silence warning about string
72079         literal.
72080         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
72082 2009-12-23  Bruno Haible  <bruno@clisp.org>
72084         * tests/test-localename.c (test_locale_name): New function, extracted
72085         from main. Also test mixed situations.
72086         (test_locale_name_posix, test_locale_name_environ,
72087         test_locale_name_default): New functions.
72088         (main): Invoke them all.
72089         * modules/localename-tests (configure.ac): Test for newlocale.
72091 2009-12-23  Bruno Haible  <bruno@clisp.org>
72093         unistd: Ensure getcwd gets declared before being overridden.
72094         * lib/unistd.in.h: Conditionally include <io.h>.
72096 2009-12-22  Bruno Haible  <bruno@clisp.org>
72098         wchar: Diagnose broken combination of glibc and gcc versions and flags.
72099         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
72100         (gl_WCHAR_H): Invoke it.
72101         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
72102         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
72103         Reported by Karl Berry <karl@freefriends.org>.
72105 2009-12-22  Eric Blake  <ebb9@byu.net>
72107         math, unistd: avoid redundant includes
72108         * lib/math.in.h (isnan): No need to re-include <math.h>.
72109         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
72111         getsubopt: work around cygwin bug
72112         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
72113         avoid conflicting with system getsubopt.
72114         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
72115         bug.
72117         getopt: synchronize from glibc
72118         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
72119         parameter order.  Adjust all callers.
72120         (_getopt_internal_r, main): Adjust quoting in error messages.
72121         Drop considerations for outdated POSIX 1003.2 error message.
72122         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
72123         callers.
72124         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
72126         test-getopt: test stderr behavior
72127         * modules/getopt-posix-tests (Depends-on): Add dup2.
72128         * tests/test-getopt.c (ASSERT): Avoid stderr.
72129         (main): Move stderr to a temporary file.
72130         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
72131         Instead, add parameter to inform caller if output occurred.
72132         (test_getopt): Adjust all existing tests to expect silence, and
72133         add new tests of leading ":".
72134         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
72135         glibc shortcomings with leading "-:" or "+:" in optstring.
72136         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72137         Likewise.
72138         * doc/posix-functions/getopt.texi (getopt): Likewise.
72140         test-getopt: enhance test
72141         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
72142         supports optind=0.
72143         * tests/test-getopt.c (OPTIND_MIN): Move...
72144         * tests/test-getopt.h (OPTIND_MIN): ...here.
72145         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
72146         Require that optind=0 works, since modern BSD supports it in
72147         addition to optreset, and since coreutils expects it.
72148         (test_getopt_long_only): New test.
72149         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
72150         glibc shortcomings with 'W;', and enforcement of optind=0.
72151         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72152         Likewise.
72154 2009-12-21  Bruno Haible  <bruno@clisp.org>
72156         localename: Improvements for MacOS X and Cygwin.
72157         * lib/localename.h (gl_locale_name_environ): New declaration.
72158         * lib/localename.c (gl_locale_name_environ): New function, extracted from
72159         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
72160         (gl_locale_name_posix): Invoke it.
72161         (gl_locale_name_default): Add comments. Use Windows native API also on
72162         Cygwin.
72164 2009-12-21  Bruno Haible  <bruno@clisp.org>
72166         Update list of Win32 locale ids.
72167         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
72168         (LANG_SAMI): Renamed from LANG_SAAMI.
72169         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
72170         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
72171         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
72172         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
72173         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
72174         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
72175         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
72176         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
72177         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
72178         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
72179         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
72180         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
72181         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
72182         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
72183         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
72184         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
72185         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
72186         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
72187         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
72188         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
72189         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
72190         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
72191         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
72192         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
72193         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
72194         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
72195         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
72196         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
72197         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
72198         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
72199         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
72200         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
72201         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
72202         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
72203         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
72204         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
72205         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
72206         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
72207         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
72208         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
72209         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
72210         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
72211         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
72212         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
72213         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
72214         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
72215         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
72216         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
72217         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
72218         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
72219         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
72220         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
72221         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
72222         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
72223         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
72224         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
72225         Add more languages and countries for Sami, Sorbian. Add more countries
72226         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
72227         for Pashto. Change country for Syriac, Tswana.
72229 2009-12-21  Eric Blake  <ebb9@byu.net>
72231         test-utimens: avoid spurious failure
72232         * tests/test-chown.h (nap): Factor...
72233         * tests/nap.h: ...into new file.
72234         * tests/test-lchown.h (nap): Avoid duplication.
72235         * tests/test-utimens-common.h (nap): Use shared implementation,
72236         necessary on file systems with 1-second resolution.
72237         * modules/chown-tests (Files): Include new file.
72238         * modules/fdutimensat-tests (Files): Likewise.
72239         * modules/futimens-tests (Files): Likewise.
72240         * modules/lchown-tests (Files): Likewise.
72241         * modules/openat-tests (Files): Likewise.
72242         * modules/utimens-tests (Files): Likewise.
72243         * modules/utimensat-tests (Files): Likewise.
72245 2009-12-19  Eric Blake  <ebb9@byu.net>
72247         futimens, utimensat: work around Linux bug
72248         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
72249         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
72250         * lib/utimensat.c (rpl_utimensat): Work around it.
72251         * lib/futimens.c (rpl_futimens): Adjust comment.
72253         utimens: work around Linux ctime bug
72254         * lib/utimens.c (detect_ctime_bug): New helper function.
72255         (update_timespec): Differentiate between workaround needed for
72256         this bug vs. what is needed for systems that lack utimensat.
72257         (fdutimens, lutimens): Work around bug.
72259         utimens: check for ctime update
72260         * tests/test-utimens-common.h (check_ctime): Define.
72261         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
72262         * tests/test-futimens.h (test_futimens): Likewise.
72263         * tests/test-lutimens.h (test_lutimens): Likewise.
72264         * doc/posix-functions/futimens.texi (futimens): Document the bug.
72265         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
72267 2009-12-19  Bruno Haible  <bruno@clisp.org>
72269         dprintf-posix: Check against memory leak fixed on 2009-12-15.
72270         * tests/test-dprintf-posix2.sh: New file.
72271         * tests/test-dprintf-posix2.c: New file.
72272         * modules/dprintf-posix-tests (Files): Add them.
72273         (configure.ac): Check for getrlimit and setrlimit.
72274         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
72276 2009-12-19  Bruno Haible  <bruno@clisp.org>
72278         fprintf-posix: Check against memory leak fixed on 2009-12-15.
72279         * tests/test-fprintf-posix3.sh: New file.
72280         * tests/test-fprintf-posix3.c: New file.
72281         * modules/fprintf-posix-tests (Files): Add them.
72282         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
72284 2009-12-19  Eric Blake  <ebb9@byu.net>
72286         dirfd: fix prototype
72287         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
72288         * lib/dirfd.c (dirfd): Likewise.
72290         canonicalize: reduce memory usage
72291         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
72292         allocation to size.
72293         Reported by Solar Designer <solar@openwall.com>.
72295 2009-12-19  Bruno Haible  <bruno@clisp.org>
72297         New module attribute 'Applicability'.
72298         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
72299         * gnulib-tool: New option --extract-applicability.
72300         (func_usage): Document it.
72301         (sed_extract_prog): Recognize it.
72302         (func_get_applicability): New function.
72303         (func_import): Generalize handling of 'link-warning' module.
72304         * modules/link-warning (Applicability): New section.
72305         * modules/arg-nonnull (Applicability): New section.
72306         Repoted by Simon Josefsson <simon@josefsson.org>.
72308 2009-12-19  Bruno Haible  <bruno@clisp.org>
72310         fflush: tweak
72311         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
72312         * lib/fseeko.c (rpl_fseeko): Likewise.
72314 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
72316         * lib/gl_list.h: Fix typo in comment.
72318 2009-12-16  Eric Blake  <ebb9@byu.net>
72320         fcntl: use to simplify other modules
72321         * modules/cloexec (Depends-on): Add fcntl.
72322         * modules/fchdir (Depends-on): Likewise.
72323         * modules/fd-safer-flag (Depends-on): Likewise.
72324         * modules/unistd-safer (Depends-on): Likewise.
72325         * modules/dup3 (configure.ac): Set module indicator.
72326         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
72327         missing.
72328         * lib/fchdir.c (_gl_register_dup): Fix comment.
72329         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
72330         * lib/dup-safer.c (dup_safer): Likewise.
72331         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
72332         * lib/dup3.c (dup3): Likewise.
72333         * tests/test-fchdir.c (main): Enhance test.
72334         Fixes a dup_cloexec bug reported by Ondřej Vašík.
72336         fcntl: port portions of fcntl to mingw
72337         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
72338         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
72339         replacement for mingw.
72340         * modules/fcntl (Description): Update.
72341         (Depends-on): Add dup2.
72342         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
72343         * modules/fcntl-h (Makefile.am): Substitute it.
72344         * lib/fcntl.in.h (fcntl): Update declaration.
72345         (F_DUPFD, F_GETFD): New macros, when needed.
72346         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
72347         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
72348         * tests/test-fcntl.c (check_flags, main): Enhance test for items
72349         we now guarantee.
72351         fcntl: work around cygwin bug in F_DUPFD
72352         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
72353         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
72354         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
72355         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
72356         * doc/posix-functions/fcntl.texi (fcntl): Document it.
72358         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
72359         * modules/fcntl (Files): List new files.
72360         (configure.ac): Run a test.
72361         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
72362         * lib/fcntl.c (rpl_fcntl): Likewise.
72363         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
72364         (gl_FCNTL_H): Always replace fcntl.h.
72365         * modules/fcntl-h (Makefile.am): Substitute witnesses.
72366         * lib/fcntl.in.h (fcntl): Declare replacement.
72367         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
72368         needed, plus a witness.
72369         * doc/posix-functions/fcntl.texi (fcntl): Document this.
72370         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
72371         * tests/test-fcntl.c: New file.
72372         * modules/fcntl-tests: Likewise.
72374         binary-io: avoid potential compilation warning
72375         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
72376         directives.
72378         fflush: avoid compilation error on NetBSD
72379         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
72380         between off_t and fpos_t, since the latter is sometimes a struct.
72381         * lib/fseeko.c (rpl_fseeko): Likewise.
72382         Reported by Alexander Nasonov <alnsn@yandex.ru>.
72384 2009-12-15  Eric Blake  <ebb9@byu.net>
72386         fcntl-h, stdio, sys_ioctl: fix declarations
72387         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
72388         function must not take arguments.
72389         * lib/sys_ioctl.in.h (ioctl): Likewise.
72390         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
72391         (open): Add a link warning.
72393 2009-12-15  Jim Meyering  <meyering@redhat.com>
72395         areadlink, areadlink-with-size: relax license to LGPLv2+
72396         * modules/areadlink (License): Relax to LGPLv2+.
72397         * modules/areadlink-with-size (License): Likewise.
72399 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
72400             Bruno Haible  <bruno@clisp.org>
72402         *printf: Fix memory leak.
72403         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
72404         * lib/vfprintf.c (vfprintf): Likewise.
72405         * lib/dprintf.c (dprintf): Likewise.
72406         * lib/vdprintf.c (vdprintf): Likewise.
72408 2009-12-14  Eric Blake  <ebb9@byu.net>
72410         accept4: adjust module dependencies
72411         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
72413         utimens: one more try at avoiding compiler warning
72414         * lib/utimens.c (lutimens): Lower scope of result.
72416 2009-12-13  Bruno Haible  <bruno@clisp.org>
72418         Move the malloc checking from module 'list' to new module 'xlist'.
72419         * modules/xlist: New file.
72420         * lib/gl_xlist.h: New file.
72421         * lib/gl_xlist.c: New file.
72422         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
72423         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
72424         gl_list_add_last, gl_list_add_before, gl_list_add_after,
72425         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
72426         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
72427         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
72428         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
72429         gl_sortedlist_nx_add): New declarations.
72430         (struct gl_list_implementation): Rename and change methods accordingly.
72431         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
72432         (gl_list_nx_create): Renamed from gl_list_create.
72433         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
72434         (gl_list_nx_set_at): Renamed from gl_list_set_at.
72435         (gl_list_nx_add_first): Renamed from gl_list_add_first.
72436         (gl_list_nx_add_last): Renamed from gl_list_add_last.
72437         (gl_list_nx_add_before): Renamed from gl_list_add_before.
72438         (gl_list_nx_add_after): Renamed from gl_list_add_after.
72439         (gl_list_nx_add_at): Renamed from gl_list_add_at.
72440         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
72441         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
72442         gl_list_create_empty.
72443         (gl_list_nx_create): Renamed from gl_list_create.
72444         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
72445         (gl_list_nx_set_at): Renamed from gl_list_set_at.
72446         (gl_list_nx_add_first): Renamed from gl_list_add_first.
72447         (gl_list_nx_add_last): Renamed from gl_list_add_last.
72448         (gl_list_nx_add_before): Renamed from gl_list_add_before.
72449         (gl_list_nx_add_after): Renamed from gl_list_add_after.
72450         (gl_list_nx_add_at): Renamed from gl_list_add_at.
72451         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
72452         * lib/gl_array_list.c: Don't include xalloc.h.
72453         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
72454         NULL upon out-of-memory.
72455         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
72456         out-of-memory.
72457         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
72458         Change return type to 'int'.
72459         (gl_array_nx_set_at): Renamed from gl_array_set_at.
72460         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
72461         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
72462         upon out-of-memory.
72463         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
72464         upon out-of-memory.
72465         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
72466         upon out-of-memory.
72467         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
72468         upon out-of-memory.
72469         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
72470         out-of-memory.
72471         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
72472         Update.
72473         (gl_array_list_implementation): Update.
72474         * lib/gl_carray_list.c: Don't include xalloc.h.
72475         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
72476         Return NULL upon out-of-memory.
72477         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
72478         out-of-memory.
72479         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
72480         Change return type to 'int'.
72481         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
72482         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
72483         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
72484         upon out-of-memory.
72485         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
72486         upon out-of-memory.
72487         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
72488         out-of-memory.
72489         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
72490         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
72491         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
72492         Update.
72493         (gl_carray_list_implementation): Update.
72494         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
72495         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
72496         gl_linked_create_empty. Return NULL upon out-of-memory.
72497         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
72498         out-of-memory.
72499         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
72500         Change return type to 'int'. Return -1 upon out-of-memory.
72501         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
72502         out-of-memory.
72503         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
72504         upon out-of-memory.
72505         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
72506         upon out-of-memory.
72507         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
72508         NULL upon out-of-memory.
72509         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
72510         upon out-of-memory.
72511         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
72512         out-of-memory.
72513         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
72514         Update.
72515         * lib/gl_linked_list.c: Don't include xalloc.h.
72516         (gl_linked_list_implementation): Update.
72517         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
72518         (add_to_bucket): Change return type to 'int'.
72519         (gl_linkedhash_list_implementation): Update.
72520         * lib/gl_anytree_list1.h (free_subtree): New function.
72521         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
72522         gl_tree_create_empty. Return NULL upon out-of-memory.
72523         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
72524         Change return type to 'int'. Return -1 upon out-of-memory.
72525         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
72526         out-of-memory.
72527         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
72528         (gl_tree_remove_node): New function, moved here from
72529         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
72530         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
72531         Update.
72532         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
72533         malloc, not xmalloc. Return NULL upon out-of-memory.
72534         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
72535         out-of-memory.
72536         (gl_tree_remove_node_from_tree): New function, extracted from
72537         gl_tree_remove_node.
72538         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
72539         upon out-of-memory.
72540         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
72541         out-of-memory.
72542         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
72543         upon out-of-memory.
72544         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
72545         upon out-of-memory.
72546         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
72547         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
72548         not xmalloc. Return NULL upon out-of-memory.
72549         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
72550         out-of-memory.
72551         (gl_tree_remove_node_from_tree): New function, extracted from
72552         gl_tree_remove_node.
72553         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
72554         upon out-of-memory.
72555         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
72556         out-of-memory.
72557         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
72558         upon out-of-memory.
72559         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
72560         upon out-of-memory.
72561         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
72562         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
72563         gl_anytree_list1.h before gl_anyavltree_list2.h.
72564         (gl_avltree_list_implementation): Update.
72565         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
72566         gl_anytree_list1.h before gl_anyavltree_list2.h.
72567         (gl_rbtree_list_implementation): Update.
72568         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
72569         Change return type to 'int'. Return -1 upon out-of-memory. Use
72570         __builtin_expect.
72571         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
72572         (gl_avltreehash_list_implementation): Update.
72573         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
72574         (gl_rbtreehash_list_implementation): Update.
72575         * modules/array-list (Depends-on): Remove xalloc.
72576         * modules/carray-list (Depends-on): Likewise.
72577         * modules/linked-list (Depends-on): Likewise.
72578         * modules/linkedhash-list (Depends-on): Likewise.
72579         * modules/avltree-list (Depends-on): Likewise.
72580         * modules/rbtree-list (Depends-on): Likewise.
72581         * modules/avltreehash-list (Depends-on): Likewise.
72582         * modules/rbtreehash-list (Depends-on): Likewise.
72584         * modules/xsublist: New file.
72585         * lib/gl_xsublist.h: New file.
72586         * lib/gl_xsublist.c: New file.
72587         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
72588         (gl_sublist_nx_create): New declaration.
72589         * lib/gl_sublist.c: Don't include xalloc.h.
72590         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
72591         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
72592         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
72593         Change return type to 'int'. Return -1 upon out-of-memory.
72594         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
72595         upon out-of-memory.
72596         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
72597         NULL upon out-of-memory.
72598         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
72599         upon out-of-memory.
72600         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
72601         NULL upon out-of-memory.
72602         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
72603         NULL upon out-of-memory.
72604         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
72605         upon out-of-memory.
72606         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
72607         (gl_sublist_list_implementation): Update.
72608         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
72609         upon out-of-memory.
72610         * modules/sublist (Depends-on): Remove xalloc.
72612         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
72613         * tests/test-carray_list.c: Likewise.
72614         * tests/test-linked_list.c: Likewise.
72615         * tests/test-linkedhash_list.c: Likewise.
72616         * tests/test-avltree_list.c: Likewise.
72617         * tests/test-rbtree_list.c: Likewise.
72618         * tests/test-avltreehash_list.c: Likewise.
72619         * tests/test-rbtreehash_list.c: Likewise.
72620         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
72621         * modules/carray-list-tests (Makefile.am): Likewise.
72622         * modules/linked-list-tests (Makefile.am): Likewise.
72623         * modules/linkedhash-list-tests (Makefile.am): Likewise.
72624         * modules/avltree-list-tests (Makefile.am): Likewise.
72625         * modules/rbtree-list-tests (Makefile.am): Likewise.
72626         * modules/avltreehash-list-tests (Makefile.am): Likewise.
72627         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
72629         * NEWS: Mention the changes.
72631         * lib/clean-temp.c: Include gl_xlist.h.
72632         * modules/clean-temp (Depends-on): Add xlist.
72634         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
72635         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
72637         * tests/test-array_oset.c: Include gl_xlist.h.
72638         * modules/array-oset-tests (Depends-on): Add xlist.
72640         Reported by José E. Marchesi <jemarch@gnu.org>.
72642 2009-12-13  Bruno Haible  <bruno@clisp.org>
72644         Move the malloc checking from module 'oset' to new module 'xoset'.
72645         * modules/xoset: New file.
72646         * lib/gl_xoset.h: New file.
72647         * lib/gl_xoset.c: New file.
72648         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
72649         declarations.
72650         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
72651         (struct gl_oset_implementation): Rename and change methods accordingly.
72652         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
72653         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
72654         'int'. Mark as __warn_unused_result__.
72655         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
72656         gl_oset_create_empty.
72657         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
72658         'int'.
72659         * lib/gl_array_oset.c: Don't include xalloc.h.
72660         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
72661         malloc, not xmalloc.
72662         (grow): Change return type to 'int'. Don't call xalloc_die.
72663         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
72664         to 'int'.
72665         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
72666         'int'.
72667         (gl_array_oset_implementation): Update.
72668         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
72669         gl_tree_create_empty.
72670         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
72671         'int'.
72672         * lib/gl_avltree_oset.c: Don't include xalloc.h.
72673         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
72674         xmalloc.
72675         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
72676         not xmalloc.
72677         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
72678         xmalloc.
72679         (gl_avltree_oset_implementation): Update.
72680         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
72681         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
72682         xmalloc.
72683         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
72684         not xmalloc.
72685         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
72686         xmalloc.
72687         (gl_rbtree_oset_implementation): Update.
72688         * modules/array-oset (Depends-on): Remove xalloc.
72689         * modules/avltree-oset (Depends-on): Likewise.
72690         * modules/rbtree-oset (Depends-on): Likewise.
72691         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
72692         * tests/test-avltree_oset.c: Likewise.
72693         * tests/test-rbtree_oset.c: Likewise.
72694         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72695         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
72696         * modules/rbtree-oset-tests (Makefile.am): Likewise.
72697         * NEWS: Mention the change.
72699 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
72701         maint.mk: allow a project to override release-prep commands
72702         * top/maint.mk (alpha, beta, stable): Move release-preparatory
72703         commands into a new rule.
72704         (release-prep): New rule.
72705         (release-prep-hook): New overridable variable.
72707 2009-12-13  Bruno Haible  <bruno@clisp.org>
72709         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
72711 2009-12-13  Jim Meyering  <meyering@redhat.com>
72713         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
72714         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
72716 2009-12-12  Bruno Haible  <bruno@clisp.org>
72718         duplocale: Tweak.
72719         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
72721 2009-12-12  Karl Berry  <karl@gnu.org>
72723         * config/srclist.txt (strtoll.c): tab changes, no more sync.
72725 2009-12-12  Bruno Haible  <bruno@clisp.org>
72727         * m4/po.m4: Undo incorrect untabification.
72729 2009-12-12  Bruno Haible  <bruno@clisp.org>
72731         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
72732         * modules/c-strtod (Depends-on): Add locale.
72733         * modules/c-strtold (Depends-on): Likewise.
72735 2009-12-12  Bruno Haible  <bruno@clisp.org>
72737         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
72739 2009-12-11  Eric Blake  <ebb9@byu.net>
72741         setenv: relax requirement in light of POSIX ruling
72742         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
72743         not NULL.
72744         * tests/test-setenv.c (main): Relax test.
72745         * tests/test-unsetenv.c (main): Likewise.
72746         * doc/posix-functions/setenv.texi (setenv): Document this.
72747         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
72749 2009-12-11  Bruno Haible  <bruno@clisp.org>
72751         New module 'fd-safer-flag'.
72752         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
72753         * lib/dup-safer.c (dup_safer_flag): Remove function.
72754         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
72755         * lib/fd-safer.c (fd_safer_flag): Remove function.
72756         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
72757         * modules/cloexec (configure.ac): Drop indicator macro.
72758         * modules/fd-safer-flag: New file.
72759         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
72760         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
72761         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
72763 2009-12-11  Bruno Haible  <bruno@clisp.org>
72765         Tests for module 'nl_langinfo'.
72766         * modules/nl_langinfo-tests: New file.
72767         * tests/test-nl_langinfo.sh: New file.
72768         * tests/test-nl_langinfo.c: New file.
72770         New module 'nl_langinfo'.
72771         * lib/nl_langinfo.c: New file.
72772         * m4/nl_langinfo.m4: New file.
72773         * modules/nl_langinfo: New file.
72774         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
72776 2009-12-11  Bruno Haible  <bruno@clisp.org>
72778         Tests for module 'langinfo'.
72779         * modules/langinfo-tests: New file.
72780         * tests/test-langinfo.c: New file.
72782         New module 'langinfo'.
72783         * lib/langinfo.in.h: New file.
72784         * m4/langinfo_h.m4: New file.
72785         * modules/langinfo: New file.
72786         * doc/posix-headers/langinfo.texi: Mention the new module.
72788 2009-12-11  Bruno Haible  <bruno@clisp.org>
72790         * lib/config.charset: Untabify.
72792 2009-12-11  Bruno Haible  <bruno@clisp.org>
72794         * modules/unistd-safer (configure.ac): Drop indicator macro.
72796 2009-12-11  Bruno Haible  <bruno@clisp.org>
72798         Move pipe2-safer code to its own file.
72799         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
72800         * lib/pipe-safer.c (pipe2_safer): Remove function.
72801         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
72802         (Makefile.am): Add it to lib_SOURCES.
72804 2009-12-10  Bruno Haible  <bruno@clisp.org>
72806         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
72808 2009-12-10  Bruno Haible  <bruno@clisp.org>
72810         Declare which arguments expect non-NULL values, for GCC and clang.
72811         * build-aux/arg-nonnull.h: New file.
72812         * modules/arg-nonnull: New file.
72813         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
72814         (inet_ntop, inet_pton): Use it.
72815         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
72816         (closedir, dirfd, opendir, scandir, alphasort): Use it.
72817         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
72818         (open, openat): Use it.
72819         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
72820         (fnmatch): Use it.
72821         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
72822         (getopt, getopt_long, getopt_long_only): Use it.
72823         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
72824         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
72825         Use it.
72826         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
72827         (iconv_open): Use it.
72828         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
72829         (strtoimax, strtoumax): Use it.
72830         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
72831         (duplocale): Use it.
72832         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
72833         (frexp, frexpl): Use it.
72834         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
72835         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
72836         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
72837         (tsearch, tfind, tdelete, twalk): Use it.
72838         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
72839         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
72840         sigpending): Use it.
72841         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
72842         (posix_spawn, posix_spawnp, posix_spawnattr_init,
72843         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
72844         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
72845         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
72846         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
72847         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
72848         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
72849         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
72850         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
72851         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
72852         Use it.
72853         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
72854         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
72855         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
72856         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
72857         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
72858         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
72859         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
72860         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
72861         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
72862         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
72863         strtoull, unsetenv): Use it.
72864         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
72865         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
72866         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
72867         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
72868         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
72869         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
72870         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
72871         (strcasecmp, strncasecmp): Use it.
72872         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
72873         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
72874         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
72875         rpl_setsockopt): Use it.
72876         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
72877         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
72878         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
72879         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
72880         (gettimeofday): Use it.
72881         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
72882         (times): Use it.
72883         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
72884         (uname): Use it.
72885         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
72886         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
72887         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
72888         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
72889         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
72890         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
72891         unlinkat, write): Use it.
72892         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
72893         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
72894         * lib/argv-iter.h: Include arg-nonnull.h.
72895         (_ATTRIBUTE_NONNULL_): Remove macro.
72896         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
72897         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
72898         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
72899         optimization.
72900         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
72901         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
72902         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
72903         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
72904         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
72905         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
72906         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
72907         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
72908         * modules/arpa_inet (Depends-on): Add arg-nonnull.
72909         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
72910         * modules/dirent (Depends-on): Add arg-nonnull.
72911         (Makefile.am): Insert arg-nonnull.h into dirent.h.
72912         * modules/fcntl-h (Depends-on): Add arg-nonnull.
72913         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
72914         * modules/fnmatch (Depends-on): Add arg-nonnull.
72915         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
72916         * modules/getopt-posix (Depends-on): Add arg-nonnull.
72917         (Makefile.am): Insert arg-nonnull.h into getopt.h.
72918         * modules/glob (Depends-on): Add arg-nonnull.
72919         (Makefile.am): Insert arg-nonnull.h into glob.h.
72920         * modules/iconv_open (Depends-on): Add arg-nonnull.
72921         (Makefile.am): Insert arg-nonnull.h into iconv.h.
72922         * modules/inttypes (Depends-on): Add arg-nonnull.
72923         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
72924         * modules/locale (Depends-on): Add arg-nonnull.
72925         (Makefile.am): Insert arg-nonnull.h into locale.h.
72926         * modules/math (Depends-on): Add arg-nonnull.
72927         (Makefile.am): Insert arg-nonnull.h into math.h.
72928         * modules/netdb (Depends-on): Add arg-nonnull.
72929         (Makefile.am): Insert arg-nonnull.h into netdb.h.
72930         * modules/search (Depends-on): Add arg-nonnull.
72931         (Makefile.am): Insert arg-nonnull.h into search.h.
72932         * modules/signal (Depends-on): Add arg-nonnull.
72933         (Makefile.am): Insert arg-nonnull.h into signal.h.
72934         * modules/spawn (Depends-on): Add arg-nonnull.
72935         (Makefile.am): Insert arg-nonnull.h into spawn.h.
72936         * modules/stdio (Depends-on): Add arg-nonnull.
72937         (Makefile.am): Insert arg-nonnull.h into stdio.h.
72938         * modules/stdlib (Depends-on): Add arg-nonnull.
72939         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
72940         * modules/string (Depends-on): Add arg-nonnull.
72941         (Makefile.am): Insert arg-nonnull.h into string.h.
72942         * modules/strings (Depends-on): Add arg-nonnull.
72943         (Makefile.am): Insert arg-nonnull.h into strings.h.
72944         * modules/sys_socket (Depends-on): Add arg-nonnull.
72945         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
72946         * modules/sys_stat (Depends-on): Add arg-nonnull.
72947         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
72948         * modules/sys_time (Depends-on): Add arg-nonnull.
72949         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
72950         * modules/sys_times (Depends-on): Add arg-nonnull.
72951         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
72952         * modules/sys_utsname (Depends-on): Add arg-nonnull.
72953         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
72954         * modules/time (Depends-on): Add arg-nonnull.
72955         (Makefile.am): Insert arg-nonnull.h into time.h.
72956         * modules/unistd (Depends-on): Add arg-nonnull.
72957         (Makefile.am): Insert arg-nonnull.h into unistd.h.
72958         * modules/wchar (Depends-on): Add arg-nonnull.
72959         (Makefile.am): Insert arg-nonnull.h into wchar.h.
72960         * modules/argv-iter (Depends-on): Add arg-nonnull.
72961         * tests/test-canonicalize.c (null_ptr): New function.
72962         (main): Use it.
72963         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
72964         (main): Use it.
72965         * tests/test-memmem.c (null_ptr): New function.
72966         (main): Use it.
72967         Reported by Jim Meyering.
72969 2009-12-10  Bruno Haible  <bruno@clisp.org>
72971         Use spaces for indentation, not tabs.
72972         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
72973         * m4/*.m4: Untabify.
72974         * build-aux/*.h: Untabify.
72975         * tests/**/*.[hc]: Untabify.
72976         * README: New section "Indent with spaces, not TABs", based on
72977         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
72978         * NEWS: Mention the change.
72980 2009-12-10  Bruno Haible  <bruno@clisp.org>
72982         pty test: Fix link error.
72983         * modules/pty-tests (Makefile.am): Add the default LDADD value to
72984         test_pty_LDADD.
72986 2009-12-07  Simon Josefsson  <simon@josefsson.org>
72988         * modules/pty: New file.
72989         * modules/pty-tests: New file.
72990         * m4/pty.m4: New file.
72991         * tests/test-pty.c: New file.
72992         * doc/glibc-headers/pty.texi: Modified.
72993         * doc/glibc-functions/forkpty.texi: Modified.
72994         * doc/glibc-functions/openpty.texi: Modified.
72996 2009-12-10  Bruno Haible  <bruno@clisp.org>
72998         Avoid syntax error in C++ mode.
72999         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
73001 2009-12-10  Bruno Haible  <bruno@clisp.org>
73003         Use sed with option -e.
73004         * gnulib-tool (func_version, func_emit_copyright_notice,
73005         func_emit_initmacro_end, func_import, func_create_testdir): Pass
73006         option -e to sed.
73007         * modules/link-warning (Makefile.am): Likewise.
73009 2009-12-10  Jim Meyering  <meyering@redhat.com>
73011         mgetgroups: do not write bytes beyond end of malloc'd buffer
73012         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
73013         username, we call getgroups with a one-element-shorter buffer,
73014         but still told it the length was original, max_n_groups.
73016 2009-12-09  Eric Blake  <ebb9@byu.net>
73018         cloexec: relax license
73019         * modules/cloexec (Maintainer): Add myself.
73020         (License): Use LGPL, not GPL.
73022         link-warning: optimize generation
73023         * modules/link-warning (Makefile.am): Reduce process usage.
73025 2009-12-09  Bruno Haible  <bruno@clisp.org>
73027         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
73028         workaround was added on 2009-11-17.
73030 2009-12-09  Jim Meyering  <meyering@redhat.com>
73031             Bruno Haible  <bruno@clisp.org>
73033         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
73034         * modules/link-warning (Makefile.am): Make the comment-removing sed
73035         command more robust in the face of bootstrap-prepended comment lines.
73037 2009-12-09  Bruno Haible  <bruno@clisp.org>
73039         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
73040         most one group.
73042 2009-12-09  Simon Josefsson  <simon@josefsson.org>
73043             Bruno Haible  <bruno@clisp.org>
73045         * build-aux/link-warning.h: Add copyright notice.
73046         * modules/link-warning (Makefile.am): Generate link-warning.h from
73047         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
73048         * NEWS: Mention change in link-warning module.
73049         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
73050         * modules/dirent (Makefile.am): Add dependency to dirent.h.
73051         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
73052         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
73053         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
73054         * modules/math (Makefile.am): Add dependency to math.h.
73055         * modules/search (Makefile.am): Add dependency to search.h.
73056         * modules/signal (Makefile.am): Add dependency to signal.h.
73057         * modules/spawn (Makefile.am): Add dependency to spawn.h.
73058         * modules/stdio (Makefile.am): Add dependency to stdio.h.
73059         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
73060         * modules/string (Makefile.am): Add dependency to string.h.
73061         * modules/strings (Makefile.am): Add dependency to strings.h.
73062         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
73063         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
73064         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
73065         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
73066         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
73067         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
73068         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
73069         * modules/unistd (Makefile.am): Add dependency to unistd.h.
73070         * modules/wchar (Makefile.am): Add dependency to wchar.h.
73072 2009-12-09  Bruno Haible  <bruno@clisp.org>
73074         fchdir: Optimize away rpl_fstat when possible.
73075         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
73076         REPLACE_OPEN_DIRECTORY.
73077         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
73079 2009-12-09  Bruno Haible  <bruno@clisp.org>
73081         * lib/fchdir.c: Update comment.
73083 2009-12-09  Bruno Haible  <bruno@clisp.org>
73085         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
73087 2009-12-08  Eric Blake  <ebb9@byu.net>
73089         fchdir: avoid memory leak on re-registration.
73090         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
73092 2009-12-08  Jim Meyering  <meyering@redhat.com>
73094         init.sh: avoid Solaris 10 /bin/sh portability problem
73095         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
73096         sourced script:
73097           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
73098           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
73099           bar
73100         tests/init.sh relied on that, accepting a --set-path=DIR argument,
73101         and two tests used that idiom.
73102         * tests/init.sh: Update suggested usage comments.
73103         (path_prepend_): New function, to be used in place
73104         of the --src-path=DIR option.
73105         (setup_): Move PATH-prepending code into path_prepend_.
73106         * tests/test-pread.sh: Adapt to new usage.
73107         * tests/test-xalloc-die.sh: Likewise.
73109 2009-12-08  Simon Josefsson  <simon@josefsson.org>
73111         * doc/gnulib.texi (Glibc pty.h): Add.
73112         * doc/glibc-functions/forkpty.texi: Add.
73113         * doc/glibc-functions/openpty.texi: Add.
73114         Suggested by Bruno Haible.
73116 2009-12-08  Eric Blake  <ebb9@byu.net>
73118         fchdir: fix logic bugs
73119         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
73120         * tests/test-fchdir.c (main): Enhance test.
73121         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
73122         is in use.
73124         dup2: fix logic bugs
73125         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
73126         REPLACE_DUP2 to decide when rpl_dup2 is needed.
73127         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
73128         exists.
73129         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
73131 2009-12-07  Eric Blake  <ebb9@byu.net>
73133         unlink: fix m4 detection
73134         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
73136         unistd-safer: add unit test
73137         * modules/unistd-safer-tests: New file.
73138         * tests/test-dup-safer.c: Likewise.
73139         * tests/test-cloexec.c (setmode): Avoid compiler warning.
73140         * tests/test-dup2.c (setmode): Likewise.
73141         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
73143         cloexec: preserve text vs. binary across dup_cloexec
73144         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
73145         mode.
73146         * modules/dup2-tests (Depends-on): Add binary-io.
73147         * modules/cloexec-tests (Depends-on): Likewise.
73148         * tests/test-dup2.c (setmode, is_mode): New helpers.
73149         (main): Add tests that translation mode is preserved.
73150         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
73151         Reported by Bruno Haible.
73153         mgetgroups: reduce duplicate listings
73154         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
73155         resulting array.
73156         * tests/test-chown.h (test_chown): Simplify client.
73157         * tests/test-lchown.h (test_lchown): Likewise.
73159 2009-12-06  Bruno Haible  <bruno@clisp.org>
73161         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
73162         value.
73164 2009-12-06  Bruno Haible  <bruno@clisp.org>
73166         * lib/progname.c: Include stdio.h, stdlib.h.
73167         (set_program_name): Reject a NULL argument.
73169 2009-12-05  Eric Blake  <ebb9@byu.net>
73171         pipe2-safer: new module
73172         * modules/pipe2-safer: New file.
73173         * lib/unistd-safer.h (pipe2_safer): New prototype.
73174         * lib/unistd--.h (pipe2): New wrapper.
73175         * lib/pipe-safer.c (pipe2_safer): New function.
73176         * modules/pipe (Depends-on): Add pipe2-safer.
73177         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
73179         stdlib-safer: preserve cloexec flag for mkostemp[s]
73180         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
73181         fd_safer_flag.
73183         unistd-safer: allow preservation of cloexec status via flag
73184         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
73185         prototypes.
73186         * lib/dup-safer.c (dup_safer_flag): New function.
73187         * lib/fd-safer.c (fd_safer_flag): Likewise.
73188         * modules/cloexec (configure.ac): Set witness.
73190         test-dup2: enhance test
73191         * modules/dup2-tests (Depends-on): Add cloexec.
73192         * tests/test-dup2.c (main): Enhance test.
73194         cloexec: add dup_cloexec
73195         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
73196         header and comments.
73197         * lib/cloexec.c (set_cloexec_flag): Add comments.
73198         (dup_cloexec): New function, with mingw implementation borrowed
73199         from...
73200         * lib/w32spawn.h (dup_noinherit): ...here.
73201         * modules/execute (Depends-on): Add cloexec.
73202         * modules/pipe (Depends-on): Likewise.
73203         * modules/cloexec (Depends-on): Add dup2.
73204         * modules/cloexec-tests (Files): New file.
73205         * tests/test-cloexec.c: Likewise.
73207         test-xalloc-die: fix test for mingw
73208         * modules/xalloc-die-tests (Files): Add tests/init.sh.
73209         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
73210         directory and .exe suffix off argv[0] output.
73212         test-fseeko: fix test for mingw
73213         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
73214         than undefining fseek, so test will pass on mingw.
73216 2009-12-05  Bruno Haible  <bruno@clisp.org>
73218         * lib/progname.h (set_program_name): Clarify specification.
73219         * lib/progname.c (set_program_name): Likewise.
73220         Reported by Jim Meyering.
73222 2009-12-05  Jim Meyering  <meyering@redhat.com>
73224         maint.mk: backslash-escape parens in default regexp
73225         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
73226         backslash-escape the literal parentheses.
73228         maint.mk: news-date-check: use grep -E
73229         * top/maint.mk (today): Define a Make variable, not a...
73230         (news-date-check): ...shell variable.
73231         (news-date-regexp): Use the Make variable.
73232         Use grep's -E option.  Change the failing diagnostic to mention
73233         the variable, $(news-date-regexp).
73235 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
73237         maintainer-makefile: allow customization of NEWS entry format
73238         * top/maint.mk (news-date-regexp): New overridable variable.
73239         (news-date-check): Use it.
73241 2009-12-04  Eric Blake  <ebb9@byu.net>
73243         mgetgroups: add xgetgroups, and avoid ENOSYS failures
73244         * lib/mgetgroups.h (xgetgroups): New prototype.
73245         * lib/mgetgroups.c (xgetgroups): New wrapper.
73246         (mgetgroups): Handle ENOSYS.
73247         * modules/mgetgroups (Depends-on): Add realloc.
73248         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
73250         mgetgroups: avoid argument promotion issues with -1
73251         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
73252         for invalid gid_t.
73253         * tests/test-chown.h (getegid, test_chown): Likewise.
73254         * tests/test-lchown.h (getegid, test_lchown): Likewise.
73256 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
73258         exclude: Fix header file problems.
73259         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
73261 2009-12-01  Jim Meyering  <meyering@redhat.com>
73263         fts: fts_open: do not let an empty string cause immediate failure
73264         This is required in support of GNU rm, for which the command
73265         "rm A '' B" must process and remove both A and B, in spite of
73266         the empty string argument.
73267         * lib/fts.c (fts_open): Do not let the presence of an empty string
73268         cause fts_open to fail immediately.  Most fts-using tools must be
73269         able to process all arguments, in order, and can be expected to
73270         diagnose such arguments themselves.
73272 2009-11-30  Eric Blake  <ebb9@byu.net>
73274         utimens: fix compilation error
73275         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
73276         Declare variable at right scope.
73278 2009-11-29  Jim Meyering  <meyering@redhat.com>
73280         bootstrap: handle perl-5.11's changed --version output
73281         * build-aux/bootstrap (get_version): Handle perl separately,
73282         since perl-5.11's --version output is different.
73284 2009-11-28  Jim Meyering  <meyering@redhat.com>
73286         userspec: depend on the inttostr module, too
73287         * modules/userspec (Depends-on): Add inttostr.
73289         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
73290         * lib/userspec.c (parse_with_separator): Do not accept a user ID
73291         number of MAXUID when it evaluates to (uid_t) -1.
73292         Likewise for group ID.  Reported by Matt McCutchen in
73293         <http://savannah.gnu.org/bugs/?28113>
73295         userspec: reformat to use spaces, not TABs
73296         * lib/userspec.c: Expand TABs to spaces.
73297         Add Emacs' "indent-tabs-mode: nil" hint.
73299 2009-11-27  Eric Blake  <ebb9@byu.net>
73301         getopt-gnu: flush out another BSD bug
73302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
73303         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
73304         flush out BSD bug.
73305         * tests/test-getopt.h (test_getopt): End lists with NULL.
73306         * tests/test-getopt_long.h (test_getopt_long): Likewise.
73307         (test_getopt_long_posix): Enhance test.
73308         * modules/getopt-posix-tests (Depends-on): Add stdbool.
73309         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
73310         getopt-gnu.
73311         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73312         Likewise.
73314 2009-11-27  Simon Josefsson  <simon@josefsson.org>
73316         * modules/idpriv-droptemp-tests (Notice): Fix text.
73318 2009-11-27  Jim Meyering  <meyering@redhat.com>
73320         test-xalloc-die: avoid spurious failure due to libtool argv difference
73321         In a libtool-enabled project, this test would fail due to a difference
73322         in the emitted program name, e.g.,
73323         -test-xalloc-die: memory exhausted
73324         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
73325         Use program to avoid that.
73326         * modules/xalloc-die-tests (Depends-on): Add progname.
73327         * tests/test-xalloc-die.c: Include progname.h".
73328         (program_name): Remove decl.
73329         (main): Call set_program_name.
73330         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
73332 2009-11-26  Richard Jones  <rjones@redhat.com>
73334         w32sock: leave win32 error in place.
73335         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
73337 2009-11-26  Eric Blake  <ebb9@byu.net>
73339         init.sh: suggest to use skip_ and fail_ functions in comments
73340         * tests/init.sh: Add a sentence.
73342 2009-11-25  Bruno Haible  <bruno@clisp.org>
73344         init.sh: add documentation in comments
73345         * tests/init.sh: Add some developer and user documentation.
73347 2009-11-26  Jim Meyering  <meyering@redhat.com>
73349         init.sh: accommodate even those who specify bogus srcdir manually
73350         * tests/init.sh: Normally, srcdir is guaranteed by automake and
73351         configure-time tests to be sanitized, so that there is no need to
73352         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
73353         (with no double quotes) suffices.  However, since tests may be
73354         invoked manually, and since you may explicitly set srcdir to the
73355         name of a directory containing spaces, do quote its uses here.
73356         * tests/test-pread.sh: Likewise.
73357         Suggested by Bruno Haible.
73359         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
73360         * tests/test-pread.sh: Write no data into the pipe, because
73361         test-pread actually reads none.  This avoids a diagnostic,
73362         "bash: echo: write error: Broken pipe", that arises in the unusual
73363         event something is ignoring SIGPIPE, and might be interpreted
73364         as some sort of failure.  Reported by Bruno Haible.
73366 2009-11-25  Jim Meyering  <meyering@redhat.com>
73368         test-pread: cover failure with ESPIPE and EINVAL
73369         * tests/test-pread.c (main): Test for failure, too.
73370         * tests/test-pread.sh: Invoke with stdin on a pipe.
73371         Suggested by Eric Blake.
73373         pread: improvement and fix
73374         * modules/pread (Depends-on): Depend on lseek, for portability to
73375         e.g., mingw.  Suggested by Eric Blake.
73376         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
73378         unistd.in.h: correct declaration of pread
73379         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
73380         Reported by Richard W.M. Jones.
73382         test-pread.sh: distribute the test script
73383         * modules/pread-tests (Files): Include test-pread.sh.
73385         test-pread.sh: clean up
73386         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
73387         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
73388         That is unnecessary, since it's always ".".
73389         Suggestion from Eric Blake.
73391         test-pread.sh: make executable
73392         * tests/test-pread.sh: Set executable bit.
73393         Reported by Eric Blake.
73395         correct typo in test-pread.sh
73396         * tests/test-pread.sh: Add #! line.
73398         test pread
73399         * tests/test-pread.c: New file.
73400         * tests/test-pread.sh: Likewise.
73401         * modules/pread-tests: Likewise.
73403         pread: new module
73404         * modules/pread: New file.
73405         * lib/unistd.in.h (pread): Define/declare.
73406         * lib/pread.c (pread): New file.
73407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
73408         * modules/unistd (Makefile.am): Substitute witnesses.
73409         * doc/posix-functions/pread.texi (pread): Update.
73410         * MODULES.html.sh: Add pread.
73412 2009-11-25  Jim Meyering  <meyering@redhat.com>
73414         tests/init.sh: new file to be used via most *.sh tests
73415         * tests/init.sh: New file.
73417 2009-11-25  Eric Blake  <ebb9@byu.net>
73419         utimens: work around older Linux failure with symlinks
73420         * lib/utimens.c (lutimensat_works_really): New variable.
73421         (fdutimens, lutimens): Use it to manage kernels that support
73422         nanosecond times on files, but not on symlinks.
73423         Reported by Ondřej Vašík.
73425         utimes: fix configure grammar
73426         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
73428 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
73430         regex: Fix fastmap for multibyte character ranges.
73431         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
73432         characters when a multibyte character range is included.
73434 2009-11-22  Andy Wingo  <wingo@pobox.com>
73436         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
73437         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
73439 2009-11-24  Bruno Haible  <bruno@clisp.org>
73441         doc: Most *_l functions exist in MacOS X 10.5.
73442         * doc/posix-functions/duplocale.texi: Update platforms list.
73443         * doc/posix-functions/freelocale.texi: Likewise.
73444         * doc/posix-functions/newlocale.texi: Likewise.
73445         * doc/posix-functions/uselocale.texi: Likewise.
73446         * doc/posix-functions/isalnum_l.texi: Likewise.
73447         * doc/posix-functions/isalpha_l.texi: Likewise.
73448         * doc/posix-functions/isblank_l.texi: Likewise.
73449         * doc/posix-functions/iscntrl_l.texi: Likewise.
73450         * doc/posix-functions/isdigit_l.texi: Likewise.
73451         * doc/posix-functions/isgraph_l.texi: Likewise.
73452         * doc/posix-functions/islower_l.texi: Likewise.
73453         * doc/posix-functions/isprint_l.texi: Likewise.
73454         * doc/posix-functions/ispunct_l.texi: Likewise.
73455         * doc/posix-functions/isspace_l.texi: Likewise.
73456         * doc/posix-functions/isupper_l.texi: Likewise.
73457         * doc/posix-functions/iswalnum_l.texi: Likewise.
73458         * doc/posix-functions/iswalpha_l.texi: Likewise.
73459         * doc/posix-functions/iswblank_l.texi: Likewise.
73460         * doc/posix-functions/iswcntrl_l.texi: Likewise.
73461         * doc/posix-functions/iswctype_l.texi: Likewise.
73462         * doc/posix-functions/iswdigit_l.texi: Likewise.
73463         * doc/posix-functions/iswgraph_l.texi: Likewise.
73464         * doc/posix-functions/iswlower_l.texi: Likewise.
73465         * doc/posix-functions/iswprint_l.texi: Likewise.
73466         * doc/posix-functions/iswpunct_l.texi: Likewise.
73467         * doc/posix-functions/iswspace_l.texi: Likewise.
73468         * doc/posix-functions/iswupper_l.texi: Likewise.
73469         * doc/posix-functions/iswxdigit_l.texi: Likewise.
73470         * doc/posix-functions/isxdigit_l.texi: Likewise.
73471         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
73472         * doc/posix-functions/strcasecmp_l.texi: Likewise.
73473         * doc/posix-functions/strcoll_l.texi: Likewise.
73474         * doc/posix-functions/strfmon_l.texi: Likewise.
73475         * doc/posix-functions/strftime_l.texi: Likewise.
73476         * doc/posix-functions/strncasecmp_l.texi: Likewise.
73477         * doc/posix-functions/strxfrm_l.texi: Likewise.
73478         * doc/posix-functions/tolower_l.texi: Likewise.
73479         * doc/posix-functions/toupper_l.texi: Likewise.
73480         * doc/posix-functions/towctrans_l.texi: Likewise.
73481         * doc/posix-functions/towlower_l.texi: Likewise.
73482         * doc/posix-functions/towupper_l.texi: Likewise.
73483         * doc/posix-functions/wcscoll_l.texi: Likewise.
73484         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
73485         * doc/posix-functions/wctrans_l.texi: Likewise.
73486         * doc/posix-functions/wctype_l.texi: Likewise.
73487         * doc/glibc-functions/strptime_l.texi: Likewise.
73488         * doc/glibc-functions/strtod_l.texi: Likewise.
73489         * doc/glibc-functions/strtof_l.texi: Likewise.
73490         * doc/glibc-functions/strtol_l.texi: Likewise.
73491         * doc/glibc-functions/strtold_l.texi: Likewise.
73492         * doc/glibc-functions/strtoll_l.texi: Likewise.
73493         * doc/glibc-functions/strtoul_l.texi: Likewise.
73494         * doc/glibc-functions/strtoull_l.texi: Likewise.
73495         * doc/glibc-functions/wcsftime_l.texi: Likewise.
73496         * doc/glibc-functions/wcstod_l.texi: Likewise.
73497         * doc/glibc-functions/wcstof_l.texi: Likewise.
73498         * doc/glibc-functions/wcstol_l.texi: Likewise.
73499         * doc/glibc-functions/wcstold_l.texi: Likewise.
73500         * doc/glibc-functions/wcstoll_l.texi: Likewise.
73501         * doc/glibc-functions/wcstoul_l.texi: Likewise.
73502         * doc/glibc-functions/wcstoull_l.texi: Likewise.
73504 2009-11-24  Bruno Haible  <bruno@clisp.org>
73506         duplocale: Fix logic bug.
73507         * lib/duplocale.c: Don't include <langinfo.h>.
73508         (_NL_LOCALE_NAME): Remove macro.
73509         (rpl_duplocale): Use setlocale instead of nl_langinfo.
73510         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
73512 2009-11-23  Jim Meyering  <meyering@redhat.com>
73514         test-update-copyright: don't hard-code /usr/bin/perl
73515         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
73516         perl to print the current year.  Gilles Espinasse reported that
73517         the replaced use of perl was hard-coded as /usr/bin/perl.
73519 2009-11-23  Bruno Haible  <bruno@clisp.org>
73521         duplocale: Add support for glibc 2.3.x.
73522         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
73524 2009-11-22  Bruno Haible  <bruno@clisp.org>
73526         vasnprintf: Tiny optimization.
73527         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
73528         MacOS X.
73530 2009-11-22  Bruno Haible  <bruno@clisp.org>
73532         Tests for module 'duplocale'.
73533         * modules/duplocale-tests: New file.
73534         * tests/test-duplocale.c: New file.
73536         New module 'duplocale'.
73537         * m4/duplocale.m4: New file.
73538         * lib/locale.in.h (duplocale): New declaration.
73539         * lib/duplocale.c: New file.
73540         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
73541         gl_LOCALE_H_DEFAULTS): New macros.
73542         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
73543         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
73544         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
73545         REPLACE_DUPLOCALE.
73546         * modules/duplocale: New file.
73547         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
73549 2009-11-22  Bruno Haible  <bruno@clisp.org>
73551         * modules/locale-tests (configure.ac): Test for newlocale function.
73552         * tests/test-locale.c: When the system has extended locale functions,
73553         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
73555         locale: Make locale_t available when possible.
73556         * lib/locale.in.h: Include <xlocale.h> when it exists.
73557         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
73558         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
73559         * modules/locale (Depends-on): Add extensions.
73560         (Makefile.am): Also substitute HAVE_XLOCALE_H.
73561         * doc/posix-headers/locale.texi: Document the problem with locale_t.
73563 2009-11-22  Bruno Haible  <bruno@clisp.org>
73565         Add comments.
73566         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
73567         invocation.
73568         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
73569         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
73570         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73572 2009-11-22  Bruno Haible  <bruno@clisp.org>
73574         error: account for the possibility of freopen (stdout).
73575         * lib/error.c: Include <unistd.h>.
73576         (flush_stdout): New function, extracted from error and error_at_line.
73577         Determine stdout's fd dynamically.
73578         (error, error_at_line): Invoke flush_stdout.
73579         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
73580         * modules/error (Depends-on): Add unistd.
73582 2009-11-22  Bruno Haible  <bruno@clisp.org>
73584         diffseq: Add comment.
73585         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
73587 2009-11-22  Jim Meyering  <meyering@redhat.com>
73589         c-stack: avoid defining an unused static function
73590         * lib/c-stack.c (find_stack_direction): Do not define this function
73591         when it will not be used.
73593         diffseq: avoid spurious gcc warnings
73594         * lib/diffseq.h (IF_LINT2): Define.
73595         (compareseq): Use it to initialize two members of "part".
73596         This avoids two used-uninitialized warnings.
73598 2009-11-21  Jim Meyering  <meyering@redhat.com>
73600         c-stack: avoid "ignoring return value of `write'" warning
73601         * lib/c-stack.c: Include "ignore-value.h".
73602         (die): Explicitly ignore each write return value.
73603         * modules/c-stack (Depends-on): Add ignore-value.
73605 2009-11-21  Bruno Haible  <bruno@clisp.org>
73607         diffseq: reduce scope of variable 'best'.
73608         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
73609         variable, earlier used for two different purposes.
73611 2009-11-21  Jim Meyering  <meyering@redhat.com>
73613         diffseq: remove useless assignment to "best"
73614         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
73615         assignment.  At that point "best" is already guaranteed to be zero.
73617 2009-11-20  Eric Blake  <ebb9@byu.net>
73619         build: mention ftp redirector in release announcements
73620         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
73621         values that used to come from cfg.mk; mention FTP redirect URL.
73622         * build-aux/announce-gen: Mention the mirror list.
73623         Suggested by Karl Berry.
73625         nanosleep: improve port to mingw
73626         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
73627         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
73628         LIB_NANOSLEEP, but only when needed.
73629         * modules/select (Link): Document LIBSOCKET.
73630         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
73631         enough.
73633         nanosleep: work around cygwin bug
73634         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
73635         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
73636         bug.
73637         (getnow): Delete, not needed.
73638         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
73639         LIB_CLOCK_GETTIME.
73640         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
73641         clock-time, gettime.
73642         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
73643         bug.
73644         * modules/nanosleep-tests: New test.
73645         * tests/test-nanosleep.c: New file.
73647         sleep: work around cygwin bug
73648         * lib/sleep.c (rpl_sleep): Work around the bug.
73649         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
73650         (gl_PREREQ_SLEEP): Delete unused macro.
73651         * modules/sleep (Depends-on): Add verify.
73652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
73653         * modules/unistd (Makefile.am): Substitute witness.
73654         * lib/unistd.in.h (sleep): Update prototype.
73655         * doc/posix-functions/sleep.texi (sleep): Document the bug.
73656         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
73657         * modules/sleep-tests (Depends-on): Check for alarm.
73659 2009-11-20  Jim Meyering  <meyering@redhat.com>
73661         maint.mk: improve sc_prohibit_magic_number_exit
73662         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
73663         so it does not match uses like System.exit(1).
73664         Add comments showing how to correct all offenders.
73666 2009-11-19  Eric Blake  <ebb9@byu.net>
73668         xalloc-die-tests: add missing library
73669         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
73671         test-xvasprintf: silence compiler warnings
73672         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
73673         empty string from gcc.
73675 2009-11-19  Jim Meyering  <meyering@redhat.com>
73677         xfreopen: new module, from coreutils
73678         * modules/xfreopen: New module.
73679         * lib/xfreopen.c: New file.
73680         * lib/xfreopen.h: New file.
73681         * MODULES.html.sh (File stream based Input/Output"): Add it.
73683 2009-11-19  Eric Blake  <ebb9@byu.net>
73685         manywarnings: depend on warnings
73686         * modules/manywarnings (Depends-on): Add warnings.
73688         build: avoid compiler warnings
73689         * lib/select.c (rpl_select): Delete unused variable.
73690         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
73692 2009-11-18  Eric Blake  <ebb9@byu.net>
73694         tests: avoid false negative with --with-packager
73695         * tests/test-version-etc.sh: Discard packager information.
73696         * tests/test-argp-version-etc-1.sh: Likewise.
73697         Reported by Mike Frysinger.
73699         utimens: fix regression on Solaris
73700         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
73701         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
73702         can only change fd timestamps via futimesat.  Instead, use an
73703         additional witness macro to avoid BSD bug.
73704         Reported by Jim Meyering.
73706 2009-11-17  Eric Blake  <ebb9@byu.net>
73708         usleep: use it to simplify tests
73709         * modules/stat-time-tests (Depends-on): Add usleep.
73710         (configure.ac): Drop usleep check.
73711         * modules/chown-tests (Depends-on, configure.ac): Likewise.
73712         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
73713         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
73714         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
73715         * modules/openat-tests (Depends-on, configure.ac): Likewise.
73716         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
73717         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
73718         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
73719         Likewise.
73720         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
73721         * tests/test-lchown.h (nap): Likewise.
73722         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
73723         * tests/test-stat-time.c (nap): Likewise.
73724         * tests/test-utimens-common.h (nap): Update comments.
73726         usleep: new module
73727         * modules/usleep: New file.
73728         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
73729         * lib/usleep.c (usleep): Likewise.
73730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
73731         * modules/unistd (Makefile.am): Substitute witnesses.
73732         * lib/unistd.in.h (usleep): Add declaration.
73733         * doc/pastposix-functions/usleep.texi (usleep): Document this.
73734         * MODULES.html.sh (Date and time): Likewise.
73735         * modules/usleep-tests (Depends-on): New test.
73736         * tests/test-usleep.c: New file.
73738         chown: work around OpenBSD bug
73739         * lib/chown.c (rpl_chown): Work around the bug.
73740         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
73741         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
73742         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
73743         * modules/chown (Depends-on): Add stdbool.
73744         * modules/lchown (Depends-on): Likewise.
73745         * doc/posix-functions/chown.texi (chown): Document the bug.
73746         * doc/posix-functions/lchown.texi (lchown): Likewise.
73747         * tests/test-lchown.h (test_chown): Relax test.
73749         mkstemp: avoid conflict with C++ keyword template
73750         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
73751         * lib/mkostemp.c (mkostemp): Likewise.
73752         * lib/mkostemps.c (mkostemps): Likewise.
73753         * lib/mkstemp.c (mkstemp): Likewise.
73754         * lib/mkstemps.c (mkstemps): Likewise.
73756         xalloc-die-tests: optimize
73757         * tests/test-xalloc-die.sh: Reduce number of processes.
73759 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73761         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
73762         patch from ludo@gnu.org (Ludovic Courtès).
73764 2009-11-17  Jim Meyering  <meyering@redhat.com>
73766         version-etc: use proper license string
73767         * modules/version-etc (License): Use LGPL, not LGPLv3+.
73768         * modules/version-etc-fsf: Likewise.
73770 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73772         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
73773         printed to stdout.  Deal with EOL differences.
73775 2009-11-17  Eric Blake  <ebb9@byu.net>
73777         unsetenv: work around Solaris bug
73778         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
73779         * lib/unsetenv.c (rpl_unsetenv): Work around it.
73780         Reported by Jim Meyering.
73782         vasnprintf: avoid compiler warnings
73783         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
73784         variables.
73785         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
73787 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73789         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
73790         settings since xalloc-die is no longer the self test,
73791         xalloc-die.sh is.
73793 2009-11-17  Jim Meyering  <meyering@redhat.com>
73795         test-xalloc-die.sh: make the code agree with the commit log
73796         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
73797         at the end, just in case you happen to have a test-xalloc-die
73798         program in some other PATH directory.
73800         test-xalloc-die.sh: fix a portability bug
73801         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
73802         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
73803         Otherwise, argv[0] (as often seen in diagnostics) would be too
73804         system-dependent, sometimes with, and sometimes without the leading "./".
73806         version-etc-fsf: relax license to LGPLv3+
73807         * modules/version-etc-fsf (License): Relax license.
73809 2009-11-16  Eric Blake  <ebb9@byu.net>
73811         xalloc-die-tests: avoid printing null pointer
73812         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
73813         shell script.
73814         * tests/test-xalloc-die.c (program_name): Declare.
73815         * tests/test-xalloc-die.sh (tmpfiles): New file.
73817         setenv, unsetenv: work around various bugs
73818         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
73819         (setenv) [HAVE_SETENV]: Work around bugs.
73820         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
73821         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
73822         for bugs.
73823         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
73824         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
73825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
73826         * modules/stdlib (Makefile.am): Update substitutions.
73827         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
73828         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
73829         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
73830         * modules/setenv-tests: New test.
73831         * modules/unsetenv-tests: Likewise.
73832         * tests/test-setenv.c: New file.
73833         * tests/test-unsetenv.c: Likewise.
73835 2009-11-16  Jim Meyering  <meyering@redhat.com>
73837         version-etc: relax license to LGPLv3+
73838         * modules/version-etc (License): Relax license.
73840         better AC_REQUIRE expanded-before-required-warning avoidance
73841         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
73842         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
73843         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
73844         which is no longer needed.
73846 2009-11-16  Eric Blake  <ebb9@byu.net>
73848         test-freading: clean up temporary file
73849         * tests/test-freading.c (main): Remove file on success, and use
73850         ASSERT more liberally.
73851         Reported by Jim Meyering.
73853 2009-11-16  Jim Meyering  <meyering@redhat.com>
73855         avoid new AC_REQUIRE expanded-before-required warnings
73856         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
73857         merely using it.
73858         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
73859         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
73861 2009-11-15  Simon Josefsson  <simon@josefsson.org>
73863         * tests/test-xalloc-die.c: New file.
73864         * modules/xalloc-die-tests: New file.
73865         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
73866         XFAIL_TESTS so it can be appended by modules.
73868 2009-11-15  Simon Josefsson  <simon@josefsson.org>
73870         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
73871         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
73873 2009-11-14  Eric Blake  <ebb9@byu.net>
73875         fnmatch: avoid compiler warning
73876         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
73877         to silence compiler warning about mismatch signedness in ?:.
73878         Reported by Robert Millan.
73880         intprops: add double-inclusion guard
73881         * lib/intprops.h: Allow idempotent includes.
73882         Suggested by Bruce Korb.
73884         openat: detect Solaris fchownat bug
73885         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
73886         penalizing glibc chownat when only lchownat is broken.
73887         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
73888         trailing slash bugs.
73889         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
73890         * modules/openat-tests (Files): Include more files.
73891         (Depends-on): Add mgetgroups, sleep, stat-time.
73892         (configure.ac): Add additional checks.
73893         (Makefile.am): Build new test.
73894         * tests/test-fchownat.c: New file.
73896         lchown: detect Solaris and FreeBSD bug
73897         * lib/lchown.c (rpl_lchown): Work around bug.
73898         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
73899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
73900         * modules/unistd (Makefile.am): Populate it.
73901         * lib/unistd.in.h (lchown): Update declaration.
73902         * doc/posix-functions/lchown.texi (lchown): Document the bug.
73903         * modules/lchown-tests: New file.
73904         * tests/test-lchown.h (test_lchown): Likewise.
73905         * tests/test-lchown.c (main): Likewise.
73907         chown: detect Solaris and FreeBSD bug
73908         * lib/chown.c (rpl_chown): Work around bug.
73909         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
73910         (gl_PREREQ_CHOWN): Delete.
73911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
73912         * modules/unistd (Makefile.am): Populate it.
73913         * lib/unistd.in.h (chown): Update declaration.
73914         * lib/lchown.c (chown): Update client.
73915         * modules/lchown (Depends-on): Add lstat.
73916         * doc/posix-functions/chown.texi (chown): Document the bug.
73917         * doc/posix-functions/getgroups.texi (getgroups): Document
73918         getgroups pitfall.
73919         * modules/chown-tests: New file.
73920         * tests/test-chown.h (test_chown): Likewise.
73921         * tests/test-chown.c (main): Likewise.
73923 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
73925         gnulib-tool: correctly detect absence of m4 directories
73926         * gnulib-tool: Avoid extra newline on data passed to wc -l.
73928 2009-11-14  Jim Meyering  <meyering@redhat.com>
73930         maint.mk: Prohibit inclusion of "xalloc.h" without use.
73931         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
73933 2009-11-14  John W. Eaton  <jwe@gnu.org>
73935         strftime.h: wrap function declaration in extern "C" block
73936         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
73938 2009-11-13  Eric Blake  <ebb9@byu.net>
73940         getgroups: avoid compiler warning
73941         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
73943         getgroups: work around FreeBSD bug
73944         * lib/getgroups.c (rpl_getgroups): Work around the bug.
73945         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
73946         * doc/posix-functions/getgroups.texi (getgroups): Document it.
73947         * tests/test-getgroups.c (main): Fix buffer overrun.
73949         getgroups: avoid compilation failure
73950         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
73951         * modules/getgroups (Depends-on): Add stdint.
73953 2009-11-13  Jim Meyering  <meyering@redhat.com>
73955         test-getgroups: avoid compilation failure
73956         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
73958 2009-11-13  Eric Blake  <ebb9@byu.net>
73960         mgetgroups: new module, taken from coreutils
73961         * modules/mgetgroups: New file.
73962         * lib/mgetgroups.h: Likewise.
73963         * lib/mgetgroups.c (mgetgroups): Likewise.
73964         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
73965         * MODULES.html.sh (Users and groups): Mention it.
73967         getgroups: don't expose GETGROUPS_T to user
73968         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
73969         an element at a time if GETGROUPS_T is wrong size.
73970         * lib/getugroups.h (getugroups): Change signature.
73971         * lib/unistd.in.h (getgroups): Likewise.
73972         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
73973         signature needs fixing.
73974         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
73975         AC_TYPE_GETGROUPS.
73976         * modules/group-member (Depends-on): Add getgroups.
73977         * lib/group-member.c (group_info, get_group_info): Use gid_t.
73978         (group_member): Rely on getgroups replacement.
73979         * lib/getugroups.c (getugroups): Use gid_t.
73980         * tests/test-getgroups.c (main): Likewise.
73981         * NEWS: Mention the signature change.
73982         * doc/posix-functions/getgroups.texi (getgroups): Mention the
73983         problem with signature.
73984         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
73985         GETGROUPS_T is still useful for setgroups.
73987         getgroups, getugroups: provide stubs for mingw
73988         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
73989         * lib/getugroups.c (getugroups): Likewise.
73990         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
73991         function.  Modernize replacement scheme.
73992         (gl_PREREQ_GETGROUPS): Delete.
73993         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
73994         * modules/getgroups (configure.ac): Declare witness.
73995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
73996         * modules/unistd (Depends-on): Substitute witness.
73997         * lib/unistd.in.h (getgroups): Declare replacement.
73999         getgroups: avoid calling exit
74000         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
74001         drop xalloc.
74002         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
74003         dependencies.
74004         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
74005         exiting, in the rare case of malloc failure.
74007         getgroups: fix logic error
74008         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
74009         has more than 20 groups.
74010         * modules/getgroups-tests: New test.
74011         * tests/test-getgroups.c: New file.
74013 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74015         * tests/test-base64.c: Improve.
74017 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74019         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
74020         Blake <ebb9@byu.net>.
74022 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74024         * tests/test-xvasprintf.c: Add %s%s related checks.
74026 2009-11-12  Eric Blake  <ebb9@byu.net>
74028         version-etc: match standards.texi style
74029         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
74030         and use <> only for URLs.
74032 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
74034         fts: do not fail on a submount during traversal
74035         * lib/fts.c (fts_build): Read the stat info again after opening
74036         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
74037         Original report at http://bugzilla.redhat.com/501848.
74039 2009-11-12  Jim Meyering  <meyering@redhat.com>
74041         bootstrap: sync from coreutils
74042         * build-aux/bootstrap (bootstrap_epilogue): New function.
74043         Use git_modules_config in one more place.  This make bootstrap's
74044         --gnulib-srcdir option more useful for testing.
74046         bootstrap: generalize autoheader check
74047         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
74048         AC_CONFIG_HEADERS.
74050 2009-11-11  Eric Blake  <ebb9@byu.net>
74052         mkfifoat: use new modules for Solaris and BSD bugs
74053         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
74054         * lib/mkfifoat.c (mknodat): Split...
74055         * lib/mknodat.c (mknodat): ...into new file.
74056         * modules/mkfifoat (Files): Ship new file.
74057         (Depends-on): Add mkfifo, mknod.
74058         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
74059         (Depends-on): Add symlink.
74060         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
74061         redundant with test_mkfifo.h.
74062         (do_mkfifoat, do_mknodat): New helpers.
74064         mknod: new module
74065         * modules/mknod: New file.
74066         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
74067         * lib/mknod.c (mknod): Likewise.
74068         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
74069         defaults.
74070         * modules/sys_stat (Makefile.am): Substitute them.
74071         * lib/sys_stat.in.h (mknod): Declare replacement.
74072         * MODULES.html.sh (Support for systems lacking POSIX:2008):
74073         Document it.
74074         * doc/posix-functions/mknod.texi (mknod): Likewise.
74075         * modules/mknod-tests: New test.
74076         * tests/test-mknod.c: Likewise.
74078         mkfifo: new module
74079         * modules/mkfifo: New file.
74080         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
74081         * lib/mkfifo.c (mkfifo): Likewise.
74082         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
74083         defaults.
74084         * modules/sys_stat (Makefile.am): Substitute them.
74085         * lib/sys_stat.in.h (mkfifo): Declare replacement.
74086         * MODULES.html.sh (Support for systems lacking POSIX:2008):
74087         Document it.
74088         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
74089         * modules/mkfifo-tests: New test.
74090         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
74091         from test-mkfifoat.c.
74092         * tests/test-mkfifo.c: New file.
74094         readlink: detect FreeBSD bug
74095         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
74096         slash on symlink.
74097         * doc/posix-functions/readlink.texi (readlink): Document the bug.
74098         * tests/test-readlink.h (test_readlink): Enhance test.
74100         symlink: detect FreeBSD bug
74101         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
74102         slash on symlink.
74103         * doc/posix-functions/symlink.texi (symlink): Document the bug.
74104         * tests/test-symlink.h (test_symlink): Enhance test.
74106 2009-11-10  Eric Blake  <ebb9@byu.net>
74108         link: detect FreeBSD bug
74109         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
74110         symlink.
74111         * doc/posix-functions/link.texi (link): Document the bug.
74112         * tests/test-link.h (test_link): Enhance test.
74113         * tests/test-linkat.c (main): Update caller.
74115         unlink, remove: detect FreeBSD bug
74116         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
74117         slash on symlink.
74118         * doc/posix-functions/unlink.texi (unlink): Document the bug.
74119         * doc/posix-functions/remove.texi (remove): Likewise.
74120         * tests/test-unlink.h (test_unlink): Enhance test.
74121         * tests/test-remove.c (main): Likewise.
74123 2009-11-09  Eric Blake  <ebb9@byu.net>
74125         rename: detect FreeBSD bug
74126         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
74127         slash on symlink.
74128         * modules/renameat-tests (Depends-on): Add filenamecat.
74129         * tests/test-rename.h (test_rename): Allow one more errno.
74130         * tests/test-renameat.c (main): Likewise.
74131         * doc/posix-functions/rename.texi (rename): Document the bug.
74133         open: detect FreeBSD bug
74134         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
74135         symlink.
74136         * doc/posix-functions/open.texi (open): Document the bug.
74137         * doc/posix-functions/utimes.texi (utimes): Likewise.
74138         * tests/test-open.h (test_open): Add parameters, and test symlink
74139         handling.
74140         * tests/test-open.c (main): Adjust caller.
74141         * tests/test-fcntl-safer.c (main): Likewise.
74142         * modules/open-tests (Depends-on): Add stdbool, symlink.
74143         * modules/fcntl-safer-tests (Depends-on): Likewise.
74144         * tests/test-openat.c (main): Add test-open tests.
74146         stat: detect FreeBSD bug
74147         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
74148         symlink.
74149         * doc/posix-functions/stat.texi (stat): Document the bug.
74150         * tests/test-stat.h (test_stat_func): Add argument.
74151         * tests/test-stat.c (main): Adjust caller.
74152         * tests/test-fstatat.c (main): Likewise.
74153         * modules/stat-tests (Depends-on): Add stdbool, symlink.
74154         Reported by Jim Meyering.
74156 2009-11-09  James Youngman  <jay@gnu.org>
74158         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
74159         * lib/strftime.c: Correct placement of #include "ignore-value.h".
74161 2009-11-08  Jim Meyering  <meyering@redhat.com>
74163         utimens: remove invalid futimesat call
74164         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
74165         It used the file descriptor of the target file as the DIR_FD
74166         parameter and NULL as the file name.  That caused failure with
74167         errno == EFAULT on FreeBSD-8.0-rc2
74169 2009-11-07  Eric Blake  <ebb9@byu.net>
74171         fflush, freadseek: use fseeko, not fseek
74172         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
74173         (clear_ungetc_buffer): Avoid potential problems on large files.
74174         * lib/freadseek.c (freadseek): Likewise.
74175         * modules/freadseek (Depends-on): Add fseeko.
74176         * modules/fseek (configure.ac): Set a witness.
74177         * tests/test-fflush.c (main): Use fseeko.
74178         * tests/test-fpurge.c (fseek): Disable link warning.
74179         * tests/test-freadable.c (fseek): Likewise.
74180         * tests/test-freading.c (fseek): Likewise.
74181         * tests/test-fseeko.c (fseek): Likewise.
74182         * tests/test-ftell.c (fseek): Likewise.
74183         * tests/test-ftello.c (fseek): Likewise.
74184         * tests/test-fwritable.c (fseek): Likewise.
74185         * tests/test-fwriting.c (fseek): Likewise.
74187 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74189         * modules/memchr (Depends-on): Drop getpagesize dependency.
74191 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74193         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
74194         Reported by Ludovic Courtès.
74195         * build-aux/pmccabe2html: Improve example usage.
74196         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
74198 2009-11-06  Jim Meyering  <meyering@redhat.com>
74200         do-release-commit-and-tag: New module.
74201         Automate the release-commit and tag process.
74202         * build-aux/do-release-commit-and-tag: New script, from coreutils.
74203         * modules/do-release-commit-and-tag: New file.
74204         * MODULES.html.sh (Support for maintaining and releasing): Add it.
74206 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74208         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
74209         because test-select.c uses inet_pton.
74211 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74213         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
74214         GETADDRINFO_LIB.  Bump serial number.
74215         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
74216         Suggested by Eric Blake <ebb9@byu.net>.
74218 2009-11-05  Eric Blake  <ebb9@byu.net>
74220         strtod: detect darwin bug
74221         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
74222         Reported by Leo Davis.
74224         freopen-safer: new module
74225         * modules/freopen-safer: New module.
74226         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
74227         * lib/freopen-safer.c (freopen_safer): New file.
74228         * lib/stdio-safer.h (freopen_safer): New declaration.
74229         * lib/stdio--.h (freopen): New override.
74230         * MODULES.html.sh (File stream based Input/Output): Mention it.
74231         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
74232         freopen-safer module.
74233         * doc/posix-functions/stderr.texi (stderr): Likewise.
74234         * doc/posix-functions/stdin.texi (stdin): Likewise.
74235         * doc/posix-functions/stdout.texi (stdout): Likewise.
74236         * modules/freopen-safer-tests: New test.
74237         * tests/test-reopen-safer.c: New file.
74239 2009-11-05  Jim Meyering  <meyering@redhat.com>
74241         maint.mk: Prohibit inclusion of "close-stream.h" without use.
74242         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
74244 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74246         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
74248 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74250         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
74252 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74254         Fix link error.
74255         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
74256         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74258 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74260         * tests/test-func.c: Also test value of __func__.
74262 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74264         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
74265         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
74267 2009-11-05  Bruno Haible  <bruno@clisp.org>
74269         Fix link error.
74270         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
74271         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74272         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
74274 2009-11-05  Bruno Haible  <bruno@clisp.org>
74276         Tests for module 'inet_pton'.
74277         * modules/inet_pton-tests: New file.
74278         * tests/test-inet_pton.c: New file.
74280 2009-11-05  Bruno Haible  <bruno@clisp.org>
74282         Tests for module 'inet_ntop'.
74283         * modules/inet_ntop-tests: New file.
74284         * tests/test-inet_ntop.c: New file.
74286 2009-11-04  Eric Blake  <ebb9@byu.net>
74288         stdlib-safer: wrap all mkstemp variants
74289         * modules/mkostemp (configure.ac): Set witness.
74290         * modules/mkostemps (configure.ac): Likewise.
74291         * modules/mkstemps (configure.ac): Likewise.
74292         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
74293         (mkstemps_safer): Wrap more functions.
74294         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
74295         wrapping.
74296         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
74297         (mkstemps_safer): Implement the wrappers.
74299         mkstemps, mkostemps: new modules
74300         * modules/mkostemps: New module.
74301         * modules/mkstemps: Likewise.
74302         * lib/mkostemps.c (mkostemps): New file.
74303         * lib/mkstemps.c (mkstemps): Likewise.
74304         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
74305         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
74306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
74307         * modules/stdlib (Makefile.am): Substitute them.
74308         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
74309         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
74310         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
74311         * doc/gnulib.texi (Glibc stdlib.h): Include them.
74312         * MODULES.html.sh (File system functions): Mention them.
74314         tempname: resync from glibc
74315         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
74316         same values for __GT_FILE as glibc.  Abort even when assertions
74317         are disabled.
74318         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
74319         match its value otherwise.  Allow idempotent inclusion.
74320         * lib/mkdtemp.c (mkdtemp): Adjust caller.
74321         * lib/mkostemp.c (mkostemp): Likewise.
74322         * lib/mkstemp.c (mkstemp): Likewise.
74323         * lib/tmpfile.c (tmpfile): Likewise.
74324         * NEWS: Document this.
74326         utimens: fix use of futimens on older Linux
74327         * lib/utimens.c (fdutimens): Use updated, rather than original,
74328         timespec to avoid bug in older Linux kernel.
74329         Reported by Simon Josefsson.
74331 2009-11-04  Bruno Haible  <bruno@clisp.org>
74333         Make num_processors more flexible and consistent.
74334         * lib/nproc.h (enum nproc_query): New type.
74335         (num_processors): Add a 'query' argument.
74336         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
74337         (num_processors): Add a 'query' argument. Test the value of the
74338         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
74339         mingw, count the number of CPUs available for the current process.
74340         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
74341         Check for sched_getaffinity and sched_getaffinity_np.
74342         * modules/nproc (Depends-on): Add c-ctype, extensions.
74343         * NEWS: Mention the change.
74345 2009-11-03  Bruno Haible  <bruno@clisp.org>
74347         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
74349 2009-11-03  Jim Meyering  <meyering@redhat.com>
74351         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
74352         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
74353         if it is defined.
74355 2009-11-02  Eric Blake  <ebb9@byu.net>
74357         mktime, timegm: share common declaration
74358         * lib/mktime-internal.h: New file.
74359         * lib/mktime.c: Use it rather than open-coding a declaration.
74360         * lib/timegm.c: Likewise.
74361         * modules/mktime (Files): Ship it.
74362         * modules/timegm (Files): Likewise.
74363         Suggested by Bruno Haible.
74365         test-update-copyright: update test to match script changes
74366         * tests/test-update-copyright.sh: Avoid hard-coding perl
74367         location.  Don't update *.bak created by earlier runs.
74369 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74370             Simon Josefsson  <simon@josefsson.org>
74371             Bruno Haible  <bruno@clisp.org>
74373         Fix link error on Solaris 8.
74374         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
74375         also in libnsl. Define also INET_PTON_LIB.
74376         * modules/inet_pton (Link): New section.
74378 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74379             Bruno Haible  <bruno@clisp.org>
74381         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
74382         * modules/inet_ntop (Link): New section.
74383         Reported by Boyan Kasarov <bkasarov@gmail.com>.
74385 2009-11-02  Eric Blake  <ebb9@byu.net>
74387         maint: avoid compiler warnings in m4 macros
74388         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
74389         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
74391 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74393         * m4/pmccabe2html.m4: Remove file.
74394         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
74395         function.  Change maintainer.
74396         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
74397         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
74398         Courtès).
74400 2009-10-31  Eric Blake  <ebb9@byu.net>
74402         fseeko: fix m4 regression
74403         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
74404         regression from 2009-10-27.
74405         Reported by Ralf Wildenhues.
74407 2009-10-31  Jim Meyering  <meyering@redhat.com>
74409         inttostr: aesthetics and improved (compile-time) safety
74410         Define inttype_is_signed rather than inttype_is_unsigned,
74411         since the sole use is via "#if inttype_is_signed".
74412         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
74413         inttype_is_unsigned.
74414         * lib/offtostr.c (inttype_is_signed): Likewise.
74415         * lib/uinttostr.c (inttype_is_signed): Likewise.
74416         * lib/umaxtostr.c (inttype_is_signed): Likewise.
74417         * lib/inttostr.c (inttostr): Use verify to cross-check the
74418         inttype_is_signed value and the signedness of the actual type.
74419         * modules/inttostr (Depends-on): Add verify.
74421 2009-10-30  Eric Blake  <ebb9@byu.net>
74423         build: avoid compiler warnings
74424         * lib/fchmodat.c (lchmod): Mark unused variables.
74425         * lib/getopt.c (_getopt_initialize): Likewise.
74426         * lib/mktime.c (__mktime_internal): Provide prototype.
74427         * lib/inttostr.c (inttostr): Avoid compiler warning even with
74428         older gcc that do not understand #pragma GCC diagnostic.
74429         * lib/uinttostr.c (inttype_is_unsigned): Define.
74430         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
74432 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
74434         stat: fix compilation on AIX
74435         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
74436         only see struct stat64.
74438 2009-10-30  Eric Blake  <ebb9@byu.net>
74440         exclude: make more robust
74441         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
74442         rather than masking a coding bug.
74443         Suggested by Bruno Haible.
74445 2009-10-30  Jim Meyering  <meyering@redhat.com>
74447         perl scripts: remove #!/usr/bin/perl in favor of more portable...
74448         Rather than putting #!/usr/bin/perl on the first line,
74449         start with a variant of what's recommended by "man perlrun" that
74450         invokes the first "perl" program from your shell's search path.
74451         * build-aux/gitlog-to-changelog: Replace #!... as above.
74452         Add a "Local Variables" perl mode setting.
74453         Prompted by a patch from Ludovic Courtès.
74454         Improved by Eric Blake.
74455         * build-aux/useless-if-before-free: Likewise.
74456         * build-aux/announce-gen: Likewise.
74457         * build-aux/update-copyright: Likewise.
74459 2009-10-29  Eric Blake  <ebb9@byu.net>
74461         filenamecat-lgpl: adjust clients
74462         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
74463         filenamecat.
74464         * modules/renameat (Depends-on): Likewise.
74466         filenamecat: split into filenamecat-lgpl
74467         * modules/filenamecat-lgpl: New module.
74468         * modules/filenamecat (Files): Move library-safe files into
74469         filenamecat-lgpl.
74470         (Depends-on): Add filenamecat-lgpl.
74471         (configure.ac): Declare witness.
74472         * lib/filenamecat.h (file_name_concat): Only declare when using
74473         GPL module.
74474         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
74475         Move...
74476         * lib/filenamecat-lgpl.c: ...into new file.
74477         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
74478         (gl_FILE_NAME_CONCAT): Use it.
74479         * MODULES.html.sh (File system functions): Mention new module.
74481         argp: avoid memory leak
74482         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
74483         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
74484         base_name, since the latter malloc()s and can call exit().
74485         Leak introduced 2006-07-03.
74487         dirname-lgpl: adjust clients that don't need full dirname
74488         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
74489         * modules/filenamecat (Depends-on): Likewise.
74490         * modules/linkat (Depends-on): Likewise.
74491         * modules/mkancesdirs (Depends-on): Likewise.
74492         * modules/mkdir (Depends-on): Likewise.
74493         * modules/openat (Depends-on): Likewise.
74494         * modules/savewd (Depends-on): Likewise.
74495         * modules/rename (Depends-on): Likewise.
74496         (License): Relax license.
74497         * modules/mkdir-tests (Depends-on): Drop progname.
74498         (Makefile.am): Delete unneeded LDADD.
74499         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
74501         dirname: split into dirname-lgpl
74502         * modules/dirname-lgpl: New module.
74503         * modules/dirname (Files): Move library-safe files into
74504         dirname-lgpl.
74505         (Depends-on): Add dirname-lgpl.
74506         (configure.ac): Declare witness.
74507         * modules/double-slash-root (License): Relax license.
74508         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
74509         module.
74510         * lib/dirname.c (dir_len, mdir_name): Move...
74511         * lib/dirname-lgpl.c: ...into new file.
74512         * lib/basename.c (last_component, base_len): Move...
74513         * lib/basename-lgpl.c: ...into new file.
74514         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
74515         (gl_DIRNAME): Use it.
74516         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
74517         Mention new module.
74518         * modules/dirname-tests (Depends-on): Add progname.
74519         * tests/test-dirname.c (program_name): Delete.
74521         mkdir: make safe for libraries
74522         * modules/mkdir (Depends-on): Drop xalloc.
74523         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
74524         exit.
74526         tests: avoid some compiler warnings
74527         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
74528         literals.
74529         * tests/test-memchr.c (main): Avoid type mismatch.
74530         * tests/test-arpa_inet.c (main): Avoid unused parameters.
74531         * tests/test-base64.c (main): Likewise.
74532         * tests/test-getdelim.c (main): Likewise.
74533         * tests/test-gethostname.c (main): Likewise.
74534         * tests/test-getline.c (main): Likewise.
74535         * tests/test-netinet_in.c (main): Likewise.
74536         * tests/test-select.c (open_server_socket, main): Likewise.
74537         * tests/test-select-stdin.c (main): Likewise.
74538         * tests/test-sockets.c (main): Likewise.
74539         * tests/test-strsignal.c (main): Likewise.
74540         * tests/test-sys_select.c (main): Likewise.
74541         * tests/test-sys_socket.c (main): Likewise.
74542         * tests/test-u64.c (main): Likewise.
74543         * tests/test-xfprintf-posix.c (main): Likewise.
74544         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
74546         sockets: avoid compiler warning
74547         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
74549         maint: detect usage(1) and other suspicious exits
74550         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
74552 2009-10-29  Jim Meyering  <meyering@redhat.com>
74554         timespec: long-to-int truncation could make timespec_cmp malfunction
74555         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
74556         a multiple of 2^32 nanoseconds as no difference.
74558 2009-10-28  Jim Meyering  <meyering@redhat.com>
74560         fprintftime: wrap macro code argument in "do {...} while(0)"
74561         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
74562         cpy macro must be a statement that can be followed by a semicolon.
74563         Now that the else clause contains a comment and is hence longer
74564         than one line, I require curly braces.  That in turn requires
74565         that we wrap this code block in the standard do...while(0).
74567         fprintftime: remove stray semicolon from previous change
74568         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
74570         fprintftime: avoid a warning about ignored fwrite return value
74571         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
74572         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
74573         that is unsafe.
74574         * modules/fprintftime (Depends-on): Add ignore-value.
74576         exclude: avoid an unwarranted warning
74577         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
74579 2009-10-27  Eric Blake  <ebb9@byu.net>
74581         fseek: avoid compilation failure when fflush is replaced
74582         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
74583         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
74584         module is in use.
74585         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
74586         module is not in use; since REPLACE_FSEEK worked otherwise.
74587         (GNULIB_FTELLO): Likewise for ftell.
74588         Reported by Ian Beckwith and others.
74590 2009-10-27  Bruno Haible  <bruno@clisp.org>
74592         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
74593         Reported by Jim Meyering.
74595 2009-10-27  Jim Meyering  <jim@meyering.net>
74596             Bruno Haible  <bruno@clisp.org>
74598         Avoid warning despite dropping the return value of fwrite.
74599         * lib/unicodeio.c: Include ignore-value.h.
74600         (fwrite_success_callback): Explicitly ignore fwrite's return value.
74601         * modules/unicodeio (Depends-on): Add ignore-value.
74603 2009-10-26  Eric Blake  <ebb9@byu.net>
74605         areadlinkat: fix fallback path
74606         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
74607         pointer and zero.
74609 2009-10-22  Pádraig Brady  <P@draigBrady.com>
74611         Use a better IO block size for modern systems
74612         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
74613         * lib/md2.c: Likewise.
74614         * lib/md4.c: Likewise.
74615         * lib/md5.c: Likewise.
74616         * lib/sha1.c: Likewise.
74617         * lib/sha256.c: Likewise.
74618         * lib/sha512.c: Likewise.
74620 2009-10-22  Eric Blake  <ebb9@byu.net>
74622         tests: avoid several compiler warnings
74623         * tests/test-getcwd.c (main): Avoid buffer underflow.
74624         * tests/test-getdate.c (main): String literals are not safe with
74625         putenv, so use setenv.  Declare unused argument.
74626         * modules/getdate-tests (Depends-on): Add setenv.
74627         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
74628         problems with string literals in char *.
74629         * tests/test-hash.c (main): Avoid shadowing declaration.
74630         (insert_new): Treat string literals as char const *.
74631         * tests/test-getopt.h (test_getopt): Likewise.
74632         (getopt_loop): Alter types to minimize casting elsewhere.
74633         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
74634         (test_getopt_long_posix): Likewise.
74635         (do_getopt_long): Add wrapper to minimize casting.
74636         * tests/test-atexit.c (clear_temp_file): Use void.
74637         * tests/test-areadlink-with-size.c (main): Declare unused
74638         arguments.
74639         * tests/test-areadlink.c (main): Likewise.
74640         * tests/test-areadlinkat-with-size.c (main): Likewise.
74641         * tests/test-areadlinkat.c (main): Likewise.
74642         * tests/test-canonicalize-lgpl.c (main): Likewise.
74643         * tests/test-canonicalize.c (main): Likewise.
74644         * tests/test-dirent-safer.c (main): Likewise.
74645         * tests/test-dirname.c (main): Likewise.
74646         * tests/test-dup2.c (main): Likewise.
74647         * tests/test-fchdir.c (main): Likewise.
74648         * tests/test-fcntl-h.c (main): Likewise.
74649         * tests/test-fcntl-safer.c (main): Likewise.
74650         * tests/test-fdopendir.c (main): Likewise.
74651         * tests/test-fdutimensat.c (main): Likewise.
74652         * tests/test-fflush.c (main): Likewise.
74653         * tests/test-filenamecat.c (main): Likewise.
74654         * tests/test-filevercmp.c (main): Likewise.
74655         * tests/test-fopen-safer.c (main): Likewise.
74656         * tests/test-fopen.c (main): Likewise.
74657         * tests/test-fpending.c (main): Likewise.
74658         * tests/test-fpurge.c (main): Likewise.
74659         * tests/test-freading.c (main): Likewise.
74660         * tests/test-fstatat.c (main): Likewise.
74661         * tests/test-fsync.c (main): Likewise.
74662         * tests/test-futimens.c (main): Likewise.
74663         * tests/test-getndelim2.c (main): Likewise.
74664         * tests/test-gettimeofday.c (main): Likewise.
74665         * tests/test-getopt.c (main): Likewise.
74666         * tests/test-i-ring.c (main): Likewise.
74667         * tests/test-inttypes.c (main): Likewise.
74668         * tests/test-link.c (main): Likewise.
74669         * tests/test-lstat.c (main): Likewise.
74670         * tests/test-math.c (main): Likewise.
74671         * tests/test-md5.c (main): Likewise.
74672         * tests/test-memchr2.c (main): Likewise.
74673         * tests/test-memrchr.c (main): Likewise.
74674         * tests/test-mkdir.c (main): Likewise.
74675         * tests/test-mkdirat.c (main): Likewise.
74676         * tests/test-mkfifoat.c (main): Likewise.
74677         * tests/test-open.c (main): Likewise.
74678         * tests/test-openat-safer.c (main): Likewise.
74679         * tests/test-openat.c (main): Likewise.
74680         * tests/test-quotearg.c (main): Likewise.
74681         * tests/test-rawmemchr.c (main): Likewise.
74682         * tests/test-readlink.c (main): Likewise.
74683         * tests/test-remove.c (main): Likewise.
74684         * tests/test-rename.c (main): Likewise.
74685         * tests/test-renameat.c (main): Likewise.
74686         * tests/test-rmdir.c (main): Likewise.
74687         * tests/test-sha1.c (main): Likewise.
74688         * tests/test-signal.c (main): Likewise.
74689         * tests/test-sigaction.c (main): Likewise.
74690         * tests/test-stat.c (main): Likewise.
74691         * tests/test-stat-time.c (main): Likewise.
74692         * tests/test-stddef.c (main): Likewise.
74693         * tests/test-stdint.c (main): Likewise.
74694         * tests/test-stdio.c (main): Likewise.
74695         * tests/test-stdlib.c (main): Likewise.
74696         * tests/test-strchrnul.c (main): Likewise.
74697         * tests/test-strerror.c (main): Likewise.
74698         * tests/test-string.c (main): Likewise.
74699         * tests/test-strtod.c (main): Likewise.
74700         * tests/test-strverscmp.c (main): Likewise.
74701         * tests/test-symlink.c (main): Likewise.
74702         * tests/test-symlinkat.c (main): Likewise.
74703         * tests/test-sys_stat.c (main): Likewise.
74704         * tests/test-sys_time.c (main): Likewise.
74705         * tests/test-time.c (main): Likewise.
74706         * tests/test-unistd.c (main): Likewise.
74707         * tests/test-unlink.c (main): Likewise.
74708         * tests/test-unlinkat.c (main): Likewise.
74709         * tests/test-utimens.c (main): Likewise.
74710         * tests/test-utimensat.c (main): Likewise.
74711         * tests/test-version-etc.c (main): Likewise.
74712         * tests/test-wchar.c (main): Likewise.
74713         * tests/test-wctype.c (main): Likewise.
74714         * tests/test-xprintf-posix.c (main): Likewise.
74715         * tests/test-posixtm.c (main): Likewise.
74716         (STREQ): Delete unused macro.
74717         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
74718         shadowed variables.
74719         * tests/test-memchr.c (main): Likewise.
74721 2009-10-21  Eric Blake  <ebb9@byu.net>
74723         areadlinkat: avoid failure on older glibc
74724         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
74725         rather than mis-comparing 0 against FUNC_RESULT of char*.
74727 2009-10-21  Bruno Haible  <bruno@clisp.org>
74729         * modules/stpncpy (License): Relicense under LGPLv2+.
74730         Reported by David Lutterkort <lutter@redhat.com>.
74732 2009-10-20  Eric Blake  <ebb9@byu.net>
74734         utimensat: work around Solaris 9 bug
74735         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
74736         has trailing slash bugs.
74737         * tests/test-lutimens.h (test_lutimens): Enhance test.
74738         * tests/test-utimens.h (test_utimens): Likewise.
74739         * doc/posix-functions/utime.texi (utime): Enhance documentation.
74740         * doc/posix-functions/utimes.texi (utimes): Likewise.
74741         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74742         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
74743         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
74744         * doc/posix-functions/futimens.texi (futimens): Likewise.
74746         fdutimensat: new module
74747         * modules/fdutimensat: New file.
74748         * lib/fdutimensat.c (fdutimensat): Likewise.
74749         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
74750         * MODULES.html.sh (File system functions): Mention module.
74751         * modules/fdutimensat-tests: New test.
74752         * tests/test-fdutimensat.c: Likewise.
74754         doc: regenerate INSTALL
74755         * doc/INSTALL: Reflect recent autoconf update.
74756         * doc/INSTALL.ISO: Likewise.
74757         * doc/INSTALL.UTF-8: Likewise.
74759 2009-10-20  Pádraig Brady  <P@draigBrady.com>
74761         acl: warn if ACL support is not detected
74762         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
74764 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
74766         * lib/nproc.h: Add extern "C" block for C++.
74768 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
74769             Bruno Haible  <bruno@clisp.org>
74771         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
74772         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
74773         * doc/posix-functions/isalpha.texi: Likewise.
74774         * doc/posix-functions/isblank.texi: Likewise.
74775         * doc/posix-functions/iscntrl.texi: Likewise.
74776         * doc/posix-functions/isdigit.texi: Likewise.
74777         * doc/posix-functions/isgraph.texi: Likewise.
74778         * doc/posix-functions/islower.texi: Likewise.
74779         * doc/posix-functions/isprint.texi: Likewise.
74780         * doc/posix-functions/ispunct.texi: Likewise.
74781         * doc/posix-functions/isspace.texi: Likewise.
74782         * doc/posix-functions/isupper.texi: Likewise.
74783         * doc/posix-functions/isxdigit.texi: Likewise.
74785 2009-10-18  Bruno Haible  <bruno@clisp.org>
74787         Tests for module 'isblank'.
74788         * modules/isblank-tests: New file.
74789         * tests/test-isblank.c: New file.
74791         New module 'isblank'.
74792         * lib/isblank.c: New file.
74793         * m4/isblank.m4: New file.
74794         * modules/isblank: New file.
74795         * doc/posix-functions/isblank.texi: Mention the new module.
74797 2009-10-18  Bruno Haible  <bruno@clisp.org>
74799         New module 'ctype'.
74800         * lib/ctype.in.h: New file.
74801         * m4/ctype.m4: New file.
74802         * modules/ctype: New file.
74803         * doc/posix-headers/ctype.texi: Mention the new module.
74805 2009-10-18  Jim Meyering  <meyering@redhat.com>
74807         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
74808         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
74809         right after its initialization, rather than farther down.
74810         Keeping these in close proximity makes it easier to ensure
74811         that each such variable is initialized.  E.g.,
74813             LIB_CLOCK_GETTIME=
74814             AC_SUBST([LIB_CLOCK_GETTIME])
74816         This change also increments these serial numbers.
74817         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
74818         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74819         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74821 2009-10-18  Bruno Haible  <bruno@clisp.org>
74823         Don't let environment variables perturb build.
74824         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
74825         (gl_PREREQ_GETHRXTIME): ... not here.
74827 2009-10-18  Bruno Haible  <bruno@clisp.org>
74829         Avoid symlink attack in localcharset module.
74830         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
74831         (O_NOFOLLOW): Define fallback.
74832         (get_charset_aliases): Don't open the file if it is a symbolic link.
74833         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
74834         gl_FCNTL_H.
74835         (gl_FCNTL_H): Require it.
74836         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
74837         * modules/localcharset (Files): Add m4/fcntl_h.m4.
74838         Reported by Fergal Glynn <fglynn@veracode.com>.
74840 2009-10-18  Bruno Haible  <bruno@clisp.org>
74842         Implement nproc for mingw.
74843         * lib/nproc.c: Include <windows.h>
74844         (num_processors): On native Windows platforms, try GetSystemInfo.
74846 2009-10-18  Bruno Haible  <bruno@clisp.org>
74848         Implement nproc for IRIX.
74849         * lib/nproc.c: Include <sys/sysmp.h>.
74850         (num_processors): On IRIX systems, try sysmp.
74851         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
74853 2009-10-18  Bruno Haible  <bruno@clisp.org>
74855         Implement nproc for HP-UX.
74856         * lib/nproc.c: Include <sys/pstat.h>
74857         (num_processors): On HP-UX systems, try pstat_getdynamic.
74858         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
74859         pstat_getdynamic.
74861 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
74862             Bruno Haible  <bruno@clisp.org>
74864         Implement nproc for NetBSD, OpenBSD.
74865         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
74866         (ARRAY_SIZE): New macro.
74867         (num_processors): On BSD systems, try sysctl of HW_NCPU.
74868         * m4/nproc.m4: New file.
74869         * modules/nproc (Files): Add m4/nproc.m4.
74870         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
74871         (Makefile.am): Instead, augment lib_SOURCES.
74873 2009-10-18  Bruno Haible  <bruno@clisp.org>
74875         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
74876         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
74877         sys/param.h.
74879 2009-10-16  Eric Blake  <ebb9@byu.net>
74881         utimensat: new module
74882         * modules/utimensat: New file.
74883         * lib/utimensat.c (utimensat): Likewise.
74884         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
74885         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
74886         so we can work around Linux bugs.
74887         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
74888         * modules/sys_stat (Makefile.am): Substitute them.
74889         * lib/sys_stat.in.h (utimensat): Declare it.
74890         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74891         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74892         * modules/utimensat-tests: New test.
74893         * tests/test-utimensat.c: Likewise.
74895         utimens: let lutimens work on non-symlinks
74896         * lib/utimens.c (lutimens): Fall back to utimens rather than
74897         failing with ENOSYS, when file is not a symlink.
74898         (utimens): Reduce redirection.
74899         * tests/test-lutimens.h (test_lutimens): Update test to cover
74900         non-symlinks.
74901         * tests/test-utimens.h (test_utimens): Update test to cover
74902         symlinks.
74903         * tests/test-utimens.c (main): Update caller.
74905         utimens: cache whether utimensat syscall works
74906         * lib/utimens.c (utimensat_works_really): New cache variable.
74907         (fdutimens, lutimens): Use it to avoid failing syscall.
74909         test-stat-time, test-utimens: improve portability
74910         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
74911         ext4 on alpha, and for cygwin.
74912         * tests/test-utimens-common.h: New file.
74913         (nap): Factor delays into single function.
74914         * tests/test-lutimens.h (test_lutimens): Use new header.
74915         * tests/test-futimens.h (test_futimens): Likewise.
74916         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
74917         timestamps to occur from same machine, as was done previously for
74918         test_utimens.
74919         * modules/utimens-tests (Files): Ship new file.
74920         * modules/futimens-tests (Files): Likewise.
74921         Reported in part by Jim Meyering.
74923         sys_stat: sort replacement declarations
74924         * lib/sys_stat.in.h: Sort declarations.
74925         * lib/futimens.c (futimens): Fix typo.
74927 2009-10-15  Jim Meyering  <meyering@redhat.com>
74929         don't let environment settings perturb build
74930         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
74931         could cause a configure-time and/or build-time malfunction.
74932         Typically, a configure-time function-in-library test is performed
74933         via code like this:
74935           LIB_VAR=
74936           AC_SUBST([LIB_VAR])
74937           prefix_saved_LIBS=$LIBS
74938             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
74939                        [test "$ac_cv_search_FUNC" = "none required" ||
74940                         LIB_VAR=$ac_cv_search_FUNC])
74941           LIBS=$prefix_saved_LIBS
74943         However, in each of the files affected by this change, the LIB_VAR=
74944         initialization was omitted.  Thus, when set in the environment, its
74945         value would propagate into generated Makefiles when FUNC is not found
74946         in LIB_NAME.
74947         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
74948         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74949         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74951 2009-10-14  Eric Blake  <ebb9@byu.net>
74953         fchdir: avoid infinite recursion in mingw
74954         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
74955         recursing.
74957         test-stat-time: port to mingw
74958         * tests/test-stat-time.c (force_unlink): Return a value.
74959         (test_ctime) [W32]: Fix compilation error.
74960         (nap): Don't call usleep with too large an argument.  Use
74961         force_unlink.
74962         * doc/pastposix-functions/usleep.texi (usleep): Document the
74963         portability issue.
74965 2009-10-13  Jim Meyering  <meyering@redhat.com>
74967         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
74968         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
74969         * modules/pipe-filter-ii: Likewise.
74970         * modules/sys_socket-tests: Likewise.
74971         * modules/tsearch-tests: Likewise.
74972         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
74973         (check): Depend on it.
74975 2009-10-12  Eric Blake  <ebb9@byu.net>
74977         utimens-tests: port to NFS file systems
74978         * tests/test-utimens.h (test_utimens): Refactor utimecmp
74979         comparisons to avoid spurious failures from timestamp drift
74980         between NFS machines.
74982 2009-10-12  Eric Blake  <ebb9@byu.net>
74984         stat-time-tests: minor cleanups
74985         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
74986         * tests/test-stat-time.c (nap): Separate assignment from call.
74987         Suggested by Paolo Bonzini and Bruno Haible.
74989         sys_stat: guarantee struct timespec
74990         * lib/sys_stat.in.h (includes): Always include <time.h>
74991         * modules/sys_stat (Depends-on): Add time.
74992         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
74993         mode_t permission values.
74994         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
74995         get at subsecond timestamps.
74997 2009-10-10  Eric Blake  <ebb9@byu.net>
74999         futimens: new module
75000         * modules/futimens: New file.
75001         * lib/futimens.c (futimens): Likewise.
75002         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
75003         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
75004         we can work around Linux bugs.
75005         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75006         * modules/sys_stat (Makefile.am): Substitute them.
75007         * lib/sys_stat.in.h (futimens): Declare it.
75008         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75009         * doc/posix-functions/futimens.texi (futimens): Likewise.
75010         * modules/futimens-tests: New test.
75011         * tests/test-futimens.c: Likewise.
75013         utimens: introduce fdutimens
75014         * lib/utimens.h (fdutimens): New prototype.
75015         * lib/utimens.c (gl_futimens): Move guts...
75016         (fdutimens): ...to new interface.
75017         * tests/test-utimens.c (do_fdutimens): Use it.
75019         utimens: add UTIME_NOW and UTIME_OMIT support
75020         * lib/utimens.c (validate_timespec, update_timespec): New helper
75021         functions.
75022         (gl_futimens, lutimens): Use them.
75023         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
75024         stdbool, sys_stat.
75025         (Link): Mention resulting library dependency.
75026         * modules/utimecmp (Link): Likewise.
75027         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
75028         (Makefile.am): Pick up library dependency.
75029         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
75030         definition.
75031         * tests/test-sys_stat.c: Test the definitions.
75032         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
75033         * NEWS: Document library dependency.
75035         utimecmp: support symlink timestamps
75036         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
75037         hashing when possible.  Use pathconf when available.
75038         (SYSCALL_RESOLUTION): Recognize tighter resolution.
75039         * modules/utimecmp (Depends-on): Add lstat.
75041         utimens: add lutimens interface
75042         * lib/utimens.c (lutimens): New function.
75043         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
75044         * lib/utimens.h (lutimens): Declare new interface.
75045         * tests/test-utimens.c (main): Enhance test.
75046         * tests/test-lutimens.h (test_lutimens): New file.
75047         * modules/utimens-tests (Files): Distribute it.
75048         (Depends-on): Add symlink.
75049         (configure.ac): Check for usleep.
75051         utimens: validate futimens usage
75052         * lib/utimens.c (gl_futimens): Require valid fd up front, using
75053         fewer syscalls on failure later on.  Avoid compiler warning on
75054         mingw.
75055         * modules/utimens (Depends-on): Add dup2.
75057         utimens: add test
75058         * modules/utimens-tests: New test.
75059         * tests/test-utimens.h: New file.
75060         * tests/test-futimens.h: Likewise.
75061         * tests/test-utimens.c: Likewise.
75063         doc: mention timestamp portability issues
75064         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
75065         instead.
75066         * doc/posix-functions/utime.texi (utime): Likewise.
75067         * doc/posix-functions/utimes.texi (utimes): Likewise.
75068         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
75069         instead.
75070         * doc/posix-functions/futimens.texi (futimens): Mention utimens
75071         module.
75072         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75073         Mention weakness with symlink timestamps.
75074         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
75075         to utimensat/futimens instead.
75076         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
75078         test-dup2: enhance test
75079         * tests/test-dup2.c (main): Also check AT_FDCWD.
75081         test-stat-time: avoid more spurious failures
75082         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
75083         xfs; and avoid race if the two timestamps cross quantization edge.
75085         relocatable: prefer 'file system' over 'filesystem'
75086         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
75087         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
75088         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
75089         * doc/relocatable.texi (Enabling Relocatability): Likewise.
75090         * lib/relocatable.c (compute_curr_prefix): Likewise.
75092 2009-10-10  Jim Meyering  <meyering@redhat.com>
75094         stat-time-tests: check for the usleep function
75095         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
75097 2009-10-10  Bruno Haible  <bruno@clisp.org>
75099         * modules/xnanosleep: Put the Link section after the Include section.
75101 2009-10-09  Eric Blake  <ebb9@byu.net>
75103         dup2: work around FreeBSD 6.1 bug
75104         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
75105         * doc/posix-functions/dup2.texi (dup2): Document it.
75106         Reported by Nelson H. F. Beebe and Jim Meyering.
75108         test-stat-time: port to buggy NFS clients
75109         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
75110         (test_ctime): Also skip test if mtime and ctime are skewed.
75112         maint: prefer 'file system' over 'filesystem'
75113         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
75114         * doc/posix-functions/lstat.texi (lstat): Likewise.
75115         * lib/file-has-acl.c (file_has_acl): Likewise.
75116         * lib/fwriteerror.c [TEST]: Likewise.
75117         * tests/test-areadlink.h (test_areadlink): Likewise.
75118         * tests/test-areadlinkat-with-size.c (main): Likewise.
75119         * tests/test-areadlinkat.c (main): Likewise.
75120         * tests/test-canonicalize-lgpl.c (main): Likewise.
75121         * tests/test-canonicalize.c (main): Likewise.
75122         * tests/test-fstatat.c (main): Likewise.
75123         * tests/test-linkat.c (main): Likewise.
75124         * tests/test-lstat.h (test_lstat_func): Likewise.
75125         * tests/test-mkdir.h (test_mkdir): Likewise.
75126         * tests/test-readlink.h (test_readlink): Likewise.
75127         * tests/test-remove.c (main): Likewise.
75128         * tests/test-rename.h (test_rename): Likewise.
75129         * tests/test-renameat.c (main): Likewise.
75130         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75131         * tests/test-symlink.h (test_symlink): Likewise.
75132         * tests/test-symlinkat.c (main): Likewise.
75133         * tests/test-unlink.h (test_unlink_func): Likewise.
75134         * tests/test-unlinkat.c (main): Likewise.
75136         maint: make realtime library usage explicit
75137         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
75138         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
75139         * modules/settime (Link): Likewise.
75140         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
75142         test-stat-time: speed up execution
75143         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
75144         warning on mingw.
75145         (nap): New helper function.
75146         (prepare_test): Use it to reduce sleep time.
75147         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
75148         execution.
75149         * modules/stat-time-tests (configure.ac): Check for usleep.
75151 2009-10-09  Jim Meyering  <meyering@redhat.com>
75153         selinux-h: always use getfilecon wrappers
75154         * lib/getfilecon.c: New file.
75155         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
75156         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
75157         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
75158         (fgetfilecon): Provide a stub.
75159         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
75160         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
75161         file unconditionally.
75162         When <selinux/selinux.h> is found, arrange to use wrappers.
75163         * modules/selinux-h (Files): Add getfilecon.c.
75164         (Makefile.am): Substitute include-next-related bits
75165         into the now-always-generated selinux/selinux.h file.
75166         * doc/glibc-functions/lgetfilecon.texi: New file.
75167         * doc/glibc-functions/fgetfilecon.texi: New file.
75168         * doc/glibc-functions/getfilecon.texi: New file.
75169         * doc/glibc-functions/getfilecon-desc.texi: New file.
75170         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
75171         which to pull in the new files.
75172         * MODULES.html.sh (Misc): Add selinux-h.
75174 2009-10-08  Jim Meyering  <meyering@redhat.com>
75176         unistd: fix comment typo
75177         * lib/unistd.in.h (euidaccess): Fix a comment typo.
75179 2009-10-08  Eric Blake  <ebb9@byu.net>
75181         areadlink: use SIZE_MAX consistently
75182         * modules/areadlink (Depends-on): Add stdint.
75183         * modules/areadlink-with-size (Depends-on): Likewise.
75184         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
75185         gives NULL; drop sys/types, since unistd gives size_t; and add
75186         stdint for SIZE_MAX.
75187         (SIZE_MAX): Rely on headers.
75188         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
75189         and add stdint.
75190         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
75191         (SIZE_MAX): Likewise.
75192         (INITIAL_BUF_SIZE): Turn into enum.
75193         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
75195 2009-10-08  Jim Meyering  <meyering@redhat.com>
75197         areadlinkat: avoid compilation failure
75198         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
75199         Fix typo in comment.
75201 2009-10-07  Eric Blake  <ebb9@byu.net>
75203         areadlinkat-with-size: new module
75204         * modules/areadlinkat-with-size: New module.
75205         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
75206         * lib/areadlink.h (areadlinkat): Declare it.
75207         * MODULES.html.sh (File system functions): Mention it.
75208         * modules/areadlinkat-with-size-tests: New test.
75209         * tests/test-areadlinkat-with-size.c: New file.
75211         xreadlinkat: new module
75212         * modules/xreadlinkat: New module.
75213         * lib/xreadlinkat.c (xreadlinkat): New file.
75214         * lib/xreadlink.h (xreadlinkat): Declare it.
75215         * MODULES.html.sh (File system functions): Mention it.
75217         areadlinkat: new module
75218         * lib/at-func.c (FUNC_FAIL): New define.
75219         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
75220         * modules/areadlinkat: New module.
75221         * lib/linkat.c (areadlinkat): Move...
75222         * lib/areadlinkat.c (areadlinkat): ...to new file.
75223         * lib/areadlink.h (areadlinkat): Declare it.
75224         * modules/linkat (Depends-on): Add areadlinkat.
75225         * MODULES.html.sh (File system functions): Mention it.
75226         * modules/areadlinkat-tests: New test.
75227         * tests/test-areadlinkat.c: New file.
75229         areadlink, areadlink-with-size: add tests
75230         * modules/areadlink-tests: New test.
75231         * modules/areadlink-with-size-tests: Likewise.
75232         * tests/test-areadlink.h: New file.
75233         * tests/test-areadlink.c: Likewise.
75234         * tests/test-areadlink-with-size.c: Likewise.
75236         maint: minor cleanups
75237         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
75238         _UNUSED_PARAMETER_ instead.
75239         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
75240         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
75241         * modules/linkat-tests (Files): Distribute test-link.h.
75243         openat, utimens: whitespace cleanup
75244         * lib/openat.c: Prefer space throughout, rather than mix of 8
75245         spaces vs. tabs.
75246         * lib/at-func.c: Likewise.
75247         * lib/utimens.c: Likewise.
75249         openat: avoid using wrong fd
75250         * lib/openat.c (openat_permissive): Reject user's fd if saving the
75251         working directory chooses same fd.
75252         * lib/at-func.c (AT_FUNC_NAME): Likewise.
75254         mkdir, mkdirat: fix cygwin 1.5.x bug
75255         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
75256         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
75257         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
75258         bug.
75259         (gl_PREREQ_MKDIR): Delete unused macro.
75260         * modules/mkdir (Files): Track file rename.
75261         (configure.ac): Update macro name.
75262         * modules/openat (Depends-on): Add mkdir.
75263         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
75265         mkdir, mkdirat: add tests
75266         * modules/mkdir-tests: New test.
75267         * tests/test-mkdir.h: New file.
75268         * tests/test-mkdir.c: Likewise.
75269         * tests/test-mkdirat.c: Likewise.
75270         * modules/openat-tests (Files): Add new files.
75271         (Makefile.am): Run new test.
75273 2009-10-06  Eric Blake  <ebb9@byu.net>
75275         doc: tweak *at function documentation
75276         * doc/posix-functions/faccessat.texi (faccessat): Mention
75277         known issue with replacement.
75278         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
75279         * doc/posix-functions/linkat.texi (linkat): Likewise.
75280         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
75281         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
75282         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
75283         * doc/posix-functions/renameat.texi (renameat): Likewise.
75284         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
75286         openat: fix GNU/Hurd bug in unlinkat
75287         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
75288         broken.
75289         * doc/posix-functions/unlink.texi (unlink): Document this.
75290         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
75292         fdopendir: fix GNU/Hurd bug
75293         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
75294         allowing non-directory fds.
75295         * lib/fdopendir.c (rpl_fdopendir): Work around it.
75296         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
75297         * modules/dirent (Makefile.am): Substitute it.
75298         * lib/dirent.in.h (fdopendir): Declare replacement.
75299         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
75300         * tests/test-fdopendir.c (main): Test something other than
75301         /dev/null, since on Hurd that behaves like a directory.
75303         test-symlink: port to GNU/Hurd
75304         * tests/test-symlink.h (test_symlink): Relax expected errno.
75306         doc: tweak more cygwin information
75307         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
75308         now compatible with glibc.
75309         * doc/posix-functions/getopt.texi (getopt): Likewise.
75311         getopt-gnu: add another test
75312         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
75313         guarantee behavior relied on by m4.
75314         * tests/test-getopt.c (main): Use it.
75315         * modules/getopt-posix-tests (Depends-on): Add setenv.
75316         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
75318         getopt: fix compilation on darwin
75319         * lib/getopt.in.h (includes): Leave breadcrumbs during system
75320         include.
75321         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
75322         Reported by Ludovic Courtès.
75324 2009-10-06  Bruno Haible  <bruno@clisp.org>
75326         * modules/size_max (Description): Discourage its use.
75327         Reported by Simon Josefsson.
75329 2009-10-06  Jim Meyering  <meyering@redhat.com>
75331         linkat: avoid compilation failure
75332         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
75334 2009-10-05  Eric Blake  <ebb9@byu.net>
75336         linkat: support Linux 2.6.17
75337         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
75338         linkat on Linux, but allow cache variable override.
75339         * lib/linkat.c (rpl_linkat): Define override.
75340         * modules/linkat (Depends-on): Add symlinkat.
75341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
75342         * modules/unistd (Makefile.am): Substitute it.
75343         * lib/unistd.in.h (linkat): Declare replacement.
75344         Reported by Pádraig Brady.
75346         quotearg: port test to systems with C.UTF-8 locale
75347         * tests/test-quotearg.c (struct result_strings): Add another
75348         member, differentiating between C.ASCII and C.UTF-8 handling.
75349         (compare_strings): Add parameter.
75350         (main): Adjust all callers.
75352         getopt: avoid clash with FreeBSD _getopt_internal
75353         * lib/getopt.in.h (_getopt_internal): Override the name.
75354         * lib/getopt_int.h (includes): Pick up any overrides.
75355         Reported by Reuben Thomas.
75357         hash: allow C89 compilation
75358         * lib/hash.c (check_tuning): Move declaration before statement.
75359         Reported by Reuben Thomas.
75361 2009-10-05  Karl Berry  <karl@gnu.org>
75363         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
75365 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
75366             Bruno Haible  <bruno@clisp.org>
75368         * lib/uname.c (uname): Use a table-driven algorithm to compute
75369         Windows NT versions.
75371 2009-10-04  Bruno Haible  <bruno@clisp.org>
75373         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
75374         program_invocation_short_name.
75375         * modules/progname (configure.ac): Test for presence of
75376         program_invocation_short_name.
75377         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
75379 2009-10-04  Bruno Haible  <bruno@clisp.org>
75381         * lib/progname.c (set_program_name): Fix comment.
75382         Reported by Jim Meyering.
75384 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75385             Bruno Haible  <bruno@clisp.org>
75387         * lib/uname.c: Include <string.h>.
75388         (uname): Do only one call to GetVersionEx in the common case.
75390 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75391             Bruno Haible  <bruno@clisp.org>
75393         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
75394         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
75395         (uname): Add support for Windows CE and various non-x86 CPU types.
75397 2009-10-03  Bruno Haible  <bruno@clisp.org>
75399         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
75400         invocation to tests/configure.ac.
75401         Reported by Ian Beckwith <ianb@erislabs.net>.
75403 2009-10-02  Eric Blake  <ebb9@byu.net>
75405         fchdir: avoid compiler warning
75406         * lib/fchdir.c (canonicalize_file_name)
75407         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
75409         test-open: support mingw errno values
75410         * tests/test-open.h (test_open): Relax test.
75411         * tests/test-fopen.h (test_fopen): Likewise.
75412         * tests/test-openat-safer.c (main): Likewise.
75414         open: fix opening directory on mingw
75415         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
75417         test-open: on GNU/Hurd, /dev/null is a directory
75418         * tests/test-fopen.h (main): Rename...
75419         (test_fopen): ...to this.  Use a guaranteed non-directory when
75420         confirming open behavior on trailing slash.
75421         * tests/test-openat-safer.c (main): Likewise.
75422         * tests/test-open.h (main): Likewise....
75423         (test_open): ...to this.
75424         * tests/test-fopen.c (main): Adjust caller.
75425         * tests/test-fopen-safer.c (main): Likewise.
75426         * tests/test-open.c (main): Likewise.
75427         * tests/test-fcntl-safer.c (main): Likewise.
75428         Reported by Samuel Thibault.
75430         rename, fchdir: don't ignore chdir failure
75431         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
75432         * lib/rename.c (rpl_rename) [W32]: Likewise.
75433         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
75434         an empty destination directory if source cannot be renamed,
75435         although there is still possibility for failure.
75436         * doc/posix-functions/rename.texi (rename): Document the race.
75437         Reported by Jim Meyering.
75439         maint: cleanup whitespace in recent commits
75440         * lib/rename.c (rpl_rename): Remove tabs.
75441         * tests/test-link.h (test_link): Likewise.
75442         * lib/fchdir.c (get_name): Likewise.
75443         Reported by Jim Meyering.
75445 2009-10-02  Ben Pfaff  <blp@gnu.org>
75447         relocatable-prog-wrapper: Add missing dependency on
75448         double-slash-root.
75449         * modules/relocatable-prog-wrapper: Add dependency.
75450         Reported by Ian Beckwith <ianb@erislabs.net>.
75452 2009-10-02  Eric Blake  <ebb9@byu.net>
75454         renameat: fix Solaris bugs
75455         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
75456         needed fixing.
75457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
75458         * modules/stdio (Makefile.am): Substitute it.
75459         * lib/stdio.in.h (renameat): Declare replacement.
75460         * lib/renameat.c (rpl_renameat): Implement fix.
75462         renameat: new module
75463         * modules/renameat: New file.
75464         * lib/renameat.c (renameat): Likewise.
75465         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
75466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
75467         * modules/stdio (Makefile.am): Substitute them.
75468         * lib/stdio.in.h (renameat): Declare it.
75469         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75470         * doc/posix-functions/renameat.texi (renameat): Likewise.
75471         * modules/renameat-tests: New test.
75472         * tests/test-renameat.c: Likewise.
75474         rename: fix mingw bugs
75475         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
75476         directory overwrite bugs.
75478         rename: fix another cygwin 1.5 bug
75479         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
75480         checks.
75481         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
75482         unnecessary cygwin workarounds.  Also work around bug with moving
75483         full directory onto an empty one.
75484         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
75486         rename-dest-slash: merge into rename module
75487         * modules/rename-dest-slash (Status): Mark obsolete.
75488         (Depends-on): Add rename.
75489         (Files): Let rename do it all.
75490         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
75491         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
75492         * m4/rename-dest-slash.m4: ...so this file can be deleted.
75493         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
75494         * lib/rename.c (rpl_rename): Update comments.
75496         rename: fix cygwin 1.5.x bugs
75497         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
75498         * lib/rename.c (rpl_rename): Work around them.
75499         * modules/rename (Depends-on): Add same-inode.
75501         rename: fix Solaris 10 bug
75502         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
75503         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
75504         was the only bug.
75506         rename: fix Solaris 9 bug
75507         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
75508         on non-directory.  Avoid calling exit.
75509         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
75510         strdup.
75511         * modules/rename-tests (Depends-on): Drop lstat.
75512         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
75513         (gl_PREREQ_RENAME): Delete unused macro.
75515         rename-dest-slash: fix NetBSD bug
75516         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
75517         links.
75518         * modules/rename-dest-slash (Depends-on): Add same-inode.
75520         rename-tests: new test, exposes several platform bugs
75521         * modules/rename-tests: New file.
75522         * tests/test-rename.h: Likewise.
75523         * tests/test-rename.c: Likewise.
75524         * doc/posix-functions/rename.texi (rename): Improve documentation,
75525         including bugs that will eventually be fixed in gnulib.
75527 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
75529         * lib/uname.c: Include <stdlib.h>
75530         (uname): Assume version info is available.
75532 2009-10-02  Jim Meyering  <meyering@redhat.com>
75534         gnu-web-doc-update: correct --help output
75535         * build-aux/gnu-web-doc-update: Make --help output relevant.
75537         gnu-web-doc-update: add standard options
75538         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
75540         gnu-web-doc-update: New module.
75541         Use this script to automatically update the on-line web documentation
75542         for your GNU project at http://www.gnu.org/software/$pkg/manual/
75543         * modules/gnu-web-doc-update: New file, from coreutils.
75544         * build-aux/gnu-web-doc-update: New script.
75546 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
75548         link: LoadLibrary is not needed.
75549         * lib/link.c: Use GetModuleHandle.
75551 2009-10-01  Eric Blake  <ebb9@byu.net>
75553         getopt: bump serial number
75554         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
75555         change.
75557         tests: tighten link, rmdir, and remove tests
75558         * tests/test-link.h (includes): No need to use <config.h> here.
75559         Clean up if directory hard link was created, otherwise test for
75560         trailing '.'.
75561         * tests/test-linkat.c (main): Simplify.
75562         * tests/test-remove.c (main): Enhance test for trailing '.'.
75563         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75565 2009-10-01  Jim Meyering  <meyering@redhat.com>
75567         maint.mk: requiring "make major" was annoying, for a "minor" release.
75568         What is intended is "stable", to contrast with alpha and beta,
75569         so require "make stable", not "make major".
75570         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
75571         (get_tool_versions): Likewise.
75572         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
75574 2009-09-30  Ben Pfaff  <blp@gnu.org>
75576         Fix broken build of replacement for Windows tmpfile().
75577         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
75578         flags argument added along with the 'mkostemp' module.
75580 2009-09-28  Bruno Haible  <bruno@clisp.org>
75582         Avoid identifier clash with POSIX function 'remove' defined as a macro.
75583         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
75584         to 'remove_elt'.
75585         (gl_list_remove): Update.
75586         * lib/gl_list.c (gl_list_remove): Update.
75587         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
75588         to 'remove_elt'.
75589         (gl_oset_remove): Update.
75590         * lib/gl_list.c (gl_oset_remove): Update.
75591         Reported by Eric Blake.
75593 2009-09-28  Eric Blake  <ebb9@byu.net>
75595         doc: mention yet more cygwin 1.7 status
75596         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
75597         cygwin.
75598         * doc/glibc-functions/execvpe.texi (execvpe): New file.
75599         * doc/gnulib.texi (Glibc unistd.h): Mention it.
75601         argp: fix test failure
75602         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
75603         that are not upper-case.  Pass correct range to tolower.
75605 2009-09-27  Jim Meyering  <meyering@redhat.com>
75607         test-yesno: work around sparc-dash here-document infelicity
75608         Without this change, the literal \177 byte in a here document
75609         would make dash 0.5.5.1-3 access uninitialized memory.
75610         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
75611         Instead, use a marker, "@", and filter through tr to create the desired
75612         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
75614 2009-09-27  Bruno Haible  <bruno@clisp.org>
75616         Disable untested support for new flavours of ACLs on AIX.
75617         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
75618         progress.
75619         * lib/set-mode-acl.c (qset_acl): Likewise.
75621 2008-12-07  Bruno Haible  <bruno@clisp.org>
75623         Add support for new flavours of ACLs on AIX. (Untested.)
75624         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
75625         (file_has_acl): Add support for newer AIX.
75626         * lib/set-mode-acl.c (qset_acl): Likewise.
75627         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
75628         Rainer Tammer <tammer@tammer.net>.
75630 2009-09-26  Eric Blake  <ebb9@byu.net>
75632         argp: fix compilation of getopt
75633         * lib/getopt.in.h (includes): Use different guard than glibc.
75634         Reported by Sergey Poznyakoff.
75636         doc: mention more cygwin 1.7 status
75637         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
75638         bug.
75639         * doc/posix-functions/execl.texi (execl): Likewise.
75640         * doc/posix-functions/execle.texi (execle): Likewise.
75641         * doc/posix-functions/execlp.texi (execlp): Likewise.
75642         * doc/posix-functions/execv.texi (execv): Likewise.
75643         * doc/posix-functions/execve.texi (execve): Likewise.
75644         * doc/posix-functions/execvp.texi (execvp): Likewise.
75645         * doc/glibc-functions/canonicalize_file_name.texi
75646         (canonicalize_file_name): Cygwin 1.7 now provides this.
75647         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
75648         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
75649         on AT_SYMLINK_NOFOLLOW.
75651 2009-09-24  Eric Blake  <ebb9@byu.net>
75653         test-linkat: make test more robust
75654         * tests/test-linkat.c (main): Avoid collision with EEXIST.
75656         getopt: fix inclusion guards for cygwin
75657         * modules/getopt-posix (Depends-on): Add include-next.
75658         (Makefile.am): Substitute more items in replacement header.
75659         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
75660         <getopt.h>.
75661         * lib/getopt.in.h (includes): Use split inclusion guard, and
75662         prefer <getopt.h> over include <unistd.h> when one is present.
75663         (option): Also override name of 'struct option'.
75665         same-inode: revert prior change; it is not yet ready
75666         * NEWS: Undo mention of this change.
75667         * lib/same-inode.h (same-inode.h): Undo tri-state change.
75668         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
75669         * lib/cycle-check.c (cycle_check): Likewise.
75670         * lib/same.c (same_name): Likewise.
75671         * lib/at-func2.c (at_func2): Likewise.
75673 2009-09-23  Eric Blake  <ebb9@byu.net>
75675         linkat: new module
75676         * modules/linkat: New file.
75677         * lib/at-func2.c (at_func2): Likewise.
75678         * lib/linkat.c (linkat): Likewise.
75679         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
75680         * lib/openat-priv.h (at_func2): Add declaration.
75681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
75682         * modules/unistd (Makefile.am): Substitute them.
75683         * lib/unistd.in.h (linkat): Declare it.
75684         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75685         * doc/posix-functions/linkat.texi (linkat): Likewise.
75686         * doc/posix-functions/link.texi (link): Tweak wording.
75687         * tests/test-link.c (main): Move guts...
75688         * tests/test-link.h (test_link): ...into new file.
75689         * modules/linkat-tests: New test.
75690         * tests/test-linkat.c: Likewise.
75691         * modules/link-tests (Files): Ship new file.
75692         (Depends-on): Add stdbool.
75694         dirname: add library-safe mdir_name
75695         * lib/dirname.h (mdir_name): New prototype.
75696         * lib/dirname.c (dir_name): Move guts...
75697         (mdir_name): ...to new function that avoids xalloc_die.
75699         fchdir: another mingw fix
75700         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
75701         * lib/fchdir.c (get_name): New helper method; skips canonicalize
75702         on mingw (where it has not yet been ported), and make it optional
75703         elsewhere.
75704         (_gl_register_fd): Use it.
75706         same-inode: make SAME_INODE tri-state, to port to mingw
75707         * NEWS: Mention this change.
75708         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
75709         st_ino always being 0.
75710         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
75711         * lib/cycle-check.c (cycle_check): Likewise.
75712         * lib/same.c (same_name): Likewise.
75714         lstat: avoid mingw compilation error
75715         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
75716         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
75717         lstat ourselves.
75718         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
75719         was adequate.
75720         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
75721         the checks for lstat.
75722         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
75724         link: fix test failure on Solaris 9
75725         * lib/link.c (rpl_link): Don't assume link will catch bogus
75726         trailing slash on source.
75728         test-symlinkat: enhance test
75729         * tests/test-readlink.c (main): Move guts...
75730         * tests/test-readlink.h (test_readlink): ...into new file.
75731         * tests/test-symlink.c (main): Move guts...
75732         * tests/test-symlink.h (test_symlink): ...into new file.
75733         * tests/test-symlinkat.c (main): Use new files for further
75734         coverage.
75735         (do_symlink, do_readlink): New helper functions.
75736         * modules/symlink-tests (Files): Ship new file.
75737         (Depends-on): Add stdbool.
75738         * modules/readlink-tests (Files): Ship new file.
75739         (Depends-on): Add stdbool.
75740         * modules/symlinkat-tests (Files): Use new files.
75742 2009-09-23  Eric Blake  <ebb9@byu.net>
75744         readlink: document portability issue with symlink length
75745         * doc/posix-functions/lstat.texi (lstat): Mention that some file
75746         systems have bogus st_size on symlinks, and mention the
75747         areadlink-with-size module.
75748         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
75749         * doc/posix-functions/readlink.texi (readlink): Mention the
75750         areadlink module, and ERANGE failure.
75751         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
75752         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
75754         readlink: fix Solaris 9 bug with trailing slash
75755         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
75756         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
75757         * doc/posix-functions/readlink.texi (readlink): Document this.
75758         * modules/readlink-tests: New test.
75759         * tests/test-readlink.c: Likewise.
75761         readlink: fix cygwin 1.5.x bug with return type
75762         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
75763         * lib/unistd.in.h (readlink): Use ssize_t.
75764         * lib/readlink.c (readlink): Likewise.
75765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75766         * modules/unistd (Makefile.am): Substitute it.
75767         * lib/unistd.in.h (readlink): Declare replacement.
75768         * doc/posix-functions/readlink.texi (readlink): Document this.
75770         symlink: use throughout gnulib
75771         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
75772         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
75773         symlink is not used.
75774         * modules/symlinkat (Depends-on): Add symlink.
75775         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
75776         * modules/canonicalize-tests (Depends-on): Likewise.
75777         * modules/lstat-tests (Depends-on): Likewise.
75778         * modules/openat-tests (Depends-on): Likewise.
75779         * modules/remove-tests (Depends-on): Likewise.
75780         * modules/rmdir-tests (Depends-on): Likewise.
75781         * modules/unlink-tests (Depends-on): Likewise.
75782         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
75783         * tests/test-canonicalize.c (symlink): Likewise.
75784         * tests/test-fstatat.c (symlink): Likewise.
75785         * tests/test-lstat.c (symlink): Likewise.
75786         * tests/test-remove.c (symlink): Likewise.
75787         * tests/test-rmdir.c (symlink): Likewise.
75788         * tests/test-unlink.c (symlink): Likewise.
75789         * tests/test-unlinkat.c (symlink): Likewise.
75791         symlink: new module, for Solaris 9 bug
75792         * modules/symlink: New file.
75793         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
75794         * lib/symlink.c: Likewise.
75795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
75796         * modules/unistd (Makefile.am): Substitute them.
75797         * lib/unistd.in.h (symlink): Declare replacement.
75798         * MODULES.html.sh (File system functions): Mention it.
75799         * doc/posix-functions/symlink.texi (symlink): Likewise.
75800         * modules/symlink-tests: New test.
75801         * tests/test-symlink.c: Likewise.
75803 2009-09-23  Bruno Haible  <bruno@clisp.org>
75805         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
75806         when needed.
75807         Test case: gnulib-tool --import --with-tests atexit inttypes.
75808         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
75810 2009-09-23  Bruno Haible  <bruno@clisp.org>
75812         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
75813         subcommand, not in a subshell.
75815 2009-09-22  Eric Blake  <ebb9@byu.net>
75817         unistd: sort replacement declarations
75818         * lib/unistd.in.h: Sort declarations.
75820         open, openat: minor optimization
75821         * lib/open.c (open): If open succeeded, len is non-zero.
75822         * lib/openat.c (rpl_openat): Likewise.
75824         link-follow: ensure correct result
75825         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
75826         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
75827         distinguish between possible failures.
75829 2009-09-21  Eric Blake  <ebb9@byu.net>
75831         fts: avoid compiler warning
75832         * lib/fts.c (dirent_inode_sort_may_be_useful)
75833         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
75835 2009-09-19  Bruno Haible  <bruno@clisp.org>
75837         * lib/progreloc.c (canonicalize_file_name): New declaration.
75839 2009-09-19  Eric Blake  <ebb9@byu.net>
75841         link: fix quoting
75842         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
75844         openat: fix openat bugs on Solaris 9
75845         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
75846         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
75847         * modules/openat (Depends-on): Add open.
75848         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
75849         * modules/fcntl-h (Makefile.am): Substitute it.
75850         * lib/fcntl.in.h (openat): Declare replacement.
75851         * doc/posix-functions/openat.texi (openat): Document this.
75853         openat: move fstatat and unlinkat into correct files
75854         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
75855         compiled.
75856         * lib/openat.c (fstatat, unlinkat): Move...
75857         * lib/fstatat.c (fstatat): ...into correct files.
75858         * lib/unlinkat.c (unlinkat): Likewise.
75860         openat: fix unlinkat bugs on Solaris 9
75861         * lib/unlinkat.c (unlinkat): New file.
75862         * modules/openat (Depends-on): Add unlink.
75863         (Files): Distribute it.
75864         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
75865         trailing slash behavior is broken.
75866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75867         * modules/unistd (Makefile.am): Substitute it.
75868         * lib/unistd.in.h (unlinkat): Declare replacement.
75869         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
75871         openat: fix fstatat bugs on Solaris 9
75872         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
75873         stat.
75874         * doc/posix-functions/fstatat.texi (fstatat): Document this.
75876         test-unlinkat: enhance test, to expose Solaris 9 bug
75877         * tests/test-unlink.c (main): Factor guts...
75878         * tests/test-unlink.h (test_rmdir_func): ...into new file.
75879         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
75880         * tests/test-rmdir.c (main): Adjust caller.
75881         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
75882         (unlinker): New helper function.
75883         (rmdirat): Enhance check.
75884         * modules/rmdir-tests (Depends-on): Add stdbool.
75885         * modules/unlink-tests (Depends-on): Likewise.
75886         (Files): Add test-unlink.h.
75887         * modules/openat-tests (Files): Likewise.
75888         (Depends-on): Add unlinkdir.
75890         test-fstatat: new test, to expose Solaris 9 bugs
75891         * tests/test-stat.c (main): Factor guts...
75892         * tests/test-stat.h (test_stat_func): ...into new file.
75893         * tests/test-lstat.c (main): Factor guts...
75894         * tests/test-lstat.h (test_lstat_func): ...into new file.
75895         * tests/test-fstatat.c: New file.
75896         * modules/stat-tests (Files): Add test-stat.h.
75897         * modules/lstat-tests (Files): Add test-lstat.h.
75898         (Depends-on): Add stdbool.
75899         * modules/openat-tests (Depends-on): Add pathmax.
75900         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
75901         (Makefile.am): Run new test.
75903         remove: new module, for mingw and Solaris 9 bugs
75904         * modules/remove: New file.
75905         * lib/remove.c: Likewise.
75906         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
75907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
75908         * modules/stdio (Makefile.am): Use them.
75909         * lib/stdio.in.h (remove): Declare replacement.
75910         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75911         * doc/posix-functions/remove.texi (remove): Likewise.
75912         * modules/remove-tests: New test.
75913         * tests/test-remove.c: Likewise.
75915         unlink: new module, for Solaris 9 bug
75916         * modules/unlink: New file.
75917         * lib/unlink.c: Likewise.
75918         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
75919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
75920         * modules/unistd (Makefile.am): Use them.
75921         * lib/unistd.in.h (stat): Declare replacement.
75922         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75923         * doc/posix-functions/unlink.texi (unlink): Likewise.
75924         * modules/unlink-tests: New test.
75925         * tests/test-unlink.c: Likewise.
75927         lstat: fix Solaris 9 bug
75928         * lib/lstat.c (lstat): Also check for trailing slash on
75929         non-symlink, non-directories.  Use stat module to simplify logic.
75930         * doc/posix-functions/lstat.texi (lstat): Document it.
75931         * modules/lstat-tests (Depends-on): Add errno, same-inode.
75932         (configure.ac): Check for symlink.
75933         * tests/test-lstat.c (main): Add more tests.
75935         stat: add as dependency to other modules
75936         * modules/chown (Depends-on): Add stat.
75937         * modules/euidaccess (Depends-on): Likewise.
75938         * modules/fchdir (Depends-on): Likewise.
75939         * modules/isdir (Depends-on): Likewise.
75940         * modules/link (Depends-on): Likewise.
75941         * modules/lstat (Depends-on): Likewise.
75942         * modules/mkdir-p (Depends-on): Likewise.
75943         * modules/modechange (Depends-on): Likewise.
75944         * modules/open (Depends-on): Likewise.
75945         * modules/readlink (Depends-on): Likewise.
75946         * modules/same (Depends-on): Likewise.
75948         stat: fix Solaris 9 bug
75949         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
75950         slash.
75951         * lib/stat.c (rpl_stat): Work around it.
75952         * doc/posix-functions/stat.texi (stat): Update documentation.
75954         stat: new module, for mingw bug
75955         * modules/stat: New file.
75956         * lib/stat.c: Likewise.
75957         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
75958         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75959         * modules/sys_stat (Makefile.am): Use them.
75960         * lib/sys_stat.in.h (stat): Declare replacement.
75961         * lib/openat.c (fstatat): Deal with lstat and stat being function
75962         macros.
75963         * modules/openat (Depends-on): Add inline.
75964         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75965         * doc/posix-functions/stat.texi (stat): Likewise.
75966         * modules/stat-tests: New test.
75967         * tests/test-stat.c: Likewise.
75969 2009-09-19  Jim Meyering  <meyering@redhat.com>
75971         syntax-check: detect unnecessary inclusion of canonicalize.h
75972         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
75974 2009-09-19  Eric Blake  <ebb9@byu.net>
75976         canonicalize-lgpl: adjust clients to use correct header
75977         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
75978         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
75979         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
75980         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
75981         * lib/progreloc.c (includes): Likewise.
75983 2009-09-19  Jim Meyering  <meyering@redhat.com>
75985         test-posixtm.c: correct a comment
75986         * tests/test-posixtm.c: Correct first-line comment.
75987         Spotted by Eric Blake.
75989 2009-09-16  Jim Meyering  <meyering@redhat.com>
75991         posixtm-tests: make T const-correct; add a test case
75992         * tests/test-posixtm.c (T): Declare const.
75993         Add a test for -(2^31+1).
75994         Remove useless can-succeed-only-in-2002 test.
75996         posixtm-tests: adjust the sole failing test
75997         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
75998         expected output matches what mktime now produces.  Cross-checked via
75999         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
76001         posixtm: move #ifdef'd tests into a new module
76002         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
76003         * tests/test-posixtm.c: ... this new file.
76004         * modules/posixtm-tests: New module.
76006 2009-09-19  Eric Blake  <ebb9@byu.net>
76008         openat: simplify use of at-func.c
76009         * lib/at-func.c (includes): Include prerequisites here, to
76010         simplify requirements on client files.
76011         * lib/openat-priv.h: Add double-inclusion guard.
76012         * lib/faccessat.c (includes): Simplify.
76013         * lib/fchmodat.c (includes): Likewise.
76014         * lib/fchownat.c (includes): Likewise.
76015         * lib/mkdirat.c (includes): Likewise.
76016         * lib/mkfifoat.c (includes): Likewise.
76017         * lib/symlinkat.c (includes): Likewise.
76019         openat: allow return of fd 0
76020         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
76021         * modules/save-cwd (Depends-on): Replace fcntl-safer with
76022         unistd-safer.
76023         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
76024         <fcntl.h>; this module does not leak fds.
76025         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
76026         must be allowed to return 0, leaving openat_safer to add the
76027         safety.
76028         (openat_permissive): Avoid writing to just-opened fd 2 if
76029         restoring the current directory fails.
76030         * lib/openat-die.c (openat_restore_fail): Add comment.
76031         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
76032         (save_cwd): Guarantee safe fd, but without use of open_safer.
76033         * tests/test-openat.c: New test.
76034         * modules/openat-tests (Files, Makefile.am): Distribute and build
76035         new file.
76037         relocatable-prog-wrapper: fix build
76038         * modules/relocatable-prog-wrapper (Files): Update name of
76039         canonicalize m4 file, broken on 2009-09-17.
76040         Reported by emad hajjar <aleppos@hotmail.com>.
76042 2009-09-19  Bruno Haible  <bruno@clisp.org>
76044         * lib/safe-alloc.h: Use the standard header with GPL copyright.
76045         * lib/safe-alloc.c: Likewise.
76046         Reported by Ian Beckwith <ianb@erislabs.net>.
76048 2009-09-18  Bruno Haible  <bruno@clisp.org>
76050         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
76051         Reported by <erobles@sensacd.com.mx>.
76053 2009-09-17  Eric Blake  <ebb9@byu.net>
76055         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
76056         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
76057         slashes when checking if last component is missing.
76058         * tests/test-canonicalize.c (main): Test this.
76060         canonicalize, canonicalize-lgpl: honor // if distinct from /
76061         * modules/canonicalize (Files): Add double-slash-root.m4.
76062         * modules/canonicalize-lgpl (Files): Likewise.
76063         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
76064         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
76065         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
76066         fallback definition.
76067         (canonicalize_filename_mode): Use it to protect //.
76068         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
76069         (__realpath): Likewise.
76070         * tests/test-canonicalize.c (main): Test this.
76071         * tests/test-canonicalize-lgpl.c (main): Likewise.
76072         * modules/canonicalize-tests (Depends-on): Add same-inode.
76073         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
76075         canonicalize-lgpl: fix glibc bug with trailing slash
76076         * m4/canonicalize-lgpl.m4: Move contents...
76077         * m4/canonicalize.m4: ...here.
76078         (gl_CANONICALIZE_LGPL): Factor realpath check...
76079         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
76080         glibc 2.3.5 bug, fixed 2005-04-27.
76081         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
76082         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
76083         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
76084         * modules/canonicalize-lgpl (Files): Manage file rename.
76085         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
76086         * modules/stdlib (Makefile.am): Substitute witness.
76087         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
76088         is needed.
76089         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
76090         replacement is required.
76091         * lib/canonicalize.c (canonicalize_file_name): Likewise.
76092         * doc/glibc-functions/canonicalize_file_name.texi
76093         (canonicalize_file_name): Document this.
76094         * doc/posix-functions/realpath.texi (realpath): Likewise.
76096         canonicalize-lgpl: reject non-directory with trailing slash
76097         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
76098         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
76099         catches failures in glibc 2.3.5.
76100         * tests/test-canonicalize.c (main): Likewise.
76102         canonicalize-lgpl: use native realpath if it works
76103         * lib/canonicalize-lgpl.c (realpath): Guard with
76104         FUNC_REALPATH_WORKS.
76105         * lib/stdlib.in.h (realpath): Make declaration optional based on
76106         HAVE_REALPATH.
76107         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
76108         native realpath works.
76109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
76110         * modules/stdlib (Makefile.am): Substitute witness.
76112         canonicalize, canonicalize-lgpl: use <stdlib.h>
76113         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
76114         (Include): Mention <stdlib.h>.
76115         (configure.ac): Mention functions we provide.
76116         * modules/canonicalize (configure.ac): Likewise.
76117         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
76118         realpath if canonicalize_file_name is missing.
76119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
76120         * modules/stdlib (Makefile.am): Substitute witnesses.
76121         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
76122         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
76123         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
76124         * NEWS: Document this.
76125         * doc/glibc-functions/canonicalize_file_name.texi
76126         (canonicalize_file_name): Likewise.
76127         * doc/posix-functions/realpath.texi (realpath): Likewise.
76128         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
76130         test-canonicalize: consolidate into single C program
76131         * tests/test-canonicalize.sh: Delete; move setup into...
76132         * tests/test-canonicalize.c (main): ...the program, making it
76133         easier to run in debugger.  Add some tests.
76134         * modules/canonicalize-tests (Files): Remove unused file.
76135         (Depends-on): Add progname.
76136         (configure.ac, Makefile.am): Simplify.
76138         test-canonicalize-lgpl: consolidate into single C program
76139         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
76140         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
76141         easier to run in debugger.  Add some tests.
76142         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
76143         (configure.ac, Makefile.am): Simplify.
76145         canonicalize: avoid resolvepath
76146         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
76147         unnecessary checks.
76148         * lib/canonicalize.c (includes): Simplify.
76149         (canonicalize_file_name): Drop resolvepath implementation.
76150         * modules/canonicalize (Depends-on): Drop filenamecat.
76152         canonicalize: don't lose errno
76153         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
76154         over calls to free.
76156         canonicalize: simplify errno handling
76157         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
76158         assignment.
76160         canonicalize, canonicalize-lgpl: update module dependencies
76161         * modules/canonicalize (Depends-on): Add extensions, lstat,
76162         pathmax, stdlib.
76163         (Files): Drop pathmax.h.
76164         (configure.ac): Adjust macro name.
76165         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
76166         lstat, stdlib, sys_stat.
76167         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
76168         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
76169         extensions.
76170         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
76171         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
76172         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
76173         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
76174         declaration, if available.
76175         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
76176         we can rely on the readlink module.
76177         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
76178         (includes): Use <unistd.h> unconditionally.
76180 2009-09-17  Eric Blake  <ebb9@byu.net>
76182         maint: make Include sections of modules consistent
76183         * modules/alloca: Use only header name; no need to list #include.
76184         * modules/alloca-opt: Likewise.
76185         * modules/arpa_inet: Likewise.
76186         * modules/canon-host: Likewise.
76187         * modules/configmake: Likewise.
76188         * modules/dirent: Likewise.
76189         * modules/eealloc: Likewise.
76190         * modules/environ: Likewise.
76191         * modules/fchdir: Likewise.
76192         * modules/fcntl: Likewise.
76193         * modules/fcntl-h: Likewise.
76194         * modules/gethrxtime: Likewise.
76195         * modules/gettime: Likewise.
76196         * modules/ignore-value: Likewise.
76197         * modules/inet_ntop: Likewise.
76198         * modules/inet_pton: Likewise.
76199         * modules/inttypes: Likewise.
76200         * modules/isnand-nolibm: Likewise.
76201         * modules/isnanf-nolibm: Likewise.
76202         * modules/mbchar: Likewise.
76203         * modules/mbfile: Likewise.
76204         * modules/mbiter: Likewise.
76205         * modules/mbuiter: Likewise.
76206         * modules/netdb: Likewise.
76207         * modules/netinet_in: Likewise.
76208         * modules/nproc: Likewise.
76209         * modules/pagealign_alloc: Likewise.
76210         * modules/poll: Likewise.
76211         * modules/printf-frexp: Likewise.
76212         * modules/pthread: Likewise.
76213         * modules/putenv: Likewise.
76214         * modules/random_r: Likewise.
76215         * modules/relocatable-prog: Likewise.
76216         * modules/search: Likewise.
76217         * modules/select: Likewise.
76218         * modules/selinux-h: Likewise.
76219         * modules/settime: Likewise.
76220         * modules/signal: Likewise.
76221         * modules/size_max: Likewise.
76222         * modules/socklen: Likewise.
76223         * modules/ssize_t: Likewise.
76224         * modules/stdarg: Likewise.
76225         * modules/stdbool: Likewise.
76226         * modules/stddef: Likewise.
76227         * modules/stdint: Likewise.
76228         * modules/stdio: Likewise.
76229         * modules/stdlib: Likewise.
76230         * modules/string: Likewise.
76231         * modules/strings: Likewise.
76232         * modules/sys_file: Likewise.
76233         * modules/sys_ioctl: Likewise.
76234         * modules/sys_select: Likewise.
76235         * modules/sys_socket: Likewise.
76236         * modules/sys_stat: Likewise.
76237         * modules/sys_time: Likewise.
76238         * modules/sys_times: Likewise.
76239         * modules/sys_utsname: Likewise.
76240         * modules/sys_wait: Likewise.
76241         * modules/sysexits: Likewise.
76242         * modules/time: Likewise.
76243         * modules/times: Likewise.
76244         * modules/tmpfile: Likewise.
76245         * modules/trim: Likewise.
76246         * modules/unistd: Likewise.
76247         * modules/wchar: Likewise.
76248         * modules/wctype: Likewise.
76250 2009-09-17  Bruno Haible  <bruno@clisp.org>
76252         Make getdate.y compile on QNX and NetBSD 5 / i386.
76253         * m4/getdate.m4 (gl_GETDATE): Conditionally define
76254         TIME_T_FITS_IN_LONG_INT.
76255         * lib/getdate.y (long_time_t): New type.
76256         (relative_time): Change type of 'seconds' field to long_time_t.
76257         (get_date): Update types of local variables. Check against overflow
76258         during conversion from long_time_t to time_t.
76259         Reported by Matt Kraai <kraai@ftbfs.org>
76260         and Hasso Tepper <hasso@netbsd.org>.
76262 2009-09-17  Bruno Haible  <bruno@clisp.org>
76264         * modules/COPYING: Update copyright years.
76265         * modules/README: Likeiwse.
76266         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
76267         Reported by Ian Beckwith <ianb@erislabs.net>.
76269 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
76271         * users.txt: Update references for gnuit package.
76273 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
76275         * m4/getdelim.m4: Fix typo in copyright line.
76277 2009-09-17  Bruno Haible  <bruno@clisp.org>
76279         * lib/atoll.c: Use the standard header with GPL copyright.
76280         * lib/argz.in.h: Likewise.
76281         * lib/glob.c: Likewise.
76282         * lib/glob-libc.h: Likewise.
76283         * lib/random_r.c: Likewise.
76284         * lib/siglist.h: Likewise.
76285         * lib/strsignal.c: Likewise.
76286         Reported by Ian Beckwith <ianb@erislabs.net>.
76288 2009-09-17  Eric Blake  <ebb9@byu.net>
76290         rmdir: ensure correct dependency order
76291         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
76293 2009-09-17  Bruno Haible  <bruno@clisp.org>
76295         Disable assertion that fails on NetBSD 5 / i386.
76296         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
76297         Reported by Sam Steingold <sds@gnu.org>
76298         and Hasso Tepper <hasso@netbsd.org>.
76300 2009-09-16  Eric Blake  <ebb9@byu.net>
76302         unlinkdir: port to mingw
76303         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
76304         on which no one can unlink a directory.
76306         stdlib: sort witness names
76307         * modules/stdlib (Makefile.am): Sort replacements.
76308         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
76309         * lib/stdlib.in.h: Likewise.
76311         parse-duration-tests: avoid link failure
76312         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
76313         LIBINTL.
76314         Reported by Tom G. Christensen.
76316         openat-tests: ensure unlinkat behaves like rmdir
76317         * tests/test-rmdir.c (main): Factor guts...
76318         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
76319         * modules/rmdir-tests (Files): Ship new file.
76320         * modules/openat-tests: New test.
76321         * tests/test-unlinkat.c: Likewise.
76323         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
76324         * modules/rmdir-errno (Status, Notice): Now obsolete.
76326         rmdir: work around cygwin 1.5.x and mingw bugs
76327         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
76328         * lib/rmdir.c (rmdir): Work around it.
76329         * modules/rmdir (Status, Notice): No longer obsolete.
76330         (Files): Add dos.m4.
76331         (Depends-on): Add unistd.
76332         (configure.ac): Set witnesses.
76333         (License): Relax to LGPLv2+.
76334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
76335         * modules/unistd (Makefile.am): Substitute witnesses.
76336         * lib/unistd.in.h (rmdir): Declare replacement.
76337         * doc/posix-functions/rmdir.texi (rmdir): Document this.
76338         * modules/rmdir-tests: New tests.
76339         * tests/test-rmdir.c: Likewise.
76341 2009-09-15  Eric Blake  <ebb9@byu.net>
76343         fchdir: improve use of replacement functions
76344         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
76345         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
76346         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
76347         REPLACE_CLOSEDIR.
76348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
76349         * modules/sys_stat (Makefile.am): Substitute correct witness.
76350         * modules/dirent (Makefile.am): Likewise.
76351         * modules/unistd (Makefile.am): Likewise.
76352         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
76353         * lib/unistd.in.h (dup): Likewise.
76354         * lib/sys_stat.in.h (fstat): Likewise.
76356         maint: ignore gnulib-tool temp files
76357         * .gitignore: Ignore files created during gnulib-tool --test.
76359 2009-09-13  Jim Meyering  <meyering@redhat.com>
76361         posixtm: don't reject a time that specify "60" as the number of seconds
76362         * lib/posixtm.c (posixtime): The code to reject invalid dates
76363         would also reject a time specified with the .60 suffix.
76364         But POSIX allows that, in order to accommodate leap seconds.
76365         So don't reject it.
76366         (main): Adjust tests accordingly.
76367         * modules/posixtm (Depends-on): Add stpcpy.
76369 2009-09-11  Jim Meyering  <meyering@redhat.com>
76371         announce-gen: include [$release_type] in emitted Subject:
76372         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
76373         e.g., [stable] in the emitted Subject: line.
76375 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76377         Remove obsolete macros from several modules.
76378         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
76379         obsolete Autoconf macros with their modern counterparts.
76380         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
76381         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
76382         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
76383         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76384         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
76385         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
76386         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
76387         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
76388         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
76389         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
76390         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
76391         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
76392         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
76393         * m4/sockets.m4 (gl_SOCKETS): Likewise.
76394         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
76395         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
76396         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
76397         * m4/time_r.m4 (gl_TIME_R): Likewise.
76398         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
76399         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
76400         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76402         Fix copyright header in build-aux scripts.
76403         * build-aux/git-version-gen: Fix copyright header to match GPLv3
76404         recommendation.
76405         * build-aux/ncftpput-ftp: Likewise.
76406         * build-aux/update-copyright: Likewise.
76408 2009-09-09  Eric Blake  <ebb9@byu.net>
76410         test-link: allow Linux choice of errno
76411         * tests/test-link.c (main): Relax test for alternate error.
76413         strndup: fix improper m4 caching
76414         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
76415         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
76416         (gl_PREREQ_STRNDUP): Delete.
76417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
76418         * modules/string (Makefile.am): Substitute it.
76419         * lib/string.in.h (strndup): Modernize prototype.
76421         getcwd: port to mingw
76422         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
76423         different from the POSIX assumptions made throughout the getcwd
76424         module; fortunately, the mingw getcwd does not need replacement.
76425         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
76426         * modules/getcwd-tests: New test.
76427         * tests/test-getcwd.c: Likewise.
76429         link: fix platform bugs
76430         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
76431         * lib/link.c (link): Work around them.  Fix related mingw bug.
76432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
76433         * modules/unistd (Makefile.am): Substitute it.
76434         * lib/unistd.in.h (link): Declare replacement.
76435         * doc/posix-functions/link.texi (link): Document this.
76436         * modules/link (Depends-on): Add strdup-posix, sys_stat.
76438         test-link: consolidate into single C program, test more cases
76439         * tests/test-link.sh: Delete.
76440         * tests/test-link.c: Test more error conditions.  Exposes bugs on
76441         at least Cygwin and Solaris.
76442         * modules/link-tests (Files): Remove unused file.
76443         (Depends-on): Add errno, sys_stat.
76444         (Makefile.am): Simplify.
76446 2009-09-08  Bruno Haible  <bruno@clisp.org>
76448         Work around towlower, towupper bug on mingw.
76449         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
76450         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
76451         * doc/posix-functions/towlower.texi: Mention the mingw bug.
76452         * doc/posix-functions/towupper.texi: Likewise.
76453         Reported by Eric Blake.
76455 2009-09-08  Jim Meyering  <meyering@redhat.com>
76457         build: don't try to run autoheader if we don't use it
76458         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
76459         is not used in configure.ac.
76461 2009-09-08  Eric Blake  <ebb9@byu.net>
76463         euidaccess: fix compilation error
76464         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
76466         rawmemchr: relax license
76467         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
76468         okay.
76469         Reported by Jim Meyering.
76471         mkfifoat: new module
76472         * modules/mkfifoat: New file.
76473         * lib/mkfifoat.c: Likewise.
76474         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
76475         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76476         * modules/sys_stat (Makefile.am): Use them.
76477         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
76478         * MODULES.html.sh (File system functions): Mention module.
76479         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
76480         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
76481         * modules/mkfifoat-tests: New test.
76482         * tests/test-mkfifoat.c: Likewise.
76484         strchrnul: relax license
76485         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
76486         okay.
76487         Reported by Jim Meyering.
76489 2009-09-08  Eric Blake  <ebb9@byu.net>
76491         fstatat: fix compilation on Solaris
76492         * lib/fstatat.c (includes): Add fcntl.h.
76493         Reported by Pádraig Brady.
76495 2009-09-07  Eric Blake  <ebb9@byu.net>
76497         rename: modernize replacement
76498         * modules/rename (Depends-on): Add stdio.
76499         (configure.ac): Declare witness.
76500         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
76501         stdio take care of replacement.
76502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
76503         * modules/stdio (Makefile.am): Substitute them.
76504         * lib/stdio.in.h (rename): Declare replacement.
76505         * lib/rename.c (includes): Allow cross-compilation to non-windows
76506         machines.
76507         * doc/posix-functions/rename.texi (rename): Improve
76508         documentation.
76510         stdio: sort witness names
76511         * modules/stdio (Makefile.am): Sort replacements.
76512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
76513         * lib/stdio.in.h: Likewise.
76515         getcwd: minor cleanups
76516         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
76517         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
76519         openat: provide more convenience names
76520         * modules/faccessat (configure.ac): Add C witness.
76521         * lib/unistd.in.h (readlinkat): Fix typo.
76522         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
76523         convenience wrappers.
76524         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
76525         wrappers in syntax checks.
76527 2009-09-06  Eric Blake  <ebb9@byu.net>
76529         doc: fix comments in recent patches
76530         * lib/faccessat.c: Mention correct function.
76531         * lib/fchmodat.c: Likewise.
76532         * lib/fchownat.c: Likewise.
76533         * lib/symlinkat.c: Likewise.
76534         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
76535         constants.
76537         faccessat, symlinkat: continue cleanup of previous patch
76538         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
76539         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
76540         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
76541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
76542         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
76543         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
76544         set.
76546 2009-09-06  Bruno Haible  <bruno@clisp.org>
76548         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
76549         (fstatat): Declare if GNULIB_FSTATAT is set.
76550         (mkdirat): Declare if GNULIB_MKDIRAT is set.
76551         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
76552         (unlinkat): Declare if GNULIB_UNLINKAT is set.
76553         * modules/fcntl-h (Files): Remove m4/openat.m4.
76554         * modules/sys_stat (Files): Remove m4/openat.m4.
76555         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
76556         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
76557         * modules/unistd (Files): Remove m4/openat.m4.
76558         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
76559         GNULIB_OPENAT.
76560         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
76561         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
76562         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
76563         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
76564         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
76565         gl_OPENAT_DEFAULTS.
76566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
76567         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
76568         Don't require gl_OPENAT_DEFAULTS.
76569         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
76570         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
76571         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
76572         (gl_OPENAT_DEFAULTS): Remove macro.
76574 2009-09-06  Bruno Haible  <bruno@clisp.org>
76576         * modules/openat (configure.ac): Remove unneeded witness.
76578 2009-09-06  Bruno Haible  <bruno@clisp.org>
76580         Set errno to ENOSYS when a function is entirely unsupported.
76581         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
76582         EOPNOTSUPP.
76583         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
76584         * modules/chown (Depends-on): Remove errno.
76586 2009-09-06  Bruno Haible  <bruno@clisp.org>
76588         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
76590 2009-09-06  Bruno Haible  <bruno@clisp.org>
76592         * lib/sys_stat.in.h: Fix preprocessor command indentation.
76594 2009-09-06  Ben Pfaff  <blp@gnu.org>
76595             Bruno Haible  <bruno@clisp.org>
76597         Work around a glibc bug in strtok_r.
76598         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
76599         Undefine if UNDEFINE_STRTOK_R is set.
76600         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
76601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
76602         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
76603         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
76604         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
76605         UNDEFINE_STRTOK_R.
76606         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
76608 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
76610         exclude: minor fix
76611         * lib/exclude.c: Include wctype.h
76613 2009-09-06  Akim Demaille  <demaille@gostai.com>
76615         bootstrap: improve error message
76616         * build-aux/bootstrap (find_tool): Upon failure, report the list
76617         of candidates.
76618         Honor the initial value of the envvar.
76620 2009-09-05  Eric Blake  <ebb9@byu.net>
76622         symlinkat: new module
76623         * modules/symlinkat: New file.
76624         * lib/symlinkat.c: Likewise.
76625         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
76626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76627         * modules/unistd (Makefile.am): Use them.
76628         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
76629         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
76630         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
76631         * MODULES.html.sh (File system functions): Mention module.
76632         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76633         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76634         * modules/symlinkat-tests: New test.
76635         * tests/test-symlinkat.c: Likewise.
76637         test-openat-safer: add more checks
76638         * tests/test-openat-safer.c (main): Check more code paths.
76640 2009-09-05  Jim Meyering  <meyering@redhat.com>
76642         syntax-check: detect unnecessary inclusion of openat.h
76643         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
76645 2009-09-05  Bruno Haible  <bruno@clisp.org>
76647         Support towlower, towupper.
76648         * doc/posix-functions/towlower.texi: Mention module wctype.
76649         * doc/posix-functions/towupper.texi: Likewise.
76650         * lib/wctype.in.h (towlower, towupper): New functions.
76651         * tests/test-wctype.c: Include stdio.h, stdlib.h.
76652         (ASSERT): New macro.
76653         (e): New variable.
76654         (main): Test also towlower, towupper. Test WEOF argument.
76655         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
76657 2009-09-05  Bruno Haible  <bruno@clisp.org>
76659         Fix conversion behaviour when the input is invalid.
76660         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
76661         mark occurring in first pass of indirect conversion.
76662         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
76663         input.
76664         Found by clang's static analyzer.
76666 2009-09-05  Bruno Haible  <bruno@clisp.org>
76668         * tests/test-striconveh.c (main): Test indirect conversion on platforms
76669         where direct conversion is possible.
76671 2009-09-04  Eric Blake  <ebb9@byu.net>
76673         openat: fail with ENOENT on empty name
76674         * lib/openat-proc.c (openat_proc_name): Special-case the empty
76675         buffer.
76677         link-follow: fix logic bug in prior patch
76678         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
76679         reversed sense of yes and no in prior patch.  Avoid confusing
76680         compilation failure with desired semantics.
76682         link-follow: accommodate mingw and cross-compilation
76683         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
76684         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
76685         cross-compilation results to -1, to make linkat easier to
76686         implement when cross-compiling.  Trivially support mingw.
76687         * modules/link-follow (configure.ac): Call new name.
76688         * NEWS: Mention this.
76690 2009-09-03  Eric Blake  <ebb9@byu.net>
76692         faccessat: compile replacement
76693         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
76694         needed.
76696         fts: fix compilation error
76697         * lib/fts.c (includes): Re-add "openat.h", for
76698         openat_needs_fchdir.
76700         faccessat: new module
76701         * modules/faccessat: New file.
76702         * lib/faccessat.c: Likewise.
76703         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
76704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76705         * modules/unistd (Makefile.am): Use it.
76706         * lib/unistd.in.h (faccessat): Declare it.
76707         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
76708         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
76709         * MODULES.html.sh (File system functions): Mention it.
76710         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
76711         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
76713         euidaccess: prefer POSIX over non-standard implementation
76714         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
76715         * lib/euidaccess.c (euidaccess): Use it if available.
76717         openat: make template easier to use
76718         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
76719         AT_FUNC_F2 to be undefined.
76720         (VALIDATE_FLAG): New macro; use it to reject bad flags.
76721         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
76722         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
76723         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
76724         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
76725         Likewise.
76726         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
76727         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
76728         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
76729         Likewise.
76731         openat: declare in POSIX headers
76732         * NEWS: Mention this.
76733         * modules/openat (configure.ac): Declare witnesses.
76734         (Depends-on): Add fcntl-h, sys_stat, unistd.
76735         (Include): Mention correct headers.
76736         * modules/fcntl-h (Depends-on): Add link-warning.
76737         (Files): Add openat.m4.
76738         (Makefile.am): Substitute witnesses.
76739         * modules/sys_stat (Files, Makefile.am): Likewise.
76740         * modules/unistd (Files, Makefile.am): Likewise.
76741         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
76742         (gl_OPENAT_DEFAULTS): New macro.
76743         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
76744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
76745         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
76746         (SYS_STAT_H): Remove unused variable.
76747         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
76748         * lib/fcntl--.h (includes): Remove unneeded header.
76749         * lib/openat-safer.c (includes): Likewise.
76750         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
76751         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
76752         appropriate headers.
76753         (__OPENAT_PREFIX): Delete.
76754         * lib/fcntl.in.h (openat): Provide declaration.
76755         (AT_FDCWD): Fix Solaris bug.
76756         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
76757         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
76758         * lib/fchmodat.c (includes):  Adjust to find declaration.
76759         * lib/fchownat.c (includes): Likewise.
76760         * lib/mkdirat.c (includes): Likewise.
76761         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
76762         still visible.
76764 2009-09-02  Eric Blake  <ebb9@byu.net>
76766         errno: use consistently
76767         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
76768         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
76769         * lib/canonicalize.c (ELOOP): Likewise.
76770         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
76771         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
76772         * lib/lchown.c (EOPNOTSUPP): Likewise.
76773         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
76774         * lib/savewd.c (ESTALE): Likewise.
76775         * lib/settime.c (ENOSYS): Likewise.
76776         * lib/utimens.c (ENOSYS): Likewise.
76777         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
76778         * lib/chdir-safer.c (ELOOP): Likewise.
76779         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
76780         * modules/c-stack (Depends-on): Add errno.
76781         * modules/canonicalize (Depends-on): Likewise.
76782         * modules/chdir-safer (Depends-on): Likewise.
76783         * modules/fdopendir (Depends-on): Likewise.
76784         * modules/inet_ntop (Depends-on): Likewise.
76785         * modules/inet_pton (Depends-on): Likewise.
76786         * modules/lchown (Depends-on): Likewise.
76787         * modules/openat (Depends-on): Likewise.
76788         * modules/savewd (Depends-on): Likewise.
76789         * modules/settime (Depends-on): Likewise.
76790         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
76792         fts: avoid leaking fds
76793         * modules/fts (Depends-on): Add cloexec.
76794         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
76795         flag.
76797         fts: make directory fds more robust
76798         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
76799         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
76801         backupfile, chdir-long, fts, savedir: make safer
76802         * lib/backupfile.c (includes): Use "dirent--.h", since
76803         numbered_backup can write to stderr during readdir.
76804         * lib/savedir.c (includes): Likewise.
76805         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
76806         emulation can write to stderr on failure.
76807         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
76808         * lib/getcwd.c: Document why opendir_safer is unused.
76809         * lib/glob.c: Likewise.
76810         * lib/scandir.c: Likewise.
76811         * lib/openat-proc.c: Likewise, for open_safer.
76812         * modules/backupfile (Depends-on): Add dirent-safer.
76813         * modules/savedir (Depends-on): Likewise.
76814         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
76815         * modules/chdir-long (Depends-on): Add openat-safer.
76817         openat-safer: new module
76818         * modules/openat-safer: New file.
76819         * lib/openat-safer.c: Likewise.
76820         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
76821         * lib/fcntl-safer.h (openat_safer): Declare.
76822         * lib/fcntl--.h (openat): Override.
76823         * MODULES.html.sh (File descriptor based I/O): Mention it.
76824         * lib/openat.h: Add double-inclusion guards.
76825         * lib/openat.c (includes): Only include "fcntl-safer.h", not
76826         "fcntl--.h", so we can implement openat.
76827         * modules/openat-safer-tests: New test.
76828         * tests/test-openat-safer.c: New file.
76830         dirent-safer: new module
76831         * modules/dirent-safer: New file.
76832         * lib/dirent--.h: Likewise.
76833         * lib/dirent-safer.h: Likewise.
76834         * lib/opendir-safer.c: Likewise.
76835         * m4/dirent-safer.m4: Likewise.
76836         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
76837         * modules/dirent-safer-tests: New test.
76838         * tests/test-dirent-safer.c: New file.
76839         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
76841         fdopendir: optimize on mingw
76842         * lib/unistd.in.h (_gl_directory_name): New prototype.
76843         * lib/fchdir.c (_gl_directory_name): Implement it.
76844         (fchdir): Use it to simplify implementation.
76845         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
76846         fchdir, when available, to avoid calling [f]chdir().
76848         fdopendir: split into its own module
76849         * lib/openat.c (fdopendir): Move...
76850         * lib/fdopendir.c: ...into new file.
76851         * modules/fdopendir: New module.
76852         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
76853         * modules/openat (Depends-on): Add fdopendir.
76854         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
76855         fdopendir here.
76856         * modules/savedir (Depends-on): Only need fdopendir, not full
76857         openat.
76858         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
76859         * lib/openat.h (fdopendir): Drop prototype.
76860         * lib/dirent.in.h (fdopendir): Provide prototype.
76861         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
76862         * modules/dirent (Makefile.am): Substitute them.
76863         * MODULES.html.sh (File system functions): Mention it.
76864         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
76865         * modules/fdopendir-tests: New file.
76866         * tests/test-fdopendir.c: Likewise.
76868         fchdir: use more consistent macro convention
76869         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
76870         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
76871         REPLACE_FCHDIR, rather than relying on config.h macros.
76872         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
76873         inside a single make-time REPLACE_FCHDIR block, rather than using
76874         the config.h FCHDIR_REPLACEMENT.
76875         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
76876         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
76877         Manage fstat replacement.
76878         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
76879         REPLACE_FCHDIR.
76880         * modules/sys_stat (Files): Add m4/unistd_h.m4.
76881         (Makefile.am): Substitute REPLACE_FCHDIR.
76882         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
76883         FCHDIR_REPLACEMENT.
76884         * lib/dup-safer.c (dup_safer): Likewise.
76885         * lib/dup2.c (rpl_dup2): Likewise.
76886         * lib/dup3.c (rpl_dup3): Likewise.
76887         * lib/open.c (rpl_open): Likewise.
76889         fchdir: simplify error handling, and support dup3
76890         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
76891         stdbool, malloc-posix, realloc-posix.
76892         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
76893         (ensure_dirs_slot): Return false on allocation failure.
76894         (rpl_dup2): Delete.
76895         (_gl_register_dup): New function.
76896         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
76897         (_gl_register_fd): Close fd on allocation failure.
76898         * lib/fcntl.in.h (_gl_register_fd): Update signature.
76899         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
76900         prototype.
76901         (rpl_dup2_fchdir): Delete prototype.
76902         * lib/open.c (open): Update caller.
76903         * lib/dup2.c (dup2): Track fchdir metadata.
76904         * lib/dup3.c (dup3): Likewise.
76905         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
76906         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
76908 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76910         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
76911         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
76912         don't pass arguments to AC_OUTPUT.
76914 2009-09-02  Bruno Haible  <bruno@clisp.org>
76916         * modules/mkdtemp (License): Relicense under LGPLv2+.
76917         Reported by Paolo Bonzini.
76919 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76921         Replace uses of obsolete autoconf macros in Jim's modules.
76922         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
76923         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
76924         can evoke a warning from autoconf when run with -Wobsolete
76925         enabled.  They were declared obsolete for good reasons (see
76926         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
76927         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
76928         should not continue using the deprecated macros.
76929         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
76930         obsolete Autoconf macros with modern counterparts.
76931         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76932         * m4/dos.m4 (gl_AC_DOS): Likewise.
76933         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
76934         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
76935         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
76936         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
76937         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
76938         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
76939         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
76940         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
76941         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76942         Likewise.
76943         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
76944         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76945         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
76946         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
76947         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
76948         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76950 2009-09-01  Eric Blake  <ebb9@byu.net>
76952         fchdir: fix off-by-one bug in previous patch
76953         * lib/fchdir.c (rpl_fstat): Use correct bounds.
76954         (_gl_unregister_fd): Delete useless if.
76956 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
76958         maint.mk: sort the list of syntax-check rules
76959         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
76960         easier to get a sense of progress when the rules are run sequentially
76961         and take a long time.
76963 2009-09-01  Simon Josefsson  <simon@josefsson.org>
76965         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
76966         * modules/netinet_in: Likewise.
76967         * modules/sys_file: Likewise.
76968         * modules/sys_ioctl: Likewise.
76969         * modules/sys_select: Likewise.
76970         * modules/sys_socket: Likewise.
76971         * modules/sys_stat: Likewise.
76972         * modules/sys_time: Likewise.
76973         * modules/sys_times: Likewise.
76974         * modules/sys_utsname: Likewise.
76975         * modules/sys_wait: Likewise.
76977 2009-09-01  Jim Meyering  <meyering@redhat.com>
76979         fts: help ensure that return values are not ignored
76980         * lib/fts_.h (__GNUC_PREREQ): Define.
76981         (__attribute_warn_unused_result__): Define.
76982         (fts_children, fts_close, fts_open, fts_read): Declare with
76983         __attribute_warn_unused_result__.
76985         fts: fts_close now fails also when closing a dir file descriptor fails
76986         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
76987         and propagate to caller, along with errno.
76989         announce-gen: correct formatting in --help output
76990         * build-aux/announce-gen (usage): Move the one-line description in
76991         --help output "up", to where it belongs, just after Usage:.
76993 2009-08-31  Eric Blake  <ebb9@byu.net>
76995         fchdir: port to mingw
76996         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
76997         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
76998         opened, then use a substitute.
76999         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
77000         replacement.
77001         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
77002         (_gl_register_fd): No need to check stat if open already filters
77003         all directories.
77004         (fchdir): Fix error condition to match POSIX.
77005         * modules/fchdir (Depends-on): Add sys_stat.
77006         * doc/posix-functions/open.texi (open): Document the limitation.
77007         * modules/fchdir-tests: New file.
77008         * tests/test-fchdir.c: Likewise.
77010         canonicalize: allow cross-testing from cygwin to mingw
77011         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
77012         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
77013         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
77014         Likewise.
77015         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
77016         target does not support symlinks.
77017         * tests/test-canonicalize-lgpl.sh: Likewise.
77019         chown: avoid compilation warning on mingw
77020         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
77021         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
77022         mingw.
77023         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
77024         * modules/chown (Depends-on): Add errno.
77026 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
77028         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
77029         command.
77031 2009-08-31  Jim Meyering  <meyering@redhat.com>
77033         canonicalize: remove useless initialization
77034         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
77035         initialization of local, "end".
77037 2009-08-30  Bruno Haible  <bruno@clisp.org>
77039         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
77040         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
77041         ENOSYS.
77043 2009-08-30  Bruno Haible  <bruno@clisp.org>
77045         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
77046         /usr/xpg4/bin/tr when it exists.
77047         * tests/test-pipe-filter-gi1.sh: Likewise.
77049 2009-08-30  Bruno Haible  <bruno@clisp.org>
77051         Work around deficient /usr/bin/id program on Solaris.
77052         * tests/test-file-has-acl.sh (ID): New variable.
77053         * tests/test-set-mode-acl.sh (ID): Likewise.
77054         * tests/test-copy-acl.sh (ID): Likewise.
77055         * tests/test-copy-file.sh (ID): Likewise.
77057 2009-08-30  Bruno Haible  <bruno@clisp.org>
77059         New module 'xstriconveh'.
77060         * lib/xstriconveh.h: New file.
77061         * lib/xstriconveh.c: New file.
77062         * modules/xstriconveh: New file.
77064 2009-08-30  Bruno Haible  <bruno@clisp.org>
77066         Make it easier to use mem_cd_iconveh.
77067         * lib/striconveh.h (iconveh_t): New type.
77068         (iconveh_open, iconveh_close): New declarations.
77069         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
77070         with a single 'const iconveh_t *' argument.
77071         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
77072         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
77073         with a single 'const iconveh_t *' argument.
77074         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
77075         * tests/test-striconveh.c (main): Update.
77076         * NEWS: Mention the change.
77078 2009-08-30  Bruno Haible  <bruno@clisp.org>
77080         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
77081         problem.
77083 2009-08-30  Bruno Haible  <bruno@clisp.org>
77085         Work around iconv_open problem on Solaris.
77086         * lib/iconv_open-solaris.gperf: New file.
77087         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
77088         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
77089         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
77090         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
77091         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
77092         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
77094 2009-08-29  Jim Meyering  <meyering@redhat.com>
77096         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
77097         * top/maint.mk (cvs-check): Remove target; it was just an alias
77098         to the better-named vc-diff-check.
77099         (maintainer-distcheck): Remove rule.  It was used only from
77100         the (alpha/beta/major) target, and all of its commands but one
77101         were coreutils-specific.
77102         (vc-dist): Remove rule.
77103         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
77104         Run vc-diff-check, not vc-dist.
77105         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
77107 2009-08-27  Bruno Haible  <bruno@clisp.org>
77109         * tests/test-bitrotate.c (main): Remove test that uses a shift count
77110         of 0.
77112 2009-08-27  Bruno Haible  <bruno@clisp.org>
77114         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
77115         compilers.
77116         * doc/func.texi: Document the SunPRO C bug.
77118 2009-08-27  Bruno Haible  <bruno@clisp.org>
77120         Fix link error on Solaris.
77121         * tests/test-parse-duration.c (xstrdup): Remove function.
77123 2009-08-26  Pádraig Brady  <P@draigbrady.com>
77125         ignore-value: handle pointer types, too
77126         * lib/ignore-value.h (__attribute__): Remove definition.
77127         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
77128         of a more concise and more-often effective "(void) i" statement.
77129         (ignore_ptr): New function to suppress warnings from functions that
77130         return pointers, and to make it explicit that one function doesn't
77131         handle all cases.
77133 2009-08-25  Bruno Haible  <bruno@clisp.org>
77135         dup2: work around a Linux bug.
77136         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
77137         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
77138         * doc/posix-functions/dup2.texi: Mention the Linux bug.
77139         Reported by Simon Josefsson.
77141 2009-08-25  Jim Meyering  <meyering@redhat.com>
77143         libguestfs uses gnulib
77144         * users.txt: Add libguestfs.
77146 2009-08-24  Eric Blake  <ebb9@byu.net>
77148         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
77149         * lib/pipe2.c (includes): Add binary-io.h.
77150         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
77152 2009-08-24  Bruno Haible  <bruno@clisp.org>
77154         Tolerate declared but missing accept4 syscall.
77155         * lib/accept4.c (accept4): Invoke original accept4 function first, if
77156         available.
77157         * lib/sys_socket.in.h (accept4): If the function is already present,
77158         override it.
77159         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
77160         * modules/accept4 (Makefile.am): Compile accept4.c always.
77161         Reported by Paolo Bonzini and Eric Blake.
77163 2009-08-23  Bruno Haible  <bruno@clisp.org>
77165         New module 'accept4'.
77166         * lib/sys_socket.in.h (accept4): New declaration.
77167         * lib/accept4.c: New file.
77168         * m4/accept4.m4: New file.
77169         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
77170         GNULIB_ACCEPT4, HAVE_ACCEPT4.
77171         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
77172         HAVE_ACCEPT4.
77173         * modules/accept4: New file.
77174         * doc/glibc-functions/accept4.texi: Mention the new module.
77176 2009-08-24  Jim Meyering  <meyering@redhat.com>
77178         progname: also set global program_invocation_name, when possible
77179         Before this change, a libtool-enabled program that calls glibc's
77180         error function would report the program name as
77181         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
77182         * modules/progname (configure.ac): Check for a declaration of
77183         program_invocation_name.
77184         * lib/progname.c:  Include <errno.h>.
77185         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
77186         Set program_invocation_name.
77188 2009-08-23  Bruno Haible  <bruno@clisp.org>
77190         * lib/dup3.c: Include <string.h>.
77192 2009-08-23  Bruno Haible  <bruno@clisp.org>
77194         * lib/dup3.c (dup3): Test only once whether the system actually exists.
77195         * lib/pipe2.c (pipe2): Likewise.
77196         Suggested by Eric Blake.
77198 2009-08-23  Bruno Haible  <bruno@clisp.org>
77200         Tolerate declared but missing dup3 syscall.
77201         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
77202         * lib/unistd.in.h (dup3): If the function is already present,
77203         override it.
77204         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
77205         * modules/dup3 (Makefile.am): Compile dup3.c always.
77206         Reported by Paolo Bonzini.
77208 2009-08-23  Bruno Haible  <bruno@clisp.org>
77210         Tolerate declared but missing pipe2 syscall.
77211         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
77212         available.
77213         * lib/unistd.in.h (pipe2): If the function is already present,
77214         override it.
77215         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
77216         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
77217         Reported by Paolo Bonzini.
77219 2009-08-23  Bruno Haible  <bruno@clisp.org>
77221         * lib/pipe2.c (pipe2): Move #ifs inside function.
77223 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77225         quotearg: document limitations of quote_these_too
77226         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
77227         those limitations are created.
77228         * lib/quotearg.h (set_char_quoting): Document that digits and
77229         letters that are special after backslash are not permitted.
77230         (quotearg_char): Cross-reference set_char_quoting documentation.
77232 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
77234         quotearg: implement custom_quoting_style
77235         * lib/quotearg.c: (struct quoting_options): Add left_quote and
77236         right_quote fields.
77237         (set_custom_quoting): New public function.
77238         (quotearg_buffer_restyled): Add left_quote and right_quote
77239         arguments, handle them very much like locale quoting, and update
77240         all uses.
77241         (quotearg_n_custom): New public function.
77242         (quotearg_n_custom_mem): New public function.
77243         (quotearg_custom): New public function.
77244         (quotearg_custom_mem): New public function.
77245         * lib/quotearg.h: Prototype and document new public functions.
77246         (enum quoting_style): For escape_quoting_style and
77247         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
77248         ignored even though they're otherwise like c_quoting_style.
77249         Add custom_quoting_style member and document with comparison to
77250         clocale_quoting_style.
77251         * tests/test-quotearg.c (custom_quotes): New array.
77252         (custom_results): New array.
77253         (main): Extend to test custom quoting.
77255 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77257         quotearg: fix right quote escaping when it's in quote_these_too
77258         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
77259         quote, be sure to prepend only one backslash.
77260         * tests/test-quotearg.c (use_quote_double_quotes): New function.
77261         (main): Test it.
77263 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77265         quotearg-tests: test escaping of embedded locale quotes
77266         * tests/test-quotearg.c (struct result_strings): Add member for
77267         new input.
77268         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
77269         (inputs): Add new input.
77270         (results_g): Add expected results.
77271         (flag_results): Likewise.
77272         (locale_results): Likewise.
77273         (compare_strings): Check those.
77275 2009-08-23  Bruno Haible  <bruno@clisp.org>
77277         Tests for module 'dup3'.
77278         * modules/dup3-tests: New file.
77279         * tests/test-dup3.c: New file.
77281         New module 'dup3'.
77282         * lib/unistd.in.h (dup3): New declaration.
77283         * lib/dup3.c: New file.
77284         * m4/dup3.m4: New file.
77285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
77286         HAVE_DUP3.
77287         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
77288         * modules/dup3: New file.
77289         * doc/glibc-functions/dup3.texi: Mention the new module.
77291 2009-08-23  Bruno Haible  <bruno@clisp.org>
77293         Tweak the dup2 test.
77294         * tests/test-dup2.c (main): Create the test file empty. Verify that an
77295         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
77296         the test file is still empty. Fix argument order of lseek.
77298 2009-08-23  Bruno Haible  <bruno@clisp.org>
77300         Avoid test link errors when the modules getopt-gnu, gettext are used.
77301         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
77302         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77304 2009-08-23  Bruno Haible  <bruno@clisp.org>
77306         Fix getdtablesize() on mingw.
77307         * lib/getdtablesize.c (getdtablesize): Implement differently.
77308         * lib/unistd.in.h (getdtablesize): Improve comment.
77310 2009-08-23  Bruno Haible  <bruno@clisp.org>
77312         New module 'mkostemp'.
77313         Based on Ulrich Drepper's 2007-08-10 change in glibc.
77314         * lib/stdlib.in.h (mksotemp): New declaration.
77315         * lib/mkostemp.c: New file, from glibc with modifications.
77316         * lib/tempname.h (GT_FILE): Remove outdated comment.
77317         (gen_tempname): Add flags argument.
77318         * lib/tempname.c (__GT_BIGFILE): Remove macro.
77319         (__GT_FILE): Map to 1.
77320         (small_open, large_open): Remove macros.
77321         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
77322         * lib/mkstemp.c (mkstemp): Update.
77323         * lib/mkdtemp.c (mkdtemp): Likewise.
77324         * m4/mkostemp.m4: New file.
77325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
77326         HAVE_MKOSTEMP.
77327         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
77328         HAVE_MKOSTEMP.
77329         * modules/mkostemp: New file, based on modules/mkstemp.
77330         * doc/glibc-functions/mkostemp.texi: Mention the new module.
77331         * NEWS: Mention the change.
77333 2009-08-23  Bruno Haible  <bruno@clisp.org>
77335         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
77336         Reported by Eric Blake.
77338 2009-08-23  Bruno Haible  <bruno@clisp.org>
77340         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
77341         Reported by Eric Blake.
77343 2009-08-23  Bruno Haible  <bruno@clisp.org>
77345         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
77346         * modules/pipe2 (Depends-on): Likewise.
77348 2009-08-23  Eric Blake  <ebb9@byu.net>
77350         fcntl-h: add O_TTY_INIT support
77351         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
77352         * tests/test-fcntl-h.c (o): Test it.
77353         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77355         fcntl-h: rename from fcntl, in preparation for fcntl(2)
77356         * modules/fcntl: Move <fcntl.h> header replacement...
77357         * modules/fcntl-h: ...to new name, so as not to collide with
77358         like-named function.
77359         * tests/test-fcntl.c: Rename...
77360         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
77361         * modules/fcntl-tests: Rename...
77362         * modules/fcntl-h-tests: ...to this.  Update test file name.
77363         * modules/chdir-long (Depends-on): Update clients.
77364         * modules/chdir-safer (Depends-on): Likewise.
77365         * modules/fcntl-safer (Depends-on): Likewise.
77366         * modules/fts (Depends-on): Likewise.
77367         * modules/mkancesdirs (Depends-on): Likewise.
77368         * modules/mkdir-p (Depends-on): Likewise.
77369         * modules/open (Depends-on): Likewise.
77370         * modules/savewd (Depends-on): Likewise.
77371         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
77372         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77374 2009-08-22  Bruno Haible  <bruno@clisp.org>
77376         * modules/binary-io (License): Relicense under LGPL.
77377         * modules/pipe2 (License): Likewise.
77379 2009-08-22  Bruno Haible  <bruno@clisp.org>
77381         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
77382         return value.
77383         * lib/pipe-filter-gi.c (filter_init): Likewise.
77384         Reported by Eric Blake.
77386 2009-08-22  Bruno Haible  <bruno@clisp.org>
77388         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
77389         * modules/pipe (Depends-on): Add pipe2.
77391 2009-08-22  Bruno Haible  <bruno@clisp.org>
77393         Tests for module 'pipe2'.
77394         * modules/pipe2-tests: New file.
77395         * tests/test-pipe2.c: New file.
77397         New module 'pipe2'.
77398         * lib/unistd.in.h (pipe2): New declaration.
77399         * lib/pipe2.c: New file.
77400         * m4/pipe2.m4: New file.
77401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
77402         HAVE_PIPE2.
77403         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
77404         * modules/pipe2: New file.
77405         * doc/glibc-functions/pipe2.texi: Mention the new module.
77407 2009-08-22  Bruno Haible  <bruno@clisp.org>
77409         Reference some new glibc functions.
77410         * doc/glibc-functions/accept4.texi: New file.
77411         * doc/glibc-functions/dup3.texi: New file.
77412         * doc/glibc-functions/mkostemp.texi: New file.
77413         * doc/glibc-functions/pipe2.texi: New file.
77414         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
77415         (Glibc sys/socket.h): Refer to accept4.
77416         (Glibc unistd.h): Refer to dup3, pipe2.
77417         Reported by Eric Blake.
77419 2009-08-22  Jim Meyering  <meyering@redhat.com>
77420             Bruno Haible  <bruno@clisp.org>
77422         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
77423         This makes it so packages using automake-1.11's silent-rules option
77424         can print e.g., a single "GEN    configmake.h" line, rather than
77425         the 30+ statements that perform the job.  If you want to see the
77426         actual commands, you can still run "make V=1".
77427         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
77428         so that make output is abbreviated when those variables are defined
77429         appropriately.
77430         * modules/argz: Likewise.
77431         * modules/arpa_inet: Likewise.
77432         * modules/byteswap: Likewise.
77433         * modules/configmake: Likewise.
77434         * modules/dirent: Likewise.
77435         * modules/errno: Likewise.
77436         * modules/fcntl: Likewise.
77437         * modules/float: Likewise.
77438         * modules/fnmatch: Likewise.
77439         * modules/getopt-posix: Likewise.
77440         * modules/glob: Likewise.
77441         * modules/iconv_open: Likewise.
77442         * modules/inttypes: Likewise.
77443         * modules/localcharset: Likewise.
77444         * modules/locale: Likewise.
77445         * modules/math: Likewise.
77446         * modules/netdb: Likewise.
77447         * modules/netinet_in: Likewise.
77448         * modules/poll: Likewise.
77449         * modules/posix_spawnp-tests: Likewise.
77450         * modules/sched: Likewise.
77451         * modules/search: Likewise.
77452         * modules/selinux-h: Likewise.
77453         * modules/signal: Likewise.
77454         * modules/spawn: Likewise.
77455         * modules/stdarg: Likewise.
77456         * modules/stdbool: Likewise.
77457         * modules/stddef: Likewise.
77458         * modules/stdint: Likewise.
77459         * modules/stdio: Likewise.
77460         * modules/stdlib: Likewise.
77461         * modules/string: Likewise.
77462         * modules/strings: Likewise.
77463         * modules/sys_file: Likewise.
77464         * modules/sys_ioctl: Likewise.
77465         * modules/sys_select: Likewise.
77466         * modules/sys_socket: Likewise.
77467         * modules/sys_stat: Likewise.
77468         * modules/sys_time: Likewise.
77469         * modules/sys_times: Likewise.
77470         * modules/sys_utsname: Likewise.
77471         * modules/sys_wait: Likewise.
77472         * modules/sysexits: Likewise.
77473         * modules/time: Likewise.
77474         * modules/unistd: Likewise.
77475         * modules/wchar: Likewise.
77476         * modules/wctype: Likewise.
77478 2009-08-22  Jim Meyering  <meyering@redhat.com>
77480         announce-gen: detect write failure
77481         * build-aux/announce-gen: Add Coda at end.
77482         Remove equivalent-but-more-verbose block at top.
77484 2009-08-19  Akim Demaille  <demaille@gostai.com>
77486         bootstrap: --help to stdout.
77487         * bootstrap (usage): Don't send --help to stderr.
77488         Use a here doc instead of a long string.
77490 2009-08-21  Eric Blake  <ebb9@byu.net>
77492         test-popen-safer: split from test-popen
77493         * tests/test-popen.c (main): Move...
77494         * tests/test-popen.h: ...into new file.
77495         * tests/test-popen-safer2.c: New file.
77496         * modules/popen-tests (Files): Add test-popen.h.
77497         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
77498         Suggested by Bruno Haible.
77500         test-fcntl-safer: split from test-open
77501         * tests/test-open.c (main): Move...
77502         * tests/test-open.h: ...into new file.
77503         * tests/test-fcntl-safer.c: New file.
77504         * modules/open-tests (Files): Add test-open.h.
77505         * modules/fcntl-safer-tests: New file.
77506         Suggested by Bruno Haible.
77508         test-fopen-safer: split from test-fopen
77509         * tests/test-fopen.c (main): Move...
77510         * tests/test-fopen.h: ...into new file.
77511         * tests/test-fopen-safer.c: New file.
77512         * modules/fopen-tests (Files): Add test-fopen.h.
77513         * modules/fopen-safer-tests: New file.
77514         Suggested by Bruno Haible.
77516 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
77518         popen-safer: test O_CLOEXEC at run-time.
77519         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
77521 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
77523         fcntl: move more flags to the header
77524         * lib/cloexec.c: Do not define FD_CLOEXEC here.
77525         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
77526         * lib/fcntl.in.h: Do both things here.
77528 2009-08-21  Jim Meyering  <meyering@redhat.com>
77530         consistently remove $@-t before redirecting to it
77531         * modules/argz: Remove $@-t and $@ before redirecting to the former.
77532         * modules/alloca-opt: Likewise.
77533         * modules/byteswap: Likewise.
77534         * modules/fnmatch: Likewise.
77535         * modules/getopt-posix: Likewise.
77536         * modules/glob: Likewise.
77537         * modules/poll: Likewise.
77538         * modules/posix_spawnp-tests: Likewise.
77539         * modules/sys_socket: Likewise.
77540         * modules/sysexits: Likewise.
77542 2009-08-21  Eric Blake  <ebb9@byu.net>
77544         popen: simplify access to original popen
77545         * lib/popen.c (rpl_popen): No need to worry about popen being a
77546         macro.
77547         Reported by Bruno Haible.
77549 2009-08-20  Eric Blake  <ebb9@byu.net>
77551         build: avoid some compiler warnings
77552         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
77553         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
77554         type.
77555         (new_exclude_segment, excluded_file_pattern_p)
77556         (excluded_file_name_p): Reduce scope.
77557         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
77558         old-style declaration.
77560 2009-08-20  Simon Josefsson  <simon@josefsson.org>
77562         * tests/test-exclude1.sh: Handle Windows EOL.
77563         * tests/test-exclude2.sh: Likewise.
77564         * tests/test-exclude3.sh: Likewise.
77565         * tests/test-exclude4.sh: Likewise.
77566         * tests/test-exclude5.sh: Likewise.
77567         * tests/test-exclude6.sh: Likewise.
77568         * tests/test-exclude7.sh: Likewise.
77570 2009-08-19  Akim Demaille  <demaille@gostai.com>
77572         bootstrap: find sha1sum when named gsha1sum.
77573         * bootstrap (find_tool): New.
77574         ($SHA1SUM): New.
77575         Use it.
77577 2009-08-20  Jim Meyering  <meyering@redhat.com>
77579         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
77580         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
77581         expression that converts "." in a file name to "\." in the resulting
77582         regexp.  Start with a dummy statement, so that prior shell variable
77583         definitions are expanded portably.  Reported by Simon Josefsson.
77585 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
77587         Fix polling for writeability of a screen buffer.
77588         * lib/poll.c: Distinguish input and screen buffers for the
77589         Win32 implementation.
77590         * lib/select.c: Likewise.
77592 2009-08-19  Eric Blake  <ebb9@byu.net>
77594         popen-safer: prevent popen from clobbering std descriptors
77595         * modules/popen-safer: New file.
77596         * lib/popen-safer.c: Likewise.
77597         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
77598         * lib/stdio--.h (popen): Provide override.
77599         * lib/stdio-safer.h (popen_safer): Provide declaration.
77600         * tests/test-popen.c (includes): Partially test this.
77601         * modules/popen-safer-tests: New file, for more tests.
77602         * tests/test-popen-safer.c: Likewise.
77603         * MODULES.html.sh (file stream based Input/Output): Mention it.
77605         tests: test some of the *-safer modules
77606         * modules/fopen-safer (Depends-on): Add fopen.
77607         * modules/fcntl-safer (Depends-on): Add fcntl.
77608         * modules/stdlib-safer (Depends-on): Add stdlib.
77609         (configure.ac): Set indicator.
77610         * modules/unistd-safer (configure.ac): Likewise.
77611         * modules/tmpfile-safer (configure.ac): Likewise.
77612         (Depends-on): Add tmpfile.
77613         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
77614         active.
77615         * tests/test-fopen.c (includes): Test safer versions when they are
77616         in use.
77617         * tests/test-open.c (includes): Likewise.
77619         popen: fix cygwin 1.5 bug when stdin closed
77620         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
77621         * modules/popen: New file.
77622         * modules/popen-tests: Likewise.
77623         * tests/test-popen.c: Likewise.
77624         * m4/popen.m4: Likewise.
77625         * lib/popen.c: Likewise.
77626         * lib/stdio.in.h (popen): New declaration.
77627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
77628         * modules/stdio (Makefile.am): Likewise.
77629         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
77631 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
77633         maint.mk: give full control over update-copyright exclusions
77634         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
77635         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
77636         (update-copyright): Don't force inclusion of top-level
77637         ChangeLog.  Don't force exclusion of all COPYING files, but make
77638         them the default exclusion instead.
77640 2009-08-16  Bruno Haible  <bruno@clisp.org>
77642         Fix test failures on Solaris 10.
77643         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
77644         tests when Solaris iconv() is used.
77645         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
77646         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
77647         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
77648         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
77649         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
77651 2009-08-16  Bruno Haible  <bruno@clisp.org>
77653         Fix test failures on Solaris 10.
77654         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
77655         'tr' program and pass it as first argument.
77656         * tests/test-pipe-filter-gi1.sh: Likewise.
77657         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
77658         program as first argument.
77659         * tests/test-pipe-filter-gi1.c (main): Likewise.
77661 2009-08-16  Eric Blake  <ebb9@byu.net>
77663         fpurge: fix previous commits
77664         * modules/fpurge (Makefile.am): Make replacement conditional,
77665         partially reverting 2007-04-29 change; missed in previous
77666         attempt.
77667         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
77668         is missing.
77670 2009-08-16  Bruno Haible  <bruno@clisp.org>
77672         Clarify fpurge's effect on the file position.
77673         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
77674         * tests/test-fpurge.c (main): Make a second pass for checking the file
77675         position.
77677 2009-08-16  Bruno Haible  <bruno@clisp.org>
77679         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
77680         declaration of fpurge is missing.
77681         * tests/test-fpurge.c (main): Check that the file has not more contents
77682         than expected. Close the file before removing it.
77684 2009-08-15  Eric Blake  <ebb9@byu.net>
77686         fpurge: don't wrap working cygwin implementation
77687         * lib/fpurge.c (fpurge): Fix comment typo.
77688         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
77689         1.7 to avoid replacement.
77690         * tests/test-fpurge.c (main): Enhance test.
77692 2009-08-15  Eric Blake  <ebb9@byu.net>
77693         and Jim Meyering  <meyering@redhat.com>
77695         test-update-copyright: skip if perl is insufficient
77696         * tests/test-update-copyright.sh: Failure to run maintainer tool
77697         should not cause testsuite failure on cygwin 1.5.
77699 2009-08-14  Eric Blake  <ebb9@byu.net>
77701         doc: mention more functions added in cygwin 1.7.0
77702         * doc/posix-headers/limits.texi (limits.h): Update for recent
77703         cygwin additions.
77704         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
77705         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
77706         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
77707         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
77708         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
77710 2009-08-14  Eric Blake  <ebb9@byu.net>
77712         maint.mk: simplify update-copyright rule
77713         * top/maint.mk (update-copyright-local): Delete, and document how
77714         to do it in cfg.mk instead.
77715         (update-copyright-exclude-regexp): Delete, and document how to do
77716         it in .x-update-copyright instead.
77717         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
77718         exclude ChangeLog.
77720 2009-08-14  Bruno Haible  <bruno@clisp.org>
77722         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
77724 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77726         maint.mk: support update-copyright-env
77727         * top/maint.mk (update-copyright-env): Define place-holder.
77728         (update-copyright): Expand $(update-copyright-env) before
77729         invoking update-copyright.
77731 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77733         update-copyright: implement forced reformatting
77734         * build-aux/update-copyright: Implement and document
77735         UPDATE_COPYRIGHT_FORCE.
77736         * tests/test-update-copyright.sh: Test it.
77738 2009-08-14  Eric Blake  <ebb9@byu.net>
77739         and Bruno Haible  <bruno@clisp.org>
77741         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
77742         * tests/test-locale.c: Revert previous patch related to NULL.
77743         * tests/test-stdio.c: Likewise.
77744         * tests/test-stdlib.c: Likewise.
77745         * tests/test-string.c: Likewise.
77746         * tests/test-unistd.c: Likewise.
77747         * modules/time-tests (Depends-on): Add verify.
77748         * modules/wchar-tests (Depends-on): Likewise.
77749         * tests/test-time.c: Test for NULL compliance.
77750         * tests/test-wchar.c: Likewise.
77751         * modules/locale (Depends-on): Add stddef.
77752         * modules/stdio (Depends-on): Likewise.
77753         * modules/stdlib (Depends-on): Likewise.
77754         * modules/string (Depends-on): Likewise.
77755         * modules/time (Depends-on): Likewise.
77756         * modules/unistd (Depends-on): Likewise.
77757         * modules/wchar (Depends-on): Likewise.
77758         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
77759         * lib/stdlib.in.h (includes): Likewise.
77760         * lib/string.in.h (includes): Likewise.
77761         * lib/time.in.h (includes): Likewise.
77762         * lib/unistd.in.h (includes): Likewise.
77763         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
77764         replaced.
77765         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
77766         * m4/stddef_h.m4: New file.
77767         * modules/stddef: Likewise.
77768         * lib/stddef.in.h: Likewise.
77769         * modules/stddef-tests: Likewise.
77770         * tests/test-stddef.c: Likewise.
77771         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
77772         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
77773         * doc/posix-headers/locale.texi (locale.h): Likewise.
77774         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
77775         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
77776         * doc/posix-headers/string.texi (string.h): Likewise.
77777         * doc/posix-headers/time.texi (time.h): Likewise.
77778         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
77779         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
77781 2009-08-14  Eric Blake  <ebb9@byu.net>
77783         doc: improve git diff of texinfo files
77784         * .gitattributes: Add rule for *.texi files, with hint on how to
77785         use it.
77786         Copied from m4, and based on a report by Bruno Haible.
77788 2009-08-14  Bruno Haible  <bruno@clisp.org>
77790         Disable multithread support by default on Cygwin 1.5.x for real.
77791         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
77793 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77795         update-copyright: much ado about intervals
77796         * build-aux/update-copyright: Implement and document
77797         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
77798         of copyright year intervals.
77799         Also, document UPDATE_COPYRIGHT_YEAR.
77800         * tests/test-update-copyright.sh: Test it.
77802         update-copyright: convert 2-digit to 4-digit years
77803         * build-aux/update-copyright: Implement and document.
77804         * tests/test-update-copyright.sh: Update.
77806 2009-08-14  Jim Meyering  <meyering@redhat.com>
77808         test-exclude: avoid coreutils "make check" failure
77809         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
77810         just as in test-argmatch.c.
77812 2009-08-13  Eric Blake  <ebb9@byu.net>
77814         test-dup2: fix bad assumption
77815         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
77816         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
77818         test-version-etc: fix CRLF portability issue
77819         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
77820         recognize \r.
77821         * tests/test-argp-version-etc-1.sh: Likewise.
77823         getopt: update client modules
77824         * modules/argp (Depends-on): Use getopt-gnu.
77825         * modules/git-merge-changelog (Depends-on): Likewise.
77826         * modules/long-options (Depends-on): Likewise.
77827         * modules/xstrtol (Depends-on): Likewise.
77829 2009-08-13  Simon Josefsson  <simon@josefsson.org>
77831         * tests/test-version-etc.sh: Don't fail on different
77832         project/version.  Don't fail on CRLF differences.  Rewrite to use
77833         multiple -e instead of multiple sed forks, suggested by Eric Blake
77834         <ebb9@byu.net>.
77835         * tests/test-argp-version-etc-1.sh: Likewise.
77837 2009-08-13  Simon Josefsson  <simon@josefsson.org>
77839         * tests/test-version-etc.sh: Don't fail on different
77840         project/version.
77842 2009-08-12  Bruno Haible  <bruno@clisp.org>
77844         Tests for modules 'getopt-posix', 'getopt-gnu'.
77845         * modules/getopt-posix-tests: New file.
77846         * tests/test-getopt.c: New file.
77847         * tests/test-getopt.h: New file.
77848         * tests/test-getopt_long.h: New file.
77850         New modules 'getopt-posix', 'getopt-gnu'.
77851         * modules/getopt-gnu: New file, renamed from modules/getopt.
77852         * modules/getopt-posix: New file.
77853         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
77854         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
77855         (gl_GETOPT): Remove macro.
77856         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
77857         Disable the test against BSD systems that declare optreset. Test
77858         against mingw bug. Test against lack of support of optional arguments
77859         on many platforms.
77860         * doc/glibc-headers/getopt.texi: Update module name and list of
77861         relevant platforms.
77862         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
77863         'getopt-gnu' and more portability problems.
77864         * NEWS: Mention the changes.
77866 2009-08-12  Bruno Haible  <bruno@clisp.org>
77868         Ensure that optarg etc. get declared by <unistd.h>.
77869         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
77870         AC_USE_SYSTEM_EXTENSIONS.
77871         * modules/getopt (Depends-on): Add 'extensions'.
77873 2009-08-12  Bruno Haible  <bruno@clisp.org>
77875         Avoid test link errors.
77876         * modules/pipe-filter-ii-tests (Makefile.am): Define
77877         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
77878         * modules/pipe-filter-gi-tests (Makefile.am): Define
77879         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
77880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77882 2009-08-12  Bruno Haible  <bruno@clisp.org>
77884         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
77885         gl_GETOPT_SUBSTITUTE before.
77886         (gl_GETOPT): Use it.
77887         * m4/argp.m4 (gl_ARGP): Update.
77888         Reported by Sergey Poznyakoff.
77890         * m4/getopt.m4: Reorder macros.
77891         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
77892         (gl_GETOPT_SUBSTITUTE): Remove macro.
77894 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77896         Minor improvement in gitlog-to-changelog
77898         * build-aux/gitlog-to-changelog: New option `--format' makes
77899         output format string configurable.
77901 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77903         Optimize exclude: use hash tables for non-wildcard patterns.
77905         * lib/exclude.c: Include hash.h and mbuiter.h
77906         (struct exclude_pattern, exclude_segment): New data types.
77907         (struct exclude): Rewrite.
77908         (fnmatch_pattern_has_wildcards): New function.
77909         (new_exclude_segment, free_exclude_segment): New functions.
77910         (excluded_file_pattern_p, excluded_file_name_p): New functions.
77911         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
77912         * lib/exclude.h (is_fnmatch_pattern): New prototype.
77913         * modules/exclude: Depend on hash and mbuiter.
77915         * modules/exclude-tests: New file.
77916         * tests/test-exclude.c: New file.
77917         * tests/test-exclude1.sh: New file.
77918         * tests/test-exclude2.sh: New file.
77919         * tests/test-exclude3.sh: New file.
77920         * tests/test-exclude4.sh: New file.
77921         * tests/test-exclude5.sh: New file.
77922         * tests/test-exclude6.sh: New file.
77923         * tests/test-exclude7.sh: New file.
77925 2009-08-12  Bruno Haible  <bruno@clisp.org>
77927         Ensure that getopt() gets declared by <unistd.h>.
77928         * lib/unistd.in.h: Conditionally include getopt.h.
77929         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
77930         Set GNULIB_UNISTD_H_GETOPT.
77931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
77932         GNULIB_UNISTD_H_GETOPT.
77933         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
77935 2009-08-12  Bruno Haible  <bruno@clisp.org>
77937         Clarify logic.
77938         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
77939         gl_replace_getopt instead of GETOPT_H.
77941 2009-08-12  Bruno Haible  <bruno@clisp.org>
77943         * m4/getopt.m4: Add comments.
77945 2009-08-12  Bruno Haible  <bruno@clisp.org>
77947         Disable multithread support by default on Cygwin 1.5.x.
77948         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
77949         set gl_use_threads=no if not specified otherwise.
77951 2009-08-11  Bruno Haible  <bruno@clisp.org>
77953         Avoid compilation error on NetBSD 5.0.
77954         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
77955         * tests/test-stdio.c: Likewise.
77956         * tests/test-stdlib.c: Likewise.
77957         * tests/test-string.c: Likewise.
77958         * tests/test-unistd.c: Likewise.
77959         Reported by Greg Troxel <gdt@ir.bbn.com>
77960         at <https://savannah.gnu.org/support/?106973>.
77962 2009-08-11  Bruno Haible  <bruno@clisp.org>
77964         * modules/dup2-tests (Depends-on): Remove close.
77966         Undo 2009-07-19 commit.
77967         * modules/acl-tests (Depends-on): Remove close.
77968         * modules/binary-io-tests (Depends-on): Likewise.
77969         * modules/closein-tests (Depends-on): Likewise.
77970         * modules/flock-tests (Depends-on): Likewise.
77971         * modules/fsync-tests (Depends-on): Likewise.
77972         * modules/lseek-tests (Depends-on): Likewise.
77973         * modules/pipe-tests (Depends-on): Likewise.
77974         * modules/posix_spawn-tests (Depends-on): Likewise.
77975         * modules/posix_spawnp-tests (Depends-on): Likewise.
77976         * modules/stat-time-tests (Depends-on): Likewise.
77977         * modules/yesno-tests (Depends-on): Likewise.
77979 2009-08-10  Bruno Haible  <bruno@clisp.org>
77981         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
77983 2009-08-10  Bruno Haible  <bruno@clisp.org>
77985         Fix a gcc warning.
77986         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
77988 2009-08-10  Bruno Haible  <bruno@clisp.org>
77990         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
77991         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
77992         not only the first time.
77993         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
77994         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
77995         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
77996         is 1, not only the first time.
77998 2009-08-10  Bruno Haible  <bruno@clisp.org>
78000         Make it possible to use module 'gethostname' without module 'close'.
78001         * lib/unistd.in.h (close): Evoke a link error only if
78002         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
78003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78004         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78005         * modules/unistd (Makefile.am): Substitute
78006         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78007         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
78008         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
78009         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
78010         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78011         * modules/sys_ioctl (Makefile.am): Substitute
78012         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78013         * modules/socket (configure.ac): On native Windows, set
78014         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
78015         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78016         Reported by Sam Steingold <sds@gnu.org>.
78018 2009-08-10  Bruno Haible  <bruno@clisp.org>
78020         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
78021         * modules/ioctl (configure.ac): Likewise.
78023 2009-08-10  Bruno Haible  <bruno@clisp.org>
78025         Avoid collision between gnulib wrapper and libintl wrapper.
78026         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
78027         already defined in intl/printf.c.
78028         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
78029         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
78031 2009-08-09  Bruno Haible  <bruno@clisp.org>
78033         Make <sys/select.h> really self-contained, also on Solaris 10.
78034         * lib/sys_select.in.h: Include <string.h>.
78035         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
78036         Solaris 10 problem.
78037         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
78038         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
78039         Reported by Jim Meyering.
78041 2009-08-09  Bruno Haible  <bruno@clisp.org>
78043         Avoid warnings from 'aclocal' that are due to a use of macro name
78044         AM_XGETTEXT_OPTION that is not defined in automake.
78045         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
78046         automake.
78047         * modules/error (configure.ac): Likewise.
78048         * modules/propername (configure.ac): Likewise.
78049         * modules/vasprintf (configure.ac): Likewise.
78050         * modules/verror (configure.ac): Likewise.
78051         * modules/xprintf (configure.ac): Likewise.
78052         * modules/xvasprintf (configure.ac): Likewise.
78054 2009-08-08  Bruno Haible  <bruno@clisp.org>
78056         Avoid compilation error in C++ mode.
78057         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
78058         Reported by Sam Steingold <sds@gnu.org>.
78060 2009-08-08  Bruno Haible  <bruno@clisp.org>
78062         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
78063         for the various Unix platforms.
78064         * doc/posix-headers/limits.texi: Update platforms list regarding
78065         HOST_NAME_MAX.
78066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78068 2009-08-07  Jim Meyering  <meyering@redhat.com>
78070         selinux-at: fix typo in a comment
78071         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
78072         Spotted by Paolo Bonzini.
78074         selinux-at: remove redundant m4 code, add documentation
78075         * modules/selinux-at (configure.ac): Remove redundant code.
78076         LIB_SELINUX is already set via the dependent module, selinux-h.
78077         (Include): Add quotes around selinux-at.h.
78078         * lib/selinux-at.h: Add documentation.
78079         Reported by Bruno Haible in
78080         http://marc.info/?l=gnulib-bug&m=124958988300749
78082 2009-08-07  Bruno Haible  <bruno@clisp.org>
78084         Avoid link error on MacOS X 10.3 and 10.4.
78085         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
78086         on non-ELF systems.
78087         * lib/argp-pv.c (argp_program_version): Likewise.
78088         Reported by Simon Josefsson.
78090 2009-08-07  Simon Josefsson  <simon@josefsson.org>
78092         * tests/test-version-etc.sh: Use $EXEEXT.
78094 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
78096         update-copyright: update documentation to point to maint.mk
78097         * build-aux/update-copyright: Here.
78099 2009-08-06  Jim Meyering  <meyering@redhat.com>
78101         maint.mk: support update-copyright-local
78102         * top/maint.mk (update-copyright-local): Define place-holder.
78103         (update-copyright): Depend on $(update-copyright-local).
78105 2009-08-06  Jim Meyering  <meyering@redhat.com>
78107         selinux-at: new module
78108         Initially written for coreutils, this module will soon be
78109         used by findutils, too.
78110         * MODULES.html.sh [Misc]: Add selinux-at.
78111         * lib/selinux-at.h: New file, from coreutils.
78112         * lib/selinux-at.c: Likewise.
78113         * modules/selinux-at: Likewise.
78114         (License): Change from LGPL to GPL, since it depends
78115         on the GPL'd openat module.
78117         doc: update README
78118         * README: Remove references to cogito.
78119         Remove cvs-repo-updating instructions from 2007.
78120         Don't imply that CVS is better if you have limited disk space.
78122 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78124         update-copyright: support C-style comments
78125         * build-aux/update-copyright: Implement and document.
78126         * tests/test-update-copyright.sh: Test.
78128 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78130         update-copyright: support omitted "(C)"
78131         * build-aux/update-copyright: Implement and document.  Also,
78132         allow variable whitespace before "(C)".
78133         * tests/test-update-copyright.sh: Test.
78135 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78137         update-copyright: don't trip on non-FSF copyright statements
78138         * build-aux/update-copyright: Fix so that the first correctly
78139         formatted FSF copyright statement is recognized no matter what
78140         appears before it.  Update documentation.
78141         * tests/test-update-copyright.sh: Test that.
78143 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78145         update-copyright: clean up code a little
78146         * build-aux/update-copyright: Append "_re" to the name of any
78147         variable holding a regular expression.
78148         Replace "old" and "new" with "stmt" in variable names.
78149         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
78150         handled correctly.
78151         Format code more consistently.
78153 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78155         update-copyright-tests: improve portability
78156         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
78157         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
78159 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
78161         update-copyright: support @copyright{} and &copy;
78162         * build-aux/update-copyright: Implement and document.
78163         * tests/test-update-copyright.sh: Test.
78165 2009-08-04  Jim Meyering  <meyering@redhat.com>
78167         update-copyright-tests: correctly test EOL=\r\n handling
78168         * tests/test-update-copyright.sh: Put \r at the end of some lines
78169         for the dos-eol tests.  Based on a patch by Joel E. Denny.
78171         maint.mk: make update-copyright exclusion list more configurable
78172         * top/maint.mk (update-copyright): Default to excluding COPYING,
78173         but allow an override, in case someone does want to update that file.
78175         maint.mk: don't update copyright date in COPYING
78176         * top/maint.mk (update-copyright): Exclude COPYING.
78178         maint.mk: add a copyright-updating rule
78179         * top/maint.mk (update-copyright): New rule.
78180         Derived from coreutils/Makefile.am.
78182         update-copyright: rename some variables
78183         * build-aux/update-copyright: Rename a few variables for clarity.
78184         Tweak syntax.  List Joel E. Denny as coauthor.
78186 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
78188         update-copyright: fix bug for 2-digit last year and add tests
78189         * build-aux/update-copyright: Fix bug.
78190         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
78191         specified.
78192         * modules/update-copyright-tests: New
78193         * tests/test-update-copyright.sh: New.
78195 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78197         update-copyright: handle leading tabs in line prefix
78198         * build-aux/update-copyright: Count leading tabs as 8 spaces
78199         when computing margin.  This helps with the formatting of
78200         ChangeLogs, for example.
78201         Fix documentation a little.
78203 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78205         update-copyright: support EOL=\r\n
78206         * build-aux/update-copyright: Implement that.
78208 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78210         update-copyright: automatically format copyright statements
78211         * build-aux/update-copyright: Implement that.
78212         Also, be a little more predictable and safer by always failing
78213         when the full copyright format is not perfectly recognized as an
78214         unbroken whole.  Discussed at
78215         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
78216         Rewrite documentation.
78218 2009-08-03  Bruno Haible  <bruno@clisp.org>
78220         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
78222 2009-08-02  Bruno Haible  <bruno@clisp.org>
78224         Tests for module 'uname'.
78225         * modules/uname-tests: New file.
78226         * tests/test-uname.c: New file.
78228         New module 'uname'.
78229         * lib/uname.c: New file.
78230         * m4/uname.m4: New file.
78231         * modules/uname: New file.
78232         * doc/posix-functions/uname.texi: Mention the new module.
78234 2009-08-02  Bruno Haible  <bruno@clisp.org>
78236         Tests for module 'sys_utsname'.
78237         * modules/sys_utsname-tests: New file.
78238         * tests/test-sys_utsname.c: New file.
78240         New module 'sys_utsname'.
78241         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
78242         * m4/sys_utsname_h.m4: New file.
78243         * modules/sys_utsname: New file.
78244         * doc/posix-headers/sys_utsname.texi: Mention the new module.
78246 2009-08-02  Bruno Haible  <bruno@clisp.org>
78248         Implicitly initialize the sockets library.
78249         * lib/gethostname.c: Include sockets.h.
78250         (rpl_gethostname): Invoke gl_sockets_startup.
78251         * lib/socket.c: Include sockets.h.
78252         (rpl_socket): Invoke gl_sockets_startup.
78253         * modules/gethostname (Depends-on): Add sockets.
78254         * modules/socket (Depends-on): Likewise.
78255         * tests/test-poll.c: Don't include sockets.h.
78256         (main): Don't invoke gl_sockets_startup.
78257         * tests/test-select.c: Don't include sockets.h.
78258         (main): Don't invoke gl_sockets_startup.
78260 2009-08-02  Bruno Haible  <bruno@clisp.org>
78262         Allow multiple calls to gl_sockets_startup.
78263         * lib/sockets.c (initialized_sockets_version): New variable.
78264         (gl_sockets_startup): Do nothing if already called for this or a higher
78265         version.
78266         (gl_sockets_cleanup): Reset initialized_sockets_version.
78268 2009-08-03  Simon Josefsson  <simon@josefsson.org>
78270         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
78271         different project/version.
78273 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
78274             Bruno Haible  <bruno@clisp.org>
78276         Tests for module 'pipe-filter-gi'.
78277         * modules/pipe-filter-gi-tests: New file.
78278         * tests/test-pipe-filter-gi1.sh: New file.
78279         * tests/test-pipe-filter-gi1.c: New file.
78280         * tests/test-pipe-filter-gi2.sh: New file.
78281         * tests/test-pipe-filter-gi2-main.c: New file.
78282         * tests/test-pipe-filter-gi2-child.c: New file.
78284         New module 'pipe-filter-gi'.
78285         * lib/pipe-filter-gi.c: New file.
78286         * modules/pipe-filter-gi: New file.
78288 2009-08-02  Bruno Haible  <bruno@clisp.org>
78289             Paolo Bonzini  <bonzini@gnu.org>
78291         Tests for module 'pipe-filter-ii'.
78292         * modules/pipe-filter-ii-tests: New file.
78293         * tests/test-pipe-filter-ii1.sh: New file.
78294         * tests/test-pipe-filter-ii1.c: New file.
78295         * tests/test-pipe-filter-ii2.sh: New file.
78296         * tests/test-pipe-filter-ii2-main.c: New file.
78297         * tests/test-pipe-filter-ii2-child.c: New file.
78299         New module 'pipe-filter-ii'.
78300         * lib/pipe-filter.h: New file.
78301         * lib/pipe-filter-ii.c: New file.
78302         * lib/pipe-filter-aux.h: New file.
78303         * modules/pipe-filter-ii: New file.
78305 2009-08-02  Simon Josefsson  <simon@josefsson.org>
78307         * lib/gc-libgcrypt.c: Change copyright to FSF.
78308         * lib/gc-gnulib.c: Likewise.
78310 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
78312         * lib/gethostname.c: Include limits.h.
78314 2009-08-02  Simon Josefsson  <simon@josefsson.org>
78315             Bruno Haible  <bruno@clisp.org>
78317         Ensure HOST_NAME_MAX as part of the gethostname module.
78318         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
78319         define also HOST_NAME_MAX.
78320         * tests/test-gethostname.c: Include <limits.h>.
78321         (main): Check also HOST_NAME_MAX.
78322         * doc/posix-headers/limits.texi: Document the mingw problem.
78324 2009-08-02  Bruno Haible  <bruno@clisp.org>
78326         * lib/gethostname.c (gethostname): Fix handling of large len argument.
78327         Add comments.
78329 2009-03-31  Simon Josefsson  <simon@josefsson.org>
78331         * lib/gethostname.c: Add Windows wrapper.
78332         * m4/gethostname.m4: Look for gethostname in -lws2_32.
78333         * modules/gethostname: Depend on sys_socket & errno, for also
78334         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
78335         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
78337 2009-07-31  Jim Meyering  <meyering@redhat.com>
78339         getloadavg: fix symbol name in comment
78340         * lib/getloadavg.c: Correct a typo I introduced when adding
78341         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
78342         Matt Kraai spotted the problem.
78344 2009-07-29  Matt Kraai  <mkraai@beckman.com>
78346         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
78347         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
78348         code also if ! defined N_NAME_POINTER.
78349         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
78350         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
78351         but the n_name member is a 12-byte array.
78353 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
78355         update-copyright: generalize comment handling
78356         * build-aux/update-copyright: Handle copyright statements
78357         within more comment styles.
78358         Document usage.
78359         Report any file with an external copyright holder or parse failure.
78361 2009-07-29  Jim Meyering  <meyering@redhat.com>
78363         mktime: correct setting of REPLACE_MKTIME
78364         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
78366         update-copyright: new module
78367         * modules/update-copyright: New file.
78368         * build-aux/update-copyright: New file.
78369         * MODULES.html.sh (maint+release support): Add update-copyright.
78371 2009-07-27  Bruno Haible  <bruno@clisp.org>
78373         Fix compilation error when <ctime> is used and mktime is replaced.
78374         * lib/time.in.h (mktime): New declaration.
78375         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
78376         REPLACE_MKTIME instead of defining mktime in config.h.
78377         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
78378         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
78379         Reported by Ross McFarland <rwmcfa1@neces.com>.
78381 2009-07-27  Bruno Haible  <bruno@clisp.org>
78383         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
78384         Reported by Matt Kraai <mkraai@beckman.com>.
78386 2009-07-25  Jim Meyering  <meyering@redhat.com>
78388         maint.mk: avoid warnings about missing files
78389         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
78390         diagnostic when .prev-version does not exist.
78391         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
78392         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
78393         nonexistent cfg.mk.
78394         Suggestions from Simon Josefsson.
78396 2009-07-25  Bruno Haible  <bruno@clisp.org>
78398         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
78399         defined as macros. Needed on QNX 6.4.1.
78400         Reported by Matt Kraai <mkraai@beckman.com>.
78402 2009-07-23  Jim Meyering  <meyering@redhat.com>
78404         maint.mk: invoke "make dist" with a working value of XZ_OPT
78405         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
78407 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
78409         Make fseeko.c compile on QNX.
78410         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
78412 2009-07-22  Peter Simons  <simons@cryp.to>
78414         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
78415         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
78416         * lib/md4.h: Likewise.
78417         * lib/md5.h: Likewise.
78418         * lib/sha1.h: Likewise.
78419         * lib/sha256.h: Likewise.
78420         * lib/sha512.h: Likewise.
78422         tests-sha1: don't assign literal string to 'char *' variable
78423         * tests/test-sha1.c (main): Declare locals with "const" to match
78424         attributes of the right hand side.
78426 2009-07-21  Eric Blake  <ebb9@byu.net>
78428         dup2: fix more mingw problems
78429         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
78430         fd to itself.
78431         * doc/posix-functions/dup2.texi (dup2): Document the bug.
78432         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
78433         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
78434         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
78435         care of mingw bugs.
78437 2009-07-21  Jim Meyering  <meyering@redhat.com>
78439         vc-list-files: avoid failure when /bin/sh is dash
78440         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
78441         On some Debian based systems, /bin/sh is a symlink to dash, and running
78442         this command would omit the "/" following each 'tests' prefix:
78443           dash -x build-aux/vc-list-files -C . tests
78444         That is because bash and dash work differently:
78445           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
78446           bash ok
78447           dash odd
78449 2009-07-21  Eric Blake  <ebb9@byu.net>
78451         dup2-tests: test previous patch
78452         * modules/dup2-tests: New file.
78453         * tests/test-dup2.c: Likewise.
78454         * tests/test-open.c (main): Avoid unspecified behavior.
78455         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
78456         test.
78458         dup2: work around mingw and cygwin 1.5 bug
78459         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
78460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78461         * modules/unistd (Makefile.am): Substitute it.
78462         * lib/unistd.in.h (dup2): Declare the replacement.
78463         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
78464         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
78465         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
78466         * modules/execute (Depends-on): Add dup2.
78467         * modules/fseterr (Depends-on): Likewise.
78468         * modules/pipe (Depends-on): Likewise.
78469         * modules/posix_spawn-internal (Depends-on): Likewise.
78471 2009-07-21  Bruno Haible  <bruno@clisp.org>
78473         * modules/.gitattributes: New file.
78475 2009-07-20  Bruno Haible  <bruno@clisp.org>
78477         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
78478         (main): Use it.
78480 2009-07-20  Eric Blake  <ebb9@byu.net>
78482         test-pipe: make a bit more robust.
78483         * tests/test-pipe.c (myerr): Allow error messages regardless of
78484         what we do to stderr.
78485         (test_pipe): Rearrange to avoid deadlock.
78486         (child_main): Try a larger read, to ensure we avoided deadlock.
78487         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
78488         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
78489         if misused.
78491 2009-07-19  Jim Meyering  <meyering@redhat.com>
78493         fts: avoid false-positive cycle-detection
78494         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
78495         for each new command line argument.
78497 2009-07-19  Bruno Haible  <bruno@clisp.org>
78499         Fix build error on mingw with the modules sys_select and unistd.
78500         * modules/acl-tests (Depends-on): Add close.
78501         * modules/binary-io-tests (Depends-on): Likewise.
78502         * modules/closein-tests (Depends-on): Likewise.
78503         * modules/flock-tests (Depends-on): Likewise.
78504         * modules/fsync-tests (Depends-on): Likewise.
78505         * modules/lseek-tests (Depends-on): Likewise.
78506         * modules/pipe-tests (Depends-on): Likewise.
78507         * modules/posix_spawn-tests (Depends-on): Likewise.
78508         * modules/posix_spawnp-tests (Depends-on): Likewise.
78509         * modules/stat-time-tests (Depends-on): Likewise.
78510         * modules/yesno-tests (Depends-on): Likewise.
78512 2009-07-19  Bruno Haible  <bruno@clisp.org>
78514         Unify conditionals.
78515         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
78516         macros, not at the compiler macros.
78517         * lib/pipe.c: Likewise.
78518         * lib/execute.c: Likewise.
78519         * lib/spawni.c: Likewise.
78521 2009-07-19  Bruno Haible  <bruno@clisp.org>
78523         Fix handling of closed stdin/stdout/stderr on mingw.
78524         * lib/w32spawn.h: Include unistd.h.
78525         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
78526         file descriptor with O_NOINHERIT flag.
78527         (fd_safer_noinherit): New function, based on fd-safer.c.
78528         (dup_safer_noinherit): New function, based on dup-safer.c.
78529         (undup_safer_noinherit): New function.
78530         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
78531         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
78532         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
78533         instead of fd_safer.
78534         * tests/test-pipe.c: Include <windows.h>.
78535         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
78536         result.
78538         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
78539         from main.
78540         (test_pipe): Pass an extra argument for disambiguation.
78541         (main): Invoke parent_main or child_main.
78543         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
78544         consistently.
78546 2009-07-18  Eric Blake  <ebb9@byu.net>
78548         test-pipe: fix mingw build
78549         * tests/test-pipe.c (main): Avoid fcntl on mingw.
78551 2009-07-18  Bruno Haible  <bruno@clisp.org>
78553         * modules/pipe-tests (Makefile.am): Fix typo.
78555 2009-07-18  Eric Blake  <ebb9@byu.net>
78557         error: fix mingw build
78558         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
78559         Reported by Bruno Haible.
78561         error: avoid undefined use of stdout
78562         * lib/error.c (error, error_at_line): Check that fd 1 is open
78563         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
78564         is handling faults and the close_stdout module wants to report the
78565         detection of closed stdout as an error.
78567 2009-07-17  Eric Blake  <ebb9@byu.net>
78569         pipe: be robust in face of closed fds
78570         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
78571         should cause child to misbehave.
78572         * modules/pipe-tests: New module.
78573         * tests/test-pipe.c: New file.
78574         * tests/test-pipe.sh: New file.
78575         Reported by Akim Demaille.
78577 2009-07-14  Bruno Haible  <bruno@clisp.org>
78579         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
78580         Reported by anonymous kc.
78582 2009-07-07  Jim Meyering  <meyering@redhat.com>
78584         maint.mk: don't look for translatable strings in *.m4 or *.mk
78585         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
78586         when searching for translatable strings.
78588 2009-07-05  Jim Meyering  <meyering@redhat.com>
78590         remove superfluous parentheses in STREQ definition
78591         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
78592         * lib/getugroups.c (STREQ): Likewise.
78593         * lib/fnmatch.c (STREQ): Likewise.
78594         Spotted by Bruno Haible.
78596 2009-07-04  Jim Meyering  <meyering@redhat.com>
78598         argv-iter: new module
78599         * MODULES.html.sh: Add argv-iter.
78600         * lib/argv-iter.c, lib/argv-iter.h: New files.
78601         * modules/argv-iter: New file.
78602         * modules/argv-iter-tests: New file.
78603         * tests/test-argv-iter.c: Test it.
78605 2009-07-04  Bruno Haible  <bruno@clisp.org>
78607         Fix assertion.
78608         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
78609         contains more exact copies of a given entry than file2, leave the extra
78610         copies unpaired rather than aborting.
78611         Reported by Eric Blake.
78613 2009-07-02  Bruno Haible  <bruno@clisp.org>
78615         Speedup git-merge-changelog for git cherry-pick.
78616         * lib/git-merge-changelog.c (struct entries_mapping): New type.
78617         (entries_mapping_get): New function, extracted from compute_mapping.
78618         (entries_mapping_reverse_get): New function.
78619         (compute_mapping): Add a 'full' argument. Return the result in a
78620         'struct entries_mapping'.
78621         (main): Update. Access the mappings through entries_mapping_get.
78622         Reported by Eric Blake.
78624 2009-07-02  Bruno Haible  <bruno@clisp.org>
78626         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
78627         best_i.
78629 2009-07-02  Bruno Haible  <bruno@clisp.org>
78631         Speed up approximate search for matching ChangeLog entries.
78632         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
78633         argument. Call fstrcmp_bounded instead of fstrcmp.
78634         (compute_mapping, try_split_merged_entry, main): Update callers.
78636 2009-07-02  Bruno Haible  <bruno@clisp.org>
78638         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
78640 2009-06-30  Bruno Haible  <bruno@clisp.org>
78642         Reduce the number of uc_is_cased calls.
78643         * lib/unicase.h (casing_suffix_context_t): Add
78644         'first_char_except_ignorable' field.
78645         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
78646         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
78647         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
78648         Update initializer.
78649         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
78650         case-ignorable characters.
78651         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
78652         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
78653         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
78654         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
78655         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
78657 2009-06-30  Bruno Haible  <bruno@clisp.org>
78659         Tests for module 'unicase/ignorable'.
78660         * modules/unicase/ignorable-tests: New file.
78661         * tests/unicase/test-ignorable.c: New file, generated by
78662         gen-uni-tables.
78664         Tests for module 'unicase/cased'.
78665         * modules/unicase/cased-tests: New file.
78666         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
78667         * tests/unicase/test-predicate-part1.h: New file, derived from
78668         tests/unictype/test-predicate-part1.h.
78669         * tests/unicase/test-predicate-part2.h: New file, same as
78670         tests/unictype/test-predicate-part2.h.
78672         Fix evaluation of "Before C" condition of FINAL_SIGMA.
78673         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
78674         (output_casing_properties): New function.
78675         (main): Call it.
78676         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
78677         * lib/unicase/cased.c: Include unictype/bitmap.h.
78678         (uc_is_cased): Define through a bitmap lookup.
78679         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
78680         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
78681         (uc_is_case_ignorable): Define through a bitmap lookup.
78682         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
78683         lib/unictype/bitmap.h.
78684         (Depends-on): Add inline. Clean up.
78685         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
78686         lib/unictype/bitmap.h.
78687         (Depends-on): Add inline. Clean up.
78688         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
78689         recognition.
78690         * tests/unicase/test-u16-tolower.c (main): Likewise.
78691         * tests/unicase/test-u32-tolower.c (main): Likewise.
78693 2009-06-30  Bruno Haible  <bruno@clisp.org>
78695         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
78696         * lib/unicase/u16-casemap.c: Likewise.
78697         * lib/unicase/u32-casemap.c: Likewise.
78699 2009-06-29  Bruno Haible  <bruno@clisp.org>
78701         Define u32_casefold as a wrapper around u32_ct_casefold.
78702         * lib/unicase/u32-casefold.c: Update.
78703         * modules/unicase/u32-casefold (Depends-on): Add
78704         unicase/u32-ct-casefold, unicase/empty-prefix-context,
78705         unicase/empty-suffix-context. Clean up.
78707         Define u16_casefold as a wrapper around u16_ct_casefold.
78708         * lib/unicase/u16-casefold.c: Update.
78709         * modules/unicase/u16-casefold (Depends-on): Add
78710         unicase/u16-ct-casefold, unicase/empty-prefix-context,
78711         unicase/empty-suffix-context. Clean up.
78713         Define u8_casefold as a wrapper around u8_ct_casefold.
78714         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
78715         * lib/unicase/u8-casefold.c: Update.
78716         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
78717         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78719         Define u32_totitle as a wrapper around u32_ct_totitle.
78720         * lib/unicase/u32-totitle.c: Update.
78721         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
78722         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78724         Define u16_totitle as a wrapper around u16_ct_totitle.
78725         * lib/unicase/u16-totitle.c: Update.
78726         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
78727         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78729         Define u8_totitle as a wrapper around u8_ct_totitle.
78730         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
78731         functions.
78732         (FUNC): Delegate to U_CT_TOTITLE.
78733         * lib/unicase/u8-totitle.c: Update.
78734         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
78735         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78737         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
78738         invocation.
78739         * modules/unicase/u32-tolower (Depends-on): Add
78740         unicase/empty-prefix-context, unicase/empty-suffix-context.
78742         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
78743         invocation.
78744         * modules/unicase/u16-tolower (Depends-on): Add
78745         unicase/empty-prefix-context, unicase/empty-suffix-context.
78747         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
78748         * modules/unicase/u8-tolower (Depends-on): Add
78749         unicase/empty-prefix-context, unicase/empty-suffix-context.
78751         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
78752         invocation.
78753         * modules/unicase/u32-toupper (Depends-on): Add
78754         unicase/empty-prefix-context, unicase/empty-suffix-context.
78756         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
78757         invocation.
78758         * modules/unicase/u16-toupper (Depends-on): Add
78759         unicase/empty-prefix-context, unicase/empty-suffix-context.
78761         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
78762         * modules/unicase/u8-toupper (Depends-on): Add
78763         unicase/empty-prefix-context, unicase/empty-suffix-context.
78765         New module 'unicase/u32-ct-casefold'.
78766         * lib/unicase/u32-ct-casefold.c: New file.
78767         * modules/unicase/u32-ct-casefold: New file.
78769         New module 'unicase/u16-ct-casefold'.
78770         * lib/unicase/u16-ct-casefold.c: New file.
78771         * modules/unicase/u16-ct-casefold: New file.
78773         New module 'unicase/u8-ct-casefold'.
78774         * lib/unicase/u8-ct-casefold.c: New file.
78775         * lib/unicase/u-ct-casefold.h: New file, derived from
78776         lib/unicase/u-casefold.h.
78777         * modules/unicase/u8-ct-casefold: New file.
78779         New module 'unicase/u32-ct-totitle'.
78780         * lib/unicase/u32-ct-totitle.c: New file.
78781         * modules/unicase/u32-ct-totitle: New file.
78783         New module 'unicase/u16-ct-totitle'.
78784         * lib/unicase/u16-ct-totitle.c: New file.
78785         * modules/unicase/u16-ct-totitle: New file.
78787         New module 'unicase/u8-ct-totitle'.
78788         * lib/unicase/u8-ct-totitle.c: New file.
78789         * lib/unicase/u-ct-totitle.h: New file, derived from
78790         lib/unicase/u-totitle.h.
78791         * modules/unicase/u8-ct-totitle: New file.
78793         New module 'unicase/u32-ct-tolower'.
78794         * lib/unicase/u32-ct-tolower.c: New file.
78795         * modules/unicase/u32-ct-tolower: New file.
78797         New module 'unicase/u16-ct-tolower'.
78798         * lib/unicase/u16-ct-tolower.c: New file.
78799         * modules/unicase/u16-ct-tolower: New file.
78801         New module 'unicase/u8-ct-tolower'.
78802         * lib/unicase/u8-ct-tolower.c: New file.
78803         * modules/unicase/u8-ct-tolower: New file.
78805         New module 'unicase/u32-ct-toupper'.
78806         * lib/unicase/u32-ct-toupper.c: New file.
78807         * modules/unicase/u32-ct-toupper: New file.
78809         New module 'unicase/u16-ct-toupper'.
78810         * lib/unicase/u16-ct-toupper.c: New file.
78811         * modules/unicase/u16-ct-toupper: New file.
78813         New module 'unicase/u8-ct-toupper'.
78814         * lib/unicase/u8-ct-toupper.c: New file.
78815         * modules/unicase/u8-ct-toupper: New file.
78817         Add context arguments to u*_casemap functions.
78818         * lib/unicase/unicasemap.h: Include unicase.h.
78819         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
78820         suffix_context arguments.
78821         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
78822         functions.
78823         (FUNC): Add prefix_context and suffix_context arguments. Use
78824         uc_is_cased and uc_is_case_ignorable.
78825         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
78826         * lib/unicase/u16-casemap.c: Likewise.
78827         * lib/unicase/u32-casemap.c: Likewise.
78828         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
78829         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78830         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
78831         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78832         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
78833         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78835         New module 'unicase/u32-suffix-context'.
78836         * lib/unicase/u32-suffix-context.c: New file.
78837         * modules/unicase/u32-suffix-context: New file.
78839         New module 'unicase/u16-suffix-context'.
78840         * lib/unicase/u16-suffix-context.c: New file.
78841         * modules/unicase/u16-suffix-context: New file.
78843         New module 'unicase/u8-suffix-context'.
78844         * lib/unicase/u8-suffix-context.c: New file.
78845         * lib/unicase/u-suffix-context.h: New file.
78846         * modules/unicase/u8-suffix-context: New file.
78848         New module 'unicase/empty-suffix-context'.
78849         * lib/unicase/empty-suffix-context.c: New file.
78850         * modules/unicase/empty-suffix-context: New file.
78852         New module 'unicase/u32-prefix-context'.
78853         * lib/unicase/u32-prefix-context.c: New file.
78854         * modules/unicase/u32-prefix-context: New file.
78856         New module 'unicase/u16-prefix-context'.
78857         * lib/unicase/u16-prefix-context.c: New file.
78858         * modules/unicase/u16-prefix-context: New file.
78860         New module 'unicase/u8-prefix-context'.
78861         * lib/unicase/u8-prefix-context.c: New file.
78862         * lib/unicase/u-prefix-context.h: New file.
78863         * lib/unicase/context.h: New file.
78864         * modules/unicase/u8-prefix-context: New file.
78866         New module 'unicase/empty-prefix-context'.
78867         * lib/unicase/empty-prefix-context.c: New file.
78868         * modules/unicase/empty-prefix-context: New file.
78870         New module 'unicase/ignorable'.
78871         * lib/unicase/ignorable.c: New file.
78872         * modules/unicase/ignorable: New file.
78874         New module 'unicase/cased'.
78875         * lib/unicase/caseprop.h: New file.
78876         * lib/unicase/cased.c: New file.
78877         * modules/unicase/cased: New file.
78879         New functions for case mapping of substrings.
78880         * lib/unicase.h (casing_prefix_context_t): New type.
78881         (unicase_empty_prefix_context): New variable.
78882         (u8_casing_prefix_context, u16_casing_prefix_context,
78883         u32_casing_prefix_context, u8_casing_prefixes_context,
78884         u16_casing_prefixes_context, u32_casing_prefixes_context): New
78885         declarations.
78886         (casing_suffix_context_t): New type.
78887         (unicase_empty_suffix_context): New variable.
78888         (u8_casing_suffix_context, u16_casing_suffix_context,
78889         u32_casing_suffix_context, u8_casing_suffixes_context,
78890         u16_casing_suffixes_context, u32_casing_suffixes_context,
78891         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
78892         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
78893         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
78894         declarations.
78896 2009-06-28  Jim Meyering  <meyering@redhat.com>
78898         boostrap: indent only with spaces
78899         * build-aux/bootstrap: Indent only with spaces, never TABs.
78901         bootstrap: split long lines
78902         * build-aux/bootstrap: Keep line length < 80.
78904         bootstrap: sync from coreutils
78905         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
78906         just as autoreconf does.  Verify a list of prerequisite
78907         package-name,version-number pairs if defined in bootstrap.conf.
78908         Refer to README-prereq, if prerequisites are not satisfied.
78910 2009-06-27  Eric Blake  <ebb9@byu.net>
78912         tests: add test for bogus NULL definition
78913         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
78914         * tests/test-stdlib.c: Likewise.
78915         * tests/test-string.c: Likewise.
78916         * tests/test-locale.c: Likewise.
78917         * tests/test-unistd.c: Likewise.
78918         * modules/stdio-tests (Depends-on): Add verify.
78919         * modules/stdlib-tests (Depends-on): Likewise.
78920         * modules/string-tests (Depends-on): Likewise.
78921         * modules/locale-tests (Depends-on): Likewise.
78922         * modules/unistd-tests (Depends-on): Likewise.
78924 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
78926         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
78927         self-explaining comment.
78928         * m4/selinux-selinux-h: Update serial.
78929         (gl_LIBSELINUX): New macro, adding a warning for missing development
78930         packages to code extracted from...
78931         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
78932         Add warning for missing development packages here, too.
78934 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
78936         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
78938 2009-06-25  Eric Blake  <ebb9@byu.net>
78940         version-etc: fix regression
78941         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
78942         gcc.
78943         (version_etc): Use it, to catch bugs with trailing NULL.
78944         * lib/version-etc.c (version_etc_arn): Delete unused argument.
78945         (version_etc_va): Fix logic bug.
78946         * modules/version-etc-tests: Add test.
78947         * tests/test-version-etc.c: New file.
78948         * tests/test-version-etc.sh: Likewise.
78950 2009-06-25  Sam Steingold  <sds@gnu.org>
78952         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
78953         mbtowc declaration.
78955 2009-06-25  Eric Blake  <ebb9@byu.net>
78957         fpurge: migrate into <stdio.h>
78958         * lib/fpurge.h: Delete...
78959         * lib/stdio.in.h (fpurge): ...and declare here, instead.
78960         * lib/fpurge.c (fpurge): Change declaring header.
78961         * modules/fpurge (Files): Drop deleted file.
78962         (Depends-on): Add stdio.
78963         (configure.ac): Set witness.
78964         * modules/stdio (Makefile.am): Support fpurge macros.
78965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
78966         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
78967         * lib/fflush.c: Update client.
78968         * tests/test-fpurge.c: Likewise.
78969         * NEWS: Mention the change.
78971 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78973         * lib/argp-version-etc.c (program_authors): Add const
78974         qualifier.
78975         * lib/version-etc.c: Fix typos in the comments.
78976         * modules/argp-version-etc: Depends on version-etc.
78978 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78980         argp-version-etc: new module.
78982         * lib/argp-version-etc.c: New file.
78983         * lib/argp-version-etc.h: New file.
78984         * modules/argp-version-etc: New file.
78985         * modules/argp-version-etc-tests: New file.
78986         * tests/test-argp-version-etc.c: New test.
78987         * tests/test-argp-version-etc-1.sh: New test.
78989 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78991         Provide additional interfaces and documentation for version-etc
78992         module.
78994         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
78995         interfaces.
78996         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
78997         prototypes.
78999 2009-06-24  Bruno Haible  <bruno@clisp.org>
79001         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
79002         HAVE_LIB${NAME} macro.
79003         Reported by Sam Steingold <sds@gnu.org>.
79005 2009-06-23  Simon Josefsson  <simon@josefsson.org>
79007         * modules/hash-tests (test_hash_LDADD): Link to libintl when
79008         needed.
79010 2009-06-21  Bruno Haible  <bruno@clisp.org>
79012         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
79013         work.
79014         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
79015         together with LIB${NAME}, LTLIB${NAME}.
79016         Reported by Sam Steingold <sds@gnu.org>.
79018 2009-06-20  Jim Meyering  <meyering@redhat.com>
79020         tests: make sc_require_test_exit_idiom more generic
79021         * top/maint.mk (Exit_witness_file): New overridable variable.
79022         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
79023         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
79025 2009-06-19  Jim Meyering  <meyering@redhat.com>
79027         hash: reverse order of src/dst parameters in an internal interface
79028         * lib/hash.c (transfer_entries): Reverse order of parameters to
79029         put DST before SRC.  Adjust callers.
79031         tests: test-hash: avoid wholesale duplication
79032         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
79033         Instead, use a loop and add a single conditional.
79035         tests: test-hash: allow seed selection via a command line argument
79036         * tests/test-hash.c (get_seed): New function.
79037         (main): Use it.
79039 2009-06-19  Eric Blake  <ebb9@byu.net>
79041         hash: avoid memory leak on allocation failure
79042         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
79043         failure.  Factor repeated algorithm...
79044         (transfer_entries): ...into new helper routine.
79045         (hash_delete): React to hash_rehash return value.
79047         hash: reduce memory pressure in hash_rehash no-op case
79048         * lib/hash.c (next_prime): Avoid overflow.
79049         (hash_initialize): Factor bucket size computation...
79050         (compute_bucket_size): ...into new helper function.
79051         (hash_rehash): Use new function and open coding to reduce memory
79052         pressure, and avoid a memory leak in USE_OBSTACK code.
79053         Reported by Jim Meyering.
79055 2009-06-18  Eric Blake  <ebb9@byu.net>
79057         hash: make rotation more obvious
79058         * modules/hash (Depends-on): Add bitrotate and stdint.
79059         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
79060         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
79061         (SIZE_MAX): Rely on headers for definition.
79062         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
79063         (raw_hasher): Use rotr_sz.
79064         Suggested by Jim Meyering.
79066         hash: fix memory leak in last patch
79067         * lib/hash.c (hash_rehash): Avoid memory leak.
79069         hash: avoid no-op rehashing
79070         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
79072         hash: provide default callback functions
79073         * lib/hash.c (raw_hasher, raw_comparator): New functions.
79074         (hash_initialize): Use them as defaults.
79075         * tests/test-hash.c (main): Test this.
79077         hash: minor optimization
79078         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
79079         when possible.
79080         (hash_initialize): Document this promise.
79081         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
79082         * tests/test-hash.c (hash_compare_strings): Test this.
79084 2009-06-18  Bruno Haible  <bruno@clisp.org>
79086         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
79087         going to be replaced anyway.
79089 2009-06-18  Bruno Haible  <bruno@clisp.org>
79091         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
79092         in one place.
79093         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
79094         be replaced anyway.
79096 2009-06-18  Eric Blake  <ebb9@byu.net>
79098         hash: check for resize before insertion
79099         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
79100         threshold before insertion, so that a pathological hash_rehash
79101         that fills every bucket can still trigger another rehash.
79103 2009-06-18  Jim Meyering  <meyering@redhat.com>
79105         hash-tests: add a loop around the small tests
79106         * tests/test-hash.c (main): Repeat small tests with selected
79107         small initial table sizes.
79109 2009-06-17  Eric Blake  <ebb9@byu.net>
79111         hash: minor cleanups
79112         * lib/hash.h (hash_entry): Make opaque, by moving...
79113         * lib/hash.c (hash_entry): ...here.
79114         (hash_insert): Clarify restrictions on what can be inserted.
79115         (hash_get_next): Clarify when it is safe to remove an element
79116         during traversal.
79117         (check_tuning): Skip verification when tuning is known safe.
79118         (hash_initialize): Clarify restrictions on tuning.
79120 2009-06-17  Jim Meyering  <jim@meyering.net>
79121         and Eric Blake  <ebb9@byu.net>
79123         hash-tests: new module
79124         * modules/hash-tests: New file.
79125         * tests/test-hash.c: New file.
79127 2009-06-17  Eric Blake  <ebb9@byu.net>
79129         strstr-simple: document new module
79130         * MODULES.html.sh: Document new module.
79132         strstr, strcasestr: replace on platforms with broken memchr
79133         * modules/strstr: Split into...
79134         * modules/strstr-simple: ...new module that does not care about
79135         performance, but does care about glibc bug.
79136         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
79137         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
79138         if platform memchr is broken, per Debian bug 521737.
79139         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
79140         memchr.
79141         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
79142         * doc/posix-functions/strstr.texi (strstr): Document the fix.
79143         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
79144         * modules/mountlist (Depends-on): Add strstr-simple.
79145         * modules/gen-uni-tables (Depends-on): Likewise.
79146         * modules/argz (Depends-on): Add strstr.
79148 2009-06-17  Bruno Haible  <bruno@clisp.org>
79150         * modules/posix_spawn-internal (Depends-on): Add errno.
79152 2009-06-17  Bruno Haible  <bruno@clisp.org>
79154         Define missing ESTALE on Interix 3.5.
79155         * lib/errno.in.h (ESTALE): Assign a value if missing.
79156         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
79157         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
79158         missing.
79159         * doc/posix-headers/errno.texi: Mention the Interix bug.
79160         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
79162 2009-06-15  Eric Blake  <ebb9@byu.net>
79164         memchr, memchr2: add valgrind exception
79165         * lib/memchr.valgrind: New file.
79166         * lib/memchr2.valgrind: New file.
79167         * modules/memchr (Files): Distribute valgrind file.
79168         * modules/memchr2 (Files): Likewise.
79170         docs: memchr is no longer obsolete
79171         * MODULES.html.sh: Move memchr from obsolete to string.h section.
79172         * lib/string.in.h (memchr): Simplify logic.
79174 2009-06-14  Jim Meyering  <meyering@redhat.com>
79176         link-follow: fix the "checking..." message to not mention trailing slash
79177         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
79178         never considered trailing slashes.
79180 2009-06-14  Bruno Haible  <bruno@clisp.org>
79182         * m4/memchr.m4: Mention also the bug on IA-64.
79183         * doc/posix-functions/memchr.texi: Likewise.
79185 2009-06-12  Eric Blake  <ebb9@byu.net>
79187         memchr: detect broken x86_64 and alpha implementations
79188         * modules/memchr-tests (Depends-on): Move mmap detection...
79189         * modules/memchr (Depends-on): ...here.
79190         (configure.ac): Set indicator.
79191         * lib/string.in.h (memchr): Declare replacement.
79192         * modules/string (Makefile.am): Trigger replacement.
79193         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
79194         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
79195         bugs.
79196         * doc/posix-functions/memchr.texi (memchr): Document the bug.
79197         * modules/getpagesize (License): Relax license.
79199 2009-06-11  Bruno Haible  <bruno@clisp.org>
79201         * lib/idpriv.h: Add more references.
79203 2009-06-08  Bruno Haible  <bruno@clisp.org>
79205         Tests for module 'idpriv-droptemp'.
79206         * modules/idpriv-droptemp-tests: New file.
79207         * tests/test-idpriv-droptemp.sh: New file.
79208         * tests/test-idpriv-droptemp.su.sh: New file.
79209         * tests/test-idpriv-droptemp.c: New file.
79211         New module 'idpriv-droptemp'.
79212         * lib/idpriv-droptemp.c: New file.
79213         * modules/idpriv-droptemp: New file.
79215 2009-06-08  Bruno Haible  <bruno@clisp.org>
79217         Tests for module 'idpriv-drop'.
79218         * modules/idpriv-drop-tests: New file.
79219         * tests/test-idpriv-drop.sh: New file.
79220         * tests/test-idpriv-drop.su.sh: New file.
79221         * tests/test-idpriv-drop.c: New file.
79223         New module 'idpriv-drop'.
79224         * lib/idpriv.h: New file.
79225         * lib-idpriv-drop.c: New file.
79226         * m4/idpriv.m4: New file.
79227         * modules/idpriv-drop: New file.
79229 2009-06-08  Bruno Haible  <bruno@clisp.org>
79231         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
79232         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79233         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79234         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79235         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79236         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79237         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79239 2009-06-08  Eric Blake  <ebb9@byu.net>
79241         test-strstr: use memory fence, when possible
79242         * tests/test-strstr.c (main): Use memory fence, in order to be
79243         more likely to trigger Debian bug 521737.
79244         * modules/strstr-tests (Files): Pull in additional files.
79246         memchr: no longer obsolete, for wider field testing
79247         * modules/memchr (Status, Notice): Delete, this module is no
79248         longer obsolete.
79249         * modules/vasnprintf (Depends-on): Add memchr.
79251 2009-06-07  Jim Meyering  <meyering@redhat.com>
79253         hash: declare some functions with the warn_unused_result attribute
79254         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
79256 2009-06-07  Bruno Haible  <bruno@clisp.org>
79258         * tests/test-alignof.c: Don't test int64_t if it does not exist.
79259         Reported by Eric Blake.
79261 2009-06-06  Eric Blake  <ebb9@byu.net>
79263         test-alignof: fix typo with long double
79264         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
79265         compiler error.
79267 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
79269         Escape non-texinfo { and }s.
79270         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
79271         markup error.
79273 2009-06-04  Jim Meyering  <meyering@redhat.com>
79275         gitlog-to-changelog: don't infloop on an empty commit log
79276         * build-aux/gitlog-to-changelog: Warn about an empty log message.
79277         Reported by Boris Petersen <transacid@centerim.org>.
79279 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
79281         version-etc: extend for packagers
79282         Add three new configure options, intended for packagers:
79283           --with-packager="packager name"
79284           --with-packager-version="packager-specific version"
79285           --with-packager-bug-reports="packager bug reporting"
79286         An example with coreutils:
79287           $ ./configure \
79288             --with-packager=Gentoo \
79289             --with-packager-bug-report=http://bugs.gentoo.org/ \
79290             --with-packager-version="patchset 1.6"
79291           $ ./src/ls --version | head -n2
79292           ls (GNU coreutils) 7.1-dirty
79293           Packaged by Gentoo (patchset 1.6)
79294         Note that the bug reporting info via --help doesn't show up because
79295         coreutils uses its own custom emit_bug_reporting_address() implementation
79296         in src/system.h.  If it didn't, it'd look like:
79297           $ ./src/ls --help | tail -n4
79298           Report bugs to <bug-coreutils@gnu.org>.
79299           Report Gentoo bugs to <http://bugs.gentoo.org/>.
79300           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
79301           General help using GNU software: <http://www.gnu.org/gethelp/>.
79302         * lib/version-etc.c: Print new information, if provided.
79303         * m4/version-etc.m4: New file.
79304         * modules/version-etc (Files): Add m4/version-etc.m4.
79305         (configure.ac): Add gl_VERSION_ETC.
79307 2009-05-31  Bruno Haible  <bruno@clisp.org>
79309         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
79310         and 'int64_t'.
79311         * modules/alignof-tests (Dependencies): Add stdint.
79312         Reported by Eric Blake.
79314 2009-05-31  Bruno Haible  <bruno@clisp.org>
79316         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
79317         restriction due to compiler bugs.
79318         Reported by Eric Blake.
79320 2009-05-31  Simon Josefsson  <simon@josefsson.org>
79321             Bruno Haible  <bruno@clisp.org>
79323         Fix test-alignof failure.
79324         * lib/alignof.h (alignof_slot): New macro.
79325         (alignof_type): New macro, with the same semantics as the previous
79326         'alignof'.
79327         (alignof): Alias to alignof_slot.
79328         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
79329         check that the results are usable as constant expressions.
79331 2009-05-31  Bruno Haible  <bruno@clisp.org>
79333         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
79334         * tests/test-memchr.c (main): Check that memchr does not read past the
79335         first occurrence of the byte.
79336         * tests/test-strstr.c (main): Update comment.
79337         Suggested by Eric Blake.
79339 2009-05-30  Bruno Haible  <bruno@clisp.org>
79341         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
79342         detail how to use dumpbin.
79343         Reported by David Byron <dbyron@dbyron.com>.
79345 2009-06-02  Simon Josefsson  <simon@josefsson.org>
79347         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
79349 2009-06-02  Simon Josefsson  <simon@josefsson.org>
79351         * m4/manywarnings.m4: Add GCC 4.4 warnings.
79353 2009-05-28  Bruno Haible  <bruno@clisp.org>
79355         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
79356         build-aux/ files.
79358 2009-05-28  Simon Josefsson  <simon@josefsson.org>
79360         * gnulib-tool (func_import): Transform license on build-aux/ files too.
79362 2009-05-27  Simon Josefsson  <simon@josefsson.org>
79364         * gnulib-tool (sed_transform_main_lib_file)
79365         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
79366         regexps.
79368 2009-05-26  Simon Josefsson  <simon@josefsson.org>
79370         * tests/test-strstr.c: Add another self-test.
79371         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
79372         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
79374 2009-05-23  Bruno Haible  <bruno@clisp.org>
79376         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
79377         change.
79379 2009-05-21  Bruno Haible  <bruno@clisp.org>
79381         Simplify use of mode_t varargs.
79382         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
79383         uses 'mode_t' or 'int'.
79384         * lib/openat.c (openat): Likewise.
79385         * lib/open-safer.c (open_safer): Likewise.
79386         * m4/mode_t.m4: New file.
79387         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
79388         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
79389         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
79390         * modules/open (Files): Add m4/mode_t.m4.
79391         * modules/openat (Files): Likewise.
79392         * modules/fcntl-safer (Files): Likewise.
79393         Suggested by Eric Blake.
79395 2009-05-21  Pádraig Brady  <P@draigbrady.com>
79397         * doc/glibc-functions/fallocate.texi: New file.
79398         * doc/gnulib.texi: Include it.
79400 2009-05-21  Eric Blake  <ebb9@byu.net>
79401             Bruno Haible  <bruno@clisp.org>
79403         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
79404         invocations.
79405         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79407 2009-05-21  Eric Blake  <ebb9@byu.net>
79408             Bruno Haible  <bruno@clisp.org>
79410         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
79411         include_next. Fix of 2008-11-20 commit.
79412         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
79413         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
79414         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
79415         NEXT_MATH_H.
79416         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
79417         instead of NEXT_MATH_H.
79419 2009-05-21  Bruno Haible  <bruno@clisp.org>
79421         Avoid redefinition warnings for SIZE_MAX.
79422         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
79423         Reported by Simon Josefsson.
79425 2009-05-21  Bruno Haible  <bruno@clisp.org>
79427         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
79428         AC_CACHE_VAL.
79430 2009-05-20  Bruno Haible  <bruno@clisp.org>
79432         Make zeroptr.h work on mingw.
79433         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
79434         mprotect.
79435         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
79436         * modules/memchr2-tests (configure.ac): Likewise.
79437         * modules/memcmp-tests (configure.ac): Likewise.
79438         * modules/memmem-tests (configure.ac): Likewise.
79439         * modules/memrchr-tests (configure.ac): Likewise.
79440         Reported by Simon Josefsson.
79442 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79444         * tests/test-glob.c: Include string.h for strcmp prototype.
79446 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79448         * modules/getdelim (Depends-on): Add explicit stdint, although it
79449         was implicitly already pulled in via realloc-posix.
79450         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
79452 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79454         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
79455         G. Christensen" <tgc@jupiterrise.com>.
79456         * m4/sys_socket_h.m4: Check for sa_family_t.
79457         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
79458         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
79459         * tests/test-sys_socket.c: Check that sa_family_t works.
79461 2009-05-18  Eric Blake  <ebb9@byu.net>
79463         maint.mk: allow gnulib_dir in VPATH build
79464         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
79466 2009-05-15  Jim Meyering  <meyering@redhat.com>
79468         maint.mk: Give gnulib_dir a default definition.
79469         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
79470         Thus, most packages no longer need to specify this variable in cfg.mk
79472 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
79474         rename.m4: fix typos that would make non-mingw cross-configure fail
79475         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
79477 2009-05-13  Eric Blake  <ebb9@byu.net>
79479         mmap-anon: avoid out-of-order autoconf expansion
79480         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
79481         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
79482         * modules/memchr-tests (Depends-on): Add extensions.
79483         * modules/memchr2-tests (Depends-on): Add extensions.
79484         * modules/memcmp-tests (Depends-on): Add extensions.
79485         * modules/memmem-tests (Depends-on): Add extensions.
79486         * modules/memrchr-tests (Depends-on): Add extensions.
79488 2009-05-13  Bruno Haible  <bruno@clisp.org>
79490         Make some tests ISO C 99 compliant.
79491         * tests/zerosize-ptr.h: New file.
79492         * tests/test-memchr.c: Include zerosize-ptr.h.
79493         (main): Use a zero-size object pointer instead of NULL.
79494         * tests/test-memchr2.c: Include zerosize-ptr.h.
79495         (main): Use a zero-size object pointer instead of NULL.
79496         * tests/test-memcmp.c: Include zerosize-ptr.h.
79497         (main): Use a zero-size object pointer instead of NULL.
79498         * tests/test-memmem.c: Include zerosize-ptr.h.
79499         (main): Use a zero-size object pointer instead of NULL.
79500         * tests/test-memrchr.c: Include zerosize-ptr.h.
79501         (main): Use a zero-size object pointer instead of NULL.
79502         * modules/memchr-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/memchr2-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.
79510         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
79511         m4/mmap-anon.m4.
79512         (Depends-on): Add getpagesize.
79513         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79514         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
79515         m4/mmap-anon.m4.
79516         (Depends-on): Add getpagesize.
79517         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79518         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
79519         m4/mmap-anon.m4.
79520         (Depends-on): Add getpagesize.
79521         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79523 2009-05-12  Bruno Haible  <bruno@clisp.org>
79525         Tests for module 'alignof'.
79526         * modules/alignof-tests: New file.
79527         * tests/test-alignof.c: New file.
79529 2009-05-12  Bruno Haible  <bruno@clisp.org>
79531         Fix alignof macro.
79532         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
79533         vendor compilers that are always correct.
79535 2009-05-12  Bruno Haible  <bruno@clisp.org>
79537         Make the MAP_ANONYMOUS detection work on HP-UX 11.
79538         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
79539         not whether its fully works.
79541 2009-05-12  Bruno Haible  <bruno@clisp.org>
79543         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
79545 2009-05-12  Jim Meyering  <meyering@redhat.com>
79547         * top/maint.mk: Adjust backslash alignment.
79549 2009-05-11  Simon Josefsson  <simon@josefsson.org>
79551         * top/maint.mk: Make $(srcdir)/build-aux configurable.
79553 2009-05-11  Eric Blake  <ebb9@byu.net>
79555         argp: avoid undefined behavior
79556         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
79557         macros.
79559 2009-05-08  Simon Josefsson  <simon@josefsson.org>
79561         * tests/test-vc-list-files-git.sh: Do git config of user.email and
79562         user.name to prevent git commit from complaining.
79564 2009-05-10  Bruno Haible  <bruno@clisp.org>
79566         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
79567         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
79568         it rewrites every file name only once.
79569         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
79571 2009-05-08  Bruno Haible  <bruno@clisp.org>
79573         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
79574         instead of 'max'.
79576 2009-05-08  Simon Josefsson  <simon@josefsson.org>
79578         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
79579         sockaddr_storage test.
79581 2009-05-07  Simon Josefsson  <simon@josefsson.org>
79583         * modules/sys_socket (Makefile.am): Substitute
79584         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
79585         * m4/sys_socket_h.m4: Check for sockaddr_storage.
79586         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
79587         * tests/test-sys_socket.c: Check sockaddr_storage.
79589 2009-05-08  Bruno Haible  <bruno@clisp.org>
79591         New module 'alignof'.
79592         * lib/alignof.h: New file.
79593         * modules/alignof: New file.
79595 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79596             Bruno Haible  <bruno@clisp.org>
79598         Fix test-file-has-acl on FreeBSD.
79599         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
79600         mask is implicitly added.
79601         * tests/test-file-has-acl.c: Include <signal.h>.
79602         (main): Terminate the test after 5 seconds.
79603         * modules/acl-tests (configure.ac): Check for alarm function.
79605 2009-05-04  Bruno Haible  <bruno@clisp.org>
79607         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
79608         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
79609         * modules/errno (configure.ac): Drop AC_REQUIRE.
79610         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
79611         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
79613 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79615         * modules/glob-tests: New module.
79616         * tests/test-glob.c: Add.
79618 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79620         * modules/fnmatch-tests: New module.
79621         * tests/test-fnmatch.c: Add.
79623 2009-05-04  Eric Blake  <ebb9@byu.net>
79625         maint: make the new no-submodule-changes rule VPATH-safe
79626         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
79628 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79629             Bruno Haible  <bruno@clisp.org>
79631         acl: Fix infinite loop on FreeBSD.
79632         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
79633         of return value from acl_get_entry.
79634         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
79635         Likewise.
79637 2009-05-03  Bruno Haible  <bruno@clisp.org>
79639         * lib/acl-internal.h (acl_entries): Clarify return value.
79640         * lib/acl_entries.c (acl_entries): Likewise.
79642 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79644         Bug fix in acl module.
79645         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
79647 2009-05-03  Bruno Haible  <bruno@clisp.org>
79649         Create gperf-generated file in the source dir, not in the build dir.
79650         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
79651         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
79652         * modules/unicase/locale-language (unicase/locale-languages.h):
79653         Likewise.
79654         * modules/unicase/special-casing (unicase/special-casing-table.h):
79655         Likewise.
79656         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
79657         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
79658         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
79659         Reported by Ralf Wildenhues.
79661 2009-05-03  Bruno Haible  <bruno@clisp.org>
79663         * modules/fnmatch (Description, configure.ac): Taken from
79664         fnmatch-posix.
79665         * modules/fnmatch-posix: Turn into a symbolic reference to the
79666         'fnmatch' module, and deprecate.
79667         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
79669 2009-05-03  Bruno Haible  <bruno@clisp.org>
79671         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
79672         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
79673         Reported by Ralf Wildenhues.
79675 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79677         * m4/fnmatch.m4: Fix fnmatch re-define.
79679 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79681         priv-set: new module and tests; adapt write-any-file
79682         * lib/priv-set.c: New file.
79683         * lib/priv-set.h: New file.
79684         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
79685         * lib/write-any-file.c: Simplify by using priv-set module.
79686         * m4/priv-set.m4: New file.
79687         * modules/priv-set: New file.
79688         * modules/unlinkdir: Add dependency on priv-set module.
79689         * modules/write-any-file: Likewise.
79691         Tests for module 'priv-set'.
79692         * modules/priv-set-tests: New file.
79693         * tests/test-priv-set.c: New file.
79695 2009-05-03  Jim Meyering  <meyering@redhat.com>
79696             Bruno Haible  <bruno@clisp.org>
79698         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
79699         use the converted UTF-8 variant of the name instead.
79701 2009-05-03  Jim Meyering  <meyering@redhat.com>
79703         tests: tighten some getdate tests
79704         * tests/test-getdate.c (main): Tighten tests: require equality,
79705         not just greater than.  Set TZ envvar to UTC0.
79707 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
79709         getdate: correctly interpret "next monday" when run on a Monday
79710         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
79711         that e.g., "next tues" (when run on a tuesday) results in a date
79712         that is one week in the future, and not today's date.
79713         I.e., add a week when the wday is the same as the current one.
79714         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
79715         and earlier by Martin Bernreuther and Jan Minář.
79716         * tests/test-getdate.c (main): Check that "next DAY" is always in
79717         the future and that "last DAY" is always in the past.
79719 2009-05-02  Jim Meyering  <meyering@redhat.com>
79721         build: ensure that a release build fails when a submodule is unclean
79722         * top/maint.mk (no-submodule-changes): New rule.
79723         (alpha beta major): Depend on it.
79725 2009-05-02  Bruno Haible  <bruno@clisp.org>
79727         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
79728         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
79729         shell variable gl_fnmatch_required to detect which variant is
79730         requested.
79731         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
79732         gl_FUNC_FNMATCH_POSIX.
79733         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
79734         exclude fnmatch-posix.
79736 2009-05-02  Bruno Haible  <bruno@clisp.org>
79738         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
79739         * modules/mbsrtowcs (License): Change to LGPLv2+.
79740         * modules/strnlen1 (License): Likewise.
79741         Reported by Simon Josefsson.
79743 2009-05-02  Bruno Haible  <bruno@clisp.org>
79745         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
79746         "cross".
79747         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
79748         gnulib-tool was called with option --source-base=lib.
79750 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79752         Use automake *-local hooks without commands, for extensibility.
79753         * modules/localcharset (Makefile.am): Rename install-exec-local
79754         rule to install-exec-localcharset, and make it a prerequisite of
79755         install-exec-local.  Likewise, rename the uninstall-local rule to
79756         uninstall-localcharset, and make it a prerequisite of the former.
79758 2009-05-01  Bruno Haible  <bruno@clisp.org>
79760         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
79761         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
79762         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
79763         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
79764         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
79765         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
79766         m4/locale-zh.m4, m4/codeset.m4.
79768         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
79769         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
79770         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
79771         m4/locale-zh.m4.
79773         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
79774         REPLACE_WCRTOMB if mbstate_t must be replaced.
79775         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
79776         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
79778 2009-05-01  Bruno Haible  <bruno@clisp.org>
79780         Avoid compiler warnings when redefining macros defined by <libintl.h>.
79781         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
79782         dngettext, dcngettext, textdomain, bindtextdomain,
79783         bind_textdomain_codeset): Undefine before redefining.
79785 2009-04-30  Bruno Haible  <bruno@clisp.org>
79787         Fix bug introduced on 2009-04-25.
79788         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
79789         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
79790         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
79791         is defined.
79792         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
79793         is defined.
79794         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
79795         is defined.
79796         Reported by Elbert_Pol <elbert.pol@gmail.com>.
79798 2009-04-28  Bruno Haible  <bruno@clisp.org>
79800         Comment tweaks.
79801         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
79802         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
79803         * lib/unicase.h (u*_casexfrm): Likewise.
79804         Reported by Paolo Bonzini.
79806 2009-04-28  Bruno Haible  <bruno@clisp.org>
79808         Fix a compilation error.
79809         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
79810         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
79811         Reported by Jim Meyering.
79813 2009-04-27  Bruno Haible  <bruno@clisp.org>
79815         New module 'libunistring'.
79816         * modules/libunistring: New file.
79817         * m4/libunistring.m4: New file.
79818         * MODULES.html.sh (Unicode string functions): Add it.
79820 2009-04-27  Eric Blake  <ebb9@byu.net>
79822         maint.mk: allow package-specific header to provide <config.h>
79823         * top/maint.mk (sc_require_config_h): New variable.
79824         (sc_require_config_h, sc_require_config_h_first): Use it.
79826 2009-04-27  Simon Josefsson  <simon@josefsson.org>
79828         * top/maint.mk (sc_avoid_if_before_free): Except
79829         useless-if-before-free script.
79831 2009-04-27  Eric Blake  <ebb9@byu.net>
79833         maintainer-makefile: depend on all required helper scripts
79834         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
79835         useless-if-before-free.
79836         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
79837         version, rather than assuming gnulib checkout is available.
79838         Reported by Simen Josefsson.
79840 2009-04-26  Bruno Haible  <bruno@clisp.org>
79842         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
79843         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
79844         "../" or "..".
79846 2009-04-26  Bruno Haible  <bruno@clisp.org>
79848         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
79849         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
79850         AC_LIB_HAVE_LINKFLAGS.
79852 2009-04-26  Bruno Haible  <bruno@clisp.org>
79854         Simplify calling convention of u*_conv_from_encoding.
79855         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
79856         u32_conv_from_encoding): Expect a resultbuf argument and return the
79857         result directly as a pointer.
79858         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
79859         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
79860         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
79861         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
79862         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
79863         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
79864         Update.
79865         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
79866         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
79867         * lib/vasnprintf.c (VASNPRINTF): Update.
79868         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
79869         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
79870         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
79871         * NEWS: Mention the change.
79873 2009-04-26  Bruno Haible  <bruno@clisp.org>
79875         Simplify calling convention of u*_conv_to_encoding.
79876         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
79877         u32_conv_to_encoding): Expect a resultbuf argument and return the
79878         result directly as a pointer.
79879         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
79880         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
79881         freeing scaled_offsets if mem_iconveha failed.
79882         * lib/unicase/u-casexfrm.h (FUNC): Update.
79883         * lib/uninorm/u-normxfrm.h (FUNC): Update.
79884         * lib/vasnprintf.c (VASNPRINTF): Update.
79885         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
79886         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
79887         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
79888         * NEWS: Mention the change.
79890 2009-04-26  Bruno Haible  <bruno@clisp.org>
79892         Avoid test failures on AIX and OSF/1.
79893         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
79894         malloc(0).
79895         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
79896         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
79897         Likewise.
79898         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
79899         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
79900         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
79901         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
79902         * doc/posix-functions/malloc.texi: Document the portability problem
79903         related to malloc(0).
79905 2009-04-26  Bruno Haible  <bruno@clisp.org>
79907         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
79908         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
79909         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
79911 2009-04-25  Bruno Haible  <bruno@clisp.org>
79913         Avoid link error when creating a namespace clean library.
79914         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
79915         as macro with arguments if already defined as an alias.
79916         * lib/signbitf.c (gl_signbitf): Don't undefine.
79917         * lib/signbitd.c (gl_signbitd): Don't undefine.
79918         * lib/signbitl.c (gl_signbitl): Don't undefine.
79920 2009-04-25  Jim Meyering  <meyering@redhat.com>
79922         vc-list-files: fix another quoting bug
79923         * build-aux/vc-list-files: Avoid sed backslash expansion
79924         of pathological directory names.
79926 2009-04-25  Eric Blake  <ebb9@byu.net>
79928         vc-list-files: fix shell quoting error
79929         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
79930         timestamp.
79932 2009-04-25  Jim Meyering  <meyering@redhat.com>
79934         vc-list-files: restore lost functionality with subdir argument
79935         * build-aux/vc-list-files: When given a non-"." sub-directory
79936         argument, substitute the $dir/ prefix back onto each resulting name.
79937         Otherwise, coreutils' root_tests check would fail.
79939 2009-04-24  Eric Blake  <ebb9@byu.net>
79941         vc-list-files: ignore git symlinks
79942         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
79943         than ls-files, to ignore git symlinks.
79945         maint.mk: import improvements from m4
79946         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
79947         (move_if_change): Delete unused macro.
79948         (news-date-check, vc-diff-check): Support VPATH builds.
79949         (announcement): Likewise.  Split --bootstrap-tools list...
79950         (boostrap-tools): ...into separate list, which can be overridden
79951         in cfg.mk.
79952         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
79953         requiring dependency on useless-if-before-free module.
79954         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
79955         Support VPATH builds.
79957 2009-04-24  Jim Meyering  <meyering@redhat.com>
79959         maint.mk: remove coreutils-specific rules and variables
79960         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
79961         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
79962         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
79964         maint.mk: remove obsolete rule
79965         * top/maint.mk (rel-check): Remove rule.
79966         (WGET, WGETFLAGS): Remove now-unused variables.
79968 2009-04-24  Simon Josefsson  <simon@josefsson.org>
79970         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
79971         consistency.
79973         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
79974         '$(PATH_SEPARATOR)' instead of ':'.
79976 2009-04-24  Simon Josefsson  <simon@josefsson.org>
79978         * lib/getopt1.c (main): Use 'const' for static array.
79980 2009-04-24  Simon Josefsson  <simon@josefsson.org>
79982         * top/maint.mk: Sync with coreutils.
79983         * NEWS: Explain incompatibilities.
79985 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79986             Bruno Haible  <bruno@clisp.org>
79988         Fix cross-compilation results.
79989         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
79990         statement, as third argument of AC_TRY_RUN.
79991         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
79992         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
79993         Likewise.
79994         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
79995         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
79996         Likewise.
79997         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
79998         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
79999         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
80001 2009-04-20  Bruno Haible  <bruno@clisp.org>
80003         Avoid test failure on mingw.
80004         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
80006 2009-04-20  Bruno Haible  <bruno@clisp.org>
80008         Avoid compilation error on mingw.
80009         * modules/localename-tests (Depends-on): Add locale.
80011 2009-04-19  Bruno Haible  <bruno@clisp.org>
80013         Support for building a shared library on Windows platforms.
80014         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
80015         (main): Test the presence of UNINORM_NFC here.
80016         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
80017         (main): Test the presence of UNINORM_NFD here.
80018         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
80019         (main): Test the presence of UNINORM_NFKC here.
80020         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
80021         (main): Test the presence of UNINORM_NFKD here.
80023 2009-04-19  Bruno Haible  <bruno@clisp.org>
80025         Avoid a compiler warning.
80026         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
80027         Change type of variable 'sequence'.
80029 2009-04-19  Bruno Haible  <bruno@clisp.org>
80031         * modules/configmake (Makefile.am): When the contents of configmake.h
80032         does not change, arrange to preserve its modification time.
80034 2009-04-17  Simon Josefsson  <simon@josefsson.org>
80036         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
80037         gettext domain.
80039 2009-04-16  Jim Meyering  <meyering@redhat.com>
80041         useless-if-before-free: improve conversion code
80042         * build-aux/useless-if-before-free: Adjust code-in-comment to match
80043         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
80045 2009-04-14  Bruno Haible  <bruno@clisp.org>
80047         * modules/fcntl (Depends-on): Add extensions.
80048         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
80050 2009-04-12  Ben Pfaff  <blp@gnu.org>
80052         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
80053         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
80055 2009-03-20  Ben Pfaff  <blp@gnu.org>
80057         Make rename replace existing destinations on Windows.
80058         * m4/rename.m4: Add test for Mingw.
80059         * lib/rename.c: Add rename replacement that uses MoveFileEx with
80060         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
80061         * doc/posix-functions/rename.texi: Document.
80063 2009-04-10  Bruno Haible  <bruno@clisp.org>
80065         New include file "iconveh.h".
80066         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
80067         * lib/striconveh.h: Include it.
80068         (enum iconv_ilseq_handler): Remove definition.
80069         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
80070         striconveh.h.
80071         * lib/striconveha.c: Include striconveh.h.
80072         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
80073         * modules/striconveh (Files): Add lib/iconveh.h.
80074         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
80075         lib/striconveh.h.
80077 2009-04-10  Bruno Haible  <bruno@clisp.org>
80079         * lib/uniconv.h: Update comment.
80081 2009-04-10  Bruno Haible  <bruno@clisp.org>
80083         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
80084         always.
80085         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
80086         * lib/unistr/u16-mbtouc-aux.c: Likewise.
80087         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
80088         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
80089         "unistring-notinline.h", so that the function gets defined always.
80090         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
80091         * lib/unistr/u8-uctomb.c: Likewise.
80092         * lib/unistr/u16-mbtouc.c: Likewise.
80093         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
80094         * lib/unistr/u16-uctomb.c: Likewise.
80095         * lib/unistr/u32-mbtouc.c: Likewise.
80096         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
80097         * lib/unistr/u32-uctomb.c: Likewise.
80099 2009-04-10  Bruno Haible  <bruno@clisp.org>
80101         Mark 'utime' obsolete.
80102         * modules/utime (Status, Notice): New sections.
80103         Suggested by Jim Meyering.
80105         Fix cross-compile guess for utime test.
80106         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
80107         autoconf.
80108         * doc/posix-functions/utime.texi: Give more precisions.
80109         Reported by Jan <ipif@ymail.com>.
80111 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
80113         filevercmp: correct today's change
80114         * lib/filevercmp.c: Also handle coreutils' test inputs.
80115         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
80117         Fix regression in 'filevercmp' module. Thanks Sven Joachim
80118         for reporting it.
80119         * lib/filevercmp.c: Special handle for "", "." and "..".
80120         * tests/test-filevercmp.c: Enlarge the set suite.
80122 2009-04-07  Jim Meyering  <meyering@redhat.com>
80124         useless-if-before-free: show how to remove braced useless free, too
80125         * build-aux/useless-if-before-free: still only in a comment, though.
80127 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
80129         maint.mk: import changes to syntax-check macros from coreutils
80130         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
80131         Use them in the relevant macros.
80133 2009-04-06  Bruno Haible  <bruno@clisp.org>
80135         Fix unportable use of bit-fields.
80136         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
80137         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
80138         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
80140 2009-04-06  Bruno Haible  <bruno@clisp.org>
80142         Avoid test failures on AIX and OSF/1.
80143         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
80144         that malloc(0) = NULL.
80145         * tests/unicase/test-u8-tolower.c (check): Likewise.
80146         * tests/unicase/test-u8-totitle.c (check): Likewise.
80147         * tests/unicase/test-u8-toupper.c (check): Likewise.
80148         * tests/unicase/test-u16-casefold.c (check): Likewise.
80149         * tests/unicase/test-u16-tolower.c (check): Likewise.
80150         * tests/unicase/test-u16-totitle.c (check): Likewise.
80151         * tests/unicase/test-u16-toupper.c (check): Likewise.
80152         * tests/unicase/test-u32-casefold.c (check): Likewise.
80153         * tests/unicase/test-u32-tolower.c (check): Likewise.
80154         * tests/unicase/test-u32-totitle.c (check): Likewise.
80155         * tests/unicase/test-u32-toupper.c (check): Likewise.
80156         * tests/uninorm/test-u8-nfc.c (check): Likewise.
80157         * tests/uninorm/test-u8-nfd.c (check): Likewise.
80158         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
80159         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
80160         * tests/uninorm/test-u16-nfc.c (check): Likewise.
80161         * tests/uninorm/test-u16-nfd.c (check): Likewise.
80162         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
80163         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
80164         * tests/uninorm/test-u32-nfc.c (check): Likewise.
80165         * tests/uninorm/test-u32-nfd.c (check): Likewise.
80166         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
80167         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
80169 2009-04-05  Bruno Haible  <bruno@clisp.org>
80171         Work around an autoconf limitation.
80172         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
80173         comment line if it would be longer than 3 KB.
80175 2009-04-05  Bruno Haible  <bruno@clisp.org>
80177         Avoid test failure with libiconv-1.13.
80178         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
80179         of the expected test results.
80181 2009-04-05  Bruno Haible  <bruno@clisp.org>
80183         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
80184         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
80185         that it should be installed.
80187 2009-04-05  Bruno Haible  <bruno@clisp.org>
80189         * gnulib-tool: New option --copy-file.
80190         (func_usage): Document it.
80191         (func_dest_tmpfilename): Moved out of func_import.
80192         (func_add_file, func_update_file): New functions, extracted from
80193         func_import.
80194         (func_import): Update.
80196 2009-04-05  Karl Berry  <karl@gnu.org>
80198         * README: prominently mention gnulib-tool.
80199         Rearrange sections so getting the code is near the top.
80201 2009-04-05  Bruno Haible  <bruno@clisp.org>
80203         * lib/unicase.h: Mention u*_cmp2.
80204         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
80205         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
80206         * lib/unicase/ulc-casecmp.c: Likewise.
80207         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
80208         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
80209         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
80210         unistr/u8-cmp.
80211         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
80212         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
80213         unistr/u16-cmp.
80214         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
80215         unistr/u32-cmp.
80217         * lib/uninorm.h: Mention u*_cmp2.
80218         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
80219         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
80220         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
80221         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
80222         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
80223         unistr/u8-cmp.
80224         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
80225         unistr/u16-cmp.
80226         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
80227         unistr/u32-cmp.
80229         New module 'unistr/u32-cmp2'.
80230         * lib/unistr/u32-cmp2.c: New file.
80231         * modules/unistr/u32-cmp2: New file.
80233         New module 'unistr/u16-cmp2'.
80234         * lib/unistr/u16-cmp2.c: New file.
80235         * modules/unistr/u16-cmp2: New file.
80237         New module 'unistr/u8-cmp2'.
80238         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
80239         * lib/unistr/u8-cmp2.c: New file.
80240         * lib/unistr/u-cmp2.h: New file.
80241         * modules/unistr/u8-cmp2: New file.
80243 2009-04-05  Bruno Haible  <bruno@clisp.org>
80245         * lib/unictype.h (uc_property_is_valid): New macro.
80246         * tests/unictype/test-pr_byname.c (main): Use it.
80248         * lib/unistr.h: Doc fixes.
80249         * lib/uniconv.h: Doc fixes.
80250         * lib/unictype.h: Doc fixes.
80252 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
80254         Port coreutils 7.2 to Solaris 8.
80256         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
80257         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
80258         for Solaris 8.  This is a bit of a hack, as it means it's the
80259         caller's responsibility to add -lnsl if needed, but most likely it
80260         won't be needed since only getaddrinfo uses this and getaddrinfo
80261         isn't needed on Solaris 8.
80263         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
80264         problem to Solaris 8 encountered with coreutils 7.2, which
80265         resulted in a message "fnmatch.c:292: warning: passing argument 4
80266         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
80267         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
80269 2009-04-03  Simon Josefsson  <simon@josefsson.org>
80271         * m4/ld-version-script.m4: Add FIXME comment.
80273 2009-04-02  Simon Josefsson  <simon@josefsson.org>
80275         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
80276         SOVERSION variable.
80278 2009-04-02  Bruno Haible  <bruno@clisp.org>
80280         * Makefile (info, html, dvi, pdf): Combine the rules.
80281         Suggested by Jim Meyering.
80283 2009-04-01  Bruno Haible  <bruno@clisp.org>
80285         * Makefile (info, html, dvi, pdf): New targets.
80286         Reported by Reuben Thomas <rrt@sc3d.org>.
80288 2009-04-01  Bruno Haible  <bruno@clisp.org>
80290         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
80291         can be put into PATH.
80292         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
80294 2009-04-01  Bruno Haible  <bruno@clisp.org>
80296         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
80298 2009-04-01  Bruno Haible  <bruno@clisp.org>
80300         Rename module 'visibility'.
80301         * modules/lib-symbol-visibility: Renamed from modules/visibility.
80302         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
80303         * doc/gnulib.texi: Update.
80304         * MODULES.html.sh (Misc): Update.
80305         * NEWS: Mention the change.
80307 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80309         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
80310         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
80311         Eric Blake <ebb9@byu.net> for review.
80312         * MODULES.html.sh: Add lib-msvc-compat.
80313         * doc/gnulib.texi: Link to new section.
80314         * m4/ld-output-def.m4: New file.
80315         * doc/ld-output-def.texi: New file.
80317 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80319         Rename ld-version-script to lib-symbol-versions.  Suggested by
80320         Bruno Haible <bruno@clisp.org>.
80321         * modules/ld-version-script: Renamed to lib-symbol-versions.
80322         * doc/ld-version-script.texi: Fix module name.
80323         * MODULES.html.sh: Add lib-symbol-versions.
80325 2009-03-31  Simon Josefsson  <simon@josefsson.org>
80327         * modules/u64-tests: New file.
80328         * tests/test-u64.c: New file.
80330 2009-03-04  Simon Josefsson  <simon@josefsson.org>
80332         * MODULES.html.sh: Mention u64.
80333         * modules/u64: New module.
80334         * modules/crypto/sha512: Depend on u64 module instead of providing
80335         u64.h.
80337 2009-03-27  Eric Blake  <ebb9@byu.net>
80339         test-strerror: make debugging EAI_SYSTEM easier
80340         * modules/getaddrinfo-tests (Depends-on): Add strerror.
80341         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
80342         failure was EAI_SYSTEM.
80344 2009-03-25  Bruno Haible  <bruno@clisp.org>
80346         Fix a problem with --enable-relocatable on Solaris 7.
80347         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
80348         since 2008-02-24.
80350 2009-03-25  Eric Blake  <ebb9@byu.net>
80352         test-sockets: avoid gcc warning
80353         * tests/test-sockets.c (main): Silence compiler warning.
80355 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80357         New modules nproc, pthread, contributed by Glen Lenker.
80359         * MODULES.html.sh: Add pthread, nproc.
80360         * lib/nproc.c: New file.
80361         * lib/nproc.h: New file.
80362         * lib/pthread.in.h: New file.
80363         * m4/pthread.m4: New file.
80364         * modules/nproc: New file.
80365         * modules/pthread: New file.
80367 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80369         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
80370         New variable.
80372 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
80374         filevercmp: handle simple~ and numbered.~3~ backup suffixes
80375         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
80376         * tests/test-filevercmp.c: Add tests for backup suffixes.
80378 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80380         * modules/stdlib (Depends-on): Add stdint, needed when defining
80381         struct random_data on, for example, HP-UX 10.20.  Reported by
80382         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
80384 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80386         * lib/readline.c (readline): Call fflush on stdout after printing
80387         prompt.
80389 2009-03-20  Bruno Haible  <bruno@clisp.org>
80391         Remove dependency from 'close' module to -lws2_32 on native Windows.
80392         * lib/close-hook.h: New file.
80393         * lib/close-hook.c: New file.
80394         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
80395         w32sock.h.
80396         (_gl_close_fd_maybe_socket): Remove function.
80397         (rpl_close): Invoke execute_all_close_hooks instead of
80398         _gl_close_fd_maybe_socket.
80399         * lib/sockets.c: Include close-hook.h, w32sock.h.
80400         (close_fd_maybe_socket): New function, essentially from lib/close.c.
80401         (close_sockets_hook): New variable.
80402         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
80403         (gl_sockets_cleanup): Unregister it.
80404         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
80405         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
80406         * modules/close-hook: New file.
80407         * modules/close (Files): Remove lib/w32sock.h.
80408         (Depends-on): Add close-hook.
80409         (Link): Remove section.
80410         * modules/sockets (Files): Add lib/w32sock.h.
80411         (Depends-on): Add close-hook.
80412         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
80413         invocation.
80414         * NEWS: Mention that LIB_CLOSE is gone.
80416 2009-03-23  Eric Blake  <ebb9@byu.net>
80418         signal-tests: test previous patch
80419         * tests/test-signal.c: New file.
80420         * modules/signal-tests: Likewise.
80422         signal.h: always support 'volatile sig_atomic_t'
80423         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
80424         (gl_SIGNAL_H_DEFAULTS): Add a default.
80425         * modules/signal (Makefile.am): Substitute if needed.
80426         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
80427         users can blindly add volatile.
80428         * doc/posix-headers/signal.texi (signal.h): Document it.
80429         Reported by Matthew Woehlke.
80431 2009-03-23  Jim Meyering  <meyering@redhat.com>
80433         pathmax: PATH_MAX: use pathconf only when available
80434         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
80435         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
80436         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
80437         This avoids a link failure in a PSP cross-compilation environment
80438         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
80440         * lib/vasnprintf.c (divide): Fix typo in comment.
80442 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80444         * gnulib-tool (func_filter_filelist): Fix comment.
80446 2009-03-20  Bruno Haible  <bruno@clisp.org>
80448         Make sockets.h self-contained.
80449         * lib/sockets.c: Include sockets.h first.
80450         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
80452 2009-03-19  Eric Blake  <ebb9@byu.net>
80454         doc: mention more functions added in cygwin 1.7.0
80455         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
80456         addition.
80457         * doc/posix-functions/log2f.texi: Likewise.
80459 2009-03-19  Jim Meyering  <meyering@redhat.com>
80461         fsusage: avoid syntax error due to statement-before-declaration
80462         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
80463         after all declarations.  Reported by Matthew Woehlke in
80464         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
80466 2009-03-18  Eric Blake  <ebb9@byu.net>
80468         build-aux/compile: sync from automake
80469         * build-aux/compile: New file, from automake.
80470         * config/srclist.txt: Mention build-aux/compile.
80472 2009-03-17  Bruno Haible  <bruno@clisp.org>
80474         * lib/git-merge-changelog.c: Fix typo in comment.
80475         Reported by Reuben Thomas <rrt@sc3d.org>.
80477 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
80479         * m4/regex.m4: update and improve help for
80480         --without-included-regex.
80482 2009-03-17  Simon Josefsson  <simon@josefsson.org>
80484         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
80485         failure on missing include files.
80487 2009-03-17  Eric Blake  <ebb9@byu.net>
80489         doc: mention more functions added in cygwin 1.7.0
80490         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
80491         addition.
80492         * doc/posix-functions/fwscanf.texi: Likewise.
80493         * doc/posix-functions/swprintf.texi: Likewise.
80494         * doc/posix-functions/swscanf.texi: Likewise.
80495         * doc/posix-functions/vfwprintf.texi: Likewise.
80496         * doc/posix-functions/vfwscanf.texi: Likewise.
80497         * doc/posix-functions/vswprintf.texi: Likewise.
80498         * doc/posix-functions/vswscanf.texi: Likewise.
80499         * doc/posix-functions/vwprintf.texi: Likewise.
80500         * doc/posix-functions/vwscanf.texi: Likewise.
80501         * doc/posix-functions/wcscasecmp.texi: Likewise.
80502         * doc/posix-functions/wcsdup.texi: Likewise.
80503         * doc/posix-functions/wcsftime.texi: Likewise.
80504         * doc/posix-functions/wcsncasecmp.texi: Likewise.
80505         * doc/posix-functions/wprintf.texi: Likewise.
80506         * doc/posix-functions/wscanf.texi: Likewise.
80507         * doc/glibc-functions/gethostbyname2.texi: Likewise.
80509 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80511         maint.mk: really add $(AM_MAKEFLAGS)
80512         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
80513         was inadvertently omitted in the last commit.
80514         Spotted by Bruno Haible.
80516         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
80517         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
80518         $(AM_MAKEFLAGS)' rather than plain `make'.
80520         gnulib-tool: execute $MAKE not make
80521         * gnulib-tool: Default $MAKE to 'make'.
80522         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
80523         than make.  Initialize $MAKE in the do-autobuild script.
80525         gnulib-tool: use $MAKE not make in generated files
80526         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
80527         make, in generated files.  Initialize $MAKE in the do-autobuild
80528         script.
80530         * top/GNUmakefile (_have-git-version-gen): Fix typo.
80532         GNUmakefile: disable parallelism only for multiple, recursive targets
80533         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
80534         additions in the Makefile.
80535         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
80536         by Automake.
80537         (.NOTPARALLEL): Only disable parallel builds if multiple targets
80538         are listed on the command line and at least one of them is
80539         listed in $(ALL_RECURSIVE_TARGETS).
80541 2009-03-14  Bruno Haible  <bruno@clisp.org>
80543         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
80544         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
80545         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
80546         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
80547         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
80548         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
80549         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
80550         unistr/u8-uctomb.
80551         * modules/unistr/u8-strchr (Depends-on): Likewise.
80552         * modules/unistr/u8-strrchr (Depends-on): Likewise.
80553         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
80554         unistr/u16-uctomb.
80555         * modules/unistr/u16-strchr (Depends-on): Likewise.
80556         * modules/unistr/u16-strrchr (Depends-on): Likewise.
80558 2009-03-12  Bruno Haible  <bruno@clisp.org>
80560         Work around select() bug on Interix 3.5.
80561         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
80562         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
80563         * m4/select.m4: New file.
80564         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
80565         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
80566         * modules/select (Files): Add m4/select.m4.
80567         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
80568         * modules/nanosleep (Depends-on): Add select.
80569         * modules/poll (Depends-on): Likewise.
80570         * doc/posix-functions/select.texi: Mention the Interix bug.
80571         Reported by Markus Duft <mduft@gentoo.org>.
80573         * lib/select.c: Renamed from lib/winsock-select.c.
80574         * modules/select (Files): Add lib/select.c, remove
80575         lib/winsock-select.c.
80576         (configure.ac): Update.
80578 2009-03-12  Jim Meyering  <meyering@redhat.com>
80580         avoid gcc warnings about unused macro definitions
80581         * lib/readtokens.c (STREQ): Remove unused definition.
80582         * lib/xmalloc.c (SIZE_MAX): Likewise.
80583         * lib/openat-die.c (N_): Likewise.
80584         * lib/mountlist.c (SIZE_MAX): Remove definition.
80585         Instead, include <stdint.h>.
80586         * lib/readutmp.c: Likewise.
80587         * modules/readutmp (Depends-on): Add stdint.
80588         * modules/mountlist (Depends-on): Add stdint.
80589         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
80591 2009-03-10  Bruno Haible  <bruno@clisp.org>
80593         Tests for module 'mbmemcasecoll'.
80594         * modules/mbmemcasecoll-tests: New file.
80595         * tests/test-mbmemcasecoll1.sh: New file.
80596         * tests/test-mbmemcasecoll2.sh: New file.
80597         * tests/test-mbmemcasecoll3.sh: New file.
80598         * tests/test-mbmemcasecoll.c: New file.
80600         New module 'mbmemcasecoll'.
80601         * lib/mbmemcasecoll.h: New file.
80602         * lib/mbmemcasecoll.c: New file.
80603         * modules/mbmemcasecoll: New file.
80605         * tests/test-mbmemcasecmp.h: New file, extracted from
80606         tests/test-mbmemcasecmp.c.
80607         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
80608         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
80609         (main): Update.
80610         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
80612 2009-03-09  Bruno Haible  <bruno@clisp.org>
80614         Tests for module 'mbmemcasecmp'.
80615         * modules/mbmemcasecmp-tests: New file.
80616         * tests/test-mbmemcasecmp1.sh: New file.
80617         * tests/test-mbmemcasecmp2.sh: New file.
80618         * tests/test-mbmemcasecmp3.sh: New file.
80619         * tests/test-mbmemcasecmp.c: New file.
80621         New module 'mbmemcasecmp'.
80622         * lib/mbmemcasecmp.h: New file.
80623         * lib/mbmemcasecmp.c: New file.
80624         * modules/mbmemcasecmp: New file.
80626 2009-03-09  Bruno Haible  <bruno@clisp.org>
80628         Tests for module 'unicase/ulc-casecoll'.
80629         * modules/unicase/ulc-casecoll-tests: New file.
80630         * tests/unicase/test-ulc-casecoll1.sh: New file.
80631         * tests/unicase/test-ulc-casecoll2.sh: New file.
80632         * tests/unicase/test-ulc-casecoll.c: New file.
80634         New module 'unicase/ulc-casecoll'.
80635         * lib/unicase.h (ulc_casecoll): New declaration.
80636         * lib/unicase/ulc-casecoll.c: New file.
80637         * modules/unicase/ulc-casecoll: New file.
80639         New module 'unicase/ulc-casexfrm'.
80640         * lib/unicase.h (ulc_casexfrm): New declaration.
80641         * lib/unicase/ulc-casexfrm.c: New file.
80642         * modules/unicase/ulc-casexfrm: New file.
80644 2009-03-09  Bruno Haible  <bruno@clisp.org>
80646         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
80647         invocations.
80649         * m4/mbscasecmp.m4: Remove file.
80650         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
80651         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
80653         * m4/mbscasestr.m4: Remove file.
80654         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
80655         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
80657         * m4/mbschr.m4: Remove file.
80658         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
80659         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
80661         * m4/mbscspn.m4: Remove file.
80662         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
80663         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
80665         * m4/mbslen.m4: Remove file.
80666         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
80667         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
80669         * m4/mbsncasecmp.m4: Remove file.
80670         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
80671         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
80673         * m4/mbsnlen.m4: Remove file.
80674         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
80675         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
80677         * m4/mbspbrk.m4: Remove file.
80678         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
80679         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
80681         * m4/mbspcasecmp.m4: Remove file.
80682         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
80683         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
80685         * m4/mbsrchr.m4: Remove file.
80686         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
80687         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
80689         * m4/mbssep.m4: Remove file.
80690         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
80691         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
80693         * m4/mbsspn.m4: Remove file.
80694         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
80695         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
80697         * m4/mbsstr.m4: Remove file.
80698         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
80699         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
80701         * m4/mbstok_r.m4: Remove file.
80702         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
80703         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
80705         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
80707         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
80708         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
80710         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
80712 2009-03-08  Bruno Haible  <bruno@clisp.org>
80714         Tests for module 'unicase/ulc-casecmp'.
80715         * modules/unicase/ulc-casecmp-tests: New file.
80716         * tests/unicase/test-ulc-casecmp1.sh: New file.
80717         * tests/unicase/test-ulc-casecmp2.sh: New file.
80718         * tests/unicase/test-ulc-casecmp.c: New file.
80720         New module 'unicase/ulc-casecmp'.
80721         * lib/unicase.h (ulc_casecmp): New declaration.
80722         * lib/unicase/ulc-casecmp.c: New file.
80723         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
80724         'const SRC_UNIT *'.
80725         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
80726         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
80727         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
80728         * modules/unicase/ulc-casecmp: New file.
80730         Tests for module 'unicase/u32-is-cased'.
80731         * modules/unicase/u32-is-cased-tests: New file.
80732         * tests/unicase/test-u32-is-cased.c: New file.
80734         Tests for module 'unicase/u16-is-cased'.
80735         * modules/unicase/u16-is-cased-tests: New file.
80736         * tests/unicase/test-u16-is-cased.c: New file.
80738         Tests for module 'unicase/u8-is-cased'.
80739         * modules/unicase/u8-is-cased-tests: New file.
80740         * tests/unicase/test-u8-is-cased.c: New file.
80741         * tests/unicase/test-is-cased.h: New file.
80743         New module 'unicase/u32-is-cased'.
80744         * lib/unicase/u32-is-cased.c: New file.
80745         * modules/unicase/u32-is-cased: New file.
80747         New module 'unicase/u16-is-cased'.
80748         * lib/unicase/u16-is-cased.c: New file.
80749         * modules/unicase/u16-is-cased: New file.
80751         New module 'unicase/u8-is-cased'.
80752         * lib/unicase/u8-is-cased.c: New file.
80753         * lib/unicase/u-is-cased.h: New file.
80754         * modules/unicase/u8-is-cased: New file.
80756         Tests for module 'unicase/u32-is-casefolded'.
80757         * modules/unicase/u32-is-casefolded-tests: New file.
80758         * tests/unicase/test-u32-is-casefolded.c: New file.
80760         Tests for module 'unicase/u16-is-casefolded'.
80761         * modules/unicase/u16-is-casefolded-tests: New file.
80762         * tests/unicase/test-u16-is-casefolded.c: New file.
80764         Tests for module 'unicase/u8-is-casefolded'.
80765         * modules/unicase/u8-is-casefolded-tests: New file.
80766         * tests/unicase/test-u8-is-casefolded.c: New file.
80767         * tests/unicase/test-is-casefolded.h: New file.
80769         New module 'unicase/u32-is-casefolded'.
80770         * lib/unicase/u32-is-casefolded.c: New file.
80771         * modules/unicase/u32-is-casefolded: New file.
80773         New module 'unicase/u16-is-casefolded'.
80774         * lib/unicase/u16-is-casefolded.c: New file.
80775         * modules/unicase/u16-is-casefolded: New file.
80777         New module 'unicase/u8-is-casefolded'.
80778         * lib/unicase/u8-is-casefolded.c: New file.
80779         * modules/unicase/u8-is-casefolded: New file.
80781         Tests for module 'unicase/u32-is-titlecase'.
80782         * modules/unicase/u32-is-titlecase-tests: New file.
80783         * tests/unicase/test-u32-is-titlecase.c: New file.
80785         Tests for module 'unicase/u16-is-titlecase'.
80786         * modules/unicase/u16-is-titlecase-tests: New file.
80787         * tests/unicase/test-u16-is-titlecase.c: New file.
80789         Tests for module 'unicase/u8-is-titlecase'.
80790         * modules/unicase/u8-is-titlecase-tests: New file.
80791         * tests/unicase/test-u8-is-titlecase.c: New file.
80792         * tests/unicase/test-is-titlecase.h: New file.
80794         New module 'unicase/u32-is-titlecase'.
80795         * lib/unicase/u32-is-titlecase.c: New file.
80796         * modules/unicase/u32-is-titlecase: New file.
80798         New module 'unicase/u16-is-titlecase'.
80799         * lib/unicase/u16-is-titlecase.c: New file.
80800         * modules/unicase/u16-is-titlecase: New file.
80802         New module 'unicase/u8-is-titlecase'.
80803         * lib/unicase/u8-is-titlecase.c: New file.
80804         * modules/unicase/u8-is-titlecase: New file.
80806         Tests for module 'unicase/u32-is-lowercase'.
80807         * modules/unicase/u32-is-lowercase-tests: New file.
80808         * tests/unicase/test-u32-is-lowercase.c: New file.
80810         Tests for module 'unicase/u16-is-lowercase'.
80811         * modules/unicase/u16-is-lowercase-tests: New file.
80812         * tests/unicase/test-u16-is-lowercase.c: New file.
80814         Tests for module 'unicase/u8-is-lowercase'.
80815         * modules/unicase/u8-is-lowercase-tests: New file.
80816         * tests/unicase/test-u8-is-lowercase.c: New file.
80817         * tests/unicase/test-is-lowercase.h: New file.
80819         New module 'unicase/u32-is-lowercase'.
80820         * lib/unicase/u32-is-lowercase.c: New file.
80821         * modules/unicase/u32-is-lowercase: New file.
80823         New module 'unicase/u16-is-lowercase'.
80824         * lib/unicase/u16-is-lowercase.c: New file.
80825         * modules/unicase/u16-is-lowercase: New file.
80827         New module 'unicase/u8-is-lowercase'.
80828         * lib/unicase/u8-is-lowercase.c: New file.
80829         * modules/unicase/u8-is-lowercase: New file.
80831         Tests for module 'unicase/u32-is-uppercase'.
80832         * modules/unicase/u32-is-uppercase-tests: New file.
80833         * tests/unicase/test-u32-is-uppercase.c: New file.
80835         Tests for module 'unicase/u16-is-uppercase'.
80836         * modules/unicase/u16-is-uppercase-tests: New file.
80837         * tests/unicase/test-u16-is-uppercase.c: New file.
80839         Tests for module 'unicase/u8-is-uppercase'.
80840         * modules/unicase/u8-is-uppercase-tests: New file.
80841         * tests/unicase/test-u8-is-uppercase.c: New file.
80842         * tests/unicase/test-is-uppercase.h: New file.
80844         New module 'unicase/u32-is-uppercase'.
80845         * lib/unicase/u32-is-uppercase.c: New file.
80846         * modules/unicase/u32-is-uppercase: New file.
80848         New module 'unicase/u16-is-uppercase'.
80849         * lib/unicase/u16-is-uppercase.c: New file.
80850         * modules/unicase/u16-is-uppercase: New file.
80852         New module 'unicase/u8-is-uppercase'.
80853         * lib/unicase/u8-is-uppercase.c: New file.
80854         * modules/unicase/u8-is-uppercase: New file.
80856         New module 'unicase/u32-is-invariant'.
80857         * lib/unicase/u32-is-invariant.c: New file.
80858         * modules/unicase/u32-is-invariant: New file.
80860         New module 'unicase/u16-is-invariant'.
80861         * lib/unicase/u16-is-invariant.c: New file.
80862         * modules/unicase/u16-is-invariant: New file.
80864         New module 'unicase/u8-is-invariant'.
80865         * lib/unicase/u8-is-invariant.c: New file.
80866         * lib/unicase/invariant.h: New file.
80867         * lib/unicase/u-is-invariant.h: New file.
80868         * modules/unicase/u8-is-invariant: New file.
80870         Tests for module 'unicase/u32-casecoll'.
80871         * modules/unicase/u32-casecoll-tests: New file.
80872         * tests/unicase/test-u32-casecoll.c: New file.
80874         Tests for module 'unicase/u16-casecoll'.
80875         * modules/unicase/u16-casecoll-tests: New file.
80876         * tests/unicase/test-u16-casecoll.c: New file.
80878         Tests for module 'unicase/u8-casecoll'.
80879         * modules/unicase/u8-casecoll-tests: New file.
80880         * tests/unicase/test-u8-casecoll.c: New file.
80882         New module 'unicase/u32-casecoll'.
80883         * lib/unicase/u32-casecoll.c: New file.
80884         * modules/unicase/u32-casecoll: New file.
80886         New module 'unicase/u16-casecoll'.
80887         * lib/unicase/u16-casecoll.c: New file.
80888         * modules/unicase/u16-casecoll: New file.
80890         New module 'unicase/u8-casecoll'.
80891         * lib/unicase/u8-casecoll.c: New file.
80892         * lib/unicase/u-casecoll.h: New file.
80893         * modules/unicase/u8-casecoll: New file.
80895         New module 'unicase/u32-casexfrm'.
80896         * lib/unicase/u32-casexfrm.c: New file.
80897         * modules/unicase/u32-casexfrm: New file.
80899         New module 'unicase/u16-casexfrm'.
80900         * lib/unicase/u16-casexfrm.c: New file.
80901         * modules/unicase/u16-casexfrm: New file.
80903         New module 'unicase/u8-casexfrm'.
80904         * lib/unicase/u8-casexfrm.c: New file.
80905         * lib/unicase/u-casexfrm.h: New file.
80906         * modules/unicase/u8-casexfrm: New file.
80908         Tests for module 'unicase/u32-casecmp'.
80909         * modules/unicase/u32-casecmp-tests: New file.
80910         * tests/unicase/test-u32-casecmp.c: New file.
80912         Tests for module 'unicase/u16-casecmp'.
80913         * modules/unicase/u16-casecmp-tests: New file.
80914         * tests/unicase/test-u16-casecmp.c: New file.
80916         Tests for module 'unicase/u8-casecmp'.
80917         * modules/unicase/u8-casecmp-tests: New file.
80918         * tests/unicase/test-u8-casecmp.c: New file.
80919         * tests/unicase/test-casecmp.h: New file.
80921         New module 'unicase/u32-casecmp'.
80922         * lib/unicase/u32-casecmp.c: New file.
80923         * modules/unicase/u32-casecmp: New file.
80925         New module 'unicase/u16-casecmp'.
80926         * lib/unicase/u16-casecmp.c: New file.
80927         * modules/unicase/u16-casecmp: New file.
80929         New module 'unicase/u8-casecmp'.
80930         * lib/unicase/u8-casecmp.c: New file.
80931         * lib/unicase/u-casecmp.h: New file.
80932         * modules/unicase/u8-casecmp: New file.
80934         Tests for module 'unicase/u32-casefold'.
80935         * modules/unicase/u32-casefold-tests: New file.
80936         * tests/unicase/test-u32-casefold.c: New file.
80938         Tests for module 'unicase/u16-casefold'.
80939         * modules/unicase/u16-casefold-tests: New file.
80940         * tests/unicase/test-u16-casefold.c: New file.
80942         Tests for module 'unicase/u8-casefold'.
80943         * modules/unicase/u8-casefold-tests: New file.
80944         * tests/unicase/test-u8-casefold.c: New file.
80946         New module 'unicase/u32-casefold'.
80947         * lib/unicase/u32-casefold.c: New file.
80948         * modules/unicase/u32-casefold: New file.
80950         New module 'unicase/u16-casefold'.
80951         * lib/unicase/u16-casefold.c: New file.
80952         * modules/unicase/u16-casefold: New file.
80954         New module 'unicase/u8-casefold'.
80955         * lib/unicase/u8-casefold.c: New file.
80956         * lib/unicase/u-casefold.h: New file.
80957         * modules/unicase/u8-casefold: New file.
80959         New module 'unicase/tocasefold'.
80960         * lib/unicase/casefold.h: New file.
80961         * lib/unicase/tocasefold.c: New file.
80962         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
80963         * modules/unicase/tocasefold: New file.
80965         Tests for module 'unicase/u32-totitle'.
80966         * modules/unicase/u32-totitle-tests: New file.
80967         * tests/unicase/test-u32-totitle.c: New file.
80969         Tests for module 'unicase/u16-totitle'.
80970         * modules/unicase/u16-totitle-tests: New file.
80971         * tests/unicase/test-u16-totitle.c: New file.
80973         Tests for module 'unicase/u8-totitle'.
80974         * modules/unicase/u8-totitle-tests: New file.
80975         * tests/unicase/test-u8-totitle.c: New file.
80977         New module 'unicase/u32-totitle'.
80978         * lib/unicase/u32-totitle.c: New file.
80979         * modules/unicase/u32-totitle: New file.
80981         New module 'unicase/u16-totitle'.
80982         * lib/unicase/u16-totitle.c: New file.
80983         * modules/unicase/u16-totitle: New file.
80985         New module 'unicase/u8-totitle'.
80986         * lib/unicase/u8-totitle.c: New file.
80987         * lib/unicase/u-totitle.h: New file.
80988         * modules/unicase/u8-totitle: New file.
80990         Tests for module 'unicase/u32-tolower'.
80991         * modules/unicase/u32-tolower-tests: New file.
80992         * tests/unicase/test-u32-tolower.c: New file.
80994         Tests for module 'unicase/u16-tolower'.
80995         * modules/unicase/u16-tolower-tests: New file.
80996         * tests/unicase/test-u16-tolower.c: New file.
80998         Tests for module 'unicase/u8-tolower'.
80999         * modules/unicase/u8-tolower-tests: New file.
81000         * tests/unicase/test-u8-tolower.c: New file.
81002         New module 'unicase/u32-tolower'.
81003         * lib/unicase/u32-tolower.c: New file.
81004         * modules/unicase/u32-tolower: New file.
81006         New module 'unicase/u16-tolower'.
81007         * lib/unicase/u16-tolower.c: New file.
81008         * modules/unicase/u16-tolower: New file.
81010         New module 'unicase/u8-tolower'.
81011         * lib/unicase/u8-tolower.c: New file.
81012         * modules/unicase/u8-tolower: New file.
81014         Tests for module 'unicase/u32-toupper'.
81015         * modules/unicase/u32-toupper-tests: New file.
81016         * tests/unicase/test-u32-toupper.c: New file.
81018         Tests for module 'unicase/u16-toupper'.
81019         * modules/unicase/u16-toupper-tests: New file.
81020         * tests/unicase/test-u16-toupper.c: New file.
81022         Tests for module 'unicase/u8-toupper'.
81023         * modules/unicase/u8-toupper-tests: New file.
81024         * tests/unicase/test-u8-toupper.c: New file.
81026         New module 'unicase/u32-toupper'.
81027         * lib/unicase/u32-toupper.c: New file.
81028         * modules/unicase/u32-toupper: New file.
81030         New module 'unicase/u16-toupper'.
81031         * lib/unicase/u16-toupper.c: New file.
81032         * modules/unicase/u16-toupper: New file.
81034         New module 'unicase/u8-toupper'.
81035         * lib/unicase/u8-toupper.c: New file.
81036         * modules/unicase/u8-toupper: New file.
81038         New module 'unicase/u32-casemap'.
81039         * lib/unicase/u32-casemap.c: New file.
81040         * modules/unicase/u32-casemap: New file.
81042         New module 'unicase/u16-casemap'.
81043         * lib/unicase/u16-casemap.c: New file.
81044         * modules/unicase/u16-casemap: New file.
81046         New module 'unicase/u8-casemap'.
81047         * lib/unicase/unicasemap.h: New file.
81048         * lib/unicase/u8-casemap.c: New file.
81049         * lib/unicase/u-casemap.h: New file.
81050         * modules/unicase/u8-casemap: New file.
81052         New module 'unicase/special-casing'.
81053         * lib/unicase/special-casing.h: New file.
81054         * lib/unicase/special-casing.c: New file.
81055         * lib/unicase/special-casing-table.gperf: New file, generated by
81056         gen-uni-tables.c.
81057         * modules/unicase/special-casing: New file.
81059         Tests for module 'unicase/locale-language'.
81060         * modules/unicase/locale-language-tests: New file.
81061         * tests/unicase/test-locale-language.sh: New file.
81062         * tests/unicase/test-locale-language.c: New file.
81064         New module 'unicase/locale-language'.
81065         * lib/unicase/locale-language.c: New file.
81066         * lib/unicase/locale-languages.gperf: New file.
81067         * modules/unicase/locale-language: New file.
81069         Generate more tables for case conversion and case folding.
81070         * lib/gen-uni-tables.c (SCC_*): New enum items.
81071         (struct special_casing_rule): New type.
81072         (casing_rules, num_casing_rules, allocated_casing_rules): New
81073         variables.
81074         (add_casing_rule, fill_casing_rules): New functions.
81075         (struct casefold_rule): New type.
81076         (casefolding_rules, num_casefolding_rules,
81077         allocated_casefolding_rules): New variables.
81078         (fill_casefolding_rules): New function.
81079         (unicode_casefold): New variable.
81080         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
81081         sort_casing_rules, output_casing_rules): New functions.
81082         (main): Accept to more arguments: SpecialCasing.txt and
81083         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
81084         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
81085         Output mapping for casefolding.
81087         * lib/unicase.h: Include stdbool.h, uninorm.h.
81088         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
81089         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
81090         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
81091         arguments.
81092         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
81093         resultp arguments.
81094         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
81095         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
81096         resultp arguments.
81097         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
81098         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
81099         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
81100         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
81101         declarations.
81102         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
81104 2009-03-08  Bruno Haible  <bruno@clisp.org>
81106         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
81107         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
81108         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
81109         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
81111 2009-03-07  Bruno Haible  <bruno@clisp.org>
81113         Adjust u*_normcmp, u*_normcoll API.
81114         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
81115         u16_normcoll, u32_normcoll): Change failure conventions.
81116         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
81117         errno and return -1.
81118         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
81120 2009-03-07  Bruno Haible  <bruno@clisp.org>
81122         Tests for module 'uninorm/u32-normcoll'.
81123         * modules/uninorm/u32-normcoll-tests: New file.
81124         * tests/uninorm/test-u32-normcoll.c: New file.
81126         Tests for module 'uninorm/u16-normcoll'.
81127         * modules/uninorm/u16-normcoll-tests: New file.
81128         * tests/uninorm/test-u16-normcoll.c: New file.
81130         Tests for module 'uninorm/u8-normcoll'.
81131         * modules/uninorm/u8-normcoll-tests: New file.
81132         * tests/uninorm/test-u8-normcoll.c: New file.
81134 2009-03-07  Bruno Haible  <bruno@clisp.org>
81136         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
81137         tests/uninorm/test-u32-normcmp.c.
81138         * tests/uninorm/test-u32-normcmp.c: Include it.
81139         (test_nonascii): New function, extracted from main. Add some more
81140         tests.
81141         (main): Invoke test_ascii and test_nonascii.
81142         * modules/uninorm/u32-normcmp-tests (Files): Add
81143         tests/uninorm/test-u32-normcmp.h.
81144         (Depends-on): Remove uninorm/u32-normcmp.
81146         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
81147         tests/uninorm/test-u16-normcmp.c.
81148         * tests/uninorm/test-u16-normcmp.c: Include it.
81149         (test_nonascii): New function, extracted from main. Add some more
81150         tests.
81151         (main): Invoke test_ascii and test_nonascii.
81152         * modules/uninorm/u16-normcmp-tests (Files): Add
81153         tests/uninorm/test-u16-normcmp.h.
81154         (Depends-on): Remove uninorm/u16-normcmp.
81156         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
81157         tests/uninorm/test-u8-normcmp.c.
81158         * tests/uninorm/test-u8-normcmp.c: Include it.
81159         (test_nonascii): New function, extracted from main. Add some more
81160         tests.
81161         (main): Invoke test_ascii and test_nonascii.
81162         * modules/uninorm/u8-normcmp-tests (Files): Add
81163         tests/uninorm/test-u8-normcmp.h.
81164         (Depends-on): Remove uninorm/u8-normcmp.
81166 2009-03-07  Bruno Haible  <bruno@clisp.org>
81168         New module 'uninorm/u32-normcoll'.
81169         * lib/uninorm/u32-normcoll.c: New file.
81170         * modules/uninorm/u32-normcoll: New file.
81172         New module 'uninorm/u16-normcoll'.
81173         * lib/uninorm/u16-normcoll.c: New file.
81174         * modules/uninorm/u16-normcoll: New file.
81176         New module 'uninorm/u8-normcoll'.
81177         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
81178         declarations.
81179         * lib/uninorm/u8-normcoll.c: New file.
81180         * lib/uninorm/u-normcoll.h: New file.
81181         * modules/uninorm/u8-normcoll: New file.
81183         New module 'uninorm/u32-normxfrm'.
81184         * lib/uninorm/u32-normxfrm.c: New file.
81185         * modules/uninorm/u32-normxfrm: New file.
81187         New module 'uninorm/u16-normxfrm'.
81188         * lib/uninorm/u16-normxfrm.c: New file.
81189         * modules/uninorm/u16-normxfrm: New file.
81191         New module 'uninorm/u8-normxfrm'.
81192         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
81193         declarations.
81194         * lib/uninorm/u8-normxfrm.c: New file.
81195         * lib/uninorm/u-normxfrm.h: New file.
81196         * modules/uninorm/u8-normxfrm: New file.
81198 2009-03-07  Bruno Haible  <bruno@clisp.org>
81200         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
81201         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
81202         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
81204 2009-03-07  Bruno Haible  <bruno@clisp.org>
81206         New module 'memxfrm'.
81207         * lib/memxfrm.h: New file.
81208         * lib/memxfrm.c: New file.
81209         * modules/memxfrm: New file.
81211 2009-03-07  Bruno Haible  <bruno@clisp.org>
81213         New module 'memcmp2'.
81214         * lib/memcmp2.h: New file.
81215         * lib/memcmp2.c: New file.
81216         * modules/memcmp2: New file.
81218 2009-03-07  Bruno Haible  <bruno@clisp.org>
81220         Tests for module 'uninorm/decomposing-form'.
81221         * modules/uninorm/decomposing-form-tests: New file.
81222         * tests/uninorm/test-decomposing-form.c: New file.
81224         New module 'uninorm/decomposing-form'.
81225         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
81226         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
81227         Add 'decomposing_variant' field.
81228         * lib/uninorm/decomposing-form.c: New file.
81229         * lib/uninorm/nfc.c (uninorm_nfc): Update.
81230         * lib/uninorm/nfd.c (uninorm_nfd): Update.
81231         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
81232         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
81233         * modules/uninorm/decomposing-form: New file.
81234         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
81235         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
81237 2009-03-07  Bruno Haible  <bruno@clisp.org>
81239         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
81240         strings.
81242 2009-03-06  Bruno Haible  <bruno@clisp.org>
81244         Tests for module 'uninorm/u32-normcmp'.
81245         * tests/uninorm/test-u32-normcmp.c: New file.
81246         * modules/uninorm/u32-normcmp-tests: New file.
81248         Tests for module 'uninorm/u16-normcmp'.
81249         * tests/uninorm/test-u16-normcmp.c: New file.
81250         * modules/uninorm/u16-normcmp-tests: New file.
81252         Tests for module 'uninorm/u8-normcmp'.
81253         * tests/uninorm/test-u8-normcmp.c: New file.
81254         * modules/uninorm/u8-normcmp-tests: New file.
81256         New module 'uninorm/u32-normcmp'.
81257         * lib/uninorm/u32-normcmp.c: New file.
81258         * modules/uninorm/u32-normcmp: New file.
81260         New module 'uninorm/u16-normcmp'.
81261         * lib/uninorm/u16-normcmp.c: New file.
81262         * modules/uninorm/u16-normcmp: New file.
81264         New module 'uninorm/u8-normcmp'.
81265         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
81266         declarations.
81267         * lib/uninorm/u8-normcmp.c: New file.
81268         * lib/uninorm/u-normcmp.h: New file.
81269         * modules/uninorm/u8-normcmp: New file.
81271 2009-03-06  Bruno Haible  <bruno@clisp.org>
81273         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
81274         Reported by Eric Blake.
81276 2009-03-06  Eric Blake  <ebb9@byu.net>
81277             Bruno Haible  <bruno@clisp.org>
81279         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
81280         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
81281         condition.
81282         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
81283         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
81284         condition.
81285         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
81287 2009-03-06  Eric Blake  <ebb9@byu.net>
81289         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
81290         to avoid compiler warnings.
81291         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
81293 2009-03-05  Bruno Haible  <bruno@clisp.org>
81295         * tests/test-ftell.c (main): Disable test beyond end of file on
81296         FreeMiNT.
81297         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
81299 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
81301         * lib/filevercmp.c: Move hidden files up in ordering.
81302         * tests/test-filevercmp.c: Add tests for hidden files.
81304 2009-03-04  Bruno Haible  <bruno@clisp.org>
81306         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
81307         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
81308         AM_CFLAGS.
81309         Reported by Simon Josefsson.
81311 2009-03-03  Bruno Haible  <bruno@clisp.org>
81313         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
81314         Reported by Simon Josefsson.
81316         * doc/ld-version-script.texi: Update node reference.
81318 2009-03-03  Bruno Haible  <bruno@clisp.org>
81320         * modules/visibility (License): Change to 'unlimited'.
81321         Suggested by Simon Josefsson.
81323 2009-03-03  Jim Meyering  <meyering@redhat.com>
81325         unlinkdir: cannot_unlink_dir may modify process state
81326         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
81327         it's neither thread-safe nor appropriate for use in a library.
81329 2009-03-03  Eric Blake  <ebb9@byu.net>
81331         test-closein: silence test under Darwin
81332         * tests/test-closein.sh: Ignore stderr from cat, since we don't
81333         care if it dies from EPIPE or EBADF.
81335 2009-03-03  Bruno Haible  <bruno@clisp.org>
81337         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
81338         earlier.
81339         * doc/visibility.texi: Fix @node and @section.
81341 2009-03-03  Simon Josefsson  <simon@josefsson.org>
81343         * doc/gnulib.texi: Link to sections for ld version script and
81344         visibility.
81345         * doc/visibility.texi: Add @node and @section.
81346         * modules/ld-version-script: New module.
81347         * m4/ld-version-script.m4: New file.
81348         * doc/ld-version-script.texi: New file.
81350 2009-03-02  David Lutterkort  <lutter@redhat.com>
81352         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
81353         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81355 2009-03-02  Bruno Haible  <bruno@clisp.org>
81357         * doc/visibility.texi: Mention libtool's -export-symbols option.
81359 2009-03-02  Jim Meyering  <meyering@redhat.com>
81361         announce-gen: new option: --no-print-checksums
81362         * build-aux/announce-gen (usage): Describe it.
81363         (print_checksums): Print a newline here, not in the [*] footnote.
81364         (main): Honor it.
81366 2009-03-01  Bruno Haible  <bruno@clisp.org>
81368         Use socklen_t in the native Windows replacements prototypes.
81369         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
81370         instead of 'int'.
81371         * lib/getsockopt.c (rpl_getsockopt): Likewise.
81372         * lib/setsockopt.c (rpl_setsockopt): Likewise.
81373         * modules/getsockopt (Depends-on): Add socklen.
81374         * modules/setsockopt (Depends-on): Add socklen.
81376 2009-03-01  Bruno Haible  <bruno@clisp.org>
81378         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
81379         least 4.2.
81381 2009-03-01  Eric Blake  <ebb9@byu.net>
81382             Bruno Haible  <bruno@clisp.org>
81384         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
81385         error messages.
81386         * lib/wait-process.c (wait_subprocess): Omit error message about
81387         deadly signal sent to the child of termsigp != NULL.
81389 2009-03-01  Eric Blake  <ebb9@byu.net>
81391         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
81393 2009-03-01  Bruno Haible  <bruno@clisp.org>
81395         Avoid a gcc warning.
81396         * tests/test-sched.c (b): Make global.
81397         Reported by Eric Blake.
81399 2009-01-19  Martin Lambers  <marlam@marlam.de>
81401         Provide POSIX semantics for socket timeout options on W32.
81402         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
81403         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
81404         * modules/setsockopt: Depend on sys_time module for struct timeval.
81405         * modules/getsockopt: Depend on sys_time module for struct timeval.
81407 2009-03-01  Simon Josefsson  <simon@josefsson.org>
81409         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
81410         __USE_GNU, for consistency with netdb.in.h.
81411         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81413 2009-03-01  Bruno Haible  <bruno@clisp.org>
81415         More support for FreeMiNT.
81416         * lib/fseeko.c (rpl_fseeko): Complete last commit.
81417         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81419 2009-03-01  Bruno Haible  <bruno@clisp.org>
81421         More support for FreeMiNT.
81422         * lib/fpurge.c (fpurge): Correct last commit.
81423         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81425 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81427         Fix unportable awk script in vc-list-files.
81428         * build-aux/vc-list-files: In the replacement awk script, use
81429         substr with a second argument of 1, not zero.
81430         Report by Simon Josefsson.
81432 2009-02-28  Bruno Haible  <bruno@clisp.org>
81434         More support for FreeMiNT.
81435         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
81436         to FreeMiNT today.
81437         * lib/fwriting.c (fwriting): Likewise.
81438         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
81440 2009-02-28  Bruno Haible  <bruno@clisp.org>
81442         * tests/test-freadseek.c (main): Disable test beyond end of file on
81443         FreeMiNT.
81444         * tests/test-ftello.c (main): Likewise.
81445         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
81447 2009-02-28  Bruno Haible  <bruno@clisp.org>
81449         Add tentative support for FreeMiNT.
81450         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
81451         * lib/fpurge.c (fpurge): Likewise.
81452         * lib/freadable.c (freadable): Likewise.
81453         * lib/freading.c (freading): Likewise.
81454         * lib/freadptr.c (freadptr): Likewise.
81455         * lib/freadseek.c (freadptrinc): Likewise.
81456         * lib/fseeko.c (rpl_fseeko): Likewise.
81457         * lib/fseterr.c (fseterr): Likewise.
81458         * lib/fwritable.c (fwritable): Likewise.
81459         * lib/fwriting.c (fwriting): Likewise.
81460         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
81461         Hourihane.
81462         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81464 2009-02-28  Bruno Haible  <bruno@clisp.org>
81466         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
81467         SIGCHLD.
81468         Reported by Jim Meyering.
81470 2009-02-28  Bruno Haible  <bruno@clisp.org>
81472         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
81473         Mention the results of these tests on various platforms.
81474         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
81475         order.
81476         * doc/posix-functions/printf.texi: Likewise.
81477         * doc/posix-functions/snprintf.texi: Likewise.
81478         * doc/posix-functions/sprintf.texi: Likewise.
81479         * doc/posix-functions/vfprintf.texi: Likewise.
81480         * doc/posix-functions/vprintf.texi: Likewise.
81481         * doc/posix-functions/vsnprintf.texi: Likewise.
81482         * doc/posix-functions/vsprintf.texi: Likewise.
81483         * doc/glibc-functions/obstack_printf.texi: Likewise.
81484         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
81486 2009-02-28  Bruno Haible  <bruno@clisp.org>
81488         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
81489         Reported by Loïc Minier <lool@dooz.org>.
81491 2009-02-27  Bruno Haible  <bruno@clisp.org>
81493         * gnulib-tool (func_import): Make the sed expression used to create the
81494         sed script for updating the .gitignore file POSIX compliant.
81495         Reported by Eric Blake.
81497 2009-02-27  Bruno Haible  <bruno@clisp.org>
81499         * gnulib-tool (sed): Don't alias as "sed --posix".
81500         Reported by Eric Blake.
81502 2009-02-27  Bruno Haible  <bruno@clisp.org>
81504         Avoid test link errors.
81505         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
81506         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
81507         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
81508         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
81509         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81511 2009-02-27  Bruno Haible  <bruno@clisp.org>
81513         Avoid spurious "(cached)" in configure output.
81514         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
81515         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
81516         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
81517         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
81518         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
81519         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
81520         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
81521         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
81522         Reported by Eric Blake.
81524 2009-02-27  Eric Blake  <ebb9@byu.net>
81526         printf: fix regression in previous patch
81527         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
81529 2009-02-27  Bruno Haible  <bruno@clisp.org>
81531         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
81532         value.
81533         * lib/stdint.in.h: Likewise.
81534         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
81536 2009-02-27  Eric Blake  <ebb9@byu.net>
81538         doc: mention more functions added in cygwin 1.7.0
81539         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
81540         addition.
81541         * doc/posix-functions/open_wmemstream.texi: Likewise.
81542         * doc/posix-functions/wcsnlen.texi: Likewise.
81543         * doc/posix-functions/wcsnrtombs.texi: Likewise.
81544         * doc/posix-functions/wcstod.texi: Likewise.
81545         * doc/posix-functions/wcstof.texi: Likewise.
81546         * doc/posix-functions/wcstoimax.texi: Likewise.
81547         * doc/posix-functions/wcstok.texi: Likewise.
81548         * doc/posix-functions/wcstoumax.texi: Likewise.
81550         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
81551         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
81552         * doc/posix-functions/fprintf.texi: Update.
81553         * doc/posix-functions/printf.texi: Update.
81554         * doc/posix-functions/snprintf.texi: Update.
81555         * doc/posix-functions/sprintf.texi: Update.
81556         * doc/posix-functions/vfprintf.texi: Update.
81557         * doc/posix-functions/vprintf.texi: Update.
81558         * doc/posix-functions/vsnprintf.texi: Update.
81559         * doc/posix-functions/vsprintf.texi: Update.
81560         * doc/glibc-functions/obstack_printf.texi: Update.
81561         * doc/glibc-functions/obstack_vprintf.texi: Update.
81563 2009-02-26  Eric Blake  <ebb9@byu.net>
81565         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
81566         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
81567         compilation bug by using runtime conversion.
81568         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
81569         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
81570         * modules/ceill-tests (Files): Use nan.h.
81571         * modules/floorl-tests (Files): Likewise.
81572         * modules/frexpl-tests (Files): Likewise.
81573         * modules/isnanl-tests (Files): Likewise.
81574         * modules/ldexpl-tests (Files): Likewise.
81575         * modules/roundl-tests (Files): Likewise.
81576         * modules/truncl-tests (Files): Likewise.
81577         * tests/test-ceill.c (main): Use a working NaN.
81578         * tests/test-floorl.c (main): Likewise.
81579         * tests/test-frexpl.c (main): Likewise.
81580         * tests/test-isnan.c (test_long_double): Likewise.
81581         * tests/test-isnanl.h (main): Likewise.
81582         * tests/test-ldexpl.h (main): Likewise.
81583         * tests/test-roundl.h (main): Likewise.
81584         * tests/test-truncl.h (main): Likewise.
81585         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
81587 2009-02-26  Eric Blake  <ebb9@byu.net>
81588             Bruno Haible  <bruno@clisp.org>
81590         Work around a *printf bug with %ls on Solaris.
81591         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
81592         precision is specified, sprintf stops converting the wide string
81593         argument when the number of bytes that have been produced by this
81594         conversion equals or exceeds the precision.
81595         * doc/posix-functions/fprintf.texi: Update.
81596         * doc/posix-functions/printf.texi: Update.
81597         * doc/posix-functions/snprintf.texi: Update.
81598         * doc/posix-functions/sprintf.texi: Update.
81599         * doc/posix-functions/vfprintf.texi: Update.
81600         * doc/posix-functions/vprintf.texi: Update.
81601         * doc/posix-functions/vsnprintf.texi: Update.
81602         * doc/posix-functions/vsprintf.texi: Update.
81603         * doc/glibc-functions/obstack_printf.texi: Update.
81604         * doc/glibc-functions/obstack_vprintf.texi: Update.
81606 2009-02-26  Eric Blake  <ebb9@byu.net>
81608         stdlib: favor compiler check of random.h
81609         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
81610         to avoid an ObjC random.h installed by Swarm.
81612 2009-02-26  Bruno Haible  <bruno@clisp.org>
81614         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
81615         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
81616         Reported by Gary V. Vaughan <gary@gnu.org>.
81618 2009-02-26  Bruno Haible  <bruno@clisp.org>
81620         Fix *printf behaviour regarding the %ls directive.
81621         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
81622         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
81623         NEED_PRINTF_DIRECTIVE_LS.
81624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
81625         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81626         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81627         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
81628         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
81629         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
81630         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
81631         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81632         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81633         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81634         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81635         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
81636         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81637         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81638         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81639         * doc/posix-functions/fprintf.texi: Update.
81640         * doc/posix-functions/printf.texi: Update.
81641         * doc/posix-functions/snprintf.texi: Update.
81642         * doc/posix-functions/sprintf.texi: Update.
81643         * doc/posix-functions/vfprintf.texi: Update.
81644         * doc/posix-functions/vprintf.texi: Update.
81645         * doc/posix-functions/vsnprintf.texi: Update.
81646         * doc/posix-functions/vsprintf.texi: Update.
81647         * doc/glibc-functions/obstack_printf.texi: Update.
81648         * doc/glibc-functions/obstack_vprintf.texi: Update.
81649         Reported by Eric Blake.
81651 2009-02-25  Bruno Haible  <bruno@clisp.org>
81653         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
81654         with known value.
81655         Reported by Gary V. Vaughan <gary@gnu.org>.
81657 2009-02-25  Bruno Haible  <bruno@clisp.org>
81659         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
81660         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
81661         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
81662         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
81663         Reported by Gary V. Vaughan <gary@gnu.org>.
81665 2009-02-25  Bruno Haible  <bruno@clisp.org>
81667         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
81668         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
81669         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
81670         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
81671         Reported by Gary V. Vaughan <gary@gnu.org>.
81673 2009-02-25  Eric Blake  <ebb9@byu.net>
81675         tests: skip fseek/ftell tests if ungetc is broken
81676         * m4/ungetc.m4: New file.
81677         * modules/fseek-tests: Split test, so ungetc dependency is
81678         separate from rest of test.
81679         * modules/fseeko-tests: Likewise.
81680         * modules/ftell-tests: Likewise.
81681         * modules/ftello-tests: Likewise.
81682         * tests/test-fseek.c (main): Isolate ungetc dependency.
81683         * tests/test-fseeko.c (main): Likewise.
81684         * tests/test-ftell.c (main): Likewise.
81685         * tests/test-ftello.c (main): Likewise.
81686         * tests/test-fseek2.sh: New file.
81687         * tests/test-fseeko2.sh: Likewise.
81688         * tests/test-ftell2.sh: Likewise.
81689         * tests/test-ftello2.sh: Likewise.
81691 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
81693         test-getaddrinfo: fix usage of skip return code 77
81694         * tests/test-gettaddrinfo.c: Return skip code 77 only
81695         for first occurrence of skip (4x77 is not 77)
81697 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
81699         strtod: avoid C99 decl-after-statement
81700         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
81702 2009-02-24  Eric Blake  <ebb9@byu.net>
81704         strtod: detect HP-UX 11.31 bug
81705         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
81706         Reported by Gary V. Vaughan.
81708 2009-02-23  Bruno Haible  <bruno@clisp.org>
81710         Fix invalid read past end of memory block.
81711         * lib/vasnprintf.c (DCHAR_SET): Define.
81712         (local_wcslen): Define only when needed.
81713         (local_strnlen, local_wcsnlen): New functions.
81714         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
81715         directives that involve a conversion ourselves.
81716         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
81717         wcsnlen, mbrtowc, wcrtomb.
81718         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
81719         * tests/test-vasprintf-posix.c (test_function): Likewise.
81720         * tests/test-snprintf-posix.h (test_function): Likewise.
81721         * tests/test-sprintf-posix.h (test_function): Likewise.
81722         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81724 2009-02-22  Bruno Haible  <bruno@clisp.org>
81726         Implement new clarified decomposition of Hangul syllables.
81727         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
81728         of type LTV, return only a pairwise decomposition.
81729         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
81730         Likewise.
81731         * tests/uninorm/test-decomposition.c (main): Updated expected result.
81732         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
81733         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
81735 2009-02-22  Bruno Haible  <bruno@clisp.org>
81737         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
81738         zero-length results and shrink excess allocated memory.
81739         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
81740         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
81741         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
81742         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
81743         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
81744         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
81745         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
81746         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
81747         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
81748         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
81749         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
81750         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
81752 2009-02-21  Bruno Haible  <bruno@clisp.org>
81754         * doc/gnulib.texi: Include safe-alloc.texi earlier.
81755         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
81756         spaces after a period. Put a space between a macro name and its
81757         argument list. Trivial rewordings.
81758         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
81759         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
81760         (main): Return 0 explicitly.
81762 2009-02-21  Bruno Haible  <bruno@clisp.org>
81764         Tests for module 'uninorm/filter'.
81765         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
81766         * modules/uninorm/filter-tests: New file.
81768         New module 'uninorm/filter'.
81769         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
81770         uninorm_filter_flush, uninorm_filter_free): New declarations.
81771         * lib/uninorm/uninorm-filter.c: New file.
81772         * modules/uninorm/filter: New file.
81774 2009-02-21  Bruno Haible  <bruno@clisp.org>
81776         Tests for module 'uninorm/nfkc'.
81777         * tests/uninorm/test-nfkc.c: New file.
81778         * tests/uninorm/test-u8-nfkc.c: New file.
81779         * tests/uninorm/test-u16-nfkc.c: New file.
81780         * tests/uninorm/test-u32-nfkc.c: New file.
81781         * tests/uninorm/test-u32-nfkc-big.sh: New file.
81782         * tests/uninorm/test-u32-nfkc-big.c: New file.
81783         * modules/uninorm/nfkc-tests: New file.
81785         New module 'uninorm/nfkc'.
81786         * lib/uninorm/nfkc.c: New file.
81787         * modules/uninorm/nfkc: New file.
81789         Tests for module 'uninorm/nfkd'.
81790         * tests/uninorm/test-nfkd.c: New file.
81791         * tests/uninorm/test-u8-nfkd.c: New file.
81792         * tests/uninorm/test-u16-nfkd.c: New file.
81793         * tests/uninorm/test-u32-nfkd.c: New file.
81794         * tests/uninorm/test-u32-nfkd-big.sh: New file.
81795         * tests/uninorm/test-u32-nfkd-big.c: New file.
81796         * modules/uninorm/nfkd-tests: New file.
81798         New module 'uninorm/nfkd'.
81799         * lib/uninorm/nfkd.c: New file.
81800         * modules/uninorm/nfkd: New file.
81802         Tests for module 'uninorm/nfc'.
81803         * tests/uninorm/test-nfc.c: New file.
81804         * tests/uninorm/test-u8-nfc.c: New file.
81805         * tests/uninorm/test-u16-nfc.c: New file.
81806         * tests/uninorm/test-u32-nfc.c: New file.
81807         * tests/uninorm/test-u32-nfc-big.sh: New file.
81808         * tests/uninorm/test-u32-nfc-big.c: New file.
81809         * modules/uninorm/nfc-tests: New file.
81811         New module 'uninorm/nfc'.
81812         * lib/uninorm/nfc.c: New file.
81813         * modules/uninorm/nfc: New file.
81815         Tests for module 'uninorm/nfd'.
81816         * tests/uninorm/test-nfd.c: New file.
81817         * tests/uninorm/test-u8-nfd.c: New file.
81818         * tests/uninorm/test-u16-nfd.c: New file.
81819         * tests/uninorm/test-u32-nfd.c: New file.
81820         * tests/uninorm/test-u32-nfd-big.sh: New file.
81821         * tests/uninorm/test-u32-nfd-big.c: New file.
81822         * tests/uninorm/test-u32-normalize-big.h: New file.
81823         * tests/uninorm/test-u32-normalize-big.c: New file.
81824         * tests/uninorm/NormalizationTest.txt: New file, created from
81825         Unicode 5.1.0 NormalizationTest.txt.
81826         * modules/uninorm/nfd-tests: New file.
81828         New module 'uninorm/nfd'.
81829         * lib/uninorm/nfd.c: New file.
81830         * modules/uninorm/nfd: New file.
81832         New module 'uninorm/u32-normalize'.
81833         * lib/uninorm/u32-normalize.c: New file.
81834         * modules/uninorm/u32-normalize: New file.
81836         New module 'uninorm/u16-normalize'.
81837         * lib/uninorm/u16-normalize.c: New file.
81838         * modules/uninorm/u16-normalize: New file.
81840         New module 'uninorm/u8-normalize'.
81841         * lib/uninorm/u8-normalize.c: New file.
81842         * lib/uninorm/normalize-internal.h: New file.
81843         * lib/uninorm/u-normalize-internal.h: New file.
81844         * modules/uninorm/u8-normalize: New file.
81846         New module 'uninorm/decompose-internal'.
81847         * lib/uninorm/decompose-internal.c: New file.
81848         * modules/uninorm/decompose-internal: New file.
81850         Tests for module 'uninorm/composition'.
81851         * tests/uninorm/test-composition.c: New file.
81852         * modules/uninorm/composition-tests: New file.
81854         New module 'uninorm/composition'.
81855         * lib/uninorm/composition.c: New file.
81856         * lib/uninorm/composition-table.gperf: New file, generated by
81857         gen-uni-tables.
81858         * modules/uninorm/composition: New file.
81860         Tests for module 'uninorm/compat-decomposition'.
81861         * tests/uninorm/test-compat-decomposition.c: New file.
81862         * modules/uninorm/compat-decomposition-tests: New file.
81864         New module 'uninorm/compat-decomposition'.
81865         * lib/uninorm/decompose-internal.h: New file.
81866         * lib/uninorm/compat-decomposition.c: New file.
81867         * modules/uninorm/compat-decomposition: New file.
81869         Tests for module 'uninorm/canonical-decomposition'.
81870         * tests/uninorm/test-canonical-decomposition.c: New file.
81871         * modules/uninorm/canonical-decomposition-tests: New file.
81873         New module 'uninorm/canonical-decomposition'.
81874         * lib/uninorm/canonical-decomposition.c: New file.
81875         * modules/uninorm/canonical-decomposition: New file.
81877         Tests for module 'uninorm/decomposition'.
81878         * tests/uninorm/test-decomposition.c: New file.
81879         * modules/uninorm/decomposition-tests: New file.
81881         New module 'uninorm/decomposition'.
81882         * lib/uninorm/decomposition.c: New file.
81883         * modules/uninorm/decomposition: New file.
81885         New module 'uninorm/decomposition-table'.
81886         * lib/uninorm/decomposition-table.h: New file.
81887         * lib/uninorm/decomposition-table.c: New file.
81888         * lib/uninorm/decomposition-table1.h: New file, generated by
81889         gen-uni-tables.
81890         * lib/uninorm/decomposition-table2.h: New file, generated by
81891         gen-uni-tables.
81892         * modules/uninorm/decomposition-table: New file.
81894         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
81895         (UC_DECOMP_*): New enumeration items.
81896         (get_decomposition): New function.
81897         (struct decomp_table): New type.
81898         (output_decomposition, output_decomposition_tables): New functions.
81899         (unicode_composition_exclusions): New variable.
81900         (fill_composition_exclusions, debug_output_composition_tables): New
81901         functions.
81902         (main): Accept one more argument. Invoke fill_composition_exclusions.
81903         Output decomposition and composition tables.
81905         New module 'uninorm/base'.
81906         * lib/uninorm.h: New file.
81907         * lib/unictype.h: Update comment.
81908         * modules/uninorm/base: New file.
81910 2009-02-21  David Lutterkort  <lutter@redhat.com>
81912         Tests for module 'safe-alloc'.
81913         * tests/test-safe-alloc.c: New file.
81914         * modules/safe-alloc-tests: New file.
81916         New module 'safe-alloc'.
81917         * lib/safe-alloc.h: New file.
81918         * lib/safe-alloc.c: New file.
81919         * m4/safe-alloc.m4: New file.
81920         * modules/safe-alloc: New file.
81921         * doc/safe-alloc.texi: New file.
81922         * doc/gnulib.texi: Include it.
81923         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
81924         safe-alloc.
81926 2009-02-18  Bruno Haible  <bruno@clisp.org>
81928         Fix link error on non-glibc systems.
81929         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
81930         variable.
81931         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81933 2009-02-18  Jim Meyering  <meyering@redhat.com>
81935         fts: avoid used-uninitialized error due to recent change
81936         * lib/fts.c (fts_read): Guard uses of the new member,
81937         parent->fts_n_dirs_remaining, since it's not relevant for
81938         the parent of a directory specified on the command-line.
81940 2009-02-17  James Youngman  <jay@gnu.org>
81941             Bruno Haible  <bruno@clisp.org>
81943         * m4/include_next.m4: Reformulate comment.
81945 2009-02-16  Jim Meyering  <meyering@redhat.com>
81947         fts: add #if guards so that the fts_lgpl module still builds
81948         * lib/fts.c: Guard just-added hash-table-using parts with
81949         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
81950         Reported by Simon Josefsson.
81952 2009-02-15  Bruno Haible  <bruno@clisp.org>
81954         * modules/array-mergesort-tests: New file.
81955         * tests/test-array-mergesort.c: New file.
81957         New module 'array-mergesort'.
81958         * modules/array-mergesort: New file.
81959         * lib/array-mergesort.h: New file.
81961 2009-02-15  Bruno Haible  <bruno@clisp.org>
81963         Fix 2009-02-07 commit.
81964         * lib/gen-uni-tables.c (output_predicate, output_category,
81965         output_combclass, output_bidi_category, output_decimal_digit,
81966         output_digit, output_numeric, output_mirror, output_scripts,
81967         output_ident_category, output_simple_mapping): Fix format directives.
81968         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
81970 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
81972         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
81973         fixes are available from IBM.
81975 2009-02-13  Jim Meyering  <meyering@redhat.com>
81977         fts: arrange not to stat non-directories in more cases
81978         This makes GNU find (when it doesn't need to stat each file)
81979         *much* more efficient at traversing reiserfs file systems.
81980         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
81981         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
81982         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
81983         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
81984         (leaf_optimization_applies): New function.
81985         (LCO_hash, LCO_compare): New helper functions.
81986         (link_count_optimize_ok): New function.
81987         (fts_stat): Initialize new member (if dir).
81988         (fts_read): Decrement parent's fts_n_dirs_remaining count if
81989         we've just stat'ed a directory.  Skip the stat call when possible.
81990         ---
81991         Note this AFS-related exchange:
81992         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
81993         and note find's pioctl call in find/fstype.c.
81994         But that is necessary only if you want to enable the
81995         optimization for AFS, and for now, I don't.
81997         fts: move a function definition "up" (no semantic change)
81998         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
81999         "up" to precede upcoming use of a related function.
82001 2009-02-11  Jim Meyering  <meyering@redhat.com>
82003         fts: correct internal computation of nlinks (optimization-related)
82004         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
82005         whether the current entry is a directory, so don't test it.
82007 2009-02-10  Bruno Haible  <bruno@clisp.org>
82009         Tests for module 'uniwbrk/ulc-wordbreaks'.
82010         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
82011         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
82012         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
82014         Tests for module 'uniwbrk/u32-wordbreaks'.
82015         * modules/uniwbrk/u32-wordbreaks-tests: New file.
82016         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
82018         Tests for module 'uniwbrk/u16-wordbreaks'.
82019         * modules/uniwbrk/u16-wordbreaks-tests: New file.
82020         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
82022         Tests for module 'uniwbrk/u8-wordbreaks'.
82023         * modules/uniwbrk/u8-wordbreaks-tests: New file.
82024         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
82026 2009-02-10  Bruno Haible  <bruno@clisp.org>
82028         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
82029         property.
82030         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
82031         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
82032         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
82034 2009-02-10  Simon Josefsson  <simon@josefsson.org>
82036         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
82037         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
82039 2009-02-10  Bruno Haible  <bruno@clisp.org>
82041         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
82042         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
82043         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
82044         * lib/unilbrk/u8-possible-linebreaks.c: Update.
82045         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
82046         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
82048 2009-02-09  Simon Josefsson  <simon@josefsson.org>
82050         * lib/sockets.h (gl_fd_to_handle): New function.
82052         * tests/test-sockets.c: Call gl_fd_to_handle.
82054 2009-02-09  Bruno Haible  <bruno@clisp.org>
82056         * doc/havelib.texi: Document the conventions on bi-arch systems.
82058 2009-02-08  Bruno Haible  <bruno@clisp.org>
82060         Document the AC_LIB_LINKFLAGS macro.
82061         * doc/havelib.texi: New file, mostly written on 2005-05-24.
82062         * doc/gnulib.texi: Include it.
82064 2009-02-08  Bruno Haible  <bruno@clisp.org>
82066         Fix wrong order of sections, compared to TOC.
82067         * doc/gnulib.texi: Include relocatable-maint.texi after the
82068         "Regular expressions" node, not before.
82070 2009-02-08  Bruno Haible  <bruno@clisp.org>
82072         Tests for module 'unicase/totitle'.
82073         * modules/unicase/totitle-tests: New file.
82075         Tests for module 'unicase/tolower'.
82076         * modules/unicase/tolower-tests: New file.
82078         Tests for module 'unicase/toupper'.
82079         * modules/unicase/toupper-tests: New file.
82080         * tests/unicase/test-mapping-part1.h: New file.
82081         * tests/unicase/test-mapping-part2.h: New file.
82083         New module 'unicase/totitle'.
82084         * modules/unicase/totitle: New file.
82085         * lib/unicase/totitle.c: New file.
82087         New module 'unicase/tolower'.
82088         * modules/unicase/tolower: New file.
82089         * lib/unicase/tolower.c: New file.
82091         New module 'unicase/toupper'.
82092         * modules/unicase/toupper: New file.
82093         * lib/unicase/toupper.c: New file.
82094         * lib/unicase/simple-mapping.h: New file.
82096         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
82097         (mapping_table): New structure.
82098         (output_simple_mapping): New function.
82099         (main): Invoke output_simple_mapping_test and output_simple_mapping.
82100         * modules/gen-uni-tables (Description): Update.
82101         * lib/unicase/toupper.h: New file, automatically generated by
82102         gen-uni-tables.
82103         * lib/unicase/tolower.h: New file, automatically generated by
82104         gen-uni-tables.
82105         * lib/unicase/totitle.h: New file, automatically generated by
82106         gen-uni-tables.
82107         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
82108         gen-uni-tables.
82109         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
82110         gen-uni-tables.
82111         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
82112         gen-uni-tables.
82114         New module 'unicase/base'.
82115         * modules/unicase/base: New file.
82116         * lib/unicase.h: New file.
82118 2009-02-08  Bruno Haible  <bruno@clisp.org>
82120         New module 'uniwbrk/ulc-wordbreaks'.
82121         * modules/uniwbrk/ulc-wordbreaks: New file.
82122         * lib/uniwbrk/ulc-wordbreaks.c: New file.
82124         New module 'uniwbrk/u32-wordbreaks'.
82125         * modules/uniwbrk/u32-wordbreaks: New file.
82126         * lib/uniwbrk/u32-wordbreaks.c: New file.
82128         New module 'uniwbrk/u16-wordbreaks'.
82129         * modules/uniwbrk/u16-wordbreaks: New file.
82130         * lib/uniwbrk/u16-wordbreaks.c: New file.
82132         New module 'uniwbrk/u8-wordbreaks'.
82133         * modules/uniwbrk/u8-wordbreaks: New file.
82134         * lib/uniwbrk/u8-wordbreaks.c: New file.
82135         * lib/uniwbrk/u-wordbreaks.h: New file.
82137         New module 'uniwbrk/table'.
82138         * modules/uniwbrk/table: New file.
82139         * lib/uniwbrk/wbrktable.h: New file.
82140         * lib/uniwbrk/wbrktable.c: New file.
82142         New module 'uniwbrk/wordbreak-property'.
82143         * modules/uniwbrk/wordbreak-property: New file.
82144         * lib/uniwbrk/wordbreak-property.c: New file.
82146         * lib/gen-uni-tables.c (WBP_*): New enum items.
82147         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
82148         (unicode_org_wbp): New variable.
82149         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
82150         New functions.
82151         (wbp_table): New structure.
82152         (output_wbp, output_wbrk_tables): New functions.
82153         (main): Accept additional argument. Invoke fill_org_wbp,
82154         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
82155         output_wbrk_tables.
82156         * modules/gen-uni-tables (Description): Update.
82157         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
82158         gen-uni-tables.
82160         New module 'uniwbrk/base'.
82161         * modules/uniwbrk/base: New file.
82162         * lib/uniwbrk.h: New file.
82164 2009-02-08  Bruno Haible  <bruno@clisp.org>
82166         Update to Unicode 5.1.0.
82167         * lib/gen-uni-tables.c (is_property_alphabetic): Include
82168         U+2185..U+2188.
82169         (is_property_default_ignorable_code_point): Don't include characters
82170         of category Cc or Cs and not-a-characters.
82171         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
82172         U+0D79, U+109E, U+109F, U+A60C.
82173         * lib/unictype/bidi_of.h: Regenerated.
82174         * lib/unictype/blocks.h: Regenerated.
82175         * lib/unictype/categ_C.h: Regenerated.
82176         * lib/unictype/categ_Cf.h: Regenerated.
82177         * lib/unictype/categ_Cn.h: Regenerated.
82178         * lib/unictype/categ_L.h: Regenerated.
82179         * lib/unictype/categ_Ll.h: Regenerated.
82180         * lib/unictype/categ_Lm.h: Regenerated.
82181         * lib/unictype/categ_Lo.h: Regenerated.
82182         * lib/unictype/categ_Lu.h: Regenerated.
82183         * lib/unictype/categ_M.h: Regenerated.
82184         * lib/unictype/categ_Mc.h: Regenerated.
82185         * lib/unictype/categ_Me.h: Regenerated.
82186         * lib/unictype/categ_Mn.h: Regenerated.
82187         * lib/unictype/categ_N.h: Regenerated.
82188         * lib/unictype/categ_Nd.h: Regenerated.
82189         * lib/unictype/categ_Nl.h: Regenerated.
82190         * lib/unictype/categ_No.h: Regenerated.
82191         * lib/unictype/categ_P.h: Regenerated.
82192         * lib/unictype/categ_Pd.h: Regenerated.
82193         * lib/unictype/categ_Pe.h: Regenerated.
82194         * lib/unictype/categ_Pf.h: Regenerated.
82195         * lib/unictype/categ_Pi.h: Regenerated.
82196         * lib/unictype/categ_Po.h: Regenerated.
82197         * lib/unictype/categ_Ps.h: Regenerated.
82198         * lib/unictype/categ_S.h: Regenerated.
82199         * lib/unictype/categ_Sk.h: Regenerated.
82200         * lib/unictype/categ_Sm.h: Regenerated.
82201         * lib/unictype/categ_So.h: Regenerated.
82202         * lib/unictype/categ_of.h: Regenerated.
82203         * lib/unictype/combining.h: Regenerated.
82204         * lib/unictype/ctype_alnum.h: Regenerated.
82205         * lib/unictype/ctype_alpha.h: Regenerated.
82206         * lib/unictype/ctype_graph.h: Regenerated.
82207         * lib/unictype/ctype_lower.h: Regenerated.
82208         * lib/unictype/ctype_print.h: Regenerated.
82209         * lib/unictype/ctype_punct.h: Regenerated.
82210         * lib/unictype/ctype_upper.h: Regenerated.
82211         * lib/unictype/decdigit.h: Regenerated.
82212         * lib/unictype/digit.h: Regenerated.
82213         * lib/unictype/mirror.h: Regenerated.
82214         * lib/unictype/numeric.h: Regenerated.
82215         * lib/unictype/pr_alphabetic.h: Regenerated.
82216         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
82217         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
82218         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
82219         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
82220         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
82221         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
82222         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
82223         * lib/unictype/pr_combining.h: Regenerated.
82224         * lib/unictype/pr_dash.h: Regenerated.
82225         * lib/unictype/pr_decimal_digit.h: Regenerated.
82226         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
82227         * lib/unictype/pr_deprecated.h: Regenerated.
82228         * lib/unictype/pr_diacritic.h: Regenerated.
82229         * lib/unictype/pr_extender.h: Regenerated.
82230         * lib/unictype/pr_format_control.h: Regenerated.
82231         * lib/unictype/pr_grapheme_base.h: Regenerated.
82232         * lib/unictype/pr_grapheme_extend.h: Regenerated.
82233         * lib/unictype/pr_grapheme_link.h: Regenerated.
82234         * lib/unictype/pr_id_continue.h: Regenerated.
82235         * lib/unictype/pr_id_start.h: Regenerated.
82236         * lib/unictype/pr_ideographic.h: Regenerated.
82237         * lib/unictype/pr_ignorable_control.h: Regenerated.
82238         * lib/unictype/pr_lowercase.h: Regenerated.
82239         * lib/unictype/pr_math.h: Regenerated.
82240         * lib/unictype/pr_numeric.h: Regenerated.
82241         * lib/unictype/pr_other_alphabetic.h: Regenerated.
82242         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
82243         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
82244         * lib/unictype/pr_other_id_continue.h: Regenerated.
82245         * lib/unictype/pr_other_lowercase.h: Regenerated.
82246         * lib/unictype/pr_other_math.h: Regenerated.
82247         * lib/unictype/pr_punctuation.h: Regenerated.
82248         * lib/unictype/pr_sentence_terminal.h: Regenerated.
82249         * lib/unictype/pr_soft_dotted.h: Regenerated.
82250         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
82251         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
82252         * lib/unictype/pr_unified_ideograph.h: Regenerated.
82253         * lib/unictype/pr_uppercase.h: Regenerated.
82254         * lib/unictype/pr_xid_continue.h: Regenerated.
82255         * lib/unictype/pr_xid_start.h: Regenerated.
82256         * lib/unictype/pr_zero_width.h: Regenerated.
82257         * lib/unictype/scripts.h: Regenerated.
82258         * lib/unictype/scripts_byname.gperf: Regenerated.
82259         * lib/unictype/sy_java_ident.h: Regenerated.
82260         * lib/unilbrk/lbrkprop1.h: Regenerated.
82261         * lib/unilbrk/lbrkprop2.h: Regenerated.
82262         * tests/unictype/test-categ_C.c: Regenerated.
82263         * tests/unictype/test-categ_Cf.c: Regenerated.
82264         * tests/unictype/test-categ_Cn.c: Regenerated.
82265         * tests/unictype/test-categ_L.c: Regenerated.
82266         * tests/unictype/test-categ_Ll.c: Regenerated.
82267         * tests/unictype/test-categ_Lm.c: Regenerated.
82268         * tests/unictype/test-categ_Lo.c: Regenerated.
82269         * tests/unictype/test-categ_Lu.c: Regenerated.
82270         * tests/unictype/test-categ_M.c: Regenerated.
82271         * tests/unictype/test-categ_Mc.c: Regenerated.
82272         * tests/unictype/test-categ_Me.c: Regenerated.
82273         * tests/unictype/test-categ_Mn.c: Regenerated.
82274         * tests/unictype/test-categ_N.c: Regenerated.
82275         * tests/unictype/test-categ_Nd.c: Regenerated.
82276         * tests/unictype/test-categ_Nl.c: Regenerated.
82277         * tests/unictype/test-categ_No.c: Regenerated.
82278         * tests/unictype/test-categ_P.c: Regenerated.
82279         * tests/unictype/test-categ_Pd.c: Regenerated.
82280         * tests/unictype/test-categ_Pe.c: Regenerated.
82281         * tests/unictype/test-categ_Pf.c: Regenerated.
82282         * tests/unictype/test-categ_Pi.c: Regenerated.
82283         * tests/unictype/test-categ_Po.c: Regenerated.
82284         * tests/unictype/test-categ_Ps.c: Regenerated.
82285         * tests/unictype/test-categ_S.c: Regenerated.
82286         * tests/unictype/test-categ_Sk.c: Regenerated.
82287         * tests/unictype/test-categ_Sm.c: Regenerated.
82288         * tests/unictype/test-categ_So.c: Regenerated.
82289         * tests/unictype/test-ctype_alnum.c: Regenerated.
82290         * tests/unictype/test-ctype_alpha.c: Regenerated.
82291         * tests/unictype/test-ctype_graph.c: Regenerated.
82292         * tests/unictype/test-ctype_lower.c: Regenerated.
82293         * tests/unictype/test-ctype_print.c: Regenerated.
82294         * tests/unictype/test-ctype_punct.c: Regenerated.
82295         * tests/unictype/test-ctype_upper.c: Regenerated.
82296         * tests/unictype/test-decdigit.h: Regenerated.
82297         * tests/unictype/test-digit.h: Regenerated.
82298         * tests/unictype/test-numeric.h: Regenerated.
82299         * tests/unictype/test-pr_alphabetic.c: Regenerated.
82300         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
82301         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
82302         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
82303         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
82304         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
82305         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
82306         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
82307         * tests/unictype/test-pr_combining.c: Regenerated.
82308         * tests/unictype/test-pr_dash.c: Regenerated.
82309         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
82310         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
82311         * tests/unictype/test-pr_deprecated.c: Regenerated.
82312         * tests/unictype/test-pr_diacritic.c: Regenerated.
82313         * tests/unictype/test-pr_extender.c: Regenerated.
82314         * tests/unictype/test-pr_format_control.c: Regenerated.
82315         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
82316         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
82317         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
82318         * tests/unictype/test-pr_id_continue.c: Regenerated.
82319         * tests/unictype/test-pr_id_start.c: Regenerated.
82320         * tests/unictype/test-pr_ideographic.c: Regenerated.
82321         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
82322         * tests/unictype/test-pr_lowercase.c: Regenerated.
82323         * tests/unictype/test-pr_math.c: Regenerated.
82324         * tests/unictype/test-pr_numeric.c: Regenerated.
82325         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
82326         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
82327         Regenerated.
82328         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
82329         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
82330         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
82331         * tests/unictype/test-pr_other_math.c: Regenerated.
82332         * tests/unictype/test-pr_punctuation.c: Regenerated.
82333         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
82334         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
82335         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
82336         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
82337         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
82338         * tests/unictype/test-pr_uppercase.c: Regenerated.
82339         * tests/unictype/test-pr_xid_continue.c: Regenerated.
82340         * tests/unictype/test-pr_xid_start.c: Regenerated.
82341         * tests/unictype/test-pr_zero_width.c: Regenerated.
82343         Update to Unicode 5.1.0.
82344         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
82345         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
82346         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
82347         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
82348         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
82349         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
82350         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
82351         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
82352         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
82353         (nonspacing_table_ind): Update.
82354         * tests/uniwidth/test-uc_width2.sh: Update expected result.
82356         Update to Unicode 5.1.0.
82357         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
82358         code transform.
82359         * lib/uniname/uniname.c (unicode_character_name,
82360         unicode_name_character): Add the range 0x1Fxxx to the code transform.
82361         * lib/uniname/uninames.h: Regenerated.
82362         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
82364 2009-02-07  Bruno Haible  <bruno@clisp.org>
82366         Merge gen-ctype and gen-lbrk into a single program.
82367         * lib/gen-uni-tables.c: New file, incorporating
82368         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
82369         Add directory prefixes to the names of the generated files.
82370         * lib/unictype/gen-ctype.c: Remove file.
82371         * lib/unilbrk/gen-lbrk.c: Remove file.
82372         * modules/gen-uni-tables: New file.
82373         * modules/unictype/gen-ctype: Remove file.
82374         * modules/unilbrk/gen-lbrk: Remove file.
82376 2009-02-07  Bruno Haible  <bruno@clisp.org>
82378         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
82380         New module 'unistr/u32-strcoll'.
82381         * modules/unistr/u32-strcoll: New file.
82382         * lib/unistr/u32-strcoll.c: New file.
82384         New module 'unistr/u16-strcoll'.
82385         * modules/unistr/u16-strcoll: New file.
82386         * lib/unistr/u16-strcoll.c: New file.
82388         New module 'unistr/u8-strcoll'.
82389         * modules/unistr/u8-strcoll: New file.
82390         * lib/unistr/u8-strcoll.c: New file.
82391         * lib/unistr/u-strcoll.h: New file.
82393 2009-02-07  Bruno Haible  <bruno@clisp.org>
82395         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
82396         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82397         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82398         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
82399         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
82400         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
82402 2009-02-07  Bruno Haible  <bruno@clisp.org>
82404         Make 64-bit clean.
82405         * lib/unictype/gen-ctype.c (output_predicate, output_category,
82406         output_combclass, output_bidi_category, output_decimal_digit,
82407         output_digit, output_numeric, output_mirror, output_scripts,
82408         output_ident_category): Use proper width specifier in format strings.
82410 2009-02-07  Bruno Haible  <bruno@clisp.org>
82412         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
82413         failure behaviour.
82415 2009-02-07  Jim Meyering  <meyering@redhat.com>
82417         regex: avoid compilation failure with upcoming gcc-4.4
82418         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
82419         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
82420         "... error: integer overflow in preprocessor expression".
82422 2009-02-05  Ben Pfaff  <blp@gnu.org>
82424         Fix link errors on Windows when close module is used.
82425         * modules/close: Add $(LIB_CLOSE) to Link section.
82426         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
82427         $(LIB_CLOSE) on Windows.
82429 2009-02-05  Jim Meyering  <meyering@redhat.com>
82431         still avoid unused-parameter warnings, but do it cleanly
82432         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
82433         (get_fs_usage): Cast to void instead.
82434         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
82435         (dev_from_mount_options, read_file_system_list): Cast to void.
82436         Prompted by Bruno Haible.
82438 2009-02-04  Jim Meyering  <meyering@redhat.com>
82440         fsusage.c: correct copyright year
82441         * lib/fsusage.c: Reflect year in which the change is pushed into
82443         avoid misc. warnings
82444         * lib/fsusage.c (UNUSED_PARAM): Define.
82445         (get_fs_usage): Mark parameter "disk" as unused.
82446         * lib/getugroups.c (getgrent): Use "void" in prototype.
82447         * lib/mountlist.c: Mark unused parameters.
82448         (read_file_system_list): Declare a local with "const".
82449         * lib/nanosleep.c (getnow): Declare static.
82450         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
82452         dirfd: set errno upon failure
82453         * lib/dirfd.c: Include <errno.h>.
82454         Set errno to ENOTSUP when returning -1.
82455         * modules/dirfd (Depends-on): Add errno.
82456         Suggested by John Kodis <kodis@comcast.net>.
82458 2009-02-01  Bruno Haible  <bruno@clisp.org>
82460         Don't assume sizeof (long) >= sizeof (void *).
82461         * lib/memcmp.c: Include stdint.h.
82462         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
82463         srcp2 to 'const byte *'.
82464         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
82465         types to uintptr_t.
82466         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
82467         * modules/memcmp (Depends-on): Add stdint.
82468         Reported by Ozkan Sezer <sezeroz@gmail.com>.
82470 2009-01-30  Eric Blake  <ebb9@byu.net>
82472         fix more require-before-expand issues
82473         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
82474         expand, AC_PROG_AWK.
82475         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
82477 2009-01-28  Eric Blake  <ebb9@byu.net>
82479         version-etc: use consistent URL formatting
82480         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
82481         Improve formatting.  Use fputs for string without %.
82483 2009-01-28  Jim Meyering  <meyering@redhat.com>
82485         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
82486         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
82487         "underquoted definition of NAME" from autoconf-2.59.
82489 2009-01-28  Bruno Haible  <bruno@clisp.org>
82491         * doc/gnulib.texi: Add "Obsolete modules" to index.
82493 2009-01-28  Jim Meyering  <meyering@redhat.com>
82495         useless-if-before-free: recognize more variants
82496         * build-aux/useless-if-before-free: Also recognize e.g.,
82497         if (NULL != p) free (p);
82499 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
82501         test-getaddrinfo: skip (don't fail) this test when there's no network
82502         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
82503         on the presumption that it means you lack network access.
82505 2009-01-26  Jim Meyering  <meyering@redhat.com>
82507         fflush: avoid warnings on modern systems
82508         * lib/fflush.c (rpl_fflush): Move declarations of locals,
82509         pos and result, into scopes where they're used.
82511 2009-01-26  Eric Blake  <ebb9@byu.net>
82513         Silence warning reintroduced by recent extensions patch.
82514         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
82515         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
82516         autoconf.
82518         Backport improved autoconf semantics of AC_DEFUN_ONCE.
82519         * m4/00gnulib.m4: New file.
82520         * gnulib-tool (func_get_filelist): Always use it.
82521         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
82522         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
82524 2009-01-25  Bruno Haible  <bruno@clisp.org>
82526         Make test-quotearg work on MacOS X and AIX.
82527         * tests/test-quotearg.sh: New file.
82528         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
82529         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
82530         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
82531         include <libintl.h>.
82532         (fake_locale): Remove variable.
82533         (gettext, dgettext, dcgettext): Remove functions.
82534         (main): Instead of setting a fake locale, set a real locale. Call
82535         textdomain and bindtextdomain.
82536         * modules/quotearg-tests (Files): Add the new files.
82537         (Depends-on): Add gettext, setenv, unsetenv.
82538         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
82539         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
82540         Augment TESTS_ENVIRONMENT.
82542 2009-01-25  Bruno Haible  <bruno@clisp.org>
82544         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
82545         fr_FR.ISO8859-1 locale on MacOS X.
82546         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
82547         ja_JP.eucJP locale on MacOS X.
82548         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
82549         zh_CN.GB18030 locale on MacOS X.
82551 2009-01-25  Bruno Haible  <bruno@clisp.org>
82553         Avoid link errors on MacOS X 10.3.
82554         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
82555         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
82557 2009-01-25  Bruno Haible  <bruno@clisp.org>
82559         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
82560         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
82561         * modules/pipe (Files): Remove m4/posix_spawn.m4.
82562         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
82563         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
82564         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
82565         posix_spawnattr_init, posix_spawnattr_setsigmask,
82566         posix_spawnattr_setflags, posix_spawnattr_destroy.
82568         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
82569         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
82570         * modules/execute (Files): Remove m4/posix_spawn.m4.
82571         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
82572         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
82573         posix_spawnattr_init, posix_spawnattr_setsigmask,
82574         posix_spawnattr_setflags, posix_spawnattr_destroy.
82576 2009-01-25  Bruno Haible  <bruno@clisp.org>
82578         * lib/glthread/threadlib.c: Include <stdlib.h>.
82580 2009-01-25  Bruno Haible  <bruno@clisp.org>
82582         * lib/glthread/threadlib.c (dummy): New declaration.
82584 2009-01-25  Bruno Haible  <bruno@clisp.org>
82586         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
82587         multibyte characters also for the GB18030 encoding. Don't crash when
82588         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
82590 2009-01-25  Bruno Haible  <bruno@clisp.org>
82592         Avoid redefining 'struct random_data' on OSF/1 5.1.
82593         * lib/stdlib.in.h: Include <random.h> if it exists.
82594         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
82595         HAVE_RANDOM_H. Include <random.h> when testing whether
82596         'struct random_data' exists.
82597         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
82599 2009-01-25  Bruno Haible  <bruno@clisp.org>
82601         Don't install charset.alias on MacOS X >= 10.3.
82602         * lib/localcharset.c (DARWIN7): New macro.
82603         (get_charset_aliases): Hardcode the result for Darwin7.
82604         * modules/localcharset (install-exec-local): Don't install
82605         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
82607 2009-01-25  Bruno Haible  <bruno@clisp.org>
82609         Don't install charset.alias on mingw and Cygwin.
82610         * modules/localcharset (install-exec-local): Don't install
82611         charset.alias on mingw and Cygwin, if the file does not yet exist.
82612         The result for these platforms is hardcoded in localcharset.c.
82614 2009-01-25  Bruno Haible  <bruno@clisp.org>
82616         Make it possible again to use AC_GNU_SOURCE together with gnulib.
82617         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
82618         before requiring AC_USE_SYSTEM_EXTENSIONS.
82620 2009-01-25  Jim Meyering  <meyering@redhat.com>
82622         c-strtod: avoid warnings
82623         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
82624         "assignment discards qualifiers from pointer target type" warnings.
82626 2009-01-24  Bruno Haible  <bruno@clisp.org>
82628         Add support for non-UTF-8 locales on MacOS X.
82629         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
82630         canonical encodings. For Darwin 7 and newer, don't map traditional
82631         encodings to UTF-8.
82632         Reported by Vincent Lefevre <vincent@vinc17.org>
82633         at <http://savannah.gnu.org/bugs/?25235>.
82635 2009-01-24  Bruno Haible  <bruno@clisp.org>
82637         * doc/gnulib.texi (Obsolete modules): New section.
82638         Reported by Mike Frysinger <vapier@gentoo.org>.
82640 2009-01-24  Bruno Haible  <bruno@clisp.org>
82642         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
82643         (%.dvi): New rule.
82645 2009-01-24  Bruno Haible  <bruno@clisp.org>
82647         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
82648         Reported by Eric Blake.
82650 2009-01-24  Bruno Haible  <bruno@clisp.org>
82652         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
82653         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
82654         Reported by Gary V. Vaughan <gary@gnu.org>.
82656 2009-01-24  Bruno Haible  <bruno@clisp.org>
82658         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
82660 2009-01-23  Bruno Haible  <bruno@clisp.org>
82662         Make c-strtod, c-strtold usable in libraries.
82663         * lib/c-strtod.c: Include string.h instead of xalloc.h.
82664         (C_STRTOD): Call strdup instead of xstrdup.
82665         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
82666         * modules/c-strtold (Depends-on): Likewise.
82667         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
82668         * NEWS: Mention the change.
82669         Reported by Michael Gold <mgold@ncf.ca>.
82671 2009-01-23  Jim Meyering  <meyering@redhat.com>
82673         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
82674         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
82675         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
82677 2009-01-23  Simon Josefsson  <simon@josefsson.org>
82679         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
82680         GNU CoreUtils.
82681         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
82682         * modules/version-etc (Description): Update.
82684 2009-01-22  Bruno Haible  <bruno@clisp.org>
82686         Cache the C locale object.
82687         * lib/c-strtod.c (c_locale_cache): New variable.
82688         (c_locale): New function.
82689         (C_STRTOD): Use it, and don't call freelocale.
82690         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
82691         Suggested by Paolo Bonzini.
82693 2009-01-21  Bruno Haible  <bruno@clisp.org>
82695         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
82696         conditions other than overflow.
82698 2009-01-21  Bruno Haible  <bruno@clisp.org>
82700         * lib/c-strtod.c: Include errno.h.
82701         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
82702         value from STRTOD_L and STRTOD.
82704 2009-01-21  Bruno Haible  <bruno@clisp.org>
82705         and Jim Meyering  <meyering@redhat.com>
82707         nanosleep: skip configure test (fail it) for apple universal builds
82708         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
82709         universal builds, assume that nanosleep does not work.
82710         * modules/nanosleep (Depends-on): Add multiarch.
82712         mktime: skip configure test (fail it) for apple universal builds
82713         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
82714         universal builds, assume that mktime does not work.
82715         * modules/mktime (Depends-on): Add multiarch.
82717 2009-01-21  Eric Blake  <ebb9@byu.net>
82719         multiarch: avoid expand-before-require warning
82720         * modules/multiarch (configure.ac): Require, rather than expand,
82721         gl_MULTIARCH.
82722         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
82723         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
82724         enforce that all clients require it.  Partial reversion of
82725         2008-12-29 patch.
82727         error: avoid expand-before-require warning
82728         * modules/errno (configure.ac): Require, rather than expand,
82729         gl_HEADER_ERRNO_H.
82730         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
82731         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
82732         enforce that all clients require it.
82734         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
82735         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
82736         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
82737         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
82739 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
82741         Revert:
82742         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
82744         regex: do not depend on obsolete modules.
82745         * modules/regex: Remove memcmp and memmove.
82747 2009-01-20  Bruno Haible  <bruno@clisp.org>
82749         Make the 'link' module link on Windows NT 4.
82750         * lib/link.c (_WIN32_WINNT): Don't define.
82751         (CreateHardLinkFuncType): New type.
82752         (CreateHardLinkFunc, initialized): New variables.
82753         (initialize): New function.
82754         (link): Invoke CreateHardLink indirectly through the function pointer.
82756 2009-01-20  Bruno Haible  <bruno@clisp.org>
82758         Fix compilation failure on mingw.
82759         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
82761 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
82763         * doc/c-strtod.texi: Mention a couple of restrictions.
82765 2009-01-20  Jim Meyering  <meyering@redhat.com>
82767         gettimeofday: move more declarations out of functions
82768         * lib/gettimeofday.c: Move extern declarations of tzset and
82769         gmtime out of containing functions.  Prompted by Bruno Haible.
82771 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
82773         regex: do not depend on obsolete modules.
82774         * modules/regex: Remove memcmp and memmove.
82776 2009-01-19  Bruno Haible  <bruno@clisp.org>
82778         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
82779         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
82780         gl_BIGENDIAN, not AC_C_BIGENDIAN.
82781         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
82782         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
82784 2009-01-19  Bruno Haible  <bruno@clisp.org>
82786         * tests/test-link.c: Include <errno.h>.
82787         (main): Exit with code 77 when a hard link cannot be created due to
82788         the file system.
82789         * tests/test-link.sh: Skip test when a hard link cannot be created due
82790         to the file system.
82791         Suggested by Eric Blake.
82793 2009-01-19  Martin Lambers  <marlam@marlam.de>
82795         * modules/link-tests: New file.
82796         * tests/test-link.sh: New file.
82797         * tests/test-link.c: New file.
82799 2009-01-19  Eric Blake  <ebb9@byu.net>
82801         doc: mention another function added in cygwin 1.7.0
82802         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
82803         Another new function in cygwin 1.7.
82805 2009-01-19  Bruno Haible  <bruno@clisp.org>
82807         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
82808         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
82809         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
82810         gl_BIGENDIAN, not AC_C_BIGENDIAN.
82811         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
82812         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
82813         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
82814         * m4/md4.m4 (gl_MD4): Likewise.
82815         * m4/md5.m4 (gl_MD5): Likewise.
82816         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
82817         * m4/sha1.m4 (gl_SHA1): Likewise.
82818         * m4/sha256.m4 (gl_SHA256): Likewise.
82819         * m4/sha512.m4 (gl_SHA512): Likewise.
82821 2009-01-19  Bruno Haible  <bruno@clisp.org>
82823         * modules/uniname/uniname-tests (Depends-on): Add progname.
82824         * tests/uniname/test-uninames.c: Include progname.h.
82825         (main): Call set_program_name.
82827         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
82828         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
82829         (main): Call set_program_name.
82831         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
82832         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
82833         (main): Call set_program_name.
82835         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
82836         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
82837         (main): Call set_program_name.
82839         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
82840         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
82841         (main): Call set_program_name.
82843         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
82844         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
82845         (main): Call set_program_name.
82847         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
82848         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
82849         (main): Call set_program_name.
82851         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
82852         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
82853         (main): Call set_program_name.
82855         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
82856         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
82857         (main): Call set_program_name.
82859 2009-01-19  Eric Blake  <ebb9@byu.net>
82861         test-unistd: test previous patch
82862         * tests/test-unistd.c: Test *_FILENO macros.
82864         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
82865         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82866         Guarantee a definition.
82867         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
82868         * modules/unistd-safer (Depends-on): Add dependency on unistd.
82869         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
82870         * lib/dup-safer.c (STDERR_FILENO): Likewise.
82871         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82872         Likewise.
82873         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
82874         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
82875         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82876         Likewise.
82877         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
82878         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
82879         (STDERR_FILENO): Likewise.
82880         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
82881         (STDERR_FILENO): Likewise.
82882         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
82883         (STDERR_FILENO): Likewise.
82884         Reported by Elbert Pol.
82886 2009-01-19  Eric Blake  <ebb9@byu.net>
82888         doc: mention more functions added in cygwin 1.7.0
82889         * doc/posix-functions/abort.texi (abort): Update wording related
82890         to cygwin.
82891         * doc/posix-functions/daylight.texi (daylight): Likewise.
82892         * doc/posix-functions/optarg.texi (optarg): Likewise.
82893         * doc/posix-functions/optarg.texi (opterr): Likewise.
82894         * doc/posix-functions/optarg.texi (optind): Likewise.
82895         * doc/posix-functions/optarg.texi (optopt): Likewise.
82896         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
82897         worked in 1.5.x, and was withdrawn in 1.7.
82898         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
82899         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
82900         cygwin versions.
82901         * doc/posix-functions/perror.texi (perror): Likewise.
82902         * doc/posix-functions/printf.texi (printf): Likewise.
82903         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
82904         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
82905         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
82906         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
82907         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
82908         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
82909         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
82910         Likewise.
82911         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
82912         Likewise.
82913         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
82914         this function.
82915         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
82916         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
82917         Likewise.
82918         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
82919         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
82920         * doc/posix-functions/confstr.texi (confstr): Likewise.
82921         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
82922         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
82923         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
82924         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
82925         * doc/posix-functions/fputws.texi (fputws): Likewise.
82926         * doc/posix-functions/fwide.texi (fwide): Likewise.
82927         * doc/posix-functions/getwc.texi (getwc): Likewise.
82928         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
82929         * doc/posix-functions/putwc.texi (putwc): Likewise.
82930         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
82931         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
82932         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
82933         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
82934         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
82935         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
82936         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
82937         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
82938         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
82939         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
82940         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
82942 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
82944         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
82945         * lib/ioctl.c: Include <sys/ioctl.h>.
82947 2009-01-19  Simon Josefsson  <simon@josefsson.org>
82949         * modules/getdate-tests (Depends-on): Add progname.
82950         * tests/test-getdate.c: Use progname module, to avoid link errors
82951         on non-glibc systems.
82953 2009-01-18  Simon Josefsson  <simon@josefsson.org>
82955         * modules/filenamecat-tests (Depends-on): Add progname.
82956         * modules/fstrcmp-tests (Depends-on): Likewise.
82958         * tests/test-filenamecat.c: Use progname module, to avoid link
82959         errors on non-glibc systems.
82960         * tests/test-fstrcmp.c: Likewise.
82962 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
82964         gettimeofday: avoid warning: nested extern declaration of 'localtime'
82965         * lib/gettimeofday.c: Move extern declaration out of function.
82967 2009-01-18  Bruno Haible  <bruno@clisp.org>
82969         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
82970         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
82971         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
82973 2009-01-18  Bruno Haible  <bruno@clisp.org>
82975         * lib/strftime.c (MEMPCPY): Remove unused macro.
82976         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
82978 2009-01-18  Martin Lambers  <marlam@marlam.de>
82980         New module 'link'.
82981         * lib/unistd.in.h (link): New declaration.
82982         * lib/link.c: New file.
82983         * m4/link.m4: New file.
82984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
82985         HAVE_LINK.
82986         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
82987         * modules/link: New file.
82988         * doc/posix-functions/link.texi: Mention the new module.
82990 2009-01-18  Bruno Haible  <bruno@clisp.org>
82992         * tests/test-avltree_list.c (main): Call set_program_name.
82993         * tests/test-avltree_oset.c (main): Likewise.
82994         * tests/test-obstack-printf.c: Include progname.h.
82995         (main): Call set_program_name.
82996         * tests/test-quotearg.c: Include progname.h.
82997         (main): Call set_program_name.
82998         * tests/test-xmemdup0.c: Include progname.h.
82999         (main): Call set_program_name.
83001 2009-01-18  Bruno Haible  <bruno@clisp.org>
83003         New module 'alphasort'.
83004         * lib/dirent.in.h (alphasort): New declaration.
83005         * lib/alphasort.c: New file, from glibc with modifications.
83006         * m4/alphasort.m4: New file.
83007         * modules/alphasort: New file.
83008         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
83009         HAVE_ALPHASORT.
83010         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
83011         HAVE_ALPHASORT.
83012         * doc/posix-functions/alphasort.texi: Mention the new module and the
83013         portability problems.
83015 2009-01-18  Bruno Haible  <bruno@clisp.org>
83017         New module 'scandir'.
83018         * lib/dirent.in.h (scandir): New declaration.
83019         * lib/scandir.c: New file, from glibc with modifications.
83020         * m4/scandir.m4: New file.
83021         * modules/scandir: New file.
83022         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
83023         HAVE_SCANDIR.
83024         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
83025         HAVE_SCANDIR.
83026         * doc/posix-functions/scandir.texi: Mention the new module and the
83027         portability problems.
83029 2009-01-17  Bruno Haible  <bruno@clisp.org>
83031         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
83032         Update documentation.
83033         (func_remove_suffix): Escape all dots in the suffix. Update
83034         documentation.
83035         (func_filter_filelist): Update documentation.
83036         Reported by Ralf Wildenhues.
83038 2009-01-17  Bruno Haible  <bruno@clisp.org>
83040         * modules/dprintf-posix-tests: New file.
83041         * tests/test-dprintf-posix.sh: New file.
83042         * tests/test-dprintf-posix.c: New file.
83044         New modules 'dprintf', 'dprintf-posix'.
83045         * lib/stdio.in.h (dprintf): New declaration.
83046         * lib/dprintf.c: New file.
83047         * m4/dprintf.m4: New file.
83048         * m4/dprintf-posix.m4: New file.
83049         * modules/dprintf: New file.
83050         * modules/dprintf-posix: New file.
83051         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
83052         HAVE_DPRINTF, REPLACE_DPRINTF.
83053         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
83054         HAVE_DPRINTF, REPLACE_DPRINTF.
83055         * doc/posix-functions/dprintf.texi: Mention the new modules.
83057 2009-01-17  Bruno Haible  <bruno@clisp.org>
83059         * modules/vdprintf-posix-tests: New file.
83060         * tests/test-vdprintf-posix.sh: New file.
83061         * tests/test-vdprintf-posix.c: New file.
83063         New modules 'vdprintf', 'vdprintf-posix'.
83064         * lib/stdio.in.h (vdprintf): New declaration.
83065         * lib/vdprintf.c: New file.
83066         * m4/vdprintf.m4: New file.
83067         * m4/vdprintf-posix.m4: New file.
83068         * modules/vdprintf: New file.
83069         * modules/vdprintf-posix: New file.
83070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
83071         HAVE_VDPRINTF, REPLACE_VDPRINTF.
83072         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
83073         HAVE_VDPRINTF, REPLACE_VDPRINTF.
83074         * doc/posix-functions/vdprintf.texi: Mention the new modules.
83076 2009-01-17  Bruno Haible  <bruno@clisp.org>
83078         Fix replacement of fopen on mingw.
83079         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
83080         mingw.
83082 2009-01-17  Bruno Haible  <bruno@clisp.org>
83084         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
83085         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
83087 2009-01-17  Bruno Haible  <bruno@clisp.org>
83089         Avoid test-fflush2.sh failure on mingw.
83090         * tests/test-fflush2.c: Include binary-io.h.
83091         (main): Put standard input into binary mode.
83092         * modules/fflush-tests (Depends-on): Add binary-io.
83094 2009-01-17  Bruno Haible  <bruno@clisp.org>
83096         * lib/wchar.in.h: In another particular situation, include only the
83097         system's <wchar.h> file.
83098         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
83099         Reported by Albert Chin-A-Young <china@thewrittenword.com>
83100         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
83102 2009-01-17  Bruno Haible  <bruno@clisp.org>
83104         Support for stripping executables in --enable-relocatable.
83105         * build-aux/install-reloc: Expect one more argument, or an environment
83106         variable RELOC_STRIP_PROG. If set, strip the destination program and
83107         its wrapper.
83108         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
83109         RELOC_STRIP_PROG.
83110         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
83111         to set RELOCATABLE_STRIP.
83112         * NEWS: Mention the new Makefile requirement.
83114 2009-01-17  Bruno Haible  <bruno@clisp.org>
83116         * build-aux/install-reloc: Remove debugging information left over by
83117         C compiler on MacOS X.
83119 2009-01-17  Bruno Haible  <bruno@clisp.org>
83121         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
83122         * lib/progreloc.c (find_executable): Fix type of pointer passed to
83123         _NSGetExecutablePath.
83125 2009-01-16  Jim Meyering  <meyering@redhat.com>
83127         strerror: avoid warnings about discarding "const"
83128         * lib/strerror.c (rpl_strerror): Instead of returning a const
83129         string from each and every "case", use a variable, and add a single
83130         cast after the switch.
83132 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
83134         * lib/arpa_inet.in.h: Add extern "C" block for C++.
83136 2009-01-16  Bruno Haible  <bruno@clisp.org>
83138         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
83139         array initializer syntax that also works in C++ mode.
83140         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83142 2009-01-16  Jim Meyering  <meyering@redhat.com>
83144         poll: suppress a warning
83145         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
83146         to ignore "...unsigned expression < 0 is always false" warnings.
83148 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
83150         poll: remove declarations of unused variables
83151         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
83152         sockbuf and optlen.
83154 2009-01-15  Bruno Haible  <bruno@clisp.org>
83156         Make fflush-after-ungetc POSIX compliant on BSD systems.
83157         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
83158         (clear_ungetc_buffer): Implement also for other systems.
83159         (rpl_fflush): On glibc systems, invoke
83160         clear_ungetc_buffer_preserving_position. Otherwise, invoke
83161         clear_ungetc_buffer after fetching the stream's position, not before.
83163 2009-01-15  Bruno Haible  <bruno@clisp.org>
83165         Make fflush-after-ungetc POSIX compliant on glibc systems.
83166         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
83167         after ungetc.
83168         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
83169         (rpl_fflush): On glibc systems, simply call the system's fflush
83170         function after clearing the ungetc buffer.
83171         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
83172         Instead, lseek only to the end of file, then use the system's fseeko
83173         for the rest. On glibc systems, reset the EOF indicator bit.
83175 2009-01-15  Jim Meyering  <meyering@redhat.com>
83177         openmp.m4: revert quote-adding change, for portability to older autoconf
83178         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
83179         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
83180         Simon Josefsson noticed the problem when using autoconf-2.61.
83182 2009-01-15  Bruno Haible  <bruno@clisp.org>
83184         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
83185         * tests/test-fflush2.c (ASSERT): Always fail.
83186         (main): Add two tests for fflush() after ungetc(), taking into account
83187         the Austin Group's clarification.
83188         Suggested by Eric Blake.
83190 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
83192         mktime.m4: remove K&R-style function prototypes
83193         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
83194         for the Sun C++ compiler.
83196 2009-01-14  Bruno Haible  <bruno@clisp.org>
83198         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
83199         while including <wchar.h>.
83200         * lib/wchar.in.h: In two particular situations on HP-UX, include only
83201         the system's <wchar.h> file.
83202         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83204 2009-01-14  Bruno Haible  <bruno@clisp.org>
83206         * m4/csharp.m4: Don't mention gettext on the serial number line.
83207         * m4/csharpexec.m4: Likewise.
83208         * m4/eaccess.m4: Likewise.
83209         * m4/javaexec.m4: Likewise.
83210         * m4/sig_atomic_t.m4: Likewise.
83211         * m4/tmpdir.m4: Likewise.
83212         * m4/intldir.m4: Bump gettext version.
83213         * m4/lib-ld.m4: Likewise.
83215 2009-01-14  Bruno Haible  <bruno@clisp.org>
83217         * lib/progname.c (set_program_name): Add more comments.
83218         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
83220 2009-01-14  Simon Josefsson  <simon@josefsson.org>
83222         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
83223         were sys/stat.h does not define it.
83225 2009-01-14  Jim Meyering  <meyering@redhat.com>
83227         many *.m4 files: improve m4 quoting
83228         99% of this change was performed by running the following commands:
83229         git ls-files | grep '\.m4$' | xargs perl -pi \
83230           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
83231           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
83232           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
83233           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
83234         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
83235         The remainder were to add Copyright dates, increment serial numbers,
83236         undo some changes in comments, exclude m4/intl.m4, and add quotes
83237         around the "1" in ",1" where the unusual spacing prohibited the
83238         above regexps from doing the job.  For more details, see
83239         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
83240         * m4/acl.m4: Modified.
83241         * m4/afs.m4: Likewise.
83242         * m4/alloca.m4: Likewise.
83243         * m4/argp.m4: Likewise.
83244         * m4/argz.m4: Likewise.
83245         * m4/atexit.m4: Likewise.
83246         * m4/bison-i18n.m4: Likewise.
83247         * m4/bison.m4: Likewise.
83248         * m4/byteswap.m4: Likewise.
83249         * m4/c-stack.m4: Likewise.
83250         * m4/c-strtod.m4: Likewise.
83251         * m4/calloc.m4: Likewise.
83252         * m4/canonicalize-lgpl.m4: Likewise.
83253         * m4/chown.m4: Likewise.
83254         * m4/clock_time.m4: Likewise.
83255         * m4/codeset.m4: Likewise.
83256         * m4/copy-file.m4: Likewise.
83257         * m4/csharp.m4: Likewise.
83258         * m4/csharpcomp.m4: Likewise.
83259         * m4/csharpexec.m4: Likewise.
83260         * m4/d-ino.m4: Likewise.
83261         * m4/d-type.m4: Likewise.
83262         * m4/dirfd.m4: Likewise.
83263         * m4/double-slash-root.m4: Likewise.
83264         * m4/eaccess.m4: Likewise.
83265         * m4/eealloc.m4: Likewise.
83266         * m4/environ.m4: Likewise.
83267         * m4/errno_h.m4: Likewise.
83268         * m4/euidaccess.m4: Likewise.
83269         * m4/execute.m4: Likewise.
83270         * m4/fatal-signal.m4: Likewise.
83271         * m4/fchdir.m4: Likewise.
83272         * m4/fcntl_h.m4: Likewise.
83273         * m4/fileblocks.m4: Likewise.
83274         * m4/filenamecat.m4: Likewise.
83275         * m4/findprog.m4: Likewise.
83276         * m4/flexmember.m4: Likewise.
83277         * m4/fnmatch.m4: Likewise.
83278         * m4/fopen.m4: Likewise.
83279         * m4/fpending.m4: Likewise.
83280         * m4/fprintf-posix.m4: Likewise.
83281         * m4/free.m4: Likewise.
83282         * m4/frexp.m4: Likewise.
83283         * m4/frexpl.m4: Likewise.
83284         * m4/fsusage.m4: Likewise.
83285         * m4/ftruncate.m4: Likewise.
83286         * m4/gc-camellia.m4: Likewise.
83287         * m4/gc-random.m4: Likewise.
83288         * m4/gc.m4: Likewise.
83289         * m4/getaddrinfo.m4: Likewise.
83290         * m4/getcwd-abort-bug.m4: Likewise.
83291         * m4/getcwd-path-max.m4: Likewise.
83292         * m4/getdate.m4: Likewise.
83293         * m4/getdomainname.m4: Likewise.
83294         * m4/getgroups.m4: Likewise.
83295         * m4/gethostname.m4: Likewise.
83296         * m4/gethrxtime.m4: Likewise.
83297         * m4/getline.m4: Likewise.
83298         * m4/getloadavg.m4: Likewise.
83299         * m4/getndelim2.m4: Likewise.
83300         * m4/getpass.m4: Likewise.
83301         * m4/gettext.m4: Likewise.
83302         * m4/gettime.m4: Likewise.
83303         * m4/gettimeofday.m4: Likewise.
83304         * m4/gnulib-common.m4: Likewise.
83305         * m4/group-member.m4: Likewise.
83306         * m4/host-os.m4: Likewise.
83307         * m4/iconv.m4: Likewise.
83308         * m4/iconv_open.m4: Likewise.
83309         * m4/inet_ntop.m4: Likewise.
83310         * m4/inet_pton.m4: Likewise.
83311         * m4/inline.m4: Likewise.
83312         * m4/intldir.m4: Likewise.
83313         * m4/intlmacosx.m4: Likewise.
83314         * m4/intmax.m4: Likewise.
83315         * m4/intmax_t.m4: Likewise.
83316         * m4/inttypes.m4: Likewise.
83317         * m4/inttypes_h.m4: Likewise.
83318         * m4/inttypes-pri.m4: Likewise.
83319         * m4/isapipe.m4: Likewise.
83320         * m4/isnand.m4: Likewise.
83321         * m4/isnanf.m4: Likewise.
83322         * m4/isnanl.m4: Likewise.
83323         * m4/javacomp.m4: Likewise.
83324         * m4/javaexec.m4: Likewise.
83325         * m4/jm-winsz1.m4: Likewise.
83326         * m4/jm-winsz2.m4: Likewise.
83327         * m4/lchown.m4: Likewise.
83328         * m4/lcmessage.m4: Likewise.
83329         * m4/ldexpl.m4: Likewise.
83330         * m4/lib-ld.m4: Likewise.
83331         * m4/lib-link.m4: Likewise.
83332         * m4/libsigsegv.m4: Likewise.
83333         * m4/link-follow.m4: Likewise.
83334         * m4/localcharset.m4: Likewise.
83335         * m4/locale-fr.m4: Likewise.
83336         * m4/locale-ja.m4: Likewise.
83337         * m4/locale-tr.m4: Likewise.
83338         * m4/locale-zh.m4: Likewise.
83339         * m4/lock.m4: Likewise.
83340         * m4/longlong.m4: Likewise.
83341         * m4/ls-mntd-fs.m4: Likewise.
83342         * m4/lstat.m4: Likewise.
83343         * m4/malloc.m4: Likewise.
83344         * m4/mathl.m4: Likewise.
83345         * m4/mbrtowc.m4: Likewise.
83346         * m4/mbstate_t.m4: Likewise.
83347         * m4/mbswidth.m4: Likewise.
83348         * m4/memchr.m4: Likewise.
83349         * m4/memcmp.m4: Likewise.
83350         * m4/memcpy.m4: Likewise.
83351         * m4/memmem.m4: Likewise.
83352         * m4/memmove.m4: Likewise.
83353         * m4/mempcpy.m4: Likewise.
83354         * m4/memrchr.m4: Likewise.
83355         * m4/memset.m4: Likewise.
83356         * m4/minmax.m4: Likewise.
83357         * m4/mkdir-slash.m4: Likewise.
83358         * m4/mkdtemp.m4: Likewise.
83359         * m4/mktime.m4: Likewise.
83360         * m4/mmap-anon.m4: Likewise.
83361         * m4/mountlist.m4: Likewise.
83362         * m4/nanosleep.m4: Likewise.
83363         * m4/nls.m4: Likewise.
83364         * m4/nocrash.m4: Likewise.
83365         * m4/open.m4: Likewise.
83366         * m4/openat.m4: Likewise.
83367         * m4/openmp.m4: Likewise.
83368         * m4/pathmax.m4: Likewise.
83369         * m4/perl.m4: Likewise.
83370         * m4/physmem.m4: Likewise.
83371         * m4/pipe.m4: Likewise.
83372         * m4/po.m4: Likewise.
83373         * m4/poll.m4: Likewise.
83374         * m4/posixtm.m4: Likewise.
83375         * m4/posixver.m4: Likewise.
83376         * m4/printf-frexp.m4: Likewise.
83377         * m4/printf-frexpl.m4: Likewise.
83378         * m4/printf-posix.m4: Likewise.
83379         * m4/printf-posix-rpl.m4: Likewise.
83380         * m4/printf.m4: Likewise.
83381         * m4/progtest.m4: Likewise.
83382         * m4/putenv.m4: Likewise.
83383         * m4/readline.m4: Likewise.
83384         * m4/readlink.m4: Likewise.
83385         * m4/readutmp.m4: Likewise.
83386         * m4/realloc.m4: Likewise.
83387         * m4/regex.m4: Likewise.
83388         * m4/relocatable.m4: Likewise.
83389         * m4/relocatable-lib.m4: Likewise.
83390         * m4/rename-dest-slash.m4: Likewise.
83391         * m4/rename.m4: Likewise.
83392         * m4/rmdir-errno.m4: Likewise.
83393         * m4/rmdir.m4: Likewise.
83394         * m4/roundf.m4: Likewise.
83395         * m4/roundl.m4: Likewise.
83396         * m4/rpmatch.m4: Likewise.
83397         * m4/save-cwd.m4: Likewise.
83398         * m4/selinux-selinux-h.m4: Likewise.
83399         * m4/setenv.m4: Likewise.
83400         * m4/settime.m4: Likewise.
83401         * m4/sig2str.m4: Likewise.
83402         * m4/sig_atomic_t.m4: Likewise.
83403         * m4/signalblocking.m4: Likewise.
83404         * m4/signbit.m4: Likewise.
83405         * m4/sigpipe.m4: Likewise.
83406         * m4/sockets.m4: Likewise.
83407         * m4/sockpfaf.m4: Likewise.
83408         * m4/st_dm_mode.m4: Likewise.
83409         * m4/stat-time.m4: Likewise.
83410         * m4/stdbool.m4: Likewise.
83411         * m4/stdint.m4: Likewise.
83412         * m4/stdint_h.m4: Likewise.
83413         * m4/stpcpy.m4: Likewise.
83414         * m4/stpncpy.m4: Likewise.
83415         * m4/strcase.m4: Likewise.
83416         * m4/strchrnul.m4: Likewise.
83417         * m4/strcspn.m4: Likewise.
83418         * m4/strdup.m4: Likewise.
83419         * m4/strftime.m4: Likewise.
83420         * m4/strndup.m4: Likewise.
83421         * m4/strnlen.m4: Likewise.
83422         * m4/strpbrk.m4: Likewise.
83423         * m4/strptime.m4: Likewise.
83424         * m4/strsep.m4: Likewise.
83425         * m4/strtod.m4: Likewise.
83426         * m4/strtoimax.m4: Likewise.
83427         * m4/strtok_r.m4: Likewise.
83428         * m4/strtol.m4: Likewise.
83429         * m4/strtoll.m4: Likewise.
83430         * m4/strtoul.m4: Likewise.
83431         * m4/strtoull.m4: Likewise.
83432         * m4/strtoumax.m4: Likewise.
83433         * m4/strverscmp.m4: Likewise.
83434         * m4/threadlib.m4: Likewise.
83435         * m4/timegm.m4: Likewise.
83436         * m4/tm_gmtoff.m4: Likewise.
83437         * m4/tmpdir.m4: Likewise.
83438         * m4/tmpfile.m4: Likewise.
83439         * m4/tzset.m4: Likewise.
83440         * m4/uintmax_t.m4: Likewise.
83441         * m4/unlinkdir.m4: Likewise.
83442         * m4/unlocked-io.m4: Likewise.
83443         * m4/uptime.m4: Likewise.
83444         * m4/userspec.m4: Likewise.
83445         * m4/utimbuf.m4: Likewise.
83446         * m4/utime.m4: Likewise.
83447         * m4/utimes-null.m4: Likewise.
83448         * m4/utimes.m4: Likewise.
83449         * m4/vararrays.m4: Likewise.
83450         * m4/vasnprintf.m4: Likewise.
83451         * m4/vfprintf-posix.m4: Likewise.
83452         * m4/vprintf-posix.m4: Likewise.
83453         * m4/wait-process.m4: Likewise.
83454         * m4/wchar_t.m4: Likewise.
83455         * m4/wint_t.m4: Likewise.
83456         * m4/write-any-file.m4: Likewise.
83457         * m4/yield.m4: Likewise.
83459 2009-01-13  Bruno Haible  <bruno@clisp.org>
83461         Avoid test-copy-file.sh failures when ACL support insufficient.
83462         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
83463         TESTS_ENVIRONMENT.
83464         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
83465         Reported by Jim Meyering.
83467 2009-01-13  Bruno Haible  <bruno@clisp.org>
83469         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
83470         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
83471         * modules/unistdio/u8-printf-parse (Files): Likewise.
83472         * modules/unistdio/u32-printf-parse (Files): Likewise.
83473         * modules/unistdio/ulc-printf-parse (Files): Likewise.
83475 2009-01-13  Simon Josefsson  <simon@josefsson.org>
83477         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
83478         and m4/inttypes_h.m4 too.
83480 2009-01-12  Eric Blake  <ebb9@byu.net>
83482         tests: IRIX 6.2 cc can't compile -0.0 into .data
83483         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
83484         rather than at compile-time.
83485         * tests/test-floorl.c (minus_zero): Likewise.
83486         * tests/test-frexpl.c (minus_zero): Likewise.
83487         * tests/test-isnan.c (minus_zerol): Likewise.
83488         * tests/test-isnanl.h (minus_zero): Likewise.
83489         * tests/test-ldexpl.c (minus_zero): Likewise.
83490         * tests/test-roundl.c (minus_zero): Likewise.
83491         * tests/test-signbit.c (minus_zerol): Likewise.
83492         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
83493         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
83494         * tests/test-truncl.c (minus_zero): Likewise.
83495         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
83496         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
83497         Reported by Tom G. Christensen and Nelson H. F. Beebe.
83499 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83501         regex: fix glibc bug 9697
83502         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
83503         handling.
83505 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83507         regex: fix glibc bug 697
83508         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
83509         being NULL also if there are no backreferences.
83511 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83513         regex: merge glibc changes
83514         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
83515         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
83516         re_string_skip_chars, re_string_reconstruct): Likewise.
83517         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
83519 2009-01-07  Jim Meyering  <meyering@redhat.com>
83521         poll: filter through cppi
83522         * lib/poll.c: Indent cpp directives to reflect nesting.
83524 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
83526         poll: don't return uninitialized
83527         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
83529 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
83531         avoid compile failure on AIX 6.1
83532         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
83533         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
83535 2009-01-04  Jim Meyering  <meyering@redhat.com>
83537         remove duplicate inclusion of <stdio.h>
83538         * tests/test-fprintf-posix.c: Likewise.
83539         * tests/test-printf-posix.c: Likewise.
83540         * tests/test-snprintf-posix.c: Likewise.
83541         * tests/test-sprintf-posix.c: Likewise.
83542         * tests/test-vasprintf-posix.c: Likewise.
83543         * tests/test-vfprintf-posix.c: Likewise.
83544         * tests/test-vprintf-posix.c: Likewise.
83545         * tests/test-vsnprintf-posix.c: Likewise.
83546         * tests/test-vsprintf-posix.c: Likewise.
83548 2009-01-03  Jim Meyering  <meyering@redhat.com>
83550         gnulib-tool: fix sed-based filtering
83551         * gnulib-tool (func_filter_filelist): Remove extra backslash
83552         in sed_fff_filter definition.
83554 2009-01-02  Jim Meyering  <meyering@redhat.com>
83556         strftime: avoid compilation failure on Solaris 2.6
83557         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
83558         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
83559         Don't #define mbrlen or mbsinit, since now they're guaranteed to
83560         be available.  Reported by Tom G. Christensen.  Details in
83561         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
83563 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83564             Bruno Haible  <bruno@clisp.org>
83566         Speed up gnulib-tool by doing more string processing through shell
83567         built-ins.
83568         * gnulib-tool (fast_func_append): New variable.
83569         (func_remove_prefix, func_remove_suffix): New functions.
83570         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
83571         (func_filter_filelist): New function.
83572         (func_get_dependencies): Use func_remove_suffix instead of sed.
83573         (func_get_automake_snippet): Use func_filter_filelist instead of a
83574         subshell and sed invocation.
83576 2009-01-01  Bruno Haible  <bruno@clisp.org>
83578         Fix a security bug.
83579         * gnulib-tool (func_import, import, update): Don't allow the characters
83580         '"', '$', '`', '\' in macro arguments that become part of commands that
83581         are evaluated.
83583 2009-01-01  Bruno Haible  <bruno@clisp.org>
83585         * gnulib-tool (func_reset_sigpipe): Add more comments.
83587 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83589         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
83590         func_emit_tests_Makefile_am, func_import): Abort loops early if we
83591         already know the answer.
83593 2009-01-01  Jim Meyering  <meyering@redhat.com>
83595         * lib/version-etc.c (version_etc_va): Update copyright year.
83597 2008-12-30  Bruno Haible  <bruno@clisp.org>
83599         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
83600         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
83601         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
83603 2008-12-29  Eric Blake  <ebb9@byu.net>
83605         multiarch: avoid autoconf AC_REQUIRE bug
83606         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
83607         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
83608         2.63 and older.
83609         Reported by Bruno Haible, and analyzed in
83610         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
83612 2008-12-29  Bruno Haible  <bruno@clisp.org>
83614         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
83615         files in subdirectories correctly.
83616         Reported by Ralf Wildenhues.
83618 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83620         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
83621         rather than 'join FILE -', for Solaris join.
83623 2008-12-29  Bruno Haible  <bruno@clisp.org>
83625         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
83626         quoting.
83627         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83628         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
83629         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
83630         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
83631         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
83632         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
83633         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
83634         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
83635         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
83636         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
83637         * m4/nls.m4 (AM_NLS): Likewise.
83638         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
83639         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
83640         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83641         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
83642         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
83643         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
83644         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
83645         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
83646         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
83647         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
83648         * m4/xsize.m4 (gl_XSIZE): Likewise.
83649         Suggested by Jim Meyering.
83651 2008-11-17  Bruce Korb  <bkorb@gnu.org>
83653         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
83654         * lib/parse-duration.c: use a switch instead of cascading if's.
83656 2008-12-29  Eric Blake  <ebb9@byu.net>
83658         wchar.h: supply WEOF on Irix 5.3
83659         * lib/wchar.in.h (wint_t): Also supply WEOF.
83660         * lib/wctype.in.h (wint_t): Likewise.
83661         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
83662         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
83663         Reported by Tom G. Christensen.
83665 2008-12-26  Bruno Haible  <bruno@clisp.org>
83667         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
83668         i486, i586, i686.
83670 2008-12-26  Bruno Haible  <bruno@clisp.org>
83672         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
83674 2008-12-26  Bruno Haible  <bruno@clisp.org>
83676         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
83677         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
83678         not __STDC_CONSTANT_MACROS.
83679         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
83681 2008-12-25  Bruno Haible  <bruno@clisp.org>
83683         Add support for universal builds to vasnprintf.
83684         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
83685         universal builds, guess no.
83686         * modules/vasnprintf-posix (Depends-on): Add multiarch.
83687         * modules/vasprintf-posix (Depends-on): Likewise.
83688         * modules/fprintf-posix (Depends-on): Likewise.
83689         * modules/vfprintf-posix (Depends-on): Likewise.
83690         * modules/snprintf-posix (Depends-on): Likewise.
83691         * modules/vsnprintf-posix (Depends-on): Likewise.
83692         * modules/sprintf-posix (Depends-on): Likewise.
83693         * modules/vsprintf-posix (Depends-on): Likewise.
83694         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83695         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83696         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83697         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83698         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83699         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83700         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83702         Add support for universal builds to <inttypes.h>.
83703         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
83704         _SCNu64_PREFIX): In Apple
83705         universal builds, define directly, using _LP64.
83706         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
83707         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
83708         * modules/inttypes (Depends-on): Add multiarch.
83709         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
83711         Add support for universal builds to <stdint.h>.
83712         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
83713         universal builds, define directly, using _LP64.
83714         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
83715         Apple universal builds, don't test for the size and suffix of ptrdiff_t
83716         and size_t.
83717         * modules/stdint (Depends-on): Add multiarch.
83718         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
83720         New module 'multiarch'.
83721         * modules/multiarch: New file.
83722         * m4/multiarch.m4: New file.
83724 2008-12-25  Bruno Haible  <bruno@clisp.org>
83726         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
83728 2008-12-25  Bruno Haible  <bruno@clisp.org>
83730         * modules/btowc (License): Relicense under LGPLv2+.
83731         * modules/mbsinit (License): Likewise.
83732         * modules/mbrtowc (License): Likewise.
83733         * modules/wcrtomb (License): Likewise.
83734         * modules/streq (License): Likewise.
83735         Reported by David Lutterkort <lutter@redhat.com>.
83737 2008-12-23  Bruno Haible  <bruno@clisp.org>
83739         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
83741 2008-12-23  Bruno Haible  <bruno@clisp.org>
83743         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
83744         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
83745         GETADDRINFO_LIB, not in LIBS.
83746         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
83747         * modules/canon-host (Link): Likewise.
83748         * NEWS: Mention the change.
83749         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
83750         GETADDRINFO_LIB.
83752 2008-12-22  Bruno Haible  <bruno@clisp.org>
83754         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
83755         * doc/posix-functions/iswalpha_l.texi: Likewise.
83756         * doc/posix-functions/iswblank_l.texi: Likewise.
83757         * doc/posix-functions/iswcntrl_l.texi: Likewise.
83758         * doc/posix-functions/iswctype_l.texi: Likewise.
83759         * doc/posix-functions/iswdigit_l.texi: Likewise.
83760         * doc/posix-functions/iswgraph_l.texi: Likewise.
83761         * doc/posix-functions/iswlower_l.texi: Likewise.
83762         * doc/posix-functions/iswprint_l.texi: Likewise.
83763         * doc/posix-functions/iswpunct_l.texi: Likewise.
83764         * doc/posix-functions/iswspace_l.texi: Likewise.
83765         * doc/posix-functions/iswupper_l.texi: Likewise.
83766         * doc/posix-functions/iswxdigit_l.texi: Likewise.
83767         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
83768         * doc/posix-functions/open_wmemstream.texi: Likewise.
83769         * doc/posix-functions/swscanf.texi: Likewise.
83770         * doc/posix-functions/towctrans_l.texi: Likewise.
83771         * doc/posix-functions/towlower.texi: Likewise.
83772         * doc/posix-functions/towlower_l.texi: Likewise.
83773         * doc/posix-functions/towupper.texi: Likewise.
83774         * doc/posix-functions/towupper_l.texi: Likewise.
83775         * doc/posix-functions/vfwprintf.texi: Likewise.
83776         * doc/posix-functions/vfwscanf.texi: Likewise.
83777         * doc/posix-functions/vswscanf.texi: Likewise.
83778         * doc/posix-functions/vwprintf.texi: Likewise.
83779         * doc/posix-functions/vwscanf.texi: Likewise.
83780         * doc/posix-functions/wcpcpy.texi: Likewise.
83781         * doc/posix-functions/wcpncpy.texi: Likewise.
83782         * doc/posix-functions/wcscasecmp.texi: Likewise.
83783         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
83784         * doc/posix-functions/wcscoll_l.texi: Likewise.
83785         * doc/posix-functions/wcsdup.texi: Likewise.
83786         * doc/posix-functions/wcsncasecmp.texi: Likewise.
83787         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
83788         * doc/posix-functions/wcsnlen.texi: Likewise.
83789         * doc/posix-functions/wcsnrtombs.texi: Likewise.
83790         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
83791         * doc/posix-functions/wctrans_l.texi: Likewise.
83792         * doc/posix-functions/wctype_l.texi: Likewise.
83793         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
83794         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
83795         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
83796         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
83797         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
83798         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
83799         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
83800         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
83801         * doc/glibc-functions/wcschrnul.texi: Likewise.
83802         * doc/glibc-functions/wcsftime_l.texi: Likewise.
83803         * doc/glibc-functions/wcstod_l.texi: Likewise.
83804         * doc/glibc-functions/wcstof_l.texi: Likewise.
83805         * doc/glibc-functions/wcstol_l.texi: Likewise.
83806         * doc/glibc-functions/wcstold_l.texi: Likewise.
83807         * doc/glibc-functions/wcstoll_l.texi: Likewise.
83808         * doc/glibc-functions/wcstoq.texi: Likewise.
83809         * doc/glibc-functions/wcstoul_l.texi: Likewise.
83810         * doc/glibc-functions/wcstoull_l.texi: Likewise.
83811         * doc/glibc-functions/wcstouq.texi: Likewise.
83812         * doc/glibc-functions/wmempcpy.texi: Likewise.
83814 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
83815             Eric Blake  <ebb9@byu.net>
83816             Paolo Bonzini  <bonzini@gnu.org>
83817             Bruno Haible  <bruno@clisp.org>
83819         Make c-stack work on Haiku.
83820         * lib/c-stack.c (SA_ONSTACK): Define fallback.
83821         (c_stack_action): Use SA_ONSTACK flag.
83823 2008-12-22  Bruno Haible  <bruno@clisp.org>
83825         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
83827 2008-12-22  Bruno Haible  <bruno@clisp.org>
83829         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
83830         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
83831         being overridden.
83832         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
83833         New macros.
83834         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
83835         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
83836         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
83837         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
83839 2008-12-22  Bruno Haible  <bruno@clisp.org>
83841         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
83842         from test code.
83844 2008-12-22  Eric Blake  <ebb9@byu.net>
83846         Avoid gcc warnings on cygwin.
83847         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
83848         Avoid unused variable.
83849         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
83850         Likewise.
83852 2008-12-22  Bruno Haible  <bruno@clisp.org>
83854         Remove HAVE_MBRTOWC conditionals.
83855         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
83856         (mbscasecmp): Assume mbrtowc function.
83857         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
83858         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
83859         * lib/mbschr.c: Include mbuiter.h unconditionally.
83860         (mbschr): Assume mbrtowc function.
83861         * lib/mbscspn.c: Include mbuiter.h unconditionally.
83862         (mbscspn): Assume mbrtowc function.
83863         * lib/mbslen.c: Include mbuiter.h unconditionally.
83864         (mbslen): Assume mbrtowc function.
83865         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
83866         (mbsncasecmp): Assume mbrtowc function.
83867         * lib/mbsnlen.c: Include mbiter.h unconditionally.
83868         (mbsnlen): Assume mbrtowc function.
83869         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
83870         (mbspbrk): Assume mbrtowc function.
83871         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
83872         (mbspcasecmp): Assume mbrtowc function.
83873         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
83874         (mbsrchr): Assume mbrtowc function.
83875         * lib/mbssep.c: Include mbuiter.h unconditionally.
83876         (mbssep): Assume mbrtowc function.
83877         * lib/mbsspn.c: Include mbuiter.h unconditionally.
83878         (mbsspn): Assume mbrtowc function.
83879         * lib/mbsstr.c: Include mbuiter.h unconditionally.
83880         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
83881         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
83882         (mbstok_r): Assume mbrtowc function.
83883         * lib/propername.c: Include mbuiter.h unconditionally.
83884         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
83885         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
83886         (trim2): Assume mbrtowc function.
83887         * lib/mbswidth.c (mbsinit): Remove fallback definition.
83888         (mbsnwidth): Assume mbrtowc function.
83889         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
83890         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
83891         fallback definitions.
83892         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
83894 2008-12-22  Bruno Haible  <bruno@clisp.org>
83896         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
83898 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
83900         * modules/regex: Request emulations for the mb*/wc* functions we need.
83901         * m4/regex.m4: Don't look for those functions here.
83902         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
83904 2008-12-22  Bruno Haible  <bruno@clisp.org>
83906         * modules/fnmatch (Depends-on): Remove duplicated dependency.
83908 2008-12-21  Bruno Haible  <bruno@clisp.org>
83910         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
83911         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
83912         (Include): Remove conditionalization.
83913         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
83914         (Include): Remove conditionalization.
83915         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
83916         (Include): Remove conditionalization.
83917         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
83918         * m4/mbfile.m4 (gl_MBFILE): Likewise.
83919         * NEWS: Mention the change.
83920         Reported by Alan Hourihane <alanh@fairlite.co.uk>
83921         via Sergey Poznyakoff <gray@gnu.org.ua>.
83923 2008-12-21  Bruno Haible  <bruno@clisp.org>
83925         * MODULES.html.sh (Extended multibyte and wide character utilities
83926         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
83927         wcrtomb, wcsrtombs.
83928         (Support for systems lacking POSIX:2008): Add accept, bind, close,
83929         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
83930         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
83931         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
83933 2008-12-21  Bruno Haible  <bruno@clisp.org>
83935         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
83937 2008-12-21  Bruno Haible  <bruno@clisp.org>
83939         * modules/wcsnrtombs-tests: New file.
83940         * tests/test-wcsnrtombs1.sh: New file.
83941         * tests/test-wcsnrtombs2.sh: New file.
83942         * tests/test-wcsnrtombs3.sh: New file.
83943         * tests/test-wcsnrtombs4.sh: New file.
83944         * tests/test-wcsnrtombs.c: New file.
83946         New module 'wcsnrtombs'.
83947         * lib/wchar.in.h (wcsnrtombs): New declaration.
83948         * lib/wcsnrtombs.c: New file.
83949         * lib/wcsrtombs-state.c: New file.
83950         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
83951         (internal_state): Remove variable.
83952         * m4/wcsnrtombs.m4: New file.
83953         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
83954         compilation units.
83955         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
83956         HAVE_WCSNRTOMBS.
83957         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
83958         HAVE_WCSNRTOMBS.
83959         * modules/wcsnrtombs: New file.
83960         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
83961         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
83963 2008-12-21  Bruno Haible  <bruno@clisp.org>
83965         * modules/wcsrtombs-tests: New file.
83966         * tests/test-wcsrtombs1.sh: New file.
83967         * tests/test-wcsrtombs2.sh: New file.
83968         * tests/test-wcsrtombs3.sh: New file.
83969         * tests/test-wcsrtombs4.sh: New file.
83970         * tests/test-wcsrtombs.c: New file.
83972         New module 'wcsrtombs'.
83973         * lib/wchar.in.h (wcsrtombs): New declaration.
83974         * lib/wcsrtombs.c: New file.
83975         * m4/wcsrtombs.m4: New file.
83976         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
83977         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
83978         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
83979         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
83980         * modules/wcsrtombs: New file.
83981         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
83982         bugs.
83984 2008-12-21  Bruno Haible  <bruno@clisp.org>
83986         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
83987         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
83988         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
83989         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
83990         if not correct.
83991         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
83992         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
83993         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
83994         m4/locale-zh.m4, m4/codeset.m4.
83995         * doc/posix-functions/wcrtomb.texi: Document the bug.
83997 2008-12-21  Bruno Haible  <bruno@clisp.org>
83999         Work around a btowc() bug on IRIX 6.5.
84000         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
84001         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
84002         REPLACE_WTOBC if not.
84003         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
84004         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
84005         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
84007 2008-12-21  Bruno Haible  <bruno@clisp.org>
84009         * modules/wcrtomb-tests: New file.
84010         * tests/test-wcrtomb.sh: New file.
84011         * tests/test-wcrtomb.c: New file.
84013         New module 'wcrtomb'.
84014         * lib/wchar.in.h (wcrtomb): New declaration.
84015         * lib/wcrtomb.c: New file.
84016         * m4/wcrtomb.m4: New file.
84017         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
84018         HAVE_WCRTOMB.
84019         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
84020         HAVE_WCRTOMB.
84021         * modules/wcrtomb: New file.
84022         * doc/posix-functions/wcrtomb.texi: Mention the new module.
84024 2008-12-21  Bruno Haible  <bruno@clisp.org>
84026         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
84027         * modules/mbsrtowcs (Files): Likewise.
84028         * modules/wctob (Files): Likewise.
84029         * modules/c-strcase-tests (Files): Likewise.
84030         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
84031         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
84032         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
84033         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
84034         * modules/vasnprintf-posix-tests (Files): Likewise.
84036 2008-12-21  William Pursell  <bill.pursell@gmail.com>
84038         gitlog-to-changelog: pass all command-line arguments to git-log
84039         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
84040         it is sometimes convenient to filter the commits in various ways.
84041         gitlog-to-changelog only allows --since to specify a start date,
84042         but git-log itself supports many other filtering mechanisms.
84043         At the moment, I want to filter by branch name.  Rather than
84044         adding a --branch option to gitlog-to-changelog, it seems more
84045         flexible to simply pass all options directly to git-log and let
84046         git do the work.  Notice that this effectively makes --since a
84047         redundant option for gitlog-to-changelog, but removing it would
84048         require current usage to change since calls would then require
84049         an additional '--'.
84051 2008-12-21  Bruno Haible  <bruno@clisp.org>
84053         * modules/mbsnrtowcs-tests: New file.
84054         * tests/test-mbsnrtowcs1.sh: New file.
84055         * tests/test-mbsnrtowcs2.sh: New file.
84056         * tests/test-mbsnrtowcs3.sh: New file.
84057         * tests/test-mbsnrtowcs4.sh: New file.
84058         * tests/test-mbsnrtowcs.c: New file.
84060         New module 'mbsnrtowcs'.
84061         * lib/wchar.in.h (mbsnrtowcs): New declaration.
84062         * lib/mbsnrtowcs.c: New file.
84063         * lib/mbsrtowcs-state.c: New file.
84064         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
84065         (internal_state): Remove variable.
84066         * m4/mbsnrtowcs.m4: New file.
84067         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
84068         compilation units.
84069         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
84070         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
84071         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
84072         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
84073         * modules/mbsnrtowcs: New file.
84074         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
84075         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
84076         portability problem.
84078 2008-12-21  Bruno Haible  <bruno@clisp.org>
84080         Work around mbsrtowcs bug.
84081         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
84082         (gl_FUNC_MBSRTOWCS): Invoke it.
84083         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84084         m4/locale-zh.m4.
84085         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
84087 2008-12-21  Bruno Haible  <bruno@clisp.org>
84089         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
84091 2008-12-21  Bruno Haible  <bruno@clisp.org>
84093         Update doc for AIX.
84094         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
84095         16-bit wchar_t type.
84096         * doc/posix-functions/btowc.texi: Likewise.
84097         * doc/posix-functions/fgetwc.texi: Likewise.
84098         * doc/posix-functions/fgetws.texi: Likewise.
84099         * doc/posix-functions/fputwc.texi: Likewise.
84100         * doc/posix-functions/fputws.texi: Likewise.
84101         * doc/posix-functions/fwide.texi: Likewise.
84102         * doc/posix-functions/fwprintf.texi: Likewise.
84103         * doc/posix-functions/fwscanf.texi: Likewise.
84104         * doc/posix-functions/getwchar.texi: Likewise.
84105         * doc/posix-functions/getwc.texi: Likewise.
84106         * doc/posix-functions/iswalnum.texi: Likewise.
84107         * doc/posix-functions/iswalpha.texi: Likewise.
84108         * doc/posix-functions/iswblank.texi: Likewise.
84109         * doc/posix-functions/iswcntrl.texi: Likewise.
84110         * doc/posix-functions/iswctype.texi: Likewise.
84111         * doc/posix-functions/iswdigit.texi: Likewise.
84112         * doc/posix-functions/iswgraph.texi: Likewise.
84113         * doc/posix-functions/iswlower.texi: Likewise.
84114         * doc/posix-functions/iswprint.texi: Likewise.
84115         * doc/posix-functions/iswpunct.texi: Likewise.
84116         * doc/posix-functions/iswspace.texi: Likewise.
84117         * doc/posix-functions/iswupper.texi: Likewise.
84118         * doc/posix-functions/iswxdigit.texi: Likewise.
84119         * doc/posix-functions/mbrtowc.texi: Likewise.
84120         * doc/posix-functions/mbsrtowcs.texi: Likewise.
84121         * doc/posix-functions/mbstowcs.texi: Likewise.
84122         * doc/posix-functions/mbtowc.texi: Likewise.
84123         * doc/posix-functions/putwchar.texi: Likewise.
84124         * doc/posix-functions/putwc.texi: Likewise.
84125         * doc/posix-functions/swprintf.texi: Likewise.
84126         * doc/posix-functions/tolower.texi: Likewise.
84127         * doc/posix-functions/toupper.texi: Likewise.
84128         * doc/posix-functions/towctrans.texi: Likewise.
84129         * doc/posix-functions/ungetwc.texi: Likewise.
84130         * doc/posix-functions/vswprintf.texi: Likewise.
84131         * doc/posix-functions/wcrtomb.texi: Likewise.
84132         * doc/posix-functions/wcscat.texi: Likewise.
84133         * doc/posix-functions/wcschr.texi: Likewise.
84134         * doc/posix-functions/wcscmp.texi: Likewise.
84135         * doc/posix-functions/wcscoll.texi: Likewise.
84136         * doc/posix-functions/wcscpy.texi: Likewise.
84137         * doc/posix-functions/wcscspn.texi: Likewise.
84138         * doc/posix-functions/wcsftime.texi: Likewise.
84139         * doc/posix-functions/wcslen.texi: Likewise.
84140         * doc/posix-functions/wcsncat.texi: Likewise.
84141         * doc/posix-functions/wcsncmp.texi: Likewise.
84142         * doc/posix-functions/wcsncpy.texi: Likewise.
84143         * doc/posix-functions/wcspbrk.texi: Likewise.
84144         * doc/posix-functions/wcsrchr.texi: Likewise.
84145         * doc/posix-functions/wcsrtombs.texi: Likewise.
84146         * doc/posix-functions/wcsspn.texi: Likewise.
84147         * doc/posix-functions/wcsstr.texi: Likewise.
84148         * doc/posix-functions/wcstod.texi: Likewise.
84149         * doc/posix-functions/wcstof.texi: Likewise.
84150         * doc/posix-functions/wcstoimax.texi: Likewise.
84151         * doc/posix-functions/wcstok.texi: Likewise.
84152         * doc/posix-functions/wcstold.texi: Likewise.
84153         * doc/posix-functions/wcstoll.texi: Likewise.
84154         * doc/posix-functions/wcstol.texi: Likewise.
84155         * doc/posix-functions/wcstombs.texi: Likewise.
84156         * doc/posix-functions/wcstoull.texi: Likewise.
84157         * doc/posix-functions/wcstoul.texi: Likewise.
84158         * doc/posix-functions/wcstoumax.texi: Likewise.
84159         * doc/posix-functions/wcswidth.texi: Likewise.
84160         * doc/posix-functions/wcsxfrm.texi: Likewise.
84161         * doc/posix-functions/wctob.texi: Likewise.
84162         * doc/posix-functions/wctomb.texi: Likewise.
84163         * doc/posix-functions/wctrans.texi: Likewise.
84164         * doc/posix-functions/wctype.texi: Likewise.
84165         * doc/posix-functions/wcwidth.texi: Likewise.
84166         * doc/posix-functions/wmemchr.texi: Likewise.
84167         * doc/posix-functions/wmemcmp.texi: Likewise.
84168         * doc/posix-functions/wmemcpy.texi: Likewise.
84169         * doc/posix-functions/wmemmove.texi: Likewise.
84170         * doc/posix-functions/wmemset.texi: Likewise.
84171         * doc/posix-functions/wprintf.texi: Likewise.
84172         * doc/posix-functions/wscanf.texi: Likewise.
84174 2008-12-21  Bruno Haible  <bruno@clisp.org>
84176         Update doc for HP-UX 11.11.
84177         * doc/posix-functions/btowc.texi: Clarify that the function is missing
84178         in HP-UX version 11.00, not in all versions of HP-UX 11.
84179         * doc/posix-functions/fwide.texi: Likewise.
84180         * doc/posix-functions/fwprintf.texi: Likewise.
84181         * doc/posix-functions/fwscanf.texi: Likewise.
84182         * doc/posix-functions/inet_ntop.texi: Likewise.
84183         * doc/posix-functions/inet_pton.texi: Likewise.
84184         * doc/posix-functions/mbrlen.texi: Likewise.
84185         * doc/posix-functions/mbrtowc.texi: Likewise.
84186         * doc/posix-functions/mbsinit.texi: Likewise.
84187         * doc/posix-functions/mbsrtowcs.texi: Likewise.
84188         * doc/posix-functions/swprintf.texi: Likewise.
84189         * doc/posix-functions/swscanf.texi: Likewise.
84190         * doc/posix-functions/towctrans.texi: Likewise.
84191         * doc/posix-functions/vfwprintf.texi: Likewise.
84192         * doc/posix-functions/vswprintf.texi: Likewise.
84193         * doc/posix-functions/vwprintf.texi: Likewise.
84194         * doc/posix-functions/wcrtomb.texi: Likewise.
84195         * doc/posix-functions/wcsrtombs.texi: Likewise.
84196         * doc/posix-functions/wcsstr.texi: Likewise.
84197         * doc/posix-functions/wctob.texi: Likewise.
84198         * doc/posix-functions/wctrans.texi: Likewise.
84199         * doc/posix-functions/wmemchr.texi: Likewise.
84200         * doc/posix-functions/wmemcmp.texi: Likewise.
84201         * doc/posix-functions/wmemcpy.texi: Likewise.
84202         * doc/posix-functions/wmemmove.texi: Likewise.
84203         * doc/posix-functions/wmemset.texi: Likewise.
84204         * doc/posix-functions/wprintf.texi: Likewise.
84205         * doc/posix-functions/wscanf.texi: Likewise.
84207 2008-12-21  Bruno Haible  <bruno@clisp.org>
84209         Work around a portability problem.
84210         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
84211         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
84213 2008-12-20  Bruno Haible  <bruno@clisp.org>
84215         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
84216         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
84217         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
84218         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
84219         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
84221         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
84222         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
84223         set.
84224         (GNULIB_defined_mbstate_t): New macro.
84225         (mbsinit): Redefine if REPLACE_MBSINIT is set.
84226         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
84227         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
84228         reuses the system's mbrtowc function but works around the bugs.
84229         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
84230         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
84231         macros.
84232         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
84233         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
84234         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
84235         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
84236         REPLACE_MBSINIT if mbsinit needs to be overridden.
84237         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
84238         REPLACE_MBSINIT, REPLACE_MBRTOWC.
84239         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
84240         REPLACE_MBSINIT, REPLACE_MBRTOWC.
84241         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84242         m4/locale-zh.m4.
84243         (Depends): Add mbsinit.
84244         * modules/mbsinit (Depends): Add mbrtowc.
84245         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
84247 2008-12-20  Bruno Haible  <bruno@clisp.org>
84249         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
84250         so that there are no conversion errors on AIX.
84251         * tests/test-mbsrtowcs.c (main): LIkewise.
84253 2008-12-20  Bruno Haible  <bruno@clisp.org>
84255         Work around wctob bug on Solaris <= 9.
84256         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
84257         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
84258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
84259         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
84260         * modules/wctob (Files): Add m4/locale-fr.m4.
84261         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
84263 2008-12-20  Bruno Haible  <bruno@clisp.org>
84265         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
84266         /dev/null.
84267         * tests/test-select-in.sh: Likewise.
84268         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84270 2008-12-20  Bruno Haible  <bruno@clisp.org>
84272         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
84273         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
84274         Cygwin 1.5.x.
84276 2008-12-20  Bruno Haible  <bruno@clisp.org>
84278         Ensure mbstate_t is defined on HP-UX 11.11.
84279         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
84280         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
84281         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
84282         AC_USE_SYSTEM_EXTENSIONS.
84283         * modules/fnmatch (Depends-on): Add extensions.
84284         * modules/mbrlen (Depends-on): Likewise.
84285         * modules/mbrtowc (Depends-on): Likewise.
84286         * modules/mbsinit (Depends-on): Likewise.
84287         * modules/mbsrtowcs (Depends-on): Likewise.
84288         * modules/mbswidth (Depends-on): Likewise.
84289         * modules/quotearg (Depends-on): Likewise.
84290         * modules/strftime (Depends-on): Likewise.
84292 2008-12-20  Bruno Haible  <bruno@clisp.org>
84294         Ensure wctob is declared on IRIX 6.5.
84295         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
84296         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
84297         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
84298         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
84299         of HAVE_WCTOB.
84300         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
84301         HAVE_WCTOB.
84302         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
84304 2008-12-19  Bruno Haible  <bruno@clisp.org>
84306         * modules/mbsrtowcs-tests: New file.
84307         * tests/test-mbsrtowcs1.sh: New file.
84308         * tests/test-mbsrtowcs2.sh: New file.
84309         * tests/test-mbsrtowcs3.sh: New file.
84310         * tests/test-mbsrtowcs4.sh: New file.
84311         * tests/test-mbsrtowcs.c: New file.
84313         New module 'mbsrtowcs'.
84314         * lib/wchar.in.h (mbsrtowcs): New declaration.
84315         * lib/mbsrtowcs.c: New file.
84316         * m4/mbsrtowcs.m4: New file.
84317         * modules/mbsrtowcs: New file.
84318         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
84319         HAVE_MBSRTOWCS.
84320         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
84321         HAVE_MBSRTOWCS.
84322         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
84324 2008-12-19  Bruno Haible  <bruno@clisp.org>
84326         New module 'mbrlen'.
84327         * lib/wchar.in.h (mbrlen): New declaration.
84328         * lib/mbrlen.c: New file.
84329         * m4/mbrlen.m4: New file.
84330         * modules/mbrlen: New file.
84331         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
84332         HAVE_MBRLEN.
84333         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
84334         HAVE_MBRLEN.
84335         * doc/posix-functions/mbrlen.texi: Document the new module.
84337 2008-12-19  Bruno Haible  <bruno@clisp.org>
84339         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
84340         * modules/mbrtowc (Depends-on): Add verify.
84341         Suggested by Paul Eggert.
84343 2008-12-18  Bruno Haible  <bruno@clisp.org>
84345         * modules/mbsinit-tests: New file.
84346         * tests/test-mbsinit.sh: New file.
84347         * tests/test-mbsinit.c: New file.
84349 2008-12-18  Bruno Haible  <bruno@clisp.org>
84351         * modules/mbrtowc-tests: New file.
84352         * tests/test-mbrtowc1.sh: New file.
84353         * tests/test-mbrtowc2.sh: New file.
84354         * tests/test-mbrtowc3.sh: New file.
84355         * tests/test-mbrtowc4.sh: New file.
84356         * tests/test-mbrtowc.c: New file.
84358         New module 'mbrtowc'.
84359         * lib/wchar.in.h (mbstate_t): Override when the system does not have
84360         mbsinit and mbrtowc.
84361         (mbrtowc): New declaration.
84362         * lib/mbrtowc.c: New file.
84363         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
84364         * modules/mbrtowc: New file.
84365         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
84366         HAVE_MBRTOWC.
84367         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
84368         HAVE_MBRTOWC.
84369         * doc/posix-functions/mbrtowc.texi: Document the new module.
84371 2008-12-18  Bruno Haible  <bruno@clisp.org>
84373         New module 'wctob'.
84374         * lib/wchar.in.h (wctob): New declaration.
84375         * lib/wctob.c: New file.
84376         * m4/wctob.m4: New file.
84377         * modules/wctob: New file.
84378         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
84379         HAVE_WCTOB.
84380         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
84381         * doc/posix-functions/wctob.texi: Document the new module.
84383 2008-12-18  Bruno Haible  <bruno@clisp.org>
84385         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
84386         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
84388 2008-12-18  Simon Josefsson  <simon@josefsson.org>
84390         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
84391         G. Christensen" <tgc@jupiterrise.com>.
84393         * lib/flock.c: Need to include errno.h.  Reported by "Tom
84394         G. Christensen" <tgc@jupiterrise.com>.
84396         * lib/flock.c: Need to include string.h.  Reported by "Tom
84397         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
84398         <ebb9@byu.net>.
84400 2008-12-18  Bruno Haible  <bruno@clisp.org>
84402         * m4/locale-ja.m4: New file, from GNU gettext.
84404 2008-12-17  Bruno Haible  <bruno@clisp.org>
84406         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
84407         Suggested by Eric Blake.
84409 2008-12-17  Bruno Haible  <bruno@clisp.org>
84411         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
84413 2008-12-17  Bruno Haible  <bruno@clisp.org>
84415         * lib/mbsinit.c: Include verify.h. Verify an assumption.
84416         * modules/mbsinit (Depends-on): Add verify.
84417         Suggested by Paul Eggert.
84419 2008-12-17  Bruno Haible  <bruno@clisp.org>
84421         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
84422         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
84423         gl_FUNC_MBRTOWC.
84424         * m4/mbiter.m4 (gl_MBITER): LIkewise.
84425         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
84426         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
84427         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
84428         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
84429         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
84430         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
84431         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
84432         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
84433         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
84434         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
84435         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
84436         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
84437         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
84438         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
84439         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
84440         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
84441         * modules/trim (configure.ac): Likewise.
84443 2008-12-17  Bruno Haible  <bruno@clisp.org>
84445         * modules/btowc-tests: New file.
84446         * tests/test-btowc1.sh: New file.
84447         * tests/test-btowc2.sh: New file.
84448         * tests/test-btowc.c: New file.
84450         New module 'btowc'.
84451         * lib/wchar.in.h (btowc): New declaration.
84452         * lib/btowc.c: New file.
84453         * m4/btowc.m4: New file.
84454         * modules/btowc: New file.
84455         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
84456         HAVE_BTOWC.
84457         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
84458         * doc/posix-functions/btowc.texi: Document the new module.
84460 2008-12-17  Bruno Haible  <bruno@clisp.org>
84462         New module 'mbsinit'.
84463         * lib/wchar.in.h (mbsinit): New declaration.
84464         * lib/mbsinit.c: New file.
84465         * m4/mbsinit.m4: New file.
84466         * modules/mbsinit: New file.
84467         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
84468         HAVE_MBSINIT.
84469         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
84470         HAVE_MBSINIT.
84471         * doc/posix-functions/mbsinit.texi: Document the new module.
84473 2008-12-16  Bruno Haible  <bruno@clisp.org>
84475         * lib/unistd.in.h: Add comment.
84476         * tests/test-environ.c: Don't include <stdlib.h>.
84478 2008-12-16  Bruno Haible  <bruno@clisp.org>
84480         * lib/parse-duration.h (parse_duration): Document return value
84481         convention.
84482         * lib/parse-duration.c: Include specification header first. Add
84483         comments.
84484         (_): Remove macro.
84485         (parse_year_month_day, parse_hour_minute_second): Move side effects
84486         outside of strchr call.
84487         (parse_non_iso8601): Move side effects outside of isspace call.
84488         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
84489         call.
84491 2008-12-16  Bruno Haible  <bruno@clisp.org>
84493         * tests/test-parse-duration.sh: Produce no output when the test
84494         succeeds.
84496 2008-12-16  Bruno Haible  <bruno@clisp.org>
84498         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
84499         expressions.
84501 2008-12-15  Bruno Haible  <bruno@clisp.org>
84503         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
84504         * doc/glibc-functions/flistxattr.texi: Likewise.
84505         * doc/glibc-functions/fopencookie.texi: Likewise.
84506         * doc/glibc-functions/fremovexattr.texi: Likewise.
84507         * doc/glibc-functions/fsetxattr.texi: Likewise.
84508         * doc/glibc-functions/getxattr.texi: Likewise.
84509         * doc/glibc-functions/lgetxattr.texi: Likewise.
84510         * doc/glibc-functions/listxattr.texi: Likewise.
84511         * doc/glibc-functions/llistxattr.texi: Likewise.
84512         * doc/glibc-functions/lremovexattr.texi: Likewise.
84513         * doc/glibc-functions/lsetxattr.texi: Likewise.
84514         * doc/glibc-functions/removexattr.texi: Likewise.
84515         * doc/glibc-functions/setxattr.texi: Likewise.
84516         * doc/posix-functions/open_memstream.texi: Likewise.
84518 2008-12-15  Eric Blake  <ebb9@byu.net>
84520         Update doc for cygwin 1.7.
84521         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
84522         functions.
84523         * doc/posix-functions/fchmodat.texi: Likewise.
84524         * doc/posix-functions/fchownat.texi: Likewise.
84525         * doc/posix-functions/fdopendir.texi: Likewise.
84526         * doc/posix-functions/fmemopen.texi: Likewise.
84527         * doc/posix-functions/freeaddrinfo.texi: Likewise.
84528         * doc/posix-functions/fstatat.texi: Likewise.
84529         * doc/posix-functions/futimens.texi: Likewise.
84530         * doc/posix-functions/gai_strerror.texi: Likewise.
84531         * doc/posix-functions/getaddrinfo.texi: Likewise.
84532         * doc/posix-functions/getnameinfo.texi: Likewise.
84533         * doc/posix-functions/if_freenameindex.texi: Likewise.
84534         * doc/posix-functions/if_indextoname.texi: Likewise.
84535         * doc/posix-functions/if_nameindex.texi: Likewise.
84536         * doc/posix-functions/if_nametoindex.texi: Likewise.
84537         * doc/posix-functions/insque.texi: Likewise.
84538         * doc/posix-functions/linkat.texi: Likewise.
84539         * doc/posix-functions/llrint.texi: Likewise.
84540         * doc/posix-functions/llrintf.texi: Likewise.
84541         * doc/posix-functions/llrintl.texi: Likewise.
84542         * doc/posix-functions/lockf.texi: Likewise.
84543         * doc/posix-functions/lrintl.texi: Likewise.
84544         * doc/posix-functions/mkdirat.texi: Likewise.
84545         * doc/posix-functions/mkfifoat.texi: Likewise.
84546         * doc/posix-functions/mknodat.texi: Likewise.
84547         * doc/posix-functions/mq_close.texi: Likewise.
84548         * doc/posix-functions/mq_getattr.texi: Likewise.
84549         * doc/posix-functions/mq_notify.texi: Likewise.
84550         * doc/posix-functions/mq_open.texi: Likewise.
84551         * doc/posix-functions/mq_receive.texi: Likewise.
84552         * doc/posix-functions/mq_send.texi: Likewise.
84553         * doc/posix-functions/mq_setattr.texi: Likewise.
84554         * doc/posix-functions/mq_timedreceive.texi: Likewise.
84555         * doc/posix-functions/mq_timedsend.texi: Likewise.
84556         * doc/posix-functions/mq_unlink.texi: Likewise.
84557         * doc/posix-functions/open_memstream.texi: Likewise.
84558         * doc/posix-functions/openat.texi: Likewise.
84559         * doc/posix-functions/posix_fadvise.texi: Likewise.
84560         * doc/posix-functions/posix_fallocate.texi: Likewise.
84561         * doc/posix-functions/posix_madvise.texi: Likewise.
84562         * doc/posix-functions/posix_memalign.texi: Likewise.
84563         * doc/posix-functions/posix_openpt.texi: Likewise.
84564         * doc/posix-functions/readlinkat.texi: Likewise.
84565         * doc/posix-functions/remque.texi: Likewise.
84566         * doc/posix-functions/renameat.texi: Likewise.
84567         * doc/posix-functions/rintl.texi: Likewise.
84568         * doc/posix-functions/sem_unlink.texi: Likewise.
84569         * doc/posix-functions/shm_open.texi: Likewise.
84570         * doc/posix-functions/shm_unlink.texi: Likewise.
84571         * doc/posix-functions/signgam.texi: Likewise.
84572         * doc/posix-functions/sigset.texi: Likewise.
84573         * doc/posix-functions/stpcpy.texi: Likewise.
84574         * doc/posix-functions/stpncpy.texi: Likewise.
84575         * doc/posix-functions/strerror.texi: Likewise.
84576         * doc/posix-functions/strtod.texi: Likewise.
84577         * doc/posix-functions/symlinkat.texi: Likewise.
84578         * doc/posix-functions/unlinkat.texi: Likewise.
84579         * doc/posix-functions/utimensat.texi: Likewise.
84580         * doc/glibc-functions/bindresvport.texi: Likewise.
84581         * doc/glibc-functions/dn_expand.texi: Likewise.
84582         * doc/glibc-functions/exp10.texi: Likewise.
84583         * doc/glibc-functions/exp10f.texi: Likewise.
84584         * doc/glibc-functions/fgetxattr.texi: Likewise.
84585         * doc/glibc-functions/flistxattr.texi: Likewise.
84586         * doc/glibc-functions/fopencookie.texi: Likewise.
84587         * doc/glibc-functions/freeifaddrs.texi: Likewise.
84588         * doc/glibc-functions/fremovexattr.texi: Likewise.
84589         * doc/glibc-functions/fsetxattr.texi: Likewise.
84590         * doc/glibc-functions/getifaddrs.texi: Likewise.
84591         * doc/glibc-functions/getxattr.texi: Likewise.
84592         * doc/glibc-functions/lgetxattr.texi: Likewise.
84593         * doc/glibc-functions/listxattr.texi: Likewise.
84594         * doc/glibc-functions/llistxattr.texi: Likewise.
84595         * doc/glibc-functions/lremovexattr.texi: Likewise.
84596         * doc/glibc-functions/lsetxattr.texi: Likewise.
84597         * doc/glibc-functions/pow10.texi: Likewise.
84598         * doc/glibc-functions/pow10f.texi: Likewise.
84599         * doc/glibc-functions/rcmd_af.texi: Likewise.
84600         * doc/glibc-functions/removexattr.texi: Likewise.
84601         * doc/glibc-functions/res_init.texi: Likewise.
84602         * doc/glibc-functions/res_mkquery.texi: Likewise.
84603         * doc/glibc-functions/res_query.texi: Likewise.
84604         * doc/glibc-functions/res_querydomain.texi: Likewise.
84605         * doc/glibc-functions/res_send.texi: Likewise.
84606         * doc/glibc-functions/rresvport_af.texi: Likewise.
84607         * doc/glibc-functions/setxattr.texi: Likewise.
84608         * doc/glibc-functions/strcasestr.texi: Likewise.
84610 2008-12-15  Bruno Haible  <bruno@clisp.org>
84612         Fix compilation error on OSF/1 4.0.
84613         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
84614         <sys/time.h>, simply delegate to the system header.
84615         Reported by Daniel Richard G. <oss@teragram.com>.
84617 2008-12-15  Bruno Haible  <bruno@clisp.org>
84619         * doc/posix-functions/openat.texi: Mention the 'openat' module.
84620         * doc/posix-functions/fchmodat.texi: Likewise.
84621         * doc/posix-functions/fchownat.texi: Likewise.
84622         * doc/posix-functions/fdopendir.texi: Likewise.
84623         * doc/posix-functions/fstatat.texi: Likewise.
84624         * doc/posix-functions/mkdirat.texi: Likewise.
84625         * doc/posix-functions/unlinkat.texi: Likewise.
84627 2008-12-14  Bruno Haible  <bruno@clisp.org>
84629         Update doc for POSIX:2008.
84630         * doc/posix-functions/faccessat.texi: New file.
84631         * doc/posix-functions/fchmodat.texi: New file.
84632         * doc/posix-functions/fchownat.texi: New file.
84633         * doc/posix-functions/fdopendir.texi: New file.
84634         * doc/posix-functions/fstatat.texi: New file.
84635         * doc/posix-functions/futimens.texi: New file.
84636         * doc/posix-functions/linkat.texi: New file.
84637         * doc/posix-functions/mkdirat.texi: New file.
84638         * doc/posix-functions/mkfifoat.texi: New file.
84639         * doc/posix-functions/mknodat.texi: New file.
84640         * doc/posix-functions/open_wmemstream.texi: New file.
84641         * doc/posix-functions/openat.texi: New file.
84642         * doc/posix-functions/psiginfo.texi: New file.
84643         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
84644         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
84645         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
84646         * doc/posix-functions/readlinkat.texi: New file.
84647         * doc/posix-functions/renameat.texi: New file.
84648         * doc/posix-functions/strerror_l.texi: New file.
84649         * doc/posix-functions/symlinkat.texi: New file.
84650         * doc/posix-functions/unlinkat.texi: New file.
84651         * doc/posix-functions/utimensat.texi: New file.
84652         * doc/gnulib.texi (Function Substitutes): Add these subsections.
84654 2008-12-14  Bruno Haible  <bruno@clisp.org>
84656         Update doc for POSIX:2008.
84657         * doc/posix-functions/alphasort.texi: Renamed from
84658         doc/glibc-functions/alphasort.texi.
84659         * doc/posix-functions/dirfd.texi: Renamed from
84660         doc/glibc-functions/dirfd.texi.
84661         * doc/posix-functions/dprintf.texi: Renamed from
84662         doc/glibc-functions/dprintf.texi.
84663         * doc/posix-functions/duplocale.texi: Renamed from
84664         doc/glibc-functions/duplocale.texi.
84665         * doc/posix-functions/fexecve.texi: Renamed from
84666         doc/glibc-functions/fexecve.texi.
84667         * doc/posix-functions/fmemopen.texi: Renamed from
84668         doc/glibc-functions/fmemopen.texi.
84669         * doc/posix-functions/freelocale.texi: Renamed from
84670         doc/glibc-functions/freelocale.texi.
84671         * doc/posix-functions/getdate_err.texi: Renamed from
84672         doc/glibc-functions/getdate_err.texi.
84673         * doc/posix-functions/isalnum_l.texi: Renamed from
84674         doc/glibc-functions/isalnum_l.texi.
84675         * doc/posix-functions/isalpha_l.texi: Renamed from
84676         doc/glibc-functions/isalpha_l.texi.
84677         * doc/posix-functions/isblank_l.texi: Renamed from
84678         doc/glibc-functions/isblank_l.texi.
84679         * doc/posix-functions/iscntrl_l.texi: Renamed from
84680         doc/glibc-functions/iscntrl_l.texi.
84681         * doc/posix-functions/isdigit_l.texi: Renamed from
84682         doc/glibc-functions/isdigit_l.texi.
84683         * doc/posix-functions/isgraph_l.texi: Renamed from
84684         doc/glibc-functions/isgraph_l.texi.
84685         * doc/posix-functions/islower_l.texi: Renamed from
84686         doc/glibc-functions/islower_l.texi.
84687         * doc/posix-functions/isprint_l.texi: Renamed from
84688         doc/glibc-functions/isprint_l.texi.
84689         * doc/posix-functions/ispunct_l.texi: Renamed from
84690         doc/glibc-functions/ispunct_l.texi.
84691         * doc/posix-functions/isspace_l.texi: Renamed from
84692         doc/glibc-functions/isspace_l.texi.
84693         * doc/posix-functions/isupper_l.texi: Renamed from
84694         doc/glibc-functions/isupper_l.texi.
84695         * doc/posix-functions/iswalnum_l.texi: Renamed from
84696         doc/glibc-functions/iswalnum_l.texi.
84697         * doc/posix-functions/iswalpha_l.texi: Renamed from
84698         doc/glibc-functions/iswalpha_l.texi.
84699         * doc/posix-functions/iswblank_l.texi: Renamed from
84700         doc/glibc-functions/iswblank_l.texi.
84701         * doc/posix-functions/iswcntrl_l.texi: Renamed from
84702         doc/glibc-functions/iswcntrl_l.texi.
84703         * doc/posix-functions/iswctype_l.texi: Renamed from
84704         doc/glibc-functions/iswctype_l.texi.
84705         * doc/posix-functions/iswdigit_l.texi: Renamed from
84706         doc/glibc-functions/iswdigit_l.texi.
84707         * doc/posix-functions/iswgraph_l.texi: Renamed from
84708         doc/glibc-functions/iswgraph_l.texi.
84709         * doc/posix-functions/iswlower_l.texi: Renamed from
84710         doc/glibc-functions/iswlower_l.texi.
84711         * doc/posix-functions/iswprint_l.texi: Renamed from
84712         doc/glibc-functions/iswprint_l.texi.
84713         * doc/posix-functions/iswpunct_l.texi: Renamed from
84714         doc/glibc-functions/iswpunct_l.texi.
84715         * doc/posix-functions/iswspace_l.texi: Renamed from
84716         doc/glibc-functions/iswspace_l.texi.
84717         * doc/posix-functions/iswupper_l.texi: Renamed from
84718         doc/glibc-functions/iswupper_l.texi.
84719         * doc/posix-functions/iswxdigit_l.texi: Renamed from
84720         doc/glibc-functions/iswxdigit_l.texi.
84721         * doc/posix-functions/isxdigit_l.texi: Renamed from
84722         doc/glibc-functions/isxdigit_l.texi.
84723         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
84724         doc/glibc-functions/mbsnrtowcs.texi.
84725         * doc/posix-functions/mkdtemp.texi: Renamed from
84726         doc/glibc-functions/mkdtemp.texi.
84727         * doc/posix-functions/newlocale.texi: Renamed from
84728         doc/glibc-functions/newlocale.texi.
84729         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
84730         doc/glibc-functions/nl_langinfo_l.texi.
84731         * doc/posix-functions/open_memstream.texi: Renamed from
84732         doc/glibc-functions/open_memstream.texi.
84733         * doc/posix-functions/opterr.texi: Renamed from
84734         doc/glibc-functions/opterr.texi.
84735         * doc/posix-functions/optind.texi: Renamed from
84736         doc/glibc-functions/optind.texi.
84737         * doc/posix-functions/optopt.texi: Renamed from
84738         doc/glibc-functions/optopt.texi.
84739         * doc/posix-functions/psignal.texi: Renamed from
84740         doc/glibc-functions/psignal.texi.
84741         * doc/posix-functions/scandir.texi: Renamed from
84742         doc/glibc-functions/scandir.texi.
84743         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
84744         doc/glibc-functions/sched_get_priority_min.texi.
84745         * doc/posix-functions/signgam.texi: Renamed from
84746         doc/glibc-functions/signgam.texi.
84747         * doc/posix-functions/stpcpy.texi: Renamed from
84748         doc/glibc-functions/stpcpy.texi.
84749         * doc/posix-functions/stpncpy.texi: Renamed from
84750         doc/glibc-functions/stpncpy.texi.
84751         * doc/posix-functions/strcasecmp_l.texi: Renamed from
84752         doc/glibc-functions/strcasecmp_l.texi.
84753         * doc/posix-functions/strcoll_l.texi: Renamed from
84754         doc/glibc-functions/strcoll_l.texi.
84755         * doc/posix-functions/strfmon_l.texi: Renamed from
84756         doc/glibc-functions/strfmon_l.texi.
84757         * doc/posix-functions/strftime_l.texi: Renamed from
84758         doc/glibc-functions/strftime_l.texi.
84759         * doc/posix-functions/strncasecmp_l.texi: Renamed from
84760         doc/glibc-functions/strncasecmp_l.texi.
84761         * doc/posix-functions/strndup.texi: Renamed from
84762         doc/glibc-functions/strndup.texi.
84763         * doc/posix-functions/strnlen.texi: Renamed from
84764         doc/glibc-functions/strnlen.texi.
84765         * doc/posix-functions/strsignal.texi: Renamed from
84766         doc/glibc-functions/strsignal.texi.
84767         * doc/posix-functions/strxfrm_l.texi: Renamed from
84768         doc/glibc-functions/strxfrm_l.texi.
84769         * doc/posix-functions/timer_gettime.texi: Renamed from
84770         doc/glibc-functions/timer_gettime.texi.
84771         * doc/posix-functions/tolower_l.texi: Renamed from
84772         doc/glibc-functions/tolower_l.texi.
84773         * doc/posix-functions/toupper_l.texi: Renamed from
84774         doc/glibc-functions/toupper_l.texi.
84775         * doc/posix-functions/towctrans_l.texi: Renamed from
84776         doc/glibc-functions/towctrans_l.texi.
84777         * doc/posix-functions/towlower_l.texi: Renamed from
84778         doc/glibc-functions/towlower_l.texi.
84779         * doc/posix-functions/towupper_l.texi: Renamed from
84780         doc/glibc-functions/towupper_l.texi.
84781         * doc/posix-functions/uselocale.texi: Renamed from
84782         doc/glibc-functions/uselocale.texi.
84783         * doc/posix-functions/vdprintf.texi: Renamed from
84784         doc/glibc-functions/vdprintf.texi.
84785         * doc/posix-functions/wcpcpy.texi:
84786         Renamed from doc/glibc-functions/wcpcpy.texi.
84787         * doc/posix-functions/wcpncpy.texi: Renamed from
84788         doc/glibc-functions/wcpncpy.texi.
84789         * doc/posix-functions/wcscasecmp.texi: Renamed from
84790         doc/glibc-functions/wcscasecmp.texi.
84791         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
84792         doc/glibc-functions/wcscasecmp_l.texi.
84793         * doc/posix-functions/wcscoll_l.texi: Renamed from
84794         doc/glibc-functions/wcscoll_l.texi.
84795         * doc/posix-functions/wcsdup.texi: Renamed from
84796         doc/glibc-functions/wcsdup.texi.
84797         * doc/posix-functions/wcsncasecmp.texi: Renamed from
84798         doc/glibc-functions/wcsncasecmp.texi.
84799         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
84800         doc/glibc-functions/wcsncasecmp_l.texi.
84801         * doc/posix-functions/wcsnlen.texi: Renamed from
84802         doc/glibc-functions/wcsnlen.texi.
84803         * doc/posix-functions/wcsnrtombs.texi: Renamed from
84804         doc/glibc-functions/wcsnrtombs.texi.
84805         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
84806         doc/glibc-functions/wcsxfrm_l.texi.
84807         * doc/posix-functions/wctrans_l.texi: Renamed from
84808         doc/glibc-functions/wctrans_l.texi.
84809         * doc/posix-functions/wctype_l.texi: Renamed from
84810         doc/glibc-functions/wctype_l.texi.
84811         * doc/gnulib.texi (Function Substitutes): Add these subsections.
84812         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
84813         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
84814         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
84815         these subsections.
84816         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
84817         Remove sections.
84819 2008-12-14  Bruno Haible  <bruno@clisp.org>
84821         Update doc for POSIX:2008.
84822         * doc/posix-functions/*.texi: Update URL of POSIX specification.
84824 2008-12-14  Bruno Haible  <bruno@clisp.org>
84826         Update doc for POSIX:2008.
84827         * doc/pastposix-functions/bcmp.texi: Renamed from
84828         doc/posix-functions/bcmp.texi.
84829         * doc/pastposix-functions/bcopy.texi: Renamed from
84830         doc/posix-functions/bcopy.texi.
84831         * doc/pastposix-functions/bsd_signal.texi: Renamed from
84832         doc/posix-functions/bsd_signal.texi.
84833         * doc/pastposix-functions/bzero.texi: Renamed from
84834         doc/posix-functions/bzero.texi.
84835         * doc/pastposix-functions/ecvt.texi: Renamed from
84836         doc/posix-functions/ecvt.texi.
84837         * doc/pastposix-functions/fcvt.texi: Renamed from
84838         doc/posix-functions/fcvt.texi.
84839         * doc/pastposix-functions/ftime.texi: Renamed from
84840         doc/posix-functions/ftime.texi.
84841         * doc/pastposix-functions/gcvt.texi: Renamed from
84842         doc/posix-functions/gcvt.texi.
84843         * doc/pastposix-functions/getcontext.texi: Renamed from
84844         doc/posix-functions/getcontext.texi.
84845         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
84846         doc/posix-functions/gethostbyaddr.texi.
84847         * doc/pastposix-functions/gethostbyname.texi: Renamed from
84848         doc/posix-functions/gethostbyname.texi.
84849         * doc/pastposix-functions/getwd.texi: Renamed from
84850         doc/posix-functions/getwd.texi.
84851         * doc/pastposix-functions/h_errno.texi: Renamed from
84852         doc/posix-functions/h_errno.texi.
84853         * doc/pastposix-functions/index.texi: Renamed from
84854         doc/posix-functions/index.texi.
84855         * doc/pastposix-functions/makecontext.texi: Renamed from
84856         doc/posix-functions/makecontext.texi.
84857         * doc/pastposix-functions/mktemp.texi: Renamed from
84858         doc/posix-functions/mktemp.texi.
84859         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
84860         doc/posix-functions/pthread_attr_getstackaddr.texi.
84861         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
84862         doc/posix-functions/pthread_attr_setstackaddr.texi.
84863         * doc/pastposix-functions/rindex.texi: Renamed from
84864         doc/posix-functions/rindex.texi.
84865         * doc/pastposix-functions/scalb.texi: Renamed from
84866         doc/posix-functions/scalb.texi.
84867         * doc/pastposix-functions/setcontext.texi: Renamed from
84868         doc/posix-functions/setcontext.texi.
84869         * doc/pastposix-functions/swapcontext.texi: Renamed from
84870         doc/posix-functions/swapcontext.texi.
84871         * doc/pastposix-functions/ualarm.texi: Renamed from
84872         doc/posix-functions/ualarm.texi.
84873         * doc/pastposix-functions/usleep.texi: Renamed from
84874         doc/posix-functions/usleep.texi.
84875         * doc/pastposix-functions/vfork.texi: Renamed from
84876         doc/posix-functions/vfork.texi.
84877         * doc/pastposix-functions/wcswcs.texi: Renamed from
84878         doc/posix-functions/wcswcs.texi.
84879         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
84880         (Function Substitutes): Update.
84882 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84884         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
84885         m4/strerror.m4.
84887 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84888             Bruno Haible  <bruno@clisp.org>
84890         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
84892 2008-12-13  Bruno Haible  <bruno@clisp.org>
84894         * modules/strtoull (Depends-on): Remove unistd.
84896 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84898         * modules/strtoull (Depends-on): Add stdlib.
84900 2008-12-11  Simon Josefsson  <simon@josefsson.org>
84902         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
84904 2008-12-10  Jim Meyering  <meyering@redhat.com>
84906         gl_ASSERT: don't say assertions are disabled when they're not
84907         * m4/assert.m4 (gl_ASSERT): Do not make configure report
84908         "checking whether to enable assertions... no", when they are in
84909         fact enabled.  This is solely a bug in the output of configure.
84910         In spite of saying "no", NDEBUG was not defined in that case.
84911         Also, as noted by Eric Blake, leave assertions enabled upon
84912         --enable-assert=INVALID.
84914 2008-12-10  Bruno Haible  <bruno@clisp.org>
84916         Change MODULES.html to refer to POSIX:2008 where possible.
84917         * MODULES.html.sh (POSIX2008_URL): New variable.
84918         (posix_headers): Remove sys/timeb, ucontext.
84919         (posix2001_headers): New variable.
84920         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
84921         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
84922         index, makecontext, mktemp, pthread_attr_getstackaddr,
84923         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
84924         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
84925         (posix2001_functions): New variable.
84926         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
84927         otherwise.
84929 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84931         add missing include to parse-duration.c
84932         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
84933         * modules/parse-duration (Depends-on): Add xalloc.
84935         fix sed script reading maint.mk
84936         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
84937         (syntax-check-rules): Use it.
84939 2008-12-09  Bruno Haible  <bruno@clisp.org>
84941         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
84942         MacOS X 10.4/PowerPC.
84943         Reported by Simon Josefsson.
84945 2008-12-08  Jim Meyering  <meyering@redhat.com>
84947         work around mingw's lack of some S_IF definitions
84948         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
84949         Reported by Simon Josefsson.
84951 2008-12-08  Bruno Haible  <bruno@clisp.org>
84953         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
84954         applied to variables. Needed on MacOS X 10.4/PowerPC.
84955         Reported by Simon Josefsson.
84957 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
84958         and Eric Blake  <ebb9@byu.net>
84960         assert: honor --enable-assert
84961         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
84962         order to honor --enable-assert, rather than treating it as a
84963         synonym for --disable-assert.
84965 2008-12-08  Jim Meyering  <meyering@redhat.com>
84967         * lib/posixtm.c: Remove now-useless declaration of mktime.
84969         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
84971 2008-12-07  Bruno Haible  <bruno@clisp.org>
84973         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
84974         test_once): Mark functions as static.
84975         * tests/test-tls.c (test_tls): Likewise.
84977 2008-12-07  Bruno Haible  <bruno@clisp.org>
84979         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
84980         iconv_register_autodetect.
84982 2008-12-07  Jim Meyering  <meyering@redhat.com>
84984         posixtm.c: avoid a warning
84985         * lib/posixtm.c (posixtime): Don't initialize tm0.
84986         It's no longer needed to placate gcc4's -Wuninitialized,
84987         and the attempt to placate would elicit a new warning.
84989         unicodeio.c: mark unused parameters
84990         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
84991         (fallback_failure_callback): Likewise.
84993 2008-12-07  Bruno Haible  <bruno@clisp.org>
84995         * gnulib-tool (func_create_testdir): When building the tests
84996         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
84997         Reported by Simon Josefsson.
84999 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85001         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
85003 2008-12-06  Bruno Haible  <bruno@clisp.org>
85005         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
85006         Suggested by Eric Blake.
85008 2008-12-06  Bruno Haible  <bruno@clisp.org>
85010         Fix a c-stack test failure on MacOS X.
85011         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
85012         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
85013         handler for SIGBUS as well.
85014         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
85015         install a signal handler for SIGBUS as well.
85016         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
85018 2008-12-06  Bruno Haible  <bruno@clisp.org>
85020         Advocacy documentation.
85021         * doc/gnulib-intro.texi (Benefits): New section.
85022         * doc/gnulib.texi: Update.
85024 2008-12-06  Bruno Haible  <bruno@clisp.org>
85026         Document the 'manywarnings' module.
85027         * doc/manywarnings.texi: New file.
85028         * doc/gnulib.texi: Include it.
85030 2008-12-05  Eric Blake  <ebb9@byu.net>
85032         tests: silence some gcc warnings
85033         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
85034         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
85035         type mismatches.
85037 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85038             Bruno Haible  <bruno@clisp.org>
85040         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
85042 2008-11-29  Jim Meyering  <meyering@redhat.com>
85044         unicodeio.c: mark unused parameters
85045         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
85046         (fallback_failure_callback): Likewise.
85048         fts: fix a thinko
85049         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
85050         (set_stat_type): Return S_IF*-valued "type" directly.
85051         Prompted by James Youngman's spotting a related bug.
85052         Confirmed by further testing through find.
85054         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
85055         * lib/fts.c (D_TYPE): Define.
85056         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
85057         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
85058         (s_ifmt_shift_bits): New function.
85059         (set_stat_type): New function.
85060         (fts_build): When not calling fts_stat, call set_stat_type
85061         to propagate dirent.d_type info to fts_read caller.
85062         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
85063         fts_statp->st_mode type information may be valid.
85065 2008-11-28  Simon Josefsson  <simon@josefsson.org>
85067         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
85068         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
85069         <sds@gnu.org>.
85071 2008-11-20  Bruno Haible  <bruno@clisp.org>
85073         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
85074         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
85075         INCLUDE_NEXT.
85076         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
85077         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
85078         * modules/math (Makefile.am): Substitute
85079         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
85080         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85082 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
85083             Bruno Haible  <bruno@clisp.org>
85085         * lib/stdint.in.h: Define all type macros so that their expansion is
85086         a single typedef'ed token. Fixes a compilation failure in Boost which
85087         does "using ::int8_t;".
85089 2008-11-18  Simon Josefsson  <simon@josefsson.org>
85091         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
85092         gl_MANYWARN_ALL_GCC.
85093         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
85094         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
85095         * modules/manywarnings: New file.
85096         * MODULES.html.sh: Mention manywarnings module.
85098 2008-11-18  Bruno Haible  <bruno@clisp.org>
85100         * doc/gnulib-tool.texi (Unit tests): New section.
85102 2008-11-18  Simon Josefsson  <simon@josefsson.org>
85104         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
85105         paths like 'lib/po/foo.po'.
85107 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85109         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
85110         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
85112 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85114         * m4/warnings.m4: Use CPPFLAGS to really check whether the
85115         parameter works.
85117 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85119         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
85121 2008-11-17  Bruce Korb  <bkorb@gnu.org>
85123         * modules/parse-duration-tests: New file.
85124         * tests/test-parse-duration.sh: New file.
85125         * tests/test-parse-duration.c: New file.
85127         New module 'parse-duration'.
85128         * lib/parse-duration.h: New file.
85129         * lib/parse-duration.c: New file.
85130         * modules/parse-duration: New file.
85132 2008-11-17  Bruno Haible  <bruno@clisp.org>
85134         * tests/test-select-out.sh: Comment out the first pipe test.
85135         Reported by Simon Josefsson.
85137 2008-11-17  Bruno Haible  <bruno@clisp.org>
85139         * modules/getaddrinfo (Depends-on): Add servent, hostent.
85140         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
85141         gl_HOSTENT.
85143 2008-11-17  Bruno Haible  <bruno@clisp.org>
85145         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
85146         -lnetwork and -lnet. Needed for Haiku and BeOS.
85148 2008-11-16  Bruno Haible  <bruno@clisp.org>
85150         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
85152 2008-11-16  Bruno Haible  <bruno@clisp.org>
85154         Avoid test failure on Haiku.
85155         * tests/test-fsync.c: Include <errno.h>.
85156         (main): Don't require that fsync (0) fails.
85158 2008-11-15  Bruno Haible  <bruno@clisp.org>
85160         New module 'hostent'.
85161         * modules/hostent: New file.
85162         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
85164 2008-11-15  Bruno Haible  <bruno@clisp.org>
85166         New module 'servent'.
85167         * modules/servent: New file.
85168         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
85170 2008-11-15  Bruno Haible  <bruno@clisp.org>
85172         Avoid generating same test program with two different rules.
85173         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
85174         test-frexp to test-frexp-nolibm.
85175         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
85176         test-frexpl to test-frexpl-nolibm.
85178 2008-11-15  Bruno Haible  <bruno@clisp.org>
85180         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
85181         $(FREXPL_LIBM).
85183 2008-11-15  Bruno Haible  <bruno@clisp.org>
85185         * lib/netdb.in.h: Activate the definitions also when the system's
85186         <netdb.h> has 'struct addrinfo'.
85187         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
85188         EAI_OVERFLOW or AI_NUMERICSERV.
85189         * doc/posix-headers/netdb.texi: Document the problem.
85191 2008-11-15  Bruno Haible  <bruno@clisp.org>
85193         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
85195         Make the 'sched' module work on platforms where <sched.h> exists but
85196         is incomplete (such as Haiku).
85197         * lib/sched.in.h; Include the system's <sched.h> if it exists.
85198         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
85199         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
85200         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
85201         HAVE_STRUCT_SCHED_PARAM.
85202         * modules/sched (Depends-on): Add include_next.
85203         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
85204         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
85205         * doc/posix-headers/sched.texi: Document the issue.
85207 2008-11-13  Jim Meyering  <meyering@redhat.com>
85209         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
85210         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
85211         test would fail due to the difference in the Report bugs to ...
85212         line.  The expected address is empty, "<>", while the actual
85213         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
85215 2008-11-12  Bruno Haible  <bruno@clisp.org>
85217         lstat: don't compile lstat.c on systems lacking lstat
85218         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
85219         which don't have lstat; this is handled by lib/sys_stat.in.h already.
85220         Reported by Daniel P. Berrange via Jim Meyering.
85222 2008-11-12  Jim Meyering  <meyering@redhat.com>
85224         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
85226 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85228         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
85229         instead.
85231 2008-11-12  Bruno Haible  <bruno@clisp.org>
85233         * lib/unicodeio.c: Include unistr.h.
85234         (utf8_wctomb): Remove function.
85235         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
85237 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85239         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
85240         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
85241         <bruno@clisp.org>.
85242         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
85244 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85246         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
85247         * doc/gnulib.texi: Add section for warnings.
85249 2008-11-11  Bruno Haible  <bruno@clisp.org>
85251         * lib/sockets.h: Add a comment.
85253 2008-11-11  Karl Berry  <karl@gnu.org>
85255         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
85257 2008-11-11  Eric Blake  <ebb9@byu.net>
85259         fdl.texi: avoid git symlinks
85260         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
85262 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85264         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
85266 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85268         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
85269         (gl_WARN_ADD): Substitute $2 if literal.
85271 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85273         * m4/warning.m4: Remove.
85275 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85277         * m4/warnings.m4: Almost complete rewrite. :-)
85279 2008-11-10  Simon Josefsson  <simon@josefsson.org>
85281         * modules/warnings: New module.
85282         * m4/warnings.m4: New file.
85283         * MODULES.html.sh: Mention warnings module.
85284         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
85285         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85287 2008-11-10  Eric Blake  <ebb9@byu.net>
85289         fdl.texi: make a symlink to the latest version
85290         * doc/standards.texi: Revert today's earlier change.
85291         * doc/fdl-1.2.texi: Rename from old fdl.texi...
85292         * doc/fdl.texi: ...and replace this with a symlink to the newer
85293         fdl-1.3.texi.
85295 2008-11-10  Bruno Haible  <bruno@clisp.org>
85297         * tests/test-select-fd.c (main): Accept the result file name as fourth
85298         argument.
85299         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
85300         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
85302 2008-11-10  Bruno Haible  <bruno@clisp.org>
85304         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
85305         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
85306         as autoconf-substituted macros.
85307         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
85308         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
85309         gl_NETDB_H_DEFAULTS. Set these variables.
85310         * modules/netdb (Makefile.am): Substitute these variables.
85312 2008-11-10  Eric Blake  <ebb9@byu.net>
85314         standards.texi: include correct file for FDL 1.3
85315         * doc/standards.texi (GNU Free Documentation License): Change
85316         include file to pull in FDL 1.3, not 1.2.
85318         fdl.texi: revert accidental change to license
85319         * doc/fdl.texi: This is FDL 1.2, not 1.3.
85321 2008-11-10  Bruno Haible  <bruno@clisp.org>
85323         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
85324         cross-compiling guesses also when the native compile gives no result.
85326 2008-11-10  Bruno Haible  <bruno@clisp.org>
85328         * lib/spawni.c (__spawni): Force variable into the stack.
85330 2008-11-10  Bruno Haible  <bruno@clisp.org>
85332         Add support for Haiku.
85333         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
85334         glibc and BeOS, but also on Haiku.
85335         * lib/fpurge.c (fpurge): Likewise.
85336         * lib/freadable.c (freadable): Likewise.
85337         * lib/freadahead.c (freadahead): Likewise.
85338         * lib/freading.c (freading): Likewise.
85339         * lib/freadptr.c (freadptr): Likewise.
85340         * lib/freadseek.c (freadptrinc): Likewise.
85341         * lib/fseeko.c (rpl_fseeko): Likewise.
85342         * lib/fseterr.c (fseterr): Likewise.
85343         * lib/fwritable.c (fwritable): Likewise.
85344         * lib/fwriting.c (fwriting): Likewise.
85345         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
85347 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
85349         * lib/config.charset: Treat Haiku like BeOS.
85351 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
85353         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
85354         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
85356 2008-11-08  Bruno Haible  <bruno@clisp.org>
85358         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
85359         AC_CACHE_CHECK.
85361 2008-11-08  Bruno Haible  <bruno@clisp.org>
85363         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
85365 2008-11-08  Bruno Haible  <bruno@clisp.org>
85367         * tests/test-select-fd.c: New file.
85368         * tests/test-select-in.sh: New file.
85369         * tests/test-select-out.sh: New file.
85370         * tests/test-select-stdin.c: New file.
85371         * modules/select-tests (Files): Add the new files.
85372         (Depends-on): Add gettimeofday.
85373         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
85374         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
85375         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
85377 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
85378             Bruno Haible  <bruno@clisp.org>
85380         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
85382 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
85384         * build-aux/pmccabe2html: Added support for C++ source files.
85386 2008-11-05  Ben Pfaff  <blp@gnu.org>
85388         Fix lib/close.c build on Windows.
85389         * modules/close (Files): Add lib/w32sock.h.
85391 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
85393         Accept Bison's NEWS format.
85394         * build-aux/announce-gen (print_news_deltas): Tweak
85395         $re_prefix.
85397 2008-11-04  Bruno Haible  <bruno@clisp.org>
85399         * modules/random_r (Maintainer): Add glibc.
85401 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85403         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
85404         by karl@freefriends.org (Karl Berry).
85405         * doc/alloca.texi: Likewise.
85406         * doc/c-ctype.texi: Likewise.
85407         * doc/c-strcase.texi: Likewise.
85408         * doc/c-strcaseeq.texi: Likewise.
85409         * doc/c-strcasestr.texi: Likewise.
85410         * doc/c-strstr.texi: Likewise.
85411         * doc/c-strtod.texi: Likewise.
85412         * doc/c-strtold.texi: Likewise.
85413         * doc/ctime.texi: Likewise.
85414         * doc/error.texi: Likewise.
85415         * doc/fdl.texi: Likewise.
85416         * doc/gcd.texi: Likewise.
85417         * doc/getdate.texi: Likewise.
85418         * doc/gnulib-intro.texi: Likewise.
85419         * doc/gnulib-tool.texi: Likewise.
85420         * doc/gnulib.texi: Likewise.
85421         * doc/inet_ntoa.texi: Likewise.
85422         * doc/maintain.texi: Likewise.
85423         * doc/make-stds.texi: Likewise.
85424         * doc/quote.texi: Likewise.
85425         * doc/regexprops-generic.texi: Likewise.
85426         * doc/standards.texi: Likewise.
85427         * doc/verify.texi: Likewise.
85428         * doc/visibility.texi: Likewise.
85429         * doc/gnulib.texi (GNU Free Documentation License): Include
85430         fdl-1.3.texi instead of fdl.texi.
85432 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85434         * doc/fdl-1.3.texi: New file, from
85435         <http://www.gnu.org/licenses/fdl-1.3.texi>.
85436         * modules/fdl-1.3: Add.
85437         * MODULES.html.sh: Add fdl-1.3.
85439 2008-11-03  Bruno Haible  <bruno@clisp.org>
85441         Make determination of absolute name of header file work with AIX xlc.
85442         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
85443         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
85444         preprocessing.
85445         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
85446         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
85448 2008-11-03  Simon Josefsson  <simon@josefsson.org>
85450         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
85451         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
85452         <ludo@gnu.org>.
85454 2008-11-02  Bruno Haible  <bruno@clisp.org>
85456         Mark 'strpbrk' obsolete.
85457         * modules/strpbrk (Status, Notice): New sections.
85458         * modules/strtok_r (Depends-on): Add strpbrk.
85460 2008-11-02  Bruno Haible  <bruno@clisp.org>
85462         Mark 'strdup' obsolete.
85463         * modules/strdup (Status, Notice): New sections.
85464         * modules/findprog (Depends-on): Add strdup.
85465         * modules/getaddrinfo (Depends-on): Likewise.
85466         * modules/localename (Depends-on): Likewise.
85467         * modules/relocatable-lib (Depends-on): Likewise.
85468         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
85469         * modules/relocatable-prog (Depends-on): Likewise.
85470         * modules/trim (Depends-on): Likewise.
85471         * modules/unictype/gen-ctype (Depends-on): Likewise.
85472         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
85474 2008-11-02  Bruno Haible  <bruno@clisp.org>
85476         Mark 'strcspn' obsolete.
85477         * modules/strcspn (Status, Notice): New sections.
85479 2008-11-02  Bruno Haible  <bruno@clisp.org>
85481         Mark 'rmdir' obsolete.
85482         * modules/rmdir (Status, Notice): New sections.
85483         * modules/clean-temp (Depends-on): Add rmdir.
85484         * modules/openat (Depends-on): Likewise.
85486 2008-11-02  Bruno Haible  <bruno@clisp.org>
85488         Mark 'raise' obsolete.
85489         * modules/raise (Status, Notice): New sections.
85490         (Include): Specify <signal.h>.
85491         * modules/stdio (Depends-on): Add raise.
85492         * modules/write (Depends-on): Likewise.
85494 2008-11-02  Bruno Haible  <bruno@clisp.org>
85496         Mark 'memset' obsolete.
85497         * modules/memset (Status, Notice): New sections.
85499 2008-11-02  Bruno Haible  <bruno@clisp.org>
85501         Mark 'memmove' obsolete.
85502         * modules/memmove (Status, Notice): New sections.
85503         * modules/argp (Depends-on): Add memmove.
85504         * modules/argz (Depends-on): Likewise.
85505         * modules/canonicalize (Depends-on): Likewise.
85506         * modules/canonicalize-lgpl (Depends-on): Likewise.
85507         * modules/fts (Depends-on): Likewise.
85508         * modules/getcwd (Depends-on): Likewise.
85509         * modules/human (Depends-on): Likewise.
85510         * modules/regex (Depends-on): Likewise.
85511         * modules/striconveh (Depends-on): Likewise.
85512         * modules/trim (Depends-on): Likewise.
85513         * modules/unistr/u8-move (Depends-on): Likewise.
85514         * modules/unistr/u16-move (Depends-on): Likewise.
85515         * modules/unistr/u32-move (Depends-on): Likewise.
85517 2008-11-02  Bruno Haible  <bruno@clisp.org>
85519         Mark 'memcpy' obsolete.
85520         * modules/memcpy (Status, Notice): New sections.
85522 2008-11-02  Bruno Haible  <bruno@clisp.org>
85524         Mark 'memcmp' obsolete.
85525         * modules/memcmp (Status, Notice): New sections.
85526         * modules/argmatch (Depends-on): Add memchr.
85527         * modules/backupfile (Depends-on): Likewise.
85528         * modules/c-strcasestr (Depends-on): Likewise.
85529         * modules/crypto/des (Depends-on): Likewise.
85530         * modules/csharpcomp (Depends-on): Likewise.
85531         * modules/fnmatch (Depends-on): Likewise.
85532         * modules/git-merge-changelog (Depends-on): Likewise.
85533         * modules/isnand (Depends-on): Likewise.
85534         * modules/isnand-nolibm (Depends-on): Likewise.
85535         * modules/isnanf (Depends-on): Likewise.
85536         * modules/isnanf-nolibm (Depends-on): Likewise.
85537         * modules/isnanl (Depends-on): Likewise.
85538         * modules/isnanl-nolibm (Depends-on): Likewise.
85539         * modules/mbchar (Depends-on): Likewise.
85540         * modules/memcoll (Depends-on): Likewise.
85541         * modules/quotearg (Depends-on): Likewise.
85542         * modules/regex (Depends-on): Likewise.
85543         * modules/relocatable-prog (Depends-on): Likewise.
85544         * modules/same (Depends-on): Likewise.
85545         * modules/signbit (Depends-on): Likewise.
85546         * modules/strcasestr-simple (Depends-on): Likewise.
85547         * modules/unictype/gen-ctype (Depends-on): Likewise.
85548         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
85549         * modules/uniname/uniname (Depends-on): Likewise.
85550         * modules/unistr/u8-cmp (Depends-on): Likewise.
85552 2008-11-02  Bruno Haible  <bruno@clisp.org>
85554         Mark 'memchr' obsolete.
85555         * modules/memchr (Status, Notice): New sections.
85556         * modules/argp (Depends-on): Add memchr.
85557         * modules/base64 (Depends-on): Likewise.
85558         * modules/c-strcasestr (Depends-on): Likewise.
85559         * modules/chdir-long (Depends-on): Likewise.
85560         * modules/fnmatch (Depends-on): Likewise.
85561         * modules/getsubopt (Depends-on): Likewise.
85562         * modules/git-merge-changelog (Depends-on): Likewise.
85563         * modules/glob (Depends-on): Likewise.
85564         * modules/strcasestr-simple (Depends-on): Likewise.
85565         * modules/strnlen (Depends-on): Likewise.
85567 2008-11-02  Bruno Haible  <bruno@clisp.org>
85569         Mark 'atexit' obsolete.
85570         * modules/atexit (Status, Notice): New sections.
85571         * modules/chdir-long (Depends-on): Add atexit.
85572         * modules/wait-process (Depends-on): Likewise.
85574 2008-11-02  Bruno Haible  <bruno@clisp.org>
85576         * gnulib-tool: New option --with-obsolete.
85577         (func_usage): Document it.
85578         (func_modules_transitive_closure): Drop obsolete dependencies if
85579         incobsolete is not true.
85580         (func_import): Read and save the incobsolete variable to the cache.
85582 2008-11-02  Bruno Haible  <bruno@clisp.org>
85584         * modules/TEMPLATE-EXTENDED: New field 'Status'.
85585         * gnulib-tool: New option --extract-status.
85586         (func_usage): Document it.
85587         (sed_extract_prog): Recognize it.
85588         (func_get_status): New function.
85590 2008-10-30  Simon Josefsson  <simon@josefsson.org>
85592         * modules/sockets (License): Change from LGPL to LGPLv2+.
85594 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85596         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
85598 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85600         * MODULES.html.sh (Support for systems lacking POSIX:2001):
85601         Mention times and sys_times.
85602         * modules/sys_times, modules/sys_times-tests: New modules.
85603         * modules/times, modules/times-tests: Likewise
85604         * m4/sys_times_h.m4: New file.
85605         * lib/sys_times.in.h: Likewise
85606         * lib/times.c: Likewise.
85607         * tests/test-sys_times.c: Likewise.
85608         * tests/test-times.c: Likewise.
85609         * doc/posix-headers/sys_times.texi: Update.
85610         * doc/posix-functions/times.texi: Update.
85612 2008-10-28  Jim Meyering  <meyering@redhat.com>
85614         * modules/tempname (Depends-on): Add lstat.
85616         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
85618 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85620         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
85621         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
85622         using idiom used elsewhere in gnulib.
85624 2008-10-27  Jim Meyering  <meyering@redhat.com>
85626         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
85628 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85630         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
85631         TESTS_ENVIRONMENT, for shell scripts that needs to call built
85632         programs.
85633         * tests/test-argp-2.sh: Use $EXEEXT when needed.
85635 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85637         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
85639 2008-10-27  Bruno Haible  <bruno@clisp.org>
85641         * tests/test-lstat.c: Include <stdio.h>.
85643 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85645         * modules/lstat-tests: New module.
85646         * tests/test-lstat.c: New file.
85648 2008-10-26  Jim Meyering  <meyering@redhat.com>
85650         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
85652 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85653             Bruno Haible  <bruno@clisp.org>
85655         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
85656         * modules/configmake (Include): Add a note that the include must come
85657         after all system headers.
85658         * lib/javaversion.c: Include configmake.h after all other includes.
85660 2008-10-26  Bruno Haible  <bruno@clisp.org>
85662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
85663         HAVE_STRUCT_RANDOM_DATA to 1.
85664         (gl_STDLIB_H): Simplify.
85666 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85668         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
85669         substitute HAVE_STRUCT_RANDOM_DATA.
85670         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
85671         random_data.
85672         * modules/stdlib (Makefile.am): Substitute
85673         HAVE_STRUCT_RANDOM_DATA.
85675 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85677         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
85678         * doc/gnulib-intro.texi (Copyright): Likewise.
85680 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85682         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
85683         findings.
85685 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
85686             Bruno Haible  <bruno@clisp.org>
85688         * lib/unistd.in.h: Include <winsock2.h>.
85689         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
85690         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
85691         Provide dummy declarations.
85692         (gethostname): Override.
85693         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
85694         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
85695         gl_PREREQ_SYS_H_WINSOCK2.
85696         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
85697         * doc/posix-functions/gethostname.texi: More details.
85699 2008-10-25  Bruno Haible  <bruno@clisp.org>
85701         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
85702         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
85703         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
85705         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
85706         here ...
85707         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
85708         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
85709         gl_UNISTD_H_DEFAULTS.
85711 2008-10-25  Eric Blake  <ebb9@byu.net>
85713         signbit: avoid spurious compiler failure
85714         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
85715         declarations inside function.
85717 2008-10-24  Simon Josefsson  <simon@josefsson.org>
85718             Bruno Haible  <bruno@clisp.org>
85720         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
85721         * modules/random_r (Depends-on): Add stdint.
85723 2008-10-24  Bruno Haible  <bruno@clisp.org>
85725         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
85726         Eggert.
85727         * modules/strerror (License): Likewise.
85729 2008-10-24  Jim Meyering  <meyering@redhat.com>
85731         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
85732         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
85734 2008-10-24  Eric Blake  <ebb9@byu.net>
85736         getgroups: fix compilation when getgroups is available
85737         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
85738         but with <config.h> override of getgroups disabled.
85740 2008-10-24  Simon Josefsson  <simon@josefsson.org>
85742         * doc/gnulib.texi (Header files): Add note about C++ problems.
85743         Explained by Bruno Haible <bruno@clisp.org>.
85745 2008-10-23  Bruno Haible  <bruno@clisp.org>
85747         Define a dummy SA_NODEFER macro on Interix.
85748         * lib/signal.in.h (SA_NODEFER): Define fallback.
85749         Reported by Aleksey Cheusov <cheusov@tut.by> via
85750         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
85752 2008-10-23  Bruno Haible  <bruno@clisp.org>
85754         * modules/freadahead (License): Change to LGPLv2+.
85755         Suggested by Simon Josefsson.
85757 2008-10-23  Jim Meyering  <meyering@redhat.com>
85759         random_r: new module
85760         * modules/random_r: New file.
85761         * m4/random_r.m4: New file.
85762         * lib/random_r.c: New file, from glibc.
85763         * modules/random_r-tests: New file.
85764         * tests/test-random_r.c: New file.
85765         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
85766          Declare.
85767         (RAND_MAX): Define.
85768         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
85769         * modules/stdlib: Substitute them, too.
85770         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
85771         * doc/glibc-functions/initstate_r.texi: Mention the new module.
85772         * doc/glibc-functions/random_r.texi: Likewise.
85773         * doc/glibc-functions/setstate_r.texi: Likewise.
85774         * doc/glibc-functions/srandom_r.texi: Likewise.
85775         * config/srclist.txt: Mention it.
85777 2008-10-23  David Lutterkort  <lutter@redhat.com>
85779         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
85780         link requirement
85782 2008-10-23  Jim Meyering  <meyering@redhat.com>
85784         selinux-h: mark parameters of stub functions as intentionally unused
85785         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
85786         * lib/se-context.in.h: Likewise.
85788 2008-10-22  Simon Josefsson  <simon@josefsson.org>
85790         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
85792 2008-10-22  Simon Josefsson  <simon@josefsson.org>
85794         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
85796 2008-10-22  Eric Blake  <ebb9@byu.net>
85798         glthread/thread: avoid compiler warning
85799         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
85800         Add unreachable abort to silence compiler.
85802 2008-10-22  Eric Blake  <ebb9@byu.net>
85804         netdb: also supply struct addrinfo for cygwin 1.5.x
85805         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
85806         older cygwin.
85807         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
85808         cygwin.
85809         * doc/posix-headers/netdb.texi (netdb.h): Document this.
85811 2008-10-22  Bruno Haible  <bruno@clisp.org>
85813         * users.txt: Update entry about pspp.
85815 2008-10-21  Bruno Haible  <bruno@clisp.org>
85817         Simplification.
85818         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
85819         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
85821         Simplification.
85822         * lib/ioctl.c (ioctl): Don't undefine.
85823         * lib/socket.c (socket): Don't undefine.
85825         Remove unused module indicator macros.
85826         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
85827         GNULIB_$1 as a C macro.
85829         * doc/posix-functions/close.texi: Undo last change.
85830         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
85831         Windows platforms.
85833 2008-10-21  Bruno Haible  <bruno@clisp.org>
85835         Add gethostname() declaration to <unistd.h>.
85836         * lib/unistd.in.h (gethostname): New declaration.
85837         * lib/gethostname.c: Include <unistd.h>.
85838         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
85839         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
85840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
85841         and HAVE_GETHOSTNAME.
85842         * modules/gethostname (Depends-on): Add unistd.
85843         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85844         (Include): Specify <unistd.h>.
85845         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
85846         HAVE_GETHOSTNAME.
85847         * tests/test-gethostname.c: Include <unistd.h> first.
85849 2008-10-21  Bruno Haible  <bruno@clisp.org>
85851         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
85852         * modules/select-tests (Depends-on): Likewise.
85853         Reported by Simon Josefsson.
85855 2008-10-21  Simon Josefsson  <simon@josefsson.org>
85857         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
85858         * lib/accept.c: New file, based on winsock.c.
85859         * lib/bind.c: New file, based on winsock.c.
85860         * lib/connect.c: New file, based on winsock.c.
85861         * lib/getpeername.c: New file, based on winsock.c.
85862         * lib/getsockname.c: New file, based on winsock.c.
85863         * lib/getsockopt.c: New file, based on winsock.c.
85864         * lib/ioctl.c: New file, based on winsock.c.
85865         * lib/listen.c: New file, based on winsock.c.
85866         * lib/recv.c: New file, based on winsock.c.
85867         * lib/recvfrom.c: New file, based on winsock.c.
85868         * lib/send.c: New file, based on winsock.c.
85869         * lib/sendto.c: New file, based on winsock.c.
85870         * lib/setsockopt.c: New file, based on winsock.c.
85871         * lib/shutdown.c: New file, based on winsock.c.
85872         * lib/socket.c: New file, based on winsock.c.
85873         * lib/w32sock.h: New file, based on winsock.c.
85874         * lib/winsock.c: Remove file.
85875         * modules/accept: Likewise.
85876         * modules/bind: Likewise.
85877         * modules/connect: Likewise.
85878         * modules/getpeername: Likewise.
85879         * modules/getsockname: Likewise.
85880         * modules/getsockopt: Likewise.
85881         * modules/ioctl: Likewise.
85882         * modules/listen: Likewise.
85883         * modules/recv: Likewise.
85884         * modules/recvfrom: Likewise.
85885         * modules/send: Likewise.
85886         * modules/sendto: Likewise.
85887         * modules/setsockopt: Likewise.
85888         * modules/shutdown: Likewise.
85889         * modules/socket: Use socket.c instead of winsock.c.
85890         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
85891         * doc/posix-functions/accept.texi: Doc fix.
85892         * doc/posix-functions/bind.texi: Doc fix.
85893         * doc/posix-functions/close.texi: Doc fix.
85894         * doc/posix-functions/connect.texi: Doc fix.
85895         * doc/posix-functions/getpeername.texi: Doc fix.
85896         * doc/posix-functions/getsockname.texi: Doc fix.
85897         * doc/posix-functions/getsockopt.texi: Doc fix.
85898         * doc/posix-functions/ioctl.texi: Doc fix.
85899         * doc/posix-functions/listen.texi: Doc fix.
85900         * doc/posix-functions/recv.texi: Doc fix.
85901         * doc/posix-functions/recvfrom.texi: Doc fix.
85902         * doc/posix-functions/send.texi: Doc fix.
85903         * doc/posix-functions/sendto.texi: Doc fix.
85904         * doc/posix-functions/setsockopt.texi: Doc fix.
85905         * doc/posix-functions/shutdown.texi: Doc fix.
85906         * doc/posix-functions/socket.texi: Doc fix.
85908 2008-10-20  Bruno Haible  <bruno@clisp.org>
85910         Take into account the role of SIGABRT_COMPAT on Windows 2008.
85911         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
85912         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
85913         as an alias for SIGABRT.
85914         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
85915         (sigaction): Map it to SIGABRT.
85916         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
85918 2008-10-20  Bruno Haible  <bruno@clisp.org>
85920         * lib/fts.c: Don't include lstat.h.
85921         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
85923         Move the lstat() declaration to <sys/stat.h>.
85924         * lib/lstat.h: Remove file.
85925         * lib/sys_stat.in.h: Add special invocation convention.
85926         (lstat): New declaration.
85927         * lib/lstat.c (orig_lstat): New function.
85928         (rpl_lstat): Use orig_lstat instead of lstat.
85929         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
85930         AC_C_INLINE. Set REPLACE_LSTAT.
85931         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
85932         and REPLACE_LSTAT.
85933         * modules/lstat (Files): Remove lib/lstat.h.
85934         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
85935         (Include): Specify <sys/stat.h> instead of lstat.h.
85936         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
85937         REPLACE_LSTAT.
85938         * NEWS: Mention the change.
85940 2008-10-20  Bruno Haible  <bruno@clisp.org>
85942         * modules/posix_spawn-tests: New file.
85943         * tests/test-posix_spawn3.c: New file.
85945 2008-10-20  Bruno Haible  <bruno@clisp.org>
85947         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
85948         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
85949         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
85950         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
85951         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
85953 2008-10-20  Bruno Haible  <bruno@clisp.org>
85955         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
85956         of posix_spawn on AIX 5.3.
85958 2008-10-20  Bruno Haible  <bruno@clisp.org>
85960         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
85962 2008-10-20  Bruno Haible  <bruno@clisp.org>
85964         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
85965         of AC_LANG_PROGRAM.
85967 2008-10-20  Simon Josefsson  <simon@josefsson.org>
85969         * lib/netdb.in.h: Don't define GNU specific constants until they
85970         are supported or needed.  Reported by Bruno Haible
85971         <bruno@clisp.org>.
85973 2008-10-20  Simon Josefsson  <simon@josefsson.org>
85975         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
85977 2008-10-20  Simon Josefsson  <simon@josefsson.org>
85979         * lib/getaddrinfo.h: Remove file.
85980         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
85981         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
85982         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
85983         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
85984         * modules/netdb: Substitute GNULIB_GETADDRINFO.
85985         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
85986         * tests/test-getaddrinfo.c: Likewise.
85987         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
85988         * NEWS: Mention change.
85990 2008-10-19  Bruno Haible  <bruno@clisp.org>
85992         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
85994 2008-10-19  Bruno Haible  <bruno@clisp.org>
85996         * lib/wait-process.c: Include simply <sys/wait.h>.
85997         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
85998         WIFSTOPPED): Remove fallback definitions.
85999         * modules/wait-process (Depends-on): Add sys_wait.
86001         New module 'sys_wait'.
86002         * modules/sys_wait: New file.
86003         * lib/sys_wait.in.h: New file, partially copied from
86004         lib/wait-process.c.
86005         * m4/sys_wait_h.m4: New file.
86006         * doc/posix-headers/sys_wait.texi: Mention the new module.
86008 2008-10-19  Bruno Haible  <bruno@clisp.org>
86010         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
86012 2008-10-19  Bruno Haible  <bruno@clisp.org>
86014         Assume that waitpid() fills an 'int' status, not a 'union wait'.
86015         * lib/wait-process.c (WAIT_T): Remove type.
86016         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
86017         (wait_subprocess): Update.
86019 2008-10-19  Bruno Haible  <bruno@clisp.org>
86021         New module 'atoll'.
86022         * modules/atoll: New file.
86023         * lib/stdlib.in.h (atoll): New declaration.
86024         * lib/atoll.c: New file, from glibc with modifications.
86025         * m4/atoll.m4: New file.
86026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
86027         HAVE_ATOLL.
86028         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
86029         * doc/posix-functions/atoll.texi: Mention the new module.
86031 2008-10-19  Bruno Haible  <bruno@clisp.org>
86033         Add strtoull() declaration to <stdlib.h>.
86034         * lib/stdlib.in.h (strtoull): New declaration.
86035         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
86036         Set HAVE_STRTOULL.
86037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
86038         HAVE_STRTOULL.
86039         * modules/strtoull (Depends-on): Add stdlib.
86040         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86041         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
86042         HAVE_STRTOULL.
86044 2008-10-19  Bruno Haible  <bruno@clisp.org>
86046         Add strtoll() declaration to <stdlib.h>.
86047         * lib/stdlib.in.h (strtoll): New declaration.
86048         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
86049         Set HAVE_STRTOLL.
86050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
86051         HAVE_STRTOLL.
86052         * modules/strtoll (Depends-on): Add stdlib.
86053         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86054         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
86056 2008-10-19  Bruno Haible  <bruno@clisp.org>
86058         * modules/bcopy (Depends-on): Add strings.
86059         (Include): Specify <strings.h>.
86061 2008-10-19  Bruno Haible  <bruno@clisp.org>
86063         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
86065 2008-10-19  Bruno Haible  <bruno@clisp.org>
86067         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
86068         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
86069         mingw.
86071 2008-10-19  Bruno Haible  <bruno@clisp.org>
86073         * lib/atanl.c: Don't include isnanl.h.
86074         * lib/cosl.c: Likewise.
86075         * lib/ldexpl.c: Likewise.
86076         * lib/logl.c: Likewise.
86077         * lib/sinl.c: Likewise.
86078         * lib/sqrtl.c: Likewise.
86079         * lib/tanl.c: Likewise.
86081         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
86082         * lib/isnanf.h: Remove file.
86083         * lib/isnand.h: Remove file.
86084         * lib/isnanl.h: Remove file.
86085         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
86086         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
86087         macros.
86088         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
86089         HAVE_ISNANF, don't define it as a C macro.
86090         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
86091         HAVE_ISNAND, don't define it as a C macro.
86092         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
86093         HAVE_ISNANL, don't define it as a C macro.
86094         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
86095         HAVE_ISNAN[FDL].
86096         * modules/isnanf (Files): Remove lib/isnanf.h.
86097         (Depends-on): Add math.
86098         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86099         (Include): Specify <math.h> instead of isnanf.h.
86100         * modules/isnand (Files): Remove lib/isnand.h.
86101         (Depends-on): Add math.
86102         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86103         (Include): Specify <math.h> instead of isnand.h.
86104         * modules/isnanl (Files): Remove lib/isnanl.h.
86105         (Depends-on): Add math.
86106         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86107         (Include): Specify <math.h> instead of isnanl.h.
86108         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
86109         HAVE_ISNAN[FDL].
86110         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
86111         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
86112         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
86113         * NEWS: Mention the change.
86115 2008-10-18  Bruno Haible  <bruno@clisp.org>
86117         Add getusershell(), setusershell(), endusershell() declarations to
86118         <unistd.h>.
86119         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
86120         declarations.
86121         * lib/getusershell.c: Include unistd.h.
86122         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
86123         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
86124         HAVE_GETUSERSHELL.
86125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
86126         and HAVE_GETUSERSHELL.
86127         * modules/getusershell (Depends-on): Add unistd, extensions.
86128         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86129         (Include): Specify <unistd.h>.
86130         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
86131         HAVE_GETUSERSHELL.
86133 2008-10-18  Bruno Haible  <bruno@clisp.org>
86135         Add a getloadavg() declaration to <stdlib.h>.
86136         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
86137         getloadavg declaration.
86138         (getloadavg): New declaration.
86139         * lib/getloadavg.c: Include <stdlib.h> first.
86140         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
86141         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
86142         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
86143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
86144         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
86145         * modules/getloadavg (Depends-on): Add stdlib, extensions.
86146         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86147         (Include): Specify <stdlib.h>.
86148         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
86149         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
86151 2008-10-18  Bruno Haible  <bruno@clisp.org>
86153         * lib/dirchownmod.c: Don't include lchmod.h.
86155         Move the lchmod() declaration to <sys/stat.h>.
86156         * lib/lchmod.h: Remove file.
86157         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
86158         (lchmod): New declaration, moved here from lib/lchown.h.
86159         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
86160         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
86161         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
86162         and HAVE_LCHMOD.
86163         * modules/lchmod (Files): Remove lib/lchmod.h.
86164         (Depends-on): Add sys_stat, extensions.
86165         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
86166         (Include): Specify <sys/stat.h> instead of lchmod.h.
86167         * modules/sys_stat (Depends-on): Add link-warning.
86168         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
86169         definition of GL_LINK_WARNING.
86170         * NEWS: Mention the change.
86172 2008-10-18  Bruno Haible  <bruno@clisp.org>
86174         * lib/fchdir.c: Don't include dirfd.h.
86175         * lib/fts.c: Likewise.
86176         * lib/getcwd.c: Likewise.
86177         * lib/glob.c: Likewise.
86179         Move the dirfd() declaration to <dirent.h>.
86180         * lib/dirfd.h: Remove file.
86181         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
86182         (dirfd): New declaration.
86183         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
86184         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
86185         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
86186         HAVE_DECL_DIRFD.
86187         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
86188         HAVE_DECL_DIRFD.
86189         * modules/dirfd (Files): Remove lib/dirfd.h.
86190         (Depends-on): Add dirent, extensions.
86191         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
86192         (Include): Specify <dirent.h> instead of dirfd.h.
86193         * modules/dirent (Depends-on): Add link-warning.
86194         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
86195         definition of GL_LINK_WARNING.
86196         * NEWS: Mention the change.
86198 2008-10-18  Bruno Haible  <bruno@clisp.org>
86200         Move the euidaccess() declaration to <unistd.h>.
86201         * lib/euidaccess.h: Remove file.
86202         * lib/unistd.in.h (euidaccess): New declaration.
86203         * lib/euidaccess.c: Don't include euidaccess.h.
86204         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
86205         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
86206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
86207         and HAVE_EUIDACCESS.
86208         * modules/euidaccess (Files): Remove lib/euidaccess.h.
86209         (Depends-on): Add unistd.
86210         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86211         (Include): Specify <unistd.h> instead of euidaccess.h.
86212         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
86213         HAVE_EUIDACCESS.
86214         * NEWS: Mention the change.
86216 2008-10-18  Bruno Haible  <bruno@clisp.org>
86218         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
86220         Move the getdomainname() declaration to <unistd.h>.
86221         * lib/getdomainname.h: Remove file.
86222         * lib/unistd.in.h (getdomainname): New declaration.
86223         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
86224         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
86225         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
86226         HAVE_GETDOMAINNAME.
86227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86228         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
86229         * modules/getdomainname (Files): Remove lib/getdomainname.h.
86230         (Depends-on): Add unistd, extensions.
86231         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86232         (Includes): Specify <unistd.h> instead of getdomainname.h.
86233         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
86234         HAVE_GETDOMAINNAME.
86235         * NEWS: Mention the change.
86237 2008-10-18  Bruno Haible  <bruno@clisp.org>
86239         * modules/dirent: New file.
86240         * m4/dirent_h.m4: New file.
86241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
86242         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
86243         * modules/fchdir (Files): Remove lib/dirent.in.h.
86244         (Depends-on): Add dirent.
86245         (Makefile.am): Move rules to modules/dirent.
86246         * doc/posix-headers/dirent.texi: Mention the new module.
86248 2008-10-18  Bruno Haible  <bruno@clisp.org>
86250         Avoid -Wunused-parameter warnings in public gnulib header files.
86251         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
86252         macro.
86253         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
86255 2008-10-18  Bruno Haible  <bruno@clisp.org>
86257         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
86258         * doc/glibc-functions/error.texi: Mention the module 'error'.
86259         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
86260         * doc/glibc-functions/getdomainname.texi: Mention the module
86261         'getdomainname'.
86262         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
86263         * doc/glibc-functions/getpagesize.texi: Mention the module
86264         'getpagesize'.
86265         * doc/glibc-functions/getusershell.texi: Mention the module
86266         'getusershell'.
86267         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
86268         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
86269         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
86270         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
86271         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
86272         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
86273         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
86274         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
86275         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
86276         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
86277         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
86278         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
86279         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
86280         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
86282 2008-10-17  Bruno Haible  <bruno@clisp.org>
86284         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
86285         HP-UX and IRIX, use -0.0L.
86286         * tests/test-ceill.c (minus_zero): Likewise.
86287         * tests/test-floorl.c (minus_zero): Likewise.
86288         * tests/test-frexpl.c (minus_zero): Likewise.
86289         * tests/test-isnan.c (minus_zerol): Likewise.
86290         * tests/test-isnanl.h (minus_zero): Likewise.
86291         * tests/test-ldexpl.c (minus_zero): Likewise.
86292         * tests/test-roundl.c (minus_zero): Likewise.
86293         * tests/test-signbit.c (minus_zerol): Likewise.
86294         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
86295         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
86296         * tests/test-truncl.c (minus_zero): Likewise.
86297         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
86298         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
86299         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
86300         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
86302 2008-10-17  Bruno Haible  <bruno@clisp.org>
86304         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
86305         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
86306         that it gets activated only for gcc >= 3.0.
86307         * lib/dirent.in.h: Likewise.
86308         * lib/errno.in.h: Likewise.
86309         * lib/fcntl.in.h: Likewise.
86310         * lib/float.in.h: Likewise.
86311         * lib/iconv.in.h: Likewise.
86312         * lib/inttypes.in.h: Likewise.
86313         * lib/locale.in.h: Likewise.
86314         * lib/math.in.h: Likewise.
86315         * lib/netdb.in.h: Likewise.
86316         * lib/netinet_in.in.h: Likewise.
86317         * lib/search.in.h: Likewise.
86318         * lib/signal.in.h: Likewise.
86319         * lib/spawn.in.h: Likewise.
86320         * lib/stdarg.in.h: Likewise.
86321         * lib/stdint.in.h: Likewise.
86322         * lib/stdio.in.h: Likewise.
86323         * lib/stdlib.in.h: Likewise.
86324         * lib/string.in.h: Likewise.
86325         * lib/strings.in.h: Likewise.
86326         * lib/sys_file.in.h: Likewise.
86327         * lib/sys_ioctl.in.h: Likewise.
86328         * lib/sys_select.in.h: Likewise.
86329         * lib/sys_socket.in.h: Likewise.
86330         * lib/sys_stat.in.h: Likewise.
86331         * lib/sys_time.in.h: Likewise.
86332         * lib/sysexits.in.h: Likewise.
86333         * lib/time.in.h: Likewise.
86334         * lib/unistd.in.h: Likewise.
86335         * lib/wchar.in.h: Likewise.
86336         * lib/wctype.in.h: Likewise.
86337         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86339 2008-10-17  Jim Meyering  <meyering@redhat.com>
86341         ignore-value: don't depend on inline module
86342         * modules/ignore-value (Depends-on): Remove 'inline'.
86343         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
86344         Suggestion from Bruno Haible.
86346 2008-10-17  Bruno Haible  <bruno@clisp.org>
86348         New implementation of condition variables for Win32.
86349         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
86350         (gl_linked_waitqueue_t): New type.
86351         (gl_cond_t): Use it.
86352         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
86353         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
86354         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
86355         (glthread_cond_init_func, glthread_cond_wait_func,
86356         glthread_cond_timedwait_func, glthread_cond_signal_func,
86357         glthread_cond_broadcast_func, glthread_cond_destroy_func):
86358         Reimplemented on the basis of gl_linked_waitqueue_t.
86359         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
86360         gl_waitqueue_t.
86361         (gl_rwlock_t): Update.
86362         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
86364 2008-10-17  Simon Josefsson  <simon@josefsson.org>
86366         * modules/recvfrom (Depends-on): Add dependency on getpeername.
86367         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86369 2008-10-17  Jim Meyering  <meyering@redhat.com>
86371         ignore-value: new module
86372         * modules/ignore-value: New file.
86373         * lib/ignore-value.h: New file.
86374         * MODULES.html.sh (Compiler warning management): New section,
86375         just for this module.  More to come.
86377 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
86379         open-safer.c: avoid 'signed and unsigned in conditional...' warning
86380         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
86381         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
86383 2008-10-16  Jim Meyering  <meyering@redhat.com>
86385         openat-die.c: avoid 'no previous prototype' warning
86386         * lib/openat-die.c: Include "openat.h".
86387         Reported by Reuben Thomas <rrt@sc3d.org>.
86389 2008-10-16  Simon Josefsson  <simon@josefsson.org>
86391         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
86392         * lib/netdb.in.h: Fix typo.
86393         Reported by Bruno Haible  <bruno@clisp.org>
86395         * lib/netdb.in.h: Include sys/socket.h for platforms without
86396         netdb.h, to get structures like hostent on MinGW.
86397         * modules/netdb (Depends-on): Add sys_socket.
86399 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86401         * modules/netdb, modules/netdb-tests: New file.
86402         * m4/netdb_h.m4: New file.
86403         * lib/netdb.in.h: Add, currently just an empty file pending
86404         definitions.
86405         * tests/test-netdb.c: New file.
86406         * doc/posix-headers/netdb.texi: Mention that we replace it if
86407         needed.
86408         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86409         netdb.
86411 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86413         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
86414         with code.
86416 2008-10-13  Bruno Haible  <bruno@clisp.org>
86418         * lib/glthread/cond.c (glthread_cond_wait_func,
86419         glthread_cond_timedwait_func): Add a comment.
86421 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86423         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
86424         * tests/test-select.c: Likewise,
86426 2008-10-13  Bruno Haible  <bruno@clisp.org>
86428         * lib/glthread/cond.c (glthread_cond_wait_func,
86429         glthread_cond_timedwait_func): Fix variable name.
86430         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86432 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
86434         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
86435         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
86436         struct sockaddr.sa_len.
86437         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
86439 2008-10-13  Simon Josefsson  <simon@josefsson.org>
86441         * build-aux/pmccabe2html: Add css and css_url parameters.
86443 2008-10-12  Bruno Haible  <bruno@clisp.org>
86445         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
86446         calling aclx_get.
86447         Reported by Rainer Tammer <tammer@tammer.net>.
86449 2008-10-12  Bruno Haible  <bruno@clisp.org>
86451         Use msvcrt aware primitives for creation/termination of Win32 threads.
86452         * lib/glthread/thread.c: Include <process.h>.
86453         (glthread_create_func): Use _beginthreadex instead of CreateThread.
86454         (wrapper_func): Update signature.
86455         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
86457 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86458             Bruno Haible  <bruno@clisp.org>
86460         Provide a Win32 implementation of the 'cond' module.
86461         * lib/glthread/cond.h [USE_WIN32]: New implementation.
86462         * lib/glthread/cond.c (glthread_cond_init_func,
86463         glthread_cond_wait_func, glthread_cond_timedwait_func,
86464         glthread_cond_signal_func, glthread_cond_broadcast_func,
86465         glthread_cond_destroy_func) [USE_WIN32]: New functions.
86466         * modules/cond (Dependencies): Add gettimeofday.
86468 2008-10-11  Bruno Haible  <bruno@clisp.org>
86470         Make sleep work on older versions of mingw.
86471         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
86472         only whether it exists.
86473         * doc/posix-functions/sleep.texi: Mention the problem with older
86474         versions of mingw.
86476 2008-10-11  Bruno Haible  <bruno@clisp.org>
86478         New module 'shutdown'.
86479         * modules/shutdown: New file.
86480         * lib/sys_socket.in.h (shutdown): New declaration.
86481         * lib/winsock.c (shutdown): New function.
86482         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
86483         GNULIB_SHUTDOWN.
86484         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
86485         * doc/posix-functions/shutdown.texi: Document the new module.
86487 2008-10-11  Jim Meyering  <meyering@redhat.com>
86489         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
86491 2008-10-11  Bruno Haible  <bruno@clisp.org>
86493         New module 'fclose'.
86494         * modules/fclose: New file.
86495         * lib/stdio.in.h (fclose): New declaration.
86496         * lib/fclose.c: New file.
86497         * m4/fclose.m4: New file.
86498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
86499         REPLACE_FCLOSE.
86500         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
86501         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
86502         REPLACE_FCLOSE.
86503         * modules/close (Depends-on): fclose.
86504         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
86506 2008-10-11  Bruno Haible  <bruno@clisp.org>
86508         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
86509         set errno and don't call _close.
86511 2008-10-10  Bruno Haible  <bruno@clisp.org>
86513         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
86514         ACL, not afterwards. Fixes test failure on Cygwin.
86516 2008-10-09  Ben Pfaff  <blp@gnu.org>
86518         * build-aux/announce-gen: Fix gnulib version related part of usage
86519         message.  Die with a useful error message if no tarballs are
86520         found.
86522 2008-10-10  Jim Meyering  <meyering@redhat.com>
86524         bootstrap: use git's --depth=N option only if it's supported
86525         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
86526         recognize the --depth option.  Reported by Pádraig Brady.
86528 2008-10-09  Bruno Haible  <bruno@clisp.org>
86530         New module 'ioctl'.
86531         * modules/ioctl: New file.
86532         * lib/sys_socket.in.h (ioctl): Remove declaration.
86533         * lib/winsock.c: Include <sys/ioctl.h>.
86534         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
86535         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
86536         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
86537         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
86538         * doc/posix-functions/ioctl.texi: Mention the new module.
86540 2008-10-09  Bruno Haible  <bruno@clisp.org>
86542         New module 'sys_ioctl'.
86543         * lib/sys_ioctl.in.h: New file.
86544         * m4/sys_ioctl_h.m4: New file.
86545         * modules/sys_ioctl: New file.
86546         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
86548 2008-10-09  Bruno Haible  <bruno@clisp.org>
86550         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
86551         * lib/winsock.c: Include <stdarg.h>.
86552         (rpl_ioctl): Change to second argument 'int' and then varargs.
86554 2008-10-09  Bruno Haible  <bruno@clisp.org>
86556         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
86557         when the sys_socket module is present and the system has <winsock2.h>.
86559 2008-10-09  Bruno Haible  <bruno@clisp.org>
86561         * doc/posix-functions/close.texi: Mention module 'close' instead of
86562         module 'sys_socket'.
86564 2008-10-09  Bruno Haible  <bruno@clisp.org>
86566         * doc/glibc-headers/sys_ioctl.texi: New file.
86567         * doc/gnulib.texi: Include it.
86569 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86570             Bruno Haible  <bruno@clisp.org>
86572         Combine the two replacements of 'close'.
86573         * lib/sys_socket.in.h (close): Define to a reminder to include
86574         <unistd.h>.
86575         (_gl_close_fd_maybe_socket): New declaration.
86576         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
86577         * lib/winsock.c (close): Remove undefinition.
86578         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
86579         needed for the gnulib module 'close'.
86580         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
86581         define to an error symbol or to a warning, if suitable.
86582         * lib/close.c: Include <sys/socket.h>.
86583         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
86584         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
86585         UNISTD_H_HAVE_WINSOCK2_H.
86586         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
86587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86588         UNISTD_H_HAVE_WINSOCK2_H.
86589         * modules/sys_socket (Files): Add m4/unistd_h.m4.
86590         (configure.ac): Set a module indicator.
86591         (Makefile.am): Substitute GNULIB_CLOSE.
86592         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
86593         * modules/poll-tests (Depends-on): Add close.
86594         * modules/select-tests (Depends-on): Likewise.
86596 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86597             Bruno Haible  <bruno@clisp.org>
86599         New module 'close'.
86600         * modules/close: New file.
86601         * lib/unistd.in.h (close): Move declaration out of the
86602         FCHDIR_REPLACEMENT scope.
86603         (_gl_unregister_fd): New declaration.
86604         * lib/close.c: New file.
86605         * lib/fchdir.c (rpl_close): Remove function.
86606         * m4/close.m4: New file.
86607         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
86608         close.
86609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
86610         REPLACE_CLOSE.
86611         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
86612         REPLACE_CLOSE.
86613         * modules/fchdir (Depends-on): Add close.
86615 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86616             Bruno Haible  <bruno@clisp.org>
86618         * lib/fcntl.in.h (open): Simplify conditionals.
86619         (_gl_register_fd): New declaration.
86620         * lib/fchdir.c (rpl_open): Remove function.
86621         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
86622         also.
86623         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
86624         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
86625         open.
86627 2008-10-09  Jim Meyering  <meyering@redhat.com>
86629         GNUmakefile: use the more name-space-friendly "_version"
86630         * top/GNUmakefile (_dummy): Update.
86631         (_version): Rename from "version".
86633 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86634             Bruno Haible  <bruno@clisp.org>
86636         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
86637         rpl_close.
86638         (_gl_register_fd): New function, extracted from rpl_open.
86639         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
86640         (rpl_open, rpl_opendir): Use _gl_register_fd.
86642 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86644         Fix organization of 'open' replacement.
86645         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
86646         (gl_FUNC_OPEN): Use it.
86647         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
86649 2008-10-08  Bruno Haible  <bruno@clisp.org>
86651         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
86653 2008-10-08  Simon Josefsson  <simon@josefsson.org>
86655         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
86656         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
86657         listen).
86659 2008-10-08  Eric Blake  <ebb9@byu.net>
86661         GNUmakefile: add 'make version' target
86662         * top/GNUmakefile (_curr-ver): Split version update rules...
86663         (version): ...into a target.
86665 2008-10-07  Bruno Haible  <bruno@clisp.org>
86667         Use a more portable replacement expression for -0.0L.
86668         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
86669         instead of -0.0L. Fix m4 quotation.
86671         * tests/test-signbit.c: Include <float.h>.
86672         (minus_zero): New variable.
86673         (test_signbitl): Use minus_zero instead of -zero.
86674         * modules/signbit-tests (Depends-on): Add float.
86676         * tests/test-ceill.c: Include <float.h>.
86677         (zero): Remove variable.
86678         (minus_zero): New variable.
86679         (main): Use minus_zero instead of -zero.
86680         * modules/ceill-tests (Depends-on): Add float.
86682         * tests/test-floorl.c: Include <float.h>.
86683         (zero): Remove variable.
86684         (minus_zero): New variable.
86685         (main): Use minus_zero instead of -zero.
86686         * modules/floorl-tests (Depends-on): Add float.
86688         * tests/test-roundl.c: Include <float.h>.
86689         (zero): Remove variable.
86690         (minus_zero): New variable.
86691         (main): Use minus_zero instead of -zero.
86692         * modules/roundl-tests (Depends-on): Add float.
86694         * tests/test-truncl.c: Include <float.h>.
86695         (zero): Remove variable.
86696         (minus_zero): New variable.
86697         (main): Use minus_zero instead of -zero.
86698         * modules/truncl-tests (Depends-on): Add float.
86700         * tests/test-frexpl.c (zero): Remove variable.
86701         (minus_zero): New variable.
86702         (main): Use minus_zero instead of -zero.
86703         * modules/frexpl-tests (Depends-on): Add float.
86705         * tests/test-isnan.c (zerol): Remove variable.
86706         (minus_zerol): New variable.
86707         (test_long_double): Use minus_zerol instead of -zerol.
86708         * modules/isnan-tests (Depends-on): Add float.
86710         * tests/test-isnanl.h (zero): Remove variable.
86711         (minus_zero): New variable.
86712         (main): Use minus_zero instead of -zero.
86713         * modules/isnanl-nolibm-tests (Depends-on): Add float.
86714         * modules/isnanl-tests (Depends-on): Add float.
86716         * tests/test-ldexpl.c (zero): Remove variable.
86717         (minus_zero): New variable.
86718         (main): Use minus_zero instead of -zero.
86719         * modules/ldexpl-tests (Depends-on): Add float.
86721         * tests/test-snprintf-posix.h (zerol): Remove variable.
86722         (minus_zerol): New variable.
86723         (test_function): Use minus_zerol instead of -zerol.
86724         * modules/snprintf-posix-tests (Depends-on): Add float.
86725         * modules/vsnprintf-posix-tests (Depends-on): Add float.
86727         * tests/test-sprintf-posix.h (zerol): Remove variable.
86728         (minus_zerol): New variable.
86729         (test_function): Use minus_zerol instead of -zerol.
86730         * modules/sprintf-posix-tests (Depends-on): Add float.
86731         * modules/vsprintf-posix-tests (Depends-on): Add float.
86733         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
86734         (minus_zerol): New variable.
86735         (test_function): Use minus_zerol instead of -zerol.
86736         * modules/vasnprintf-posix-tests (Depends-on): Add float.
86738         * tests/test-vasprintf-posix.c (zerol): Remove variable.
86739         (minus_zerol): New variable.
86740         (test_function): Use minus_zerol instead of -zerol.
86741         * modules/vasprintf-posix-tests (Depends-on): Add float.
86743 2008-10-07  Simon Josefsson  <simon@josefsson.org>
86745         * MODULES.html.sh (Support for building documentation): Mention
86746         pmccabe2html.  Sort entries.
86748         Add pmccabe2html module, from gnupdf.
86749         * build-aux/pmccabe.css: New file.
86750         * build-aux/pmccabe2html: New file.
86751         * m4/pmccabe2html.m4: New file.
86752         * modules/pmccabe2html: New file.
86754 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
86756         flock: new module
86757         * MODULES.html.sh: Add to list of modules.
86758         * lib/flock.c: flock implementation for Windows and Unix systems
86759         which have fcntl.
86760         * doc/glibc-functions/flock.texi: Update documentation.
86761         * lib/sys_file.in.h: <sys/file.h> header file.
86762         * m4/flock.m4: M4 macros.
86763         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
86764         * modules/flock: flock module.
86765         * modules/flock-tests: flock tests module.
86766         * modules/sys_file: sys/file.h module.
86767         * tests/test-flock.c: test suite for flock.
86769 2008-10-06  Jim Meyering  <meyering@redhat.com>
86771         bootstrap: check for LT_INIT more portably still ;-)
86772         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
86773         Spotted by Bruno Haible.
86775 2008-10-06  Eric Blake  <ebb9@byu.net>
86777         test-signbit: avoid tripping Irix cc bug on -0.0L
86778         * tests/test-signbit.c (minus_zerol): Delete, and replace with
86779         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
86780         entire testsuite consistent and avoids an Irix 6.2 bug.
86782 2008-10-05  Bruno Haible  <bruno@clisp.org>
86783             Jim Meyering  <jim@meyering.net>
86785         Add an option for ignoring EPIPE during close_stdout.
86786         * lib/closeout.h: Include <stdbool.h>.
86787         (close_stdout_set_ignore_EPIPE): New declaration.
86788         * lib/closeout.c: Include <stdbool.h>.
86789         (ignore_EPIPE): New variable.
86790         (close_stdout_set_ignore_EPIPE): New function.
86791         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
86792         * lib/close-stream.c (close_stream): Mention the possible EPIPE
86793         failure.
86794         * modules/closeout (Depends-on): Add stdbool.
86796 2008-10-05  Bruno Haible  <bruno@clisp.org>
86798         * modules/accept: New file.
86799         * modules/bind: New file.
86800         * modules/connect: New file.
86801         * modules/getpeername: New file.
86802         * modules/getsockname: New file.
86803         * modules/getsockopt: New file.
86804         * modules/listen: New file.
86805         * modules/recv: New file.
86806         * modules/recvfrom: New file.
86807         * modules/send: New file.
86808         * modules/sendto: New file.
86809         * modules/setsockopt: New file.
86810         * modules/socket: New file.
86811         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
86812         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
86813         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
86814         the particular module is requested. Add a link warning when the
86815         particular module is not requested.
86816         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
86817         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
86818         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
86819         the particular module is requested.
86820         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
86821         gl_SYS_SOCKET_H_DEFAULTS): New macros.
86822         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
86823         * modules/sys_socket (Depends-on): Add link-warning.
86824         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
86825         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
86826         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
86827         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
86828         GL_LINK_WARNING.
86829         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
86830         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
86831         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
86832         * doc/posix-functions/getpeername.texi: Mention the new module
86833         'getpeername'.
86834         * doc/posix-functions/getsockname.texi: Mention the new module
86835         'getsockname'.
86836         * doc/posix-functions/getsockopt.texi: Mention the new module
86837         'getsockopt'.
86838         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
86839         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
86840         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
86841         * doc/posix-functions/send.texi: Mention the new module 'send'.
86842         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
86843         * doc/posix-functions/setsockopt.texi: Mention the new module
86844         'setsockopt'.
86845         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
86846         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
86847         listen, connect, accept.
86848         * modules/select-tests (Depends-on): Likewise.
86850 2008-10-05  Bruno Haible  <bruno@clisp.org>
86852         * lib/winsock.c (strerror): Remove unused #undef.
86853         (rpl_close): Remove unused local variable.
86855         * modules/sys_socket (Depends-on); Add errno.
86857 2008-10-05  Bruno Haible  <bruno@clisp.org>
86859         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
86860         (select): Add a link warning when the 'select' module is not used.
86861         * modules/sys_select (Depends-on): Add link-warning.
86862         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
86863         Suggested by Paolo Bonzini.
86865 2008-10-05  Jim Meyering  <meyering@redhat.com>
86867         bootstrap: check for LT_INIT more portably
86868         * build-aux/bootstrap: Avoid using grep -E, since it's not
86869         portable enough.  Suggestion from Bruno Haible.
86871 2008-10-05  Bruno Haible  <bruno@clisp.org>
86873         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
86874         as being fixed by gnulib.
86876 2008-10-05  Bruno Haible  <bruno@clisp.org>
86878         * modules/select-tests: New file, mostly copied from
86879         modules/sys_select-tests.
86880         * tests/test-select.c: New file, mostly copied from
86881         tests/test-sys_select.c.
86882         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
86883         * modules/sys_select-tests (Depends-on): Remove all dependencies.
86884         (Makefile.am): Remove test_sys_select_LDADD.
86886         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
86887         to an undefined symbol, for an error message.
86888         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
86889         (gl_SYS_SELECT_H_DEFAULTS): New macro.
86890         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
86891         winsock-select.c here.
86892         * modules/sys_select (Files): Remove lib/winsock-select.c.
86893         (Depends-on): Remove alloca.
86894         (Makefile.am): Substitute GNULIB_SELECT.
86895         * modules/select: New file.
86896         * doc/posix-functions/select.texi: Update.
86898 2008-10-05  Bruno Haible  <bruno@clisp.org>
86900         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
86901         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
86902         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
86903         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
86904         getdtablesize.
86905         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
86906         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
86908 2008-10-05  Bruno Haible  <bruno@clisp.org>
86910         * modules/getdtablesize-tests: New file.
86911         * tests/test-getdtablesize.c: New file.
86913         New module 'getdtablesize'.
86914         * lib/unistd.in.h (getdtablesize): New declaration.
86915         * lib/getdtablesize.c: New file.
86916         * m4/getdtablesize.m4: New file.
86917         * modules/getdtablesize: New file.
86918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86919         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
86920         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
86921         HAVE_GETDTABLESIZE.
86922         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
86924 2008-10-05  Bruno Haible  <bruno@clisp.org>
86926         * modules/sched (Makefile.am): Fix typo.
86927         Reported by Simon Josefsson.
86929 2008-10-05  Jim Meyering  <meyering@redhat.com>
86931         bootstrap: check for LT_INIT, too
86932         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
86933         are deprecated.  Suggestion from Ralf Wildenhues.
86935 2008-10-05  Bruno Haible  <bruno@clisp.org>
86937         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
86938         overriding them by ours.
86939         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
86941 2008-10-05  Jim Meyering  <meyering@redhat.com>
86943         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
86944         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
86945         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
86947 2008-10-04  Bruno Haible  <bruno@clisp.org>
86949         * modules/dup2 (License): Change to LGPLv2+.
86950         * modules/sleep (License): Likewise.
86951         * modules/perror (License): Likewise.
86952         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
86953         Blake.
86954         * modules/signal (License): Likewise.
86955         * modules/sigprocmask (License): Likewise.
86956         * modules/raise (License): Change to LGPLv2+, with approval by Jim
86957         Meyering.
86959 2008-10-04  Bruno Haible  <bruno@clisp.org>
86961         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
86962         Reported by Rainer Tammer <tammer@tammer.net>.
86964 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
86965             Bruno Haible  <bruno@clisp.org>
86967         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
86968         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
86969         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
86971 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
86973         filevercmp: new module
86974         * lib/filevercmp.h: New function filevercmp comparing version strings.
86975         * lib/filevercmp.c: Implementation of filevercmp function.
86976         * modules/filevercmp: Module metadata.
86977         * tests/test-filevercmp.c: Unit test for new module.
86978         * modules/filevercmp-tests: Unit test metadata.
86979         * MODULES.html.sh: Add filevercmp module.
86981 2008-10-03  Bruno Haible  <bruno@clisp.org>
86983         * lib/c-ctype.h: Add comment.
86984         Reported by Jim Meyering.
86986 2008-10-02  Bruno Haible  <bruno@clisp.org>
86988         * modules/posix_spawn-internal (Depends-on): Add 'open'.
86990 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
86992         * build-aux/bootstrap: Allow renaming bootstrap, and change the
86993         name of bootstrap.conf accordingly.
86995 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
86997         * build-aux/bootstrap: Install git-merge-changelog configuration
86998         items into .gitconfig if needed.
87000 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87002         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
87003         git repository, and initialize/update it accordingly.
87005 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
87007         * modules/fsync-tests: New file.
87008         * tests/test-fsync.c: New file.
87010         New module 'fsync'.
87011         * lib/fsync.c: New file.
87012         * m4/fsync.m4: New file.
87013         * modules/fsync: New file.
87014         * lib/unistd.in.h (fsync): New declaration.
87015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
87016         GNULIB_FSYNC and HAVE_FSYNC.
87017         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
87018         * MODULES.html.sh (posix_functions): Add fsync.
87019         * doc/posix-functions/fsync.texi: Mention the new module.
87021 2008-10-02  Jim Meyering  <meyering@redhat.com>
87023         fts.c: sync with similar code from coreutils' remove.c
87024         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
87025         Guard also with "#if defined __linux__", since for now at least,
87026         this code is Linux-kernel-specific.
87028 2008-10-02  Jim Meyering  <meyering@redhat.com>
87030         fts: bug fixes
87031         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
87032         Include <sys/vfs.h>, not <sys/statfs.h>.
87034         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
87035         Include <sys/vfs.h>, not <sys/statfs.h>.
87037 2008-10-01  Bruno Haible  <bruno@clisp.org>
87039         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
87040         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
87041         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
87042         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
87043         * doc/posix-functions/posix_spawnp.texi: Likewise.
87044         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
87045         whether posix_spawn actually works.
87046         * m4/pipe.m4 (gl_PIPE): Likewise.
87047         * modules/execute (Files): Add m4/posix_spawn.m4.
87048         * modules/pipe (Files): Add m4/posix_spawn.m4.
87049         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
87051 2008-10-01  Jim Meyering  <meyering@redhat.com>
87053         remove trailing spaces
87054         * NEWS: Likewise.
87055         * lib/poll.c (poll): Likewise.
87056         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
87057         * lib/winsock.c (rpl_close): Likewise.
87058         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
87059         * modules/yield: Likewise.
87060         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
87061         * tests/test-sys_select.c (connect_to_socket): Likewise.
87063         fts.c: adjust a new interface to be more generally useful
87064         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
87065         (fts_build): Adjust caller.
87067 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87069         * modules/cond-tests: New file.
87070         * tests/test-cond.c: New file.
87072 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87073             Bruno Haible  <bruno@clisp.org>
87075         * modules/cond (Dependencies): Add errno, time.
87076         * lib/glthread/cond.h: Include <time.h>.
87077         (gl_cond_define, gl_cond_define_initialized): Use the same definition
87078         across platforms.
87080 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87081             Bruno Haible  <bruno@clisp.org>
87083         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
87085 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87086             Bruno Haible  <bruno@clisp.org>
87088         * modules/tls-tests (Depends-on): Add thread, yield.
87089         (configure.ac): Remove all checks.
87090         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
87091         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
87092         gl_thread_self): Remove definitions. Include glthread/thread.h and
87093         glthread/yield.h instead.
87094         (test_tls): Pass an additional NULL argument to gl_thread_join.
87096 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87097             Bruno Haible  <bruno@clisp.org>
87099         * modules/lock-tests (Depends-on): Add thread, yield.
87100         (configure.ac): Remove all checks.
87101         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
87102         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
87103         gl_thread_self): Remove definitions. Include glthread/thread.h and
87104         glthread/yield.h instead.
87105         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
87106         additional NULL argument to gl_thread_join.
87108 2008-09-30  Bruno Haible  <bruno@clisp.org>
87110         Fix the Win32 implementation of the 'thread' module.
87111         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
87112         pointer type.
87113         (gl_thread_self): Invoke gl_thread_self_func.
87114         (gl_thread_self_func): New declaration.
87115         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
87116         (do_init_self_key, init_self_key): New functions.
87117         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
87118         Remove some fields.
87119         (running_threads, running_lock): Remove variables.
87120         (get_current_thread_handle): New function.
87121         (gl_thread_self_func, wrapper_func, glthread_create_func,
87122         glthread_join_func, gl_thread_exit_func): Largely rewritten and
87123         simplified.
87125 2008-09-30  Bruno Haible  <bruno@clisp.org>
87127         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
87128         files.
87130 2008-09-30  Jim Meyering  <meyering@redhat.com>
87132         fts.m4: correct the test for statfs.f_type
87133         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
87134         when checking for statfs.f_type.
87136 2008-09-15  Simon Josefsson  <simon@josefsson.org>
87138         tests: avoid some compiler warnings
87139         * tests/test-memchr.c (main): Pass NULL indirectly.
87140         * tests/test-getdate.c (main): Remove unused variable 'ret'.
87142 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
87144         getdate.y: disallow countable dayshifts like "4 yesterday ago"
87145         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
87146         exactly specified dayshifts.
87147         (dayshift): New rule.
87148         (rel): Add dayshift.
87149         (relative_time_table) [tomorrow, yesterday, today, now]:
87150         Use tDAY_SHIFT in place of tDAY_UNIT.
87151         * tests/test-getdate.c: Add tests for now-disallowed countable
87152         dayshifts, e.g., "4 yesterday ago".
87154 2008-09-29  Bruno Haible  <bruno@clisp.org>
87156         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
87157         * tests/test-posix_spawn1.in.sh: Renamed from
87158         tests/test-posix_spawn.in.sh.
87159         * tests/test-posix_spawn2.c: New file.
87160         * tests/test-posix_spawn2.in.sh: New file.
87161         * modules/posix_spawnp-tests (Files): Update.
87162         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
87164 2008-09-29  Bruno Haible  <bruno@clisp.org>
87166         Propagate effects of putenv/setenv/unsetenv to child processes.
87167         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
87168         * lib/pipe.c (create_pipe): Likewise.
87170 2008-09-29  Bruno Haible  <bruno@clisp.org>
87172         Enable use of shell scripts as executables in mingw.
87173         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
87174         run the program as a shell script.
87175         * lib/pipe.c (create_pipe): Likewise.
87176         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
87177         resulting array.
87179 2008-09-29  Eric Blake  <ebb9@byu.net>
87181         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
87183 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
87185         * doc/posix-functions/accept.texi: Update mingw problems.
87186         * doc/posix-functions/bind.texi: Update mingw problems.
87187         * doc/posix-functions/close.texi: Update mingw problems.
87188         * doc/posix-functions/connect.texi: Update mingw problems.
87189         * doc/posix-functions/getpeername.texi: Update mingw problems.
87190         * doc/posix-functions/getsockname.texi: Update mingw problems.
87191         * doc/posix-functions/getsockopt.texi: Update mingw problems.
87192         * doc/posix-functions/ioctl.texi: Update mingw problems.
87193         * doc/posix-functions/listen.texi: Update mingw problems.
87194         * doc/posix-functions/recv.texi: Update mingw problems.
87195         * doc/posix-functions/recvfrom.texi: Update mingw problems.
87196         * doc/posix-functions/select.texi: Update mingw problems.
87197         * doc/posix-functions/send.texi: Update mingw problems.
87198         * doc/posix-functions/sendto.texi: Update mingw problems.
87199         * doc/posix-functions/setsockopt.texi: Update mingw problems.
87200         * doc/posix-functions/socket.texi: Update mingw problems.
87202 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
87203             Bruno Haible  <bruno@clisp.org>
87205         * lib/sys_select.in.h: Include sys/time.h.
87206         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
87207         * modules/sys_select: Depend on sys_time.
87208         * tests/test-sys_select.c: Test that sys/select.h defines struct
87209         timeval fully.
87211 2008-09-29  Bruno Haible  <bruno@clisp.org>
87213         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
87214         * lib/sys_select.in.h: Likewise.
87216 2008-09-29  Bruno Haible  <bruno@clisp.org>
87218         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
87220 2008-09-29  Bruno Haible  <bruno@clisp.org>
87222         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
87223         Set LIBSOCKET instead of augmenting LIBS.
87224         * modules/sockets (Link): New section.
87225         * modules/sockets-tests (test_sockets_LDADD): New variable.
87226         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
87227         * modules/poll-tests (test_poll_LDADD): New variable.
87228         * NEWS: Document the change.
87230 2008-09-29  Bruno Haible  <bruno@clisp.org>
87232         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
87233         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
87234         ARPA_INET_H directly.
87235         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
87237 2008-09-28  Bruno Haible  <bruno@clisp.org>
87239         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
87240         from gl_HEADER_SYS_SOCKET.
87241         (gl_HEADER_SYS_SOCKET): Invoke it.
87242         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87244 2008-09-28  Bruno Haible  <bruno@clisp.org>
87246         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
87247         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
87248         Needed on OSF/1 4.0.
87250 2008-09-28  Bruno Haible  <bruno@clisp.org>
87252         Override open more carefully.
87253         * lib/open.c (orig_open): New function.
87254         (rpl_open): Use orig_open instead of open.
87255         * lib/fcntl.in.h: Add special invocation convention.
87256         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
87257         (gl_FUNC_OPEN): Invoke it.
87259         Override freopen more carefully.
87260         * lib/freopen.c (orig_freopen): New function.
87261         (rpl_freopen): Use orig_freopen instead of freopen.
87262         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
87263         (gl_FUNC_FREOPEN): Invoke it.
87265         Override fopen more carefully.
87266         * lib/fopen.c (orig_fopen): New function.
87267         (rpl_fopen): Use orig_fopen instead of fopen.
87268         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
87269         (gl_FUNC_FOPEN): Invoke it.
87270         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
87272 2008-09-28  Bruno Haible  <bruno@clisp.org>
87274         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
87275         SIGPIPE.
87277 2008-09-28  Bruno Haible  <bruno@clisp.org>
87279         * tests/test-sigaction.c (handler, main): Disable the check whether
87280         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
87281         glibc systems with LinuxThreads.
87283 2008-09-28  Bruno Haible  <bruno@clisp.org>
87285         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
87287         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
87288         with AIX xlc.
87289         * lib/fcntl.in.h (open): Likewise.
87290         Reported by Rainer Tammer <tammer@tammer.net>.
87292 2008-09-28  Bruno Haible  <bruno@clisp.org>
87294         * modules/posix_spawnp-tests: New file.
87295         * tests/test-posix_spawn.c: New file.
87296         * tests/test-posix_spawn.in.sh: New file.
87298         New module 'posix_spawnp'.
87299         * modules/posix_spawnp: New file.
87300         * lib/spawnp.c: New file, from GNU libc with modifications.
87301         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
87303         New module 'posix_spawn'.
87304         * modules/posix_spawn: New file.
87305         * lib/spawn.c: New file, from GNU libc with modifications.
87306         * doc/posix-functions/posix_spawn.texi: Mention the new module.
87308         New module 'posix_spawnattr_destroy'.
87309         * modules/posix_spawnattr_destroy: New file.
87310         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
87311         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
87312         module.
87314         New module 'posix_spawnattr_setsigmask'.
87315         * modules/posix_spawnattr_setsigmask: New file.
87316         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
87317         modifications.
87318         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
87319         new module.
87321         New module 'posix_spawnattr_getsigmask'.
87322         * modules/posix_spawnattr_getsigmask: New file.
87323         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
87324         modifications.
87325         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
87326         new module.
87328         New module 'posix_spawnattr_setsigdefault'.
87329         * modules/posix_spawnattr_setsigdefault: New file.
87330         * lib/spawnattr_setdefault.c: New file, from GNU libc with
87331         modifications.
87332         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
87333         new module.
87335         New module 'posix_spawnattr_getsigdefault'.
87336         * modules/posix_spawnattr_getsigdefault: New file.
87337         * lib/spawnattr_getdefault.c: New file, from GNU libc with
87338         modifications.
87339         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
87340         new module.
87342         New module 'posix_spawnattr_setschedpolicy'.
87343         * modules/posix_spawnattr_setschedpolicy: New file.
87344         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
87345         modifications.
87346         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
87347         new module.
87349         New module 'posix_spawnattr_getschedpolicy'.
87350         * modules/posix_spawnattr_getschedpolicy: New file.
87351         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
87352         modifications.
87353         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
87354         new module.
87356         New module 'posix_spawnattr_setschedparam'.
87357         * modules/posix_spawnattr_setschedparam: New file.
87358         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
87359         modifications.
87360         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
87361         new module.
87363         New module 'posix_spawnattr_getschedparam'.
87364         * modules/posix_spawnattr_getschedparam: New file.
87365         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
87366         modifications.
87367         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
87368         new module.
87370         New module 'posix_spawnattr_setpgroup'.
87371         * modules/posix_spawnattr_setpgroup: New file.
87372         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
87373         modifications.
87374         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
87375         module.
87377         New module 'posix_spawnattr_getpgroup'.
87378         * modules/posix_spawnattr_getpgroup: New file.
87379         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
87380         modifications.
87381         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
87382         module.
87384         New module 'posix_spawnattr_setflags'.
87385         * modules/posix_spawnattr_setflags: New file.
87386         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
87387         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
87388         module.
87390         New module 'posix_spawnattr_getflags'.
87391         * modules/posix_spawnattr_getflags: New file.
87392         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
87393         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
87394         module.
87396         New module 'posix_spawnattr_init'.
87397         * modules/posix_spawnattr_init: New file.
87398         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
87399         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
87400         module.
87402         New module 'posix_spawn_file_actions_destroy'.
87403         * modules/posix_spawn_file_actions_destroy: New file.
87404         * lib/spawn_faction_destroy.c: New file, from GNU libc with
87405         modifications.
87406         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
87407         the new module.
87409         New module 'posix_spawn_file_actions_addopen'.
87410         * modules/posix_spawn_file_actions_addopen: New file.
87411         * lib/spawn_faction_addopen.c: New file, from GNU libc with
87412         modifications.
87413         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
87414         the new module.
87416         New module 'posix_spawn_file_actions_adddup2'.
87417         * modules/posix_spawn_file_actions_adddup2: New file.
87418         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
87419         modifications.
87420         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
87421         the new module.
87423         New module 'posix_spawn_file_actions_addclose'.
87424         * modules/posix_spawn_file_actions_addclose: New file.
87425         * lib/spawn_faction_addclose.c: New file, from GNU libc with
87426         modifications.
87427         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
87428         the new module.
87430         New module 'posix_spawn_file_actions_init'.
87431         * modules/posix_spawn_file_actions_init: New file.
87432         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
87433         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
87434         new module.
87436         New module 'posix_spawn-internal'.
87437         * modules/posix_spawn-internal: New file.
87438         * lib/spawn_int.h: New file, from GNU libc with modifications.
87439         * lib/spawni.c: New file, from GNU libc with modifications.
87440         * m4/posix_spawn.m4: New file.
87442         New module 'spawn'.
87443         * modules/spawn: New file.
87444         * lib/spawn.in.h: New file, from GNU libc with modifications.
87445         * m4/spawn_h.m4: New file.
87446         * doc/posix-headers/spawn.texi: Mention the new module.
87448 2008-09-28  Bruno Haible  <bruno@clisp.org>
87450         * modules/sched-tests: New file.
87451         * tests/test-sched.c: New file.
87453         New module 'sched'.
87454         * modules/sched: New file.
87455         * lib/sched.in.h: New file.
87456         * m4/sched_h.m4: New file.
87457         * doc/posix-headers/sched.texi: Mention the new module.
87459 2008-09-27  Eric Blake  <ebb9@byu.net>
87461         Fix previous patch, and tweak references to $0.
87462         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
87463         (func_version, func_gnulib_dir): Don't call this program
87464         gnulib-tool.
87465         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
87466         with using $0 in function.
87467         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
87468         (func_fatal_error): Reuse the name the user invoked us with.
87470 2008-09-27  Bruno Haible  <bruno@clisp.org>
87472         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
87473         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
87474         (gl_ICONV_H): Not here.
87475         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
87476         instead of assigning ICONV_H directly.
87478         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
87479         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
87480         WCHAR_H directly.
87482 2008-09-27  Bruno Haible  <bruno@clisp.org>
87484         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
87485         * modules/arpa_inet (Depends-on): Add link-warning.
87486         (Makefile.am): Insert the definition of GL_LINK-WARNING.
87487         * modules/unistd (Makefile.am): Likewise.
87489 2008-09-26  Bruno Haible  <bruno@clisp.org>
87491         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
87492         variables.
87493         (func_version): Essentially copied from gnulib-tool.
87494         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
87495         func_readlink): Copied from gnulib-tool.
87497 2008-09-26  Bruno Haible  <bruno@clisp.org>
87499         * gnulib-tool (func_version): Change directory to $gnulib_dir before
87500         invoking git-version-gen.
87502 2008-09-26  Bruno Haible  <bruno@clisp.org>
87504         * posix-modules: Update to directory names changed on 2008-01-19.
87505         Remove commas in output before splitting into words. No more need to
87506         avoid 'ftruncate' since 2007-02-19.
87508 2008-09-26  Bruno Haible  <bruno@clisp.org>
87510         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
87512 2008-09-26  Bruno Haible  <bruno@clisp.org>
87514         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
87515         * modules/fwriteerror (Depends-on): Add errno.
87517 2008-09-26  Bruno Haible  <bruno@clisp.org>
87519         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
87520         * tests/test-vc-list-files-cvs.sh: Likewise.
87522 2008-09-26  Bruno Haible  <bruno@clisp.org>
87524         * doc/posix-headers/sys_resource.texi: Reorder items.
87526 2008-09-26  Jim Meyering  <meyering@redhat.com>
87528         fts: tweak inode comparison function
87529         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
87530         inode numbers, as documented.
87532         fts: sort dirent entries on inode number before traversing
87533         This avoids a quadratic, seek-related performance penalty when
87534         operating on a directory containing many entries (measurable at 10k;
87535         3.5 hours at 2 million entries with a cold cache) on certain types
87536         of file systems, including ext3 and ext4, but not tmpfs.
87537         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
87538         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
87539         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
87540         (fs_handles_readdir_ordered_dirents_efficiently): New function.
87541         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
87542         (fts_build): Set the stat.st_ino member from D_INO.
87543         If it is likely to be useful, sort dirent entries on inode number.
87545         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
87546         and the struct statfs.f_type member.
87547         * modules/fts (Depends-on): Add d-ino.
87549 2008-09-26  Bruno Haible  <bruno@clisp.org>
87551         * modules/sigpipe-die (Depends-on): Add sigpipe.
87553         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
87554         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
87555         and GNULIB_STDIO_H_SIGPIPE are set.
87556         * lib/stdio-write.c: New file.
87557         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
87558         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87559         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87560         REPLACE_STDIO_WRITE_FUNCS.
87561         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
87562         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87563         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87564         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
87565         * modules/stdio (Files): Add lib/stdio-write.c.
87566         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
87567         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87568         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87569         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
87570         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
87571         REPLACE_FPRINTF_POSIX.
87572         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
87573         REPLACE_PRINTF_POSIX.
87574         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
87575         REPLACE_VFPRINTF_POSIX.
87576         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
87577         REPLACE_VPRINTF_POSIX.
87578         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
87579         SIGPIPE issue.
87580         * doc/posix-functions/fputc.texi: Likewise.
87581         * doc/posix-functions/fputs.texi: Likewise.
87582         * doc/posix-functions/fwrite.texi: Likewise.
87583         * doc/posix-functions/printf.texi: Likewise.
87584         * doc/posix-functions/putc.texi: Likewise.
87585         * doc/posix-functions/putchar.texi: Likewise.
87586         * doc/posix-functions/puts.texi: Likewise.
87587         * doc/posix-functions/vfprintf.texi: Likewise.
87588         * doc/posix-functions/vprintf.texi: Likewise.
87590         * modules/safe-write (Depends-on): Add write.
87592         * modules/sigpipe-tests: New file.
87593         * tests/test-sigpipe.c: New file.
87594         * tests/test-sigpipe.sh: New file.
87596         * modules/write: New file.
87597         * lib/unistd.in.h: Include <sys/types.h>.
87598         (write): New declaration.
87599         * lib/write.c: New file.
87600         * m4/write.m4: New file.
87601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87602         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
87603         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
87604         GNULIB_WRITE, REPLACE_WRITE.
87605         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
87606         and the SIGPIPE issue.
87608         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
87609         (raise): New declaration.
87610         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
87611         (ext_signal): New function.
87612         (rpl_raise): New function.
87613         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
87614         GNULIB_SIGNAL_H_SIGPIPE.
87615         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
87616         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
87618         * modules/sigpipe: New file.
87619         * m4/sigpipe.m4: New file.
87621 2008-09-25  Derek Price  <derek@ximbiot.com>
87622             Bruno Haible  <bruno@clisp.org>
87624         * gnulib-tool (func_import): Report all license incompatibilities, not
87625         just the first one.
87627 2008-09-25  Bruno Haible  <bruno@clisp.org>
87629         * gnulib-tool (func_import): When computing the edits, consider not
87630         only the Makefile.ams that exist but also those that will be generated.
87632 2008-09-25  Simon Josefsson  <simon@josefsson.org>
87634         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
87635         fixes gnulib-tool --test warning about duplicate dependency.
87637 2008-09-25  Bruno Haible  <bruno@clisp.org>
87639         * gnulib-tool: Don't ask the user to perform edits in the generated
87640         Makefile.ams.
87641         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
87642         apply to the Makefile.am being generated.
87643         (func_emit_tests_Makefile_am): Execute edits that apply to the
87644         Makefile.am being generated.
87645         (func_import): Setup list of Makefile.am edits before emitting the
87646         Makefile.ams, not at the end.
87647         (func_create_testdir): Update.
87648         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87650 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87652         * gnulib-tool (func_import): Store the --tests-base option in the
87653         comment in gnulib-cache.m4.
87655 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
87657         * NEWS: Document increased portability that sys_select now provides.
87659         * lib/sys_select.in.h: Install select wrapper.
87660         * lib/sys_socket.in.h: Use more descriptive name when there is no
87661         select wrapper.
87662         * lib/winsock-select.c: New.
87663         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
87664         Require gl_HEADER_SYS_SOCKET.
87665         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
87666         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
87667         * tests/test-sys_select.c: Add functional tests.
87669 2008-09-24  Eric Blake  <ebb9@byu.net>
87671         open, fopen: close fd leak in last patch
87672         * lib/open.c (rpl_open): Close fd before returning error.
87673         * lib/fopen.c (rpl_fopen): Close fd before returning error.
87674         * doc/posix-functions/open.texi (open): Document that Irix also
87675         has the bug.
87676         * doc/posix-functions/fopen.texi (fopen): Likewise.
87677         Reported by Paolo Bonzini.
87679 2008-09-24  Bruno Haible  <bruno@clisp.org>
87681         Ensure that a filename ending in a slash cannot be used to access a
87682         non-directory.
87683         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
87684         to check whether it's really a directory.
87685         * lib/fopen.c: Include fcntl.h, unistd.h.
87686         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
87687         and fdopen().
87688         * modules/fopen (Depends-on): Add unistd.
87689         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
87690         * tests/test-fopen.c (main): Likewise.
87691         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
87692         * doc/posix-functions/fopen.texi: Likewise.
87693         Reported by Eric Blake.
87695 2008-09-23  Eric Blake  <ebb9@byu.net>
87697         c-stack: avoid compiler optimizations when provoking overflow
87698         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
87699         recursion harder to optimize, to ensure a stack overflow occurs.
87700         * tests/test-c-stack.c (recurse): Likewise.
87701         Borrowed from libsigsegv.
87703         c-stack: work around Irix sigaltstack bug
87704         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
87705         whether sigaltstack uses wrong end of stack_t (copied in part from
87706         libsigsegv).
87707         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
87708         Irix bug, without requiring an over-allocation.
87709         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
87710         bug.
87712         fopen: document mingw bug on directories
87713         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
87714         not allowing a stream visiting a directory, even though reading
87715         from such a stream is not portable.
87717 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87719         * lib/poll.c: Rewrite.
87720         * modules/poll: Depend on alloca.
87722 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87724         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
87725         instead define prototypes for a full set of wrappers.  Ensure
87726         that Cygwin does not use the compatibility code, which is only
87727         for MinGW.
87728         * lib/winsock.c: New.
87729         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
87730         * modules/sys_socket: Add lib/winsock.c.
87732         * modules/poll-tests: Add errno and perror.
87733         * tests/test-poll.c: Use ioctl, not ioctlsocket.
87735 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87737         * tests/test-poll.c: Downgrade minimum needed Winsock version.
87739 2008-09-23  Bruno Haible  <bruno@clisp.org>
87741         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
87742         * doc/glibc-functions/*: Likewise.
87744 2008-09-23  Simon Josefsson  <simon@josefsson.org>
87746         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
87747         success.
87749 2008-09-22  Eric Blake  <ebb9@byu.net>
87750             Bruno Haible  <bruno@clisp.org>
87752         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
87753         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
87754         supply %A but mishandle pseudo-NaN.
87755         Reported by Simon Josefsson.
87757 2008-09-21  Bruno Haible  <bruno@clisp.org>
87759         * tests/test-lock.c (main): Tweak skip message.
87760         * tests/test-tls.c (main): Likewise.
87762 2008-09-21  Bruno Haible  <bruno@clisp.org>
87764         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
87765         whether 'struct sigaction' has sa_sigaction here...
87766         (gl_PREREQ_SIG_HANDLER_H): ... not here.
87767         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
87769 2008-09-21  Bruno Haible  <bruno@clisp.org>
87771         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
87772         section.
87773         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
87774         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
87775         the new section.
87776         (Support for obsolete systems lacking POSIX:2001): New section.
87777         (String handling <string.h>): Move strdup to the new section.
87778         Suggested by Simon Josefsson and Paolo Bonzini.
87780 2008-09-21  Bruno Haible  <bruno@clisp.org>
87782         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
87783         exponents in %e and %g results on 'long double'. Needed for mingw's
87784         improved *printf functions.
87785         * tests/test-vasprintf-posix.c (test_function): Likewise.
87786         * tests/test-snprintf-posix.h (test_function): Likewise.
87787         * tests/test-sprintf-posix.h (test_function): Likewise.
87788         Reported by Eric Blake.
87790 2008-09-21  Bruno Haible  <bruno@clisp.org>
87792         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
87793         * tests/test-sprintf-posix.h (test_function): Likewise.
87795 2008-09-21  Bruno Haible  <bruno@clisp.org>
87797         * modules/getpass (Depends-on): Add strdup-posix.
87799         New module 'strdup-posix'.
87800         * modules/strdup-posix: New file.
87801         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
87802         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
87803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
87804         REPLACE_STRDUP.
87805         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
87806         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
87807         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87808         strdup-posix.
87810         * modules/strdup (Depends-on): Remove malloc-posix.
87812 2008-09-20  Bruno Haible  <bruno@clisp.org>
87814         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
87815         Wildenhues.
87817 2008-09-20  Bruno Haible  <bruno@clisp.org>
87819         Ensure that wint_t gets defined on IRIX 5.3.
87820         * lib/wchar.in.h (wint_t): Define if not defined by the system.
87821         * lib/wctype.in.h (wint_t): Likewise.
87822         (__wctype_wint_t): Remove type.
87823         (isw*): Use wint_t instead of __wctype_wint_t.
87824         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
87825         * modules/wchar (Files): Add m4/wint_t.m4.
87826         (Makefile.am): Substitute HAVE_WINT_T.
87827         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
87828         * tests/test-wctype.c: Check that wint_t is defined.
87829         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
87830         * doc/posix-headers/wctype.texi: Likewise.
87831         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
87833 2008-09-18  Bruno Haible  <bruno@clisp.org>
87835         * gnulib-tool (func_exit): Update comment.
87837 2008-09-18  Simon Josefsson  <simon@josefsson.org>
87839         * modules/getaddrinfo (Depends-on): Remove strdup, this module
87840         assumes strdup exists and does not depend on strdup to return
87841         ENOMEM on out of memory conditions.
87843 2008-09-18  Bruno Haible  <bruno@clisp.org>
87845         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
87846         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
87847         digits for the exponent.
87849 2008-09-18  Jim Meyering  <meyering@redhat.com>
87850             Bruno Haible  <bruno@clisp.org>
87852         * lib/vasnprintf.c (decimal_point_char): Define also if
87853         NEED_PRINTF_INFINITE_LONG_DOUBLE.
87855 2008-09-16  Bruno Haible  <bruno@clisp.org>
87856         and Eric Blake  <ebb9@byu.net>
87858         vasnprintf: support Irix 5.3
87859         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
87860         that mishandle long double infinity.
87861         Reported by Tom G. Christensen.
87863 2008-09-16  Bruno Haible  <bruno@clisp.org>
87865         * doc/glibc-functions/scandir.texi: Mention the function is missing on
87866         Solaris 9.
87867         * doc/glibc-functions/alphasort.texi: Likewise.
87868         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
87870 2008-09-16  Jim Meyering  <meyering@redhat.com>
87872         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
87873         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
87874         a umask modification leak out of a subshell.  Otherwise, the
87875         opensolaris /bin/sh would be accepted and thus cause unwarranted
87876         failures in the coreutils test suite.
87878 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
87880         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
87881         to succeed.
87883 2008-09-16  Jim Meyering  <meyering@redhat.com>
87885         avoid spurious test failure when library is built without ACL support
87886         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
87887         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
87888         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
87889         * tests/test-copy-acl.sh: Likewise.
87891 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87893         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
87894         based on character occurrence counts.
87896 2008-09-15  Eric Blake  <ebb9@byu.net>
87898         tests: avoid some compiler warnings
87899         * tests/test-memchr.c (main): Pass NULL indirectly.
87900         * tests/test-closein.c (main): Avoid unused variable.
87902 2008-09-15  Bruno Haible  <bruno@clisp.org>
87904         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
87905         are missing on OpenBSD 4.0 individually.
87906         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87908 2008-09-15  Bruno Haible  <bruno@clisp.org>
87910         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
87911         * doc/posix-functions/strerror.texi: Mention also Cygwin.
87912         * doc/posix-functions/perror.texi: Likewise.
87913         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
87914         is missing.
87915         Reported by Eric Blake.
87917         * lib/errno.in.h: Use replacement values >= 2000.
87918         Reported by Eric Blake.
87920 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87922         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
87923         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
87924         limit.
87925         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
87926         compareseq was aborted.
87928 2008-09-14  Bruno Haible  <bruno@clisp.org>
87930         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
87931         yvec_edit_count.
87932         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
87933         (fstrcmp_bounded): Simplify result computation accordingly.
87935 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87937         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
87938         (fstrcmp): Define in terms of fstrcmp_bounded.
87939         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
87940         lower_bound argument.
87941         Return quickly if the result is certainly < lower_bound.
87942         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
87944 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87946         * lib/diffseq.h (EARLY_ABORT): New macro.
87947         (compareseq): Change return type to bool. Return true when EARLY_ABORT
87948         evaluates to true.
87950 2008-09-14  Bruno Haible  <bruno@clisp.org>
87952         * modules/perror-tests: New file.
87953         * tests/test-perror.sh: New file.
87954         * tests/test-perror.c: New file.
87956         New module 'perror'.
87957         * lib/stdio.in.h (perror): New declaration.
87958         * lib/perror.c: New file.
87959         * m4/perror.m4: New file.
87960         * modules/perror: New file.
87961         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
87962         * doc/posix-functions/perror.texi: Mention the perror module.
87963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
87964         REPLACE_PERROR.
87965         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
87966         REPLACE_PERROR.
87968 2008-09-14  Bruno Haible  <bruno@clisp.org>
87970         * modules/stdio (Makefile.am): Reorder to match the order in
87971         lib/stdio.in.h.
87972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
87974 2008-09-13  Bruno Haible  <bruno@clisp.org>
87976         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
87978 2008-09-13  Bruno Haible  <bruno@clisp.org>
87980         Extend strerror to cover the added errno values.
87981         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
87982         (rpl_strerror): Provide error messages for the added errno values and
87983         for the WSA* values.
87984         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
87985         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
87986         strerror.
87987         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
87988         * modules/strerror (Depends-on): Add errno.
87989         * doc/posix-functions/strerror.texi: Document the change.
87990         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
87991         and EOVERFLOW.
87993 2008-09-13  Bruno Haible  <bruno@clisp.org>
87995         * modules/EOVERFLOW: Remove file.
87996         * m4/eoverflow.m4: Remove file.
87997         * modules/EOVERFLOW-tests: Remove file.
87998         * tests/test-EOVERFLOW.c: Remove file.
87999         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
88000         * modules/ftell (Depends-on): Likewise.
88001         * modules/getdelim (Depends-on): Likewise.
88002         * modules/getugroups (Depends-on): Likewise.
88003         * modules/poll (Depends-on): Likewise.
88004         * modules/snprintf (Depends-on): Likewise.
88005         * modules/sprintf-posix (Depends-on): Likewise.
88006         * modules/vasnprintf (Depends-on): Likewise.
88007         * modules/vasprintf (Depends-on): Likewise.
88008         * modules/vfprintf-posix (Depends-on): Likewise.
88009         * modules/vsnprintf (Depends-on): Likewise.
88010         * modules/vsprintf-posix (Depends-on): Likewise.
88011         * modules/xvasprintf (Depends-on): Likewise.
88012         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88013         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
88014         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
88015         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
88016         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88017         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
88018         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
88019         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
88020         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88021         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
88022         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
88023         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
88024         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88025         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
88026         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
88027         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
88028         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88029         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
88030         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
88031         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
88032         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88033         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
88034         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
88035         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
88036         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
88037         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88038         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
88039         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
88040         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
88041         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
88042         * MODULES.html.sh: Remove EOVERFLOW.
88043         * NEWS: Mention the change.
88045 2008-09-13  Bruno Haible  <bruno@clisp.org>
88047         * modules/errno-tests: New file.
88048         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
88050         * lib/errno.in.h: New file.
88051         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
88052         * modules/errno: New file.
88053         * doc/posix-headers/errno.texi: Update documentation.
88054         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
88056 2008-09-13  Bruno Haible  <bruno@clisp.org>
88058         * tests/test-poll.c: Use #if for native Windows, rather than testing
88059         __MSVCRT__.
88061 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88062             Bruno Haible  <bruno@clisp.org>
88064         * lib/glob.c: Don't include <pwd.h> on native Windows.
88065         (WINDOWS32): New macro.
88066         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
88068 2008-09-13  Bruno Haible  <bruno@clisp.org>
88070         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
88071         (ETIMEDOUT): Remove macro.
88072         (glthread_cond_timedwait_multithreaded): New declaration.
88073         (glthread_cond_timedwait): Use it.
88074         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
88075         (glthread_cond_timedwait_multithreaded): New function.
88077 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88079         * modules/poll-tests: Do not check for io.h.
88080         * tests/test-poll.c: Check for __MSVCRT__ instead.
88082 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88084         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
88085         * modules/poll-tests: Add inet_pton, stdbool, sockets.
88086         * tests/test-poll.c: Use them.  Use _pipe on Windows.
88088 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88090         * modules/poll-tests: New.
88091         * tests/test-poll.c: New.
88093 2008-09-12  Eric Blake  <ebb9@byu.net>
88095         frexp: test for NetBSD failure on -0.0
88096         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
88097         not all, bugs from NetBSD 3.0 have been fixed.
88098         * doc/posix-functions/frexp.texi (frexp): Document bug.
88099         Reported by Thomas Klausner.
88101         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
88102         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
88103         literal -0.0.
88104         Reported by Jonathan C. Patschke <jp@centtech.com>.
88106 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88108         * lib/glthread/cond.h: Use dummy implementation also if
88109         USE_WIN32_THREADS.
88111 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88113         * modules/fnmatch-posix (License): Change to LGPLv2+.
88114         * modules/fnmatch-gnu (License): Likewise.
88116 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88118         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
88120 2008-09-11  Jim Meyering  <meyering@redhat.com>
88122         * users.txt: Add gtk-vnc.
88124 2008-09-08  Simon Josefsson  <simon@josefsson.org>
88126         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
88127         rotate amounts.
88129         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
88130         required for 16-bit and 8-bit rotates.
88131         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
88132         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
88133         UINT8_MAX instead of hard-coded constants.
88134         Suggested by Paul Eggert.
88136 2008-09-07  Bruno Haible  <bruno@clisp.org>
88138         * tests/test-striconveh.c (main): Check behaviour when converting from
88139         UTF-7.
88141         Make striconveh work better with stateful encodings.
88142         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
88143         that iconv does not increment the inptr when returning -1/EINVAL.
88145 2008-09-07  Bruno Haible  <bruno@clisp.org>
88147         * build-aux/config.rpath: Update according to libtool-2.2.6.
88148         * build-aux/config.libpath: Likewise.
88150 2008-09-06  Bruno Haible  <bruno@clisp.org>
88152         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
88153         * lib/freadptr.c (freadptr): Likewise.
88154         * lib/freadseek.c (freadptrinc): Likewise.
88155         Reported by Simon Josefsson.
88157 2008-09-06  Bruno Haible  <bruno@clisp.org>
88159         * modules/freadptr (License): Change to LGPLv2+.
88160         * modules/freadseek (License): Likewise.
88161         Suggested by Eric Blake.
88163         * modules/memchr2 (License): Change to LGPLv2+.
88164         Approved by Eric Blake.
88166 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88167             Bruno Haible  <bruno@clisp.org>
88169         Make gnulib-tool work with native 'sed' on AIX.
88170         * gnulib-tool (sed_noop): New variable.
88171         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
88172         func_add_or_update, func_create_testdir): Use it to initialize sed
88173         script variables.
88174         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88176 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
88177             Bruno Haible  <bruno@clisp.org>
88179         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
88180         also works after #include directives.
88182 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
88184         getdate.y: reject an out-of-range timezone value
88185         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
88186         the range [-24...+24].  When specified with only one or two digits,
88187         * tests/test-getdate.c: Tests for the fix.
88188         * doc/getdate.texi: Document this change.
88190 2008-09-03  Bruno Haible  <bruno@clisp.org>
88192         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
88194 2008-09-02  Simon Josefsson  <simon@josefsson.org>
88196         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
88197         <bruce.korb@gmail.com> with ideas from Ben Pfaff
88198         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
88199         Blake <ebb9@byu.net>.
88201         * tests/test-bitrotate.c: Add more test vectors.
88203 2008-09-02  Eric Blake  <ebb9@byu.net>
88205         vasnprintf-posix: handle large precision via %.*d
88206         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
88207         when handling it ourselves.
88208         * tests/test-vasnprintf-posix.c (test_function): Add test.
88209         * tests/test-snprintf-posix.h (test_function): Likewise.
88210         * tests/test-sprintf-posix.h (test_function): Likewise.
88211         * tests/test-vasprintf-posix.c (test_function): Likewise.
88212         Reported by Alain Guibert.
88214 2008-09-01  Eric Blake  <ebb9@byu.net>
88216         c-stack: make configure-time check more robust
88217         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
88218         successful sigaction call.
88219         Reported by Tom G. Christensen.
88221 2008-09-01  Bruno Haible  <bruno@clisp.org>
88223         New module 'findprog-lgpl'.
88224         * modules/findprog-lgpl: New file.
88225         * lib/findprog-lgpl.c: New file.
88226         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
88227         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
88228         to decide whether to use strdup or xstrdup, concatenated_filename or
88229         xconcatenated_filename.
88231 2008-09-01  Bruno Haible  <bruno@clisp.org>
88233         Split module 'concat-filename' into 'concat-filename' (LGPL) and
88234         'xconcat-filename' (GPL).
88235         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
88236         (License): Change to LGPLv2+.
88237         * modules/xconcat-filename: New file.
88238         * lib/concat-filename.h (concatenated_filename): Change specification.
88239         (xconcatenated_filename): New declaration.
88240         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
88241         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
88242         memory situations.
88243         * lib/xconcat-filename.c: New file.
88244         * NEWS: Mention the change.
88245         * lib/findprog.c: Include concat-filename.h, not filename.h.
88246         (find_in_path): Use xconcatenated_filename instead of
88247         concatenated_filename.
88248         * lib/javacomp.c: Include concat-filename.h, not filename.h.
88249         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
88250         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
88251         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
88252         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
88253         instead of concatenated_filename.
88254         * lib/javaexec.c: Include concat-filename.h, not filename.h.
88255         (execute_java_class): Use xconcatenated_filename instead of
88256         concatenated_filename.
88257         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
88258         * modules/javacomp (Depends-on): Likewise.
88259         * modules/javaexec (Depends-on): Likewise.
88261 2008-09-01  Bruno Haible  <bruno@clisp.org>
88263         Split module 'filename' into 'filename' and 'concat-filename'.
88264         * modules/filename: Keep only lib/filename.h.
88265         (License): Change to LGPLv2+.
88266         * modules/concat-filename: New file, extracted from modules/filename.
88267         * lib/filename.h (concatenated_filename): Remove declaration.
88268         * lib/concat-filename.h: New file, extracted from lib/filename.h.
88269         * lib/concat-filename.c: Include concat-filename.h.
88270         * NEWS: Mention the change.
88272 2008-09-01  Simon Josefsson  <simon@josefsson.org>
88274         * lib/bitrotate.h (rotl8, rotr8): Add.
88276         * modules/bitrotate (configure.ac): Need
88277         AC_REQUIRE([AC_C_INLINE]).
88278         (Description): Mention stdint.h.  Reported by Bruno Haible
88279         <bruno@clisp.org>.
88281         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
88282         Paolo Bonzini <bonzini@gnu.org>.
88284 2008-08-31  Bruno Haible  <bruno@clisp.org>
88286         Assume Solaris specific bi-arch conventions on Solaris systems.
88287         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
88288         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
88289         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
88290         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
88291         like acl_libdirstem.
88292         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
88293         acl_libdirstem.
88294         * NEWS: Mention the change.
88295         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
88297 2008-08-31  Jim Meyering  <meyering@redhat.com>
88299         * lib/strftime.h: Add comments describing the two added arguments.
88301         remove duplicate #include directives
88302         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
88303         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
88305 2008-08-31  Bruno Haible  <bruno@clisp.org>
88307         New module 'sigpipe-die'.
88308         * modules/sigpipe-die: New file.
88309         * lib/sigpipe-die.h: New file.
88310         * lib/sigpipe-die.c: New file.
88311         * MODULES.html.sh (Signal handling): Add sigpipe-die.
88313 2008-08-31  Bruno Haible  <bruno@clisp.org>
88315         Don't override previously installed signal handlers.
88316         * lib/fatal-signal.c (saved_sigactions): New variable.
88317         (uninstall_handlers): Reset the signal to the saved handler, not
88318         to SIG_DFL (except when ignored).
88319         (install_handlers): Save the previous handlers.
88321 2008-08-30  Bruno Haible  <bruno@clisp.org>
88323         * gnulib-tool (func_reset_sigpipe): New function.
88324         (func_get_automake_snippet, func_modules_transitive_closure,
88325         func_import): Invoke it before a join command that reads from stdin,
88326         to avoid "echo: write error: Broken pipe" error messages on stderr.
88327         Reported by Sam Steingold <sds@gnu.org>.
88329 2008-08-30  Bruno Haible  <bruno@clisp.org>
88331         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
88332         Code copied from m4/open.m4.
88333         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
88334         access and the filename ends in a slash. Code copied from lib/open.c.
88335         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
88336         * tests/test-fopen.c (main): Check against bug with trailing slash.
88338 2008-08-29  Bruno Haible  <bruno@clisp.org>
88340         Avoid some "gcc -pedantic" warnings.
88341         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
88342         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
88343         * lib/dirent.in.h: Likewise.
88344         * lib/fcntl.in.h: Likewise.
88345         * lib/float.in.h: Likewise.
88346         * lib/iconv.in.h: Likewise.
88347         * lib/inttypes.in.h: Likewise.
88348         * lib/locale.in.h: Likewise.
88349         * lib/math.in.h: Likewise.
88350         * lib/netinet_in.in.h: Likewise.
88351         * lib/search.in.h: Likewise.
88352         * lib/signal.in.h: Likewise.
88353         * lib/stdarg.in.h: Likewise.
88354         * lib/stdint.in.h: Likewise.
88355         * lib/stdio.in.h: Likewise.
88356         * lib/stdlib.in.h: Likewise.
88357         * lib/string.in.h: Likewise.
88358         * lib/strings.in.h: Likewise.
88359         * lib/sys_select.in.h: Likewise.
88360         * lib/sys_socket.in.h: Likewise.
88361         * lib/sys_stat.in.h: Likewise.
88362         * lib/sys_time.in.h: Likewise.
88363         * lib/sysexits.in.h: Likewise.
88364         * lib/time.in.h: Likewise.
88365         * lib/unistd.in.h: Likewise.
88366         * lib/wchar.in.h: Likewise.
88367         * lib/wctype.in.h: Likewise.
88368         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
88369         * modules/fchdir (Makefile.am): Likewise.
88370         * modules/fcntl (Makefile.am): Likewise.
88371         * modules/float (Makefile.am): Likewise.
88372         * modules/iconv_open (Makefile.am): Likewise.
88373         * modules/inttypes (Makefile.am): Likewise.
88374         * modules/locale (Makefile.am): Likewise.
88375         * modules/math (Makefile.am): Likewise.
88376         * modules/netinet_in (Makefile.am): Likewise.
88377         * modules/search (Makefile.am): Likewise.
88378         * modules/signal (Makefile.am): Likewise.
88379         * modules/stdarg (Makefile.am): Likewise.
88380         * modules/stdint (Makefile.am): Likewise.
88381         * modules/stdio (Makefile.am): Likewise.
88382         * modules/stdlib (Makefile.am): Likewise.
88383         * modules/string (Makefile.am): Likewise.
88384         * modules/strings (Makefile.am): Likewise.
88385         * modules/sys_select (Makefile.am): Likewise.
88386         * modules/sys_socket (Makefile.am): Likewise.
88387         * modules/sys_stat (Makefile.am): Likewise.
88388         * modules/sys_time (Makefile.am): Likewise.
88389         * modules/sysexits (Makefile.am): Likewise.
88390         * modules/time (Makefile.am): Likewise.
88391         * modules/unistd (Makefile.am): Likewise.
88392         * modules/wchar (Makefile.am): Likewise.
88393         * modules/wctype (Makefile.am): Likewise.
88394         Reported by Reuben Thomas <rrt@sc3d.org>.
88396 2008-08-29  Bruno Haible  <bruno@clisp.org>
88398         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
88399         any more.
88401 2008-08-29  Simon Josefsson  <simon@josefsson.org>
88403         * MODULES.html.sh (Misc): Add bitrotate.
88405         * modules/bitrotate: New file.
88407         * lib/bitrotate.h: New file.
88409         * modules/bitrotate-tests: New file.
88411         * tests/test-bitrotate.c: New file.
88413         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
88414         on the bitrotate module.
88416         * lib/arctwo.c: Use new bitrotate module.
88418 2008-08-29  Jim Meyering  <meyering@redhat.com>
88420         bootstrap: merge changes from coreutils
88421         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
88422         of copied files.  Remove a kludge, now that this is fixed.
88423         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
88424         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
88425         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
88427 2008-08-29  Bruno Haible  <bruno@clisp.org>
88429         * MODULES.html.sh: Remove --cvs-urls option.
88431 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
88433         maint.mk: adjust to file name change
88434         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
88436 2008-08-28  Jim Meyering  <meyering@redhat.com>
88438         * modules/getndelim2 (License): Relicense to LGPLv2+.
88439         Approved by Richard Stallman for the version of 1995, and by
88440         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
88442 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
88444         * lib/getdelim.c (flockfile, funlockfile): Make all of them
88445         dummy if one is not available.  Do not touch them if
88446         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
88447         (getc_maybe_unlocked): New.
88448         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
88450 2008-08-26  Eric Blake  <ebb9@byu.net>
88452         doc/INSTALL: resync from autoconf
88453         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
88454         (INSTALL_PRELUDE): Delete; this is done more efficiently by
88455         moving...
88456         * install.texi [!autoconf]: ...here.  Resync from autoconf.
88457         * INSTALL: Regenerate.
88458         * INSTALL.ISO: New file.
88459         * INSTALL.UTF-8: Likewise.
88461 2008-08-26  Jim Meyering  <meyering@redhat.com>
88463         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
88464         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
88465         these definitions conditional, so that they may be overridden, too.
88467 2008-08-26  Bruno Haible  <bruno@clisp.org>
88469         Generate INSTALL file variants with prettier quotes.
88470         * doc/Makefile (INSTALL_PRELUDE): New macro.
88471         (INSTALL): Use it.
88472         (INSTALL.ISO, INSTALL.UTF-8): New rules.
88474 2008-08-26  Bruno Haible  <bruno@clisp.org>
88476         Run makeinfo in an English locale.
88477         * doc/Makefile (MAKEINFO): New variable.
88479 2008-08-26  Bruno Haible  <bruno@clisp.org>
88481         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
88482         Suggested by Eric Blake.
88484 2008-08-25  Bruno Haible  <bruno@clisp.org>
88486         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
88488 2008-08-25  Eric Blake  <ebb9@byu.net>
88490         c-stack: test that stack overflow can be caught
88491         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
88492         that platform allows handling stack overflow; at least OS/2 EMX
88493         has sigaltstack, but crashes before transferring control to
88494         handler on stack overflow.
88495         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
88496         check for HAVE_STACK_OVERFLOW_HANDLING.
88497         Reported by Elbert Pol.
88499 2008-08-25  Bruno Haible  <bruno@clisp.org>
88501         * doc/posix-functions/strftime.texi: Fix description of strftime
88502         module.
88504 2008-08-24  Bruno Haible  <bruno@clisp.org>
88506         * tests/uniwidth/test-uc_width2.c: New file.
88507         * tests/uniwidth/test-uc_width2.sh: New file.
88508         * modules/uniwidth/width-tests (Files): Add the new files.
88509         (TESTS): Add uniwidth/test-uc_width2.sh.
88510         (TESTS_ENVIRONMENT): New variable.
88511         (check_PROGRAMS): Add test-uc_width2.
88512         (test_uc_width2_SOURCES): New variable.
88514         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
88515         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
88516         not 0x00AB.
88517         Reported by Alexander V. Lukyanov <lav@netis.ru>.
88519 2008-08-22  Eric Blake  <ebb9@byu.net>
88521         test-lock, test-tls: mention why a test is skipped
88522         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
88523         skipped.
88524         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
88526         count-one-bits: relax license
88527         * modules/count-one-bits (License): Relicense to LGPLv2+.
88528         Suggested by Ludovic Courtès, approved by Ben Pfaff.
88530 2008-08-22  Andreas Schwab  <schwab@suse.de>
88532         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
88533         Remove spurious space in assignment.
88535 2008-08-21  Simon Josefsson  <simon@josefsson.org>
88537         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
88538         Paul Eggert <eggert@CS.UCLA.EDU>.
88540 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
88542         * modules/gettext: Add m4/threadlib.m4.
88544 2008-08-19  Eric Blake  <ebb9@byu.net>
88546         test-c-stack: fix compilation failure on FreeBSD 5.0
88547         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
88548         headers before <sys/resource.h>.
88549         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
88550         the bug.
88551         Reported by Nelson H. F. Beebe.
88553         strverscmp: migrate from "strverscmp.h" to <string.h>
88554         * modules/string (Makefile.am): Add new hooks.
88555         * modules/strverscmp (Files): Remove strverscmp.h.
88556         (Depends-on): Add string.
88557         (configure.ac): Add indicator.
88558         (Include): Mention new header.
88559         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
88560         defaults.
88561         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
88562         results.
88563         * lib/strverscmp.h: Delete.
88564         * lib/string.in.h (strverscmp): Provide declaration, when needed.
88565         * tests/test-strverscmp.c (includes): Adjust client.
88566         * lib/check-version.c (includes): Likewise.
88567         * NEWS: Document the change.
88569         strverscmp: add unit test
88570         * modules/strverscmp-tests: New file.
88571         * tests/test-strverscmp.c: Likewise.
88573 2008-08-19  Simon Josefsson  <simon@josefsson.org>
88575         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
88576         regarding Windows crypto stuff, from Mono.
88578 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
88580         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
88581         if present, for intel RND.  Return error on failures.
88583 2008-08-18  Ben Pfaff  <blp@gnu.org>
88585         gitlog-to-changelog: give better diagnostic for failed pipe-open
88586         * build-aux/gitlog-to-changelog: Improve error message: suggest
88587         that the version of Git may be too old.
88589 2008-08-18  Simon Josefsson  <simon@josefsson.org>
88591         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
88592         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
88594 2008-08-18  Bruno Haible  <bruno@clisp.org>
88596         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
88597         pthread_in_use().
88599 2008-08-18  Bruno Haible  <bruno@clisp.org>
88601         * lib/glthread/threadlib.c: Include <pthread.h>.
88603 2008-08-18  Bruno Haible  <bruno@clisp.org>
88605         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
88606         glthread_recursive_lock_* macros.
88607         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
88608         Fix syntax error.
88610 2008-08-18  Bruno Haible  <bruno@clisp.org>
88612         * lib/glthread/thread.c: Avoid forcing a context switch right after
88613         thread creation.
88615 2008-08-17  Bruno Haible  <bruno@clisp.org>
88617         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
88618         * lib/glthread/thread.h: Provide Win32 specific implementation.
88619         * modules/thread (Files): Add lib/glthread/thread.c.
88620         (Depends-on): Add lock.
88621         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
88623 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88625         New module 'yield'.
88626         * modules/yield: New file.
88627         * lib/glthread/yield.h: New file.
88628         * m4/yield.m4: New file.
88629         * MODULES.html.sh (Multithreading): Add yield.
88631 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88633         New module 'thread'.
88634         * modules/thread: New file.
88635         * lib/glthread/thread.h: New file.
88636         * m4/thread.m4: New file.
88637         * MODULES.html.sh (Multithreading): Add thread.
88639 2008-08-17  Bruno Haible  <bruno@clisp.org>
88641         * lib/glthread/lock.h: Include <stdlib.h> always.
88642         * lib/glthread/tls.h: Likewise.
88643         * lib/glthread/cond.h: Likewise.
88645 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88647         New module 'cond'.
88648         * modules/cond: New file.
88649         * lib/glthread/cond.h: New file.
88650         * lib/glthread/cond.c: New file.
88651         * m4/cond.m4: New file.
88652         * MODULES.html.sh (Multithreading): Add cond.
88654 2008-08-16  Eric Blake  <ebb9@byu.net>
88656         c-stack: fix regression on Irix 5.3 from 2008-06-21
88657         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
88658         sa_sigaction...
88659         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
88660         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
88661         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
88662         * modules/signal (Makefile.am): Use the value.
88663         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
88664         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
88665         * doc/posix-headers/signal.texi (signal.h): Document this
88666         portability issue.
88667         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
88668         Reported by Tom G. Christensen.
88670 2008-08-17  Bruno Haible  <bruno@clisp.org>
88672         New module 'threadlib'.
88673         * modules/threadlib: New file.
88674         * lib/glthread/threadlib.c: New file, extracted from
88675         lib/glthread/lock.c.
88676         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
88677         functions.
88678         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
88679         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
88680         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
88681         macros.
88682         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
88683         (gl_DISABLE_THREADS): Remove macro.
88684         * modules/lock (Files): Remove build-aux/config.rpath.
88685         (Depends-on): Remove havelib. Add threadlib.
88686         (configure.ac-early): Remove section.
88687         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
88688         * modules/tls (Depends-on): Remove lock. Add threadlib.
88689         (Link): New section, copied from threadlib.
88690         * MODULES.html.sh (Multithreading): Add threadlib.
88692 2008-08-14  Bruno Haible  <bruno@clisp.org>
88694         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
88695         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
88696         glthread_rwlock_unlock, glthread_rwlock_destroy,
88697         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
88698         glthread_recursive_lock_destroy): Define as macros always.
88699         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
88700         glthread_lock_lock.
88701         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
88702         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
88703         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
88704         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
88705         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
88706         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
88707         (glthread_recursive_lock_lock_func): Renamed from
88708         glthread_recursive_lock_lock.
88709         (glthread_recursive_lock_unlock_func): Renamed from
88710         glthread_recursive_lock_unlock.
88711         (glthread_recursive_lock_destroy_func): Renamed from
88712         glthread_recursive_lock_destroy.
88714 2008-08-14  Bruno Haible  <bruno@clisp.org>
88716         * lib/glthread/lock.h: Renamed from lib/lock.h.
88717         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
88718         * lib/glthread/tls.h: Renamed from lib/tls.h.
88719         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
88720         * lib/fstrcmp.c: Update includes.
88721         * lib/strsignal.c: Update includes.
88722         * modules/lock (Files, Makefile.am): Update.
88723         (Include): Change to "glthread/lock.h".
88724         * modules/tls (Files, Makefile.am): Update.
88725         (Include): Change to "glthread/tls.h".
88726         * tests/test-lock.c: Update includes.
88727         * tests/test-tls.c: Update includes.
88728         * NEWS: Mention the renamed header files.
88730 2008-08-11  Jim Meyering  <meyering@redhat.com>
88732         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
88734 2008-08-11  Eric Blake  <ebb9@byu.net>
88736         test-c-stack: avoid C99-ism
88737         * tests/test-c-stack.c (main): Fix whitespace, move declaration
88738         before statement.
88739         Reported by Alain Guibert.
88741 2008-08-10  Jim Meyering  <meyering@redhat.com>
88743         ensure that return value of uinttostr et al are not ignored
88744         * lib/inttostr.h (__GNUC_PREREQ): Define.
88745         (__attribute_warn_unused_result__): Define.
88746         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
88748 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
88750         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
88751         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
88753 2008-08-07  Jim Meyering  <meyering@redhat.com>
88755         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
88757         * modules/mkstemp (License): Relicense under LGPLv2+.
88758         * modules/tempname (License): Likewise.
88760 2008-08-06  Bruno Haible  <bruno@clisp.org>
88762         * lib/poll.c (poll): Further micro-optimization.
88764 2008-08-06  Jim Meyering  <meyering@redhat.com>
88766         inet_pton.c: use locale-independent tolower
88767         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
88768         (inet_pton6): Use c_tolower rather than tolower.
88769         * modules/inet_pton (Depends-on): Add c-ctype.
88771 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
88773         * lib/poll.c (poll): Avoid division when timeout is 0, cache
88774         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
88776 2008-08-06  Jim Meyering  <meyering@redhat.com>
88778         * modules/inet_pton (License): Relicense under LGPLv2+.
88780 2008-08-03  Bruno Haible  <bruno@clisp.org>
88782         Additional non-aborting API for lock and tls.
88783         * lib/lock.h: Include <errno.h>.
88784         (glthread_lock_init): New macro/function.
88785         (gl_lock_init): Define as wrapper around glthread_lock_init.
88786         (glthread_lock_lock): New macro/function.
88787         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
88788         (glthread_lock_unlock): New macro/function.
88789         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
88790         (glthread_lock_destroy): New macro/function.
88791         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
88792         (glthread_rwlock_init): New macro/function.
88793         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
88794         (glthread_rwlock_rdlock): New macro/function.
88795         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
88796         (glthread_rwlock_wrlock): New macro/function.
88797         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
88798         (glthread_rwlock_unlock): New macro/function.
88799         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
88800         (glthread_rwlock_destroy): New macro/function.
88801         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
88802         (glthread_recursive_lock_init): New macro/function.
88803         (gl_recursive_lock_init): Define as wrapper around
88804         glthread_recursive_lock_init.
88805         (glthread_recursive_lock_lock): New macro/function.
88806         (gl_recursive_lock_lock): Define as wrapper around
88807         glthread_recursive_lock_lock.
88808         (glthread_recursive_lock_unlock): New macro/function.
88809         (gl_recursive_lock_unlock): Define as wrapper around
88810         glthread_recursive_lock_unlock.
88811         (glthread_recursive_lock_destroy): New macro/function.
88812         (gl_recursive_lock_destroy): Define as wrapper around
88813         glthread_recursive_lock_destroy.
88814         (glthread_once): New macro/function.
88815         (gl_once): Define as wrapper around glthread_once.
88816         Update function declarations.
88817         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
88818         glthread_rwlock_init. Return error code.
88819         (glthread_rwlock_rdlock_multithreaded): Renamed from
88820         glthread_rwlock_rdlock. Return error code.
88821         (glthread_rwlock_wrlock_multithreaded): Renamed from
88822         glthread_rwlock_wrlock. Return error code.
88823         (glthread_rwlock_unlock_multithreaded): Renamed from
88824         glthread_rwlock_unlock. Return error code.
88825         (glthread_rwlock_destroy_multithreaded): Renamed from
88826         glthread_rwlock_destroy. Return error code.
88827         (glthread_recursive_lock_init_multithreaded): Renamed from
88828         glthread_recursive_lock_init. Return error code.
88829         (glthread_recursive_lock_lock_multithreaded): Renamed from
88830         glthread_recursive_lock_lock. Return error code.
88831         (glthread_recursive_lock_unlock_multithreaded): Renamed from
88832         glthread_recursive_lock_unlock. Return error code.
88833         (glthread_recursive_lock_destroy_multithreaded): Renamed from
88834         glthread_recursive_lock_destroy. Return error code.
88835         (glthread_once_call): Make static.
88836         (glthread_once_multithreaded): Renamed from glthread_once.
88837         * lib/tls.h: Include <errno.h>.
88838         (glthread_tls_key_init): New macro/function.
88839         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
88840         (glthread_tls_set): New macro/function.
88841         (gl_tls_set): Define as wrapper around glthread_tls_set.
88842         (glthread_tls_key_destroy): New macro/function.
88843         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
88844         Update function declarations.
88845         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
88846         glthread_tls_get.
88847         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88849 2008-08-04  Eric Blake  <ebb9@byu.net>
88851         gnumakefile: use space, not TAB, outside of targets
88852         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
88854 2008-08-02  Jim Meyering  <meyering@redhat.com>
88856         getdate.y: avoid locale-dependent date parsing failure
88857         In Turkish locales, getdate would fail to recognize keywords
88858         containing a lowercase "i".  The solution is not to rely on
88859         locale-sensitive case-conversion.
88860         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
88861         (lookup_word): Use c_toupper in place of toupper.
88862         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
88863         Reported by Vefa Bicakci <bicave@superonline.com> in
88864         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
88865         * modules/getdate (Depends-on): Add c-ctype.
88867 2008-08-02  Bruno Haible  <bruno@clisp.org>
88869         * gnulib-tool (func_import): When updating or creating a .gitignore
88870         file, prepend each added line with a slash, and ignore leading slashes
88871         from the existing lines.
88872         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
88874 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88876         Portability fix for GNU make 3.79.1.
88877         * top/GNUmakefile: Avoid 'else COND', which older GNU make
88878         versions do not understand.
88880 2008-08-01  Bruno Haible  <bruno@clisp.org>
88882         Work around bug of HP-UX 10.20 cc with -0.0 literal.
88883         * tests/test-isnanf.h (zero): New variable.
88884         (main): Avoid literal -0.0f.
88885         * tests/test-isnand.h (zero): New variable.
88886         (main): Avoid literal -0.0.
88887         * tests/test-isnanl.h (zero): New variable.
88888         (main): Avoid literal -0.0L.
88889         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
88890         (test_float, test_double, test_long_double): Avoid literals -0.0f,
88891         -0.0, -0.0L.
88892         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
88893         (test_signbitd): Avoid literal -0.0.
88894         (test_signbitl): Avoid literal -0.0L.
88895         * tests/test-ceilf1.c (zero): New variable.
88896         (main): Avoid literal -0.0f.
88897         * tests/test-ceill.c (zero): New variable.
88898         (main): Avoid literal -0.0L.
88899         * tests/test-floorf1.c (zero): New variable.
88900         (main): Avoid literal -0.0f.
88901         * tests/test-floorl.c (zero): New variable.
88902         (main): Avoid literal -0.0L.
88903         * tests/test-roundf1.c (zero): New variable.
88904         (main): Avoid literal -0.0f.
88905         * tests/test-round1.c (zero): New variable.
88906         (main): Avoid literal -0.0.
88907         * tests/test-roundl.c (zero): New variable.
88908         (main): Avoid literal -0.0L.
88909         * tests/test-truncf1.c (zero): New variable.
88910         (main): Avoid literal -0.0f.
88911         * tests/test-trunc1.c (zero): New variable.
88912         (main): Avoid literal -0.0.
88913         * tests/test-truncl.c (zero): New variable.
88914         (main): Avoid literal -0.0L.
88915         * tests/test-frexp.c (zero): New variable.
88916         (main): Avoid literal -0.0.
88917         * tests/test-frexpl.c (zero): New variable.
88918         (main): Avoid literal -0.0L.
88919         * tests/test-ldexpl.c (zero): New variable.
88920         (main): Avoid literal -0.0L.
88921         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
88922         (zerod, zerol): New variables.
88923         (test_function): Avoid literals -0.0, -0.0L.
88924         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
88925         (zerod, zerol): New variables.
88926         (test_function): Avoid literals -0.0, -0.0L.
88927         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
88928         (zerod, zerol): New variables.
88929         (test_function): Avoid literals -0.0, -0.0L.
88930         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
88931         (zerod, zerol): New variables.
88932         (test_function): Avoid literals -0.0, -0.0L.
88933         * tests/test-strtod.c (zero): New variable.
88934         (main): Avoid literal -0.0.
88935         Reported by Jonathan C. Patschke <jp@centtech.com>.
88937 2008-07-31  Jim Meyering  <meyering@redhat.com>
88939         sha256.h: correct definition of SHA224_DIGEST_SIZE
88940         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
88941         Reported by Paulie Pena IV <paulie4@gmail.com>.
88942         Define as 224 / 8, rather than as a literal.
88943         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
88944         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
88945         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
88947 2008-07-31  Bruno Haible  <bruno@clisp.org>
88949         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
88950         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
88951         Reported by Jonathan Patschke <jp@centtech.com>.
88953 2008-07-31  Bruno Haible  <bruno@clisp.org>
88955         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
88956         Reported by Paolo Bonzini <bonzini@gnu.org>.
88958 2008-07-30  Eric Blake  <ebb9@byu.net>
88960         test-strtod: allow compilation without -lm
88961         * tests/test-strtod.c (main): Avoid link dependence on fabs.
88962         Reported by Dennis Clarke <blastwave@gmail.com>.
88964 2008-07-28  Jim Meyering  <meyering@redhat.com>
88966         bootstrap: work also when there are no .po files in po/
88967         * build-aux/bootstrap (update_po_files): Complete the change
88968         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
88970 2008-07-27  Jim Meyering  <meyering@redhat.com>
88972         * users.txt: Add zile.
88974 2008-07-26  Ben Pfaff  <blp@gnu.org>
88976         Add missing dependencies on new m4/exponent[fdl].m4 files.
88977         * modules/isnanf-nolibm: Add m4/exponentf.m4.
88978         * modules/isnand-nolibm: Add m4/exponentd.m4.
88979         * modules/isnanl-nolibm: Add m4/exponentl.m4.
88980         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
88981         m4/isnan[fdl].m4, because the macros actually used moved.
88982         Reported by Jim Meyering.
88984 2008-07-14  Ben Pfaff  <blp@gnu.org>
88986         Add isinf module.
88987         * lib/isinf.c: New file.
88988         * lib/math.in.h: Define isinf macro if we have decided to replace
88989         it.
88990         * m4/isinf.m4: New file.
88991         * m4/math_h.m4: Initialize and substitute variables for isinf
88992         module.
88993         * modules/isinf: New file.
88994         * modules/isinf-tests: New file.
88995         * modules/math: Add substitutions for new module.
88996         * tests/test-isinf.c: New file.
88997         * doc/posix-functions/isinf.texi: Mention new module.
88998         * MODULES.html.sh: Mention new module.
89000 2008-07-14  Ben Pfaff  <blp@gnu.org>
89002         Factor out some macros for use by additional modules.
89003         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
89004         exponentf.m4.
89005         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
89006         exponentd.m4.
89007         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
89008         file exponentl.m4.
89009         * m4/exponentf.m4: New file.
89010         * m4/exponentd.m4: New file.
89011         * m4/exponentl.m4: New file.
89012         * modules/isnanf: Use new file m4/exponentf.m4.
89013         * modules/isnand: Use new file m4/exponentd.m4.
89014         * modules/isnanl: Use new file m4/exponentl.m4.
89016 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
89018         mktime.c: normalize tp->tm_isdst value to -1/0/1.
89019         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
89020         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
89021         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
89023         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
89024         readlink on platforms without PATH_MAX.
89026 2008-07-21  Eric Blake  <ebb9@byu.net>
89028         Warn, not fail, on stale version.
89029         * top/GNUmakefile (_curr-ver): Tone down previous patch.
89031         Don't allow installation with stale devel version number.
89032         * top/GNUmakefile (_is-install-target): New macro.
89033         (_curr-ver): Forbid installation with stale version number.
89035 2008-07-20  Bruno Haible  <bruno@clisp.org>
89037         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
89038         TESTS_ENVIRONMENT.
89039         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
89041 2008-07-20  Bruno Haible  <bruno@clisp.org>
89043         * lib/c-stack.h (c_stack_action): Add documentation.
89044         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
89046 2008-07-20  Bruno Haible  <bruno@clisp.org>
89048         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
89049         * modules/readlink (License): Likewise.
89051 2008-07-17  Eric Blake  <ebb9@byu.net>
89053         * modules/c-stack (Link): Fix typo.
89055         Make c-stack use libsigsegv, when available.
89056         * modules/c-stack (Depends-on): Add libsigsegv.
89057         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
89058         needed.
89059         * lib/c-stack.c (SIGSTKSZ): Define fallback.
89060         (segv_handler, overflow_handler, c_stack_action)
89061         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
89062         implementation when libsigsegv is available, but only when using
89063         the library is necessary.
89064         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
89065         comment, explaining why XSI check fails on Linux.
89066         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
89067         * tests/test-c-stack2.sh: Tweak skip message.
89068         * NEWS: Document new link-time requirements.
89070 2008-07-16  Eric Blake  <ebb9@byu.net>
89072         c-stack: Expose false positives when not using libsigsegv.
89073         * modules/c-stack-tests (Files): Expand test.
89074         * tests/test-c-stack.c (main): Add means to conditionally trigger
89075         non-overflow SIGSEGV.
89076         * tests/test-c-stack2.sh: New file.
89078 2008-07-14  Bruno Haible  <bruno@clisp.org>
89080         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
89081         Reported by Eric Blake.
89083 2008-07-14  Sam Steingold  <sds@gnu.org>
89084             Bruno Haible  <bruno@clisp.org>
89086         New module libsigsegv.
89087         * modules/libsigsegv: New file.
89088         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
89089         modifications.
89090         * MODULES.html.sh (Signal handling): New section.
89092 2008-07-14  Bruno Haible  <bruno@clisp.org>
89094         * modules/unictype/ctype-* (Description): Add the word "function".
89095         Improves the resulting doc in MODULES.html.
89097 2008-07-12  Ben Pfaff  <blp@gnu.org>
89099         Add longlong module.
89100         * modules/longlong: New file.
89102 2008-07-12  Bruno Haible  <bruno@clisp.org>
89104         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
89105         to empty.
89107 2008-07-10  Ben Pfaff  <blp@gnu.org>
89109         Add isnan module.
89110         * doc/posix-functions/isnan.texi: Mention new module.
89111         * lib/math.in.h: Define isnan macro if we have decided to replace
89112         it.
89113         * m4/isnan.m4: New file.
89114         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
89115         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
89116         also.
89117         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
89118         redundancy.
89119         * m4/math_h.m4: Initialize and substitute variables for isnan
89120         module.
89121         * modules/isnan: New file.
89122         * modules/isnan-tests: New file.
89123         * modules/math: Add substitutions for new module.
89124         * tests/test-isnan.c: New file.
89125         * MODULES.html.sh: Mention new module.
89127 2008-07-10  Ben Pfaff  <blp@gnu.org>
89129         Add isnanf module.
89130         * lib/isnanf.m4: New file.
89131         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
89132         (gl_HAVE_ISNANF_IN_LIBM): New macro.
89133         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
89134         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
89135         * modules/isnanf: New file.
89136         * modules/isnanf-tests: New file.
89137         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
89138         files.
89139         * tests/test-isnanf-nolibm.c: factored most of its contents into
89140         new file tests/test-isnanf.h.
89141         * tests/test-isnanf.h: New file.
89142         * tests/test-isnanf.c: New file.
89143         * MODULES.html.sh: Mention new module.
89144         * doc/glibc-functions/isnanf.texi: Mention new module.
89146 2008-07-10  Ben Pfaff  <blp@gnu.org>
89148         Add isnand module.
89149         * lib/isnand.h: New file.
89150         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
89151         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
89152         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
89153         functionality also.
89154         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
89155         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
89156         (gl_HAVE_ISNAND_IN_LIBM): New macro.
89157         * modules/isnand: New file.
89158         * modules/isnand-tests: New file.
89159         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
89160         files.
89161         * tests/test-isnand-nolibm.c: factored most of its contents into
89162         new file tests/test-isnand.h.
89163         * tests/test-isnand.h: New file.
89164         * tests/test-isnand.c: New file.
89165         * MODULES.html.sh: Mention new module.
89167 2008-07-10  Ben Pfaff  <blp@gnu.org>
89169         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
89170         * lib/isnand.h: Rename lib/isnand-nolibm.h.
89171         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
89172         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
89173         * modules/isnanf-nolibm: Update references to renamed files.
89174         * modules/isnand-nolibm: Likewise.
89175         * modules/isnanf-nolibm-tests: Likewise.
89176         * modules/isnand-nolibm-tests: Likewise.
89177         * lib/frexp.c: Likewise.
89178         * lib/isfinite.c: Likewise.
89179         * lib/signbitd.c: Likewise.
89180         * lib/signbitf.c: Likewise.
89181         * lib/vasnprintf.c: Likewise.
89182         * tests/test-ceilf1.c: Likewise.
89183         * tests/test-ceilf2.c: Likewise.
89184         * tests/test-floorf1.c: Likewise.
89185         * tests/test-floorf2.c: Likewise.
89186         * tests/test-frexp.c: Likewise.
89187         * tests/test-round1.c: Likewise.
89188         * tests/test-round2.c: Likewise.
89189         * tests/test-roundf1.c: Likewise.
89190         * tests/test-strtod.c: Likewise.
89191         * tests/test-trunc1.c: Likewise.
89192         * tests/test-trunc2.c: Likewise.
89193         * tests/test-truncf1.c: Likewise.
89194         * tests/test-truncf2.c: Likewise.
89195         * NEWS: Mention the renamed header files.
89197 2008-07-11  Jim Meyering  <meyering@redhat.com>
89199         vc-list-files: make the last-resort awk code more portable
89200         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
89201         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
89202         does not support it.
89204 2008-07-10  Eric Blake  <ebb9@byu.net>
89206         Work with tar's bootstrap.
89207         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
89208         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
89209         an m4 comment.
89211 2008-07-09  Jim Meyering  <meyering@redhat.com>
89213         posix-shell.m4: fix typo that made this test malfunction
89214         * m4/posix-shell.m4: Remove capitalization in variable name.
89216 2008-07-08  Bruno Haible  <bruno@clisp.org>
89218         * m4/onceonly.m4: Update comments.
89219         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89221 2008-07-04  Jim Meyering  <meyering@redhat.com>
89223         * users.txt: Add vc-dwim.
89224         (bison, coreutils): Use the gitweb URL.
89226 2008-07-03  Jim Meyering  <meyering@redhat.com>
89228         * users.txt: Add libffcall.  From Sam Steingold.
89230 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
89232         getdate.y: do not ignore TZ with relative day, month or year offset
89233         * lib/getdate.y (get_date): Move the tz-handling block to follow the
89234         relative-date-handling, since otherwise, the latter would clobber the
89235         sole output (an updated Start value) of the tz-handling block.
89236         * tests/test-getdate.c: Tests for the fix
89238 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89240         Recognize 'foo_LIBRARIES += libgnu.a'.
89241         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
89242         makefile snippet has already specified an installation location,
89243         also using '+='.
89245 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
89247         getdate.y: factor out common actions
89248         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
89249         Use them in place of open-coded actions.
89251 2008-07-01  Simon Josefsson  <simon@josefsson.org>
89253         Add self-test for getdate module.
89254         * modules/getdate-tests: New file.
89255         * tests/test-getdate.c: New file.
89257 2008-06-29  Bruno Haible  <bruno@clisp.org>
89259         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
89260         .gitignore.
89261         Reported by Sylvain Beucler <beuc@beuc.net>.
89263 2008-06-29  Bruno Haible  <bruno@clisp.org>
89265         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
89266         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
89268 2008-06-29  Bruno Haible  <bruno@clisp.org>
89270         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
89271         EXTRA_DIST.
89272         Reported by Sylvain Beucler <beuc@beuc.net>.
89274 2008-06-26  Jim Meyering  <meyering@redhat.com>
89276         make several modules depend on the "open" module
89277         This provides slightly increased consistency when opening-for-write
89278         the name of a non-directory spelled with a trailing slash.
89279         * modules/chdir-safer: Likewise.
89280         * modules/chown: Likewise.
89281         * modules/clean-temp: Likewise.
89282         * modules/copy-file: Likewise.
89283         * modules/fchdir: Likewise.
89284         * modules/fcntl-safer: Likewise.
89285         * modules/pipe: Likewise.
89286         * modules/utime: Likewise.
89287         Prompted by Eric Blake and Bruno Haible.
89289 2008-06-24  Andreas Schwab  <schwab@suse.de>
89291         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
89292         literals can be used as initializers for global variables.
89294 2008-06-23  Eric Blake  <ebb9@byu.net>
89296         Make gnulib-cache.m4 easier to diff.
89297         * gnulib-tool (func_import): Allow newlines when reading cached
89298         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
89300 2008-06-23  Bruno Haible  <bruno@clisp.org>
89302         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
89303         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
89304         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
89305         m4/signalblocking.m4.
89306         (gl_PREREQ_SIGACTION): Don't invoke it.
89307         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
89308         gl_PREREQ_SIG_HANDLER_H.
89309         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
89310         Don't check for sigaction here.
89312 2008-06-23  Bruno Haible  <bruno@clisp.org>
89314         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
89315         (install_handlers): Don't set the SA_RESETHAND flag.
89317 2008-06-23  Bruno Haible  <bruno@clisp.org>
89319         * m4/sigaction.m4: Comment fixes.
89320         * lib/signal.in.h: Likewise.
89322 2008-06-23  Eric Blake  <ebb9@byu.net>
89324         Fix typo.
89325         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
89327         Avoid SA_ namespace.
89328         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
89329         Reported by Ralf Wildenhues.
89331         Avoid test failure due to SA_RESTORER.
89332         * tests/test-sigaction.c (SA_MASK): New macro.
89333         (main): Avoid failing due to extension flags being set.
89334         Reported by Jim Meyering.
89336         Revert use of sig-handler.h in sigprocmask.c.
89337         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
89338         it requires the existence of struct sigaction.
89339         * lib/sigprocmask.c (handler_t): Restore typedef.
89340         (rpl_signal, old_handlers): Use local type.
89342 2008-06-22  Bruno Haible  <bruno@clisp.org>
89344         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
89345         conditionally.
89346         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89348 2008-06-22  Bruno Haible  <bruno@clisp.org>
89350         * doc/posix-functions/siginterrupt.texi: Move note.
89352         * lib/signal.in.h (SA_RESTART): New macro.
89353         * lib/sigaction.c: Update comment.
89355         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
89357         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
89358         (gl_PREREQ_SIGPROCMASK): Invoke it.
89359         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
89361         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
89363         * lib/sigprocmask.c: Update a comment.
89365 2008-06-21  Eric Blake  <ebb9@byu.net>
89367         Use sigaction module rather than signal().
89368         * modules/c-stack (Depends-on): Add sigaction.
89369         * modules/fatal-signal (Depends-on): Likewise.
89370         * modules/nanosleep (Depends-on): Likewise.
89371         * modules/sigprocmask (Files): Add sig-handler.h.
89372         * modules/sigaction (Files): Likewise.
89373         * lib/sig-handler.h (get_handler): New file, suggested by Paul
89374         Eggert.
89375         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
89376         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
89377         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
89378         (init_fatal_signals): Likewise.
89379         * lib/nanosleep.c (rpl_nanosleep): Likewise.
89380         (siginterrupt): Delete fallback.
89381         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
89382         instead.
89383         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
89384         siginterrupt.
89386         New module sigaction, for mingw.
89387         * modules/sigaction: New module...
89388         * modules/sigaction-tests: ...and its test.
89389         * m4/sigaction.m4: New file.
89390         * lib/sigaction.c: Likewise.
89391         * tests/test-sigaction.c: Likewise.
89392         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
89393         * modules/signal (Makefile.am): Likewise.
89394         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
89395         needed.
89396         * doc/posix-headers/signal.texi (signal.h): Mention provided
89397         types.
89398         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
89399         that sigaction is preferable.
89400         * doc/posix-functions/sigaction.texi (sigaction): Mention new
89401         module.
89402         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89403         sigaction.
89405         Improve robustness of sigprocmask by overriding signal.
89406         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
89407         is in use.
89408         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
89409         (SIGKILL, SIGSTOP): Provide fallbacks.
89410         (rpl_signal): Implement.
89411         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
89412         signal can be called inside handlers.
89414         Fix nanosleep module on mingw.
89415         * modules/nanosleep (Depends-on): Add sys_select.
89416         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
89418         Fix licensing of sigprocmask.
89419         * modules/raise (License): Relicense as LGPL.
89421 2008-06-21  Bruno Haible  <bruno@clisp.org>
89423         * lib/propername.c (proper_name_utf8): Don't use the transliterated
89424         result if it contains question marks.
89425         Reported by Michael Geng <linux@michaelgeng.de>.
89427 2008-06-19  Bruno Haible  <bruno@clisp.org>
89429         Fix CVS-ism.
89430         * doc/gnulib.texi: Include updated-stamp.texi.
89431         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
89432         (updated-stamp.texi): New rule.
89433         (gnulib.info): Depend on it.
89434         * doc/.gitignore: Add updated-stamp.texi.
89435         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
89437 2008-06-19  Bruno Haible  <bruno@clisp.org>
89439         * doc/Makefile (gnulib.info): Update and simplify dependencies.
89440         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
89442 2008-06-19  Eric Blake  <ebb9@byu.net>
89444         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
89445         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
89446         Reported by Stepan Kasal.
89448 2008-06-18  Bruno Haible  <bruno@clisp.org>
89450         * lib/fatal-signal.c (init_fatal_signals): Add comment.
89451         Reported by Eric Blake.
89453 2008-06-18  Eric Blake  <ebb9@byu.net>
89455         Work around cygwin 1.5.25 strsignal bug.
89456         * tests/test-strsignal.c: Allow for const char *.
89457         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
89459 2008-06-18  Simon Josefsson  <simon@josefsson.org>
89461         * users.txt: Update URL to article and add author/date
89462         information.
89464 2008-06-17  Bruno Haible  <bruno@clisp.org>
89466         New macro gl_DISABLE_THREADS.
89467         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
89468         if the user did not pass --enable-threads or --disable-threads option.
89469         (gl_DISABLE_THREADS): New macro.
89470         Reported by Eric Blake <ebb9@byu.net>.
89472 2008-06-17  Bruno Haible  <bruno@clisp.org>
89474         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
89475         when the macro ignores it.
89476         Based on a patch by Eric Blake <ebb9@byu.net>.
89478 2008-06-17  Bruno Haible  <bruno@clisp.org>
89480         * modules/tls (License): Change to LGPLv2+.
89481         Reported by Eric Blake.
89483 2008-06-17  Eric Blake  <ebb9@byu.net>
89485         Simplify c-stack prerequisites.
89486         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
89487         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
89488         no longer requires <ucontext.h> to exist.  Optimize setrlimit
89489         check.
89490         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
89491         <sys/resource.h>.
89493         Move c-stack test into testsuite.
89494         * modules/c-stack-tests: New file.
89495         * lib/c-stack.c [DEBUG]: Move test program...
89496         * tests/test-c-stack.c: ...into this new file.  Skip rather than
89497         fail test if sigaltstack is lacking.
89498         * tests/test-c-stack.sh: New driver file.
89500 2008-06-16  Eric Blake  <ebb9@byu.net>
89502         Use raise module consistently.
89503         * modules/fatal-signal (Depends-on): Add raise.
89504         * modules/sigprocmask (Depends-on): Likewise.
89505         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
89506         * lib/sigprocmask.c (sigprocmask): Likewise.
89507         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
89508         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
89510         Fix compliance bug in sigpending.
89511         * lib/sigprocmask.c (sigpending): Return pending array via
89512         parameter, not return value.
89514 2008-06-14  Eric Blake  <ebb9@byu.net>
89516         Improve obstack-printf test code.
89517         * tests/test-obstack-printf.c (test_function): Fix comment, and
89518         simplify usage of obstack_* in macros.  Add a test for coverage.
89519         Reported by Bruno Haible.
89521 2008-06-14  Bruno Haible  <bruno@clisp.org>
89523         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
89524         array size as a constant, not as a const variable.
89525         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
89526         AC_USE_SYSTEM_EXTENSIONS.
89527         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
89528         Test whether the obstack_printf function actually exists.
89529         * modules/obstack-printf (Depends-on): Add extensions.
89530         (Include): Remove obstack.h.
89531         * modules/obstack-printf-posix (Depends-on): Add extensions.
89532         (Include): Remove obstack.h.
89534 2008-06-13  Eric Blake  <ebb9@byu.net>
89536         Add obstack-printf and obstack-printf-posix modules.
89537         * modules/obstack-printf: New file.
89538         * modules/obstack-printf-posix: Likewise.
89539         * MODULES.html.sh (Misc): Mention them.
89540         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
89541         Likewise.
89542         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
89543         Likewise.
89544         * modules/stdio (Makefile.am): Accomodate new modules.
89545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89546         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
89547         Declare.
89548         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
89549         functions.
89550         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
89551         (gl_REPLACE_OBSTACK_PRINTF): New macros
89552         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
89553         * tests/test-obstack-printf.c: New file.
89554         * modules/obstack-printf-tests: Likewise.
89555         * modules/obstack-printf-posix-tests: Likewise.
89557 2008-06-11  Bruno Haible  <bruno@clisp.org>
89559         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
89560         * lib/open.c: Include errno.h.
89561         (open): Fail when attempting to write to a file that has a trailing
89562         slash.
89563         * tests/test-open.c (main): Test against trailing slash bug.
89564         * doc/posix-functions/open.texi: Mention the trailing slash bug.
89566 2008-06-10  Bruno Haible  <bruno@clisp.org>
89568         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
89569         for $? to work inside the trap command, with various /bin/sh-s.
89570         * tests/test-vc-list-files-cvs.sh: Likewise.
89572 2008-06-10  Bruno Haible  <bruno@clisp.org>
89574         * lib/acl-internal.h: Don't include gettext.h here.
89575         * lib/set-mode-acl.c: Include gettext.h here.
89576         * lib/copy-acl.c: Likewise.
89578 2008-06-10  Bruno Haible  <bruno@clisp.org>
89580         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
89581         * lib/wait-process.c (wait_subprocess): Likewise.
89582         * lib/execute.h (execute): Add termsigp argument.
89583         * lib/execute.c (execute): Likewise.
89584         * lib/csharpcomp.c (compile_csharp_using_pnet,
89585         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
89586         * lib/csharpexec.c (execute_csharp_using_pnet,
89587         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
89588         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
89589         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
89590         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
89591         is_jikes_present): Update.
89592         * lib/javaexec.c (execute_java_class): Update.
89593         * lib/javaversion.c (execute_and_read_line): Update.
89594         * NEWS: Document the changes.
89595         Reported by Eric Blake.
89597 2008-06-10  Eric Blake  <ebb9@byu.net>
89599         Add missing include.
89600         * tests/test-strstr.c (includes): Add <signal.h>.
89601         * tests/test-strcasestr.c (includes): Likewise.
89602         * tests/test-memmem.c (includes): Likewise.
89604 2008-06-10  Bruno Haible  <bruno@clisp.org>
89606         * lib/wait-process.c (wait_subprocess): Add an assertion.
89608 2008-06-10  Bruno Haible  <bruno@clisp.org>
89610         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
89612 2008-06-10  Bruno Haible  <bruno@clisp.org>
89614         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
89615         using alarm().
89616         * tests/test-strcasestr.c (main): Likewise.
89617         * tests/test-strstr.c (main): Likewise.
89619 2008-06-09  Bruno Haible  <bruno@clisp.org>
89621         Work around the Solaris 10 ACE ACLs ABI change.
89622         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
89623         declare if ACL_NO_TRIVIAL is present.
89624         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
89625         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
89626         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
89627         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
89628         define if ACL_NO_TRIVIAL is present.
89629         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
89630         and use the current ABI.
89631         (file_has_acl): Use same #if condition as elsewhere.
89632         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
89633         in use, and use the current ABI.
89634         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
89635         Reported by Jim Meyering.
89637 2008-06-09  Eric Blake  <ebb9@byu.net>
89639         Work around environments that (stupidly) ignore SIGALRM.
89640         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
89641         before using alarm().
89642         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
89643         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
89644         Reported by Ian Beckwith <ianb@erislabs.net>.
89646         Produce autobuild blurb earlier in log.
89647         * modules/autobuild (configure.ac-early): Move AB_INIT here.
89649 2008-06-09  Jim Meyering  <meyering@redhat.com>
89650         and Ondřej Vašík  <ovasik@redhat.com>
89652         utimens.c: correct kernel bug work-around
89653         Ondřej Vašík found that the invalid return value of 280 indicates
89654         failure, not success, and the kernel bug we're trying to work
89655         around affects not just the utimensat call, but also the fallback
89656         futimens call.
89657         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
89658         not success.
89659         [HAVE_FUTIMENS]: Use the same work-around, here.
89661 2008-06-09  Jim Meyering  <meyering@redhat.com>
89663         add more guards around definition of ACE_-related code
89664         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
89665         ALLOW and ACE_OWNER are also defined.
89667 2008-06-08  Bruno Haible  <bruno@clisp.org>
89669         * lib/acl-internal.h: Add me as co-author.
89670         * lib/file-has-acl.c: Likewise.
89671         * lib/set-mode-acl.c: Likewise.
89672         * lib/copy-acl.c: Likewise.
89674 2008-06-08  Bruno Haible  <bruno@clisp.org>
89676         Add support for AIX ACLs.
89677         * lib/acl-internal.h (acl_nontrivial): New declaration.
89678         * lib/file-has-acl.c (acl_nontrivial): New function.
89679         (file_has_acl): Add implementation using AIX 4 ACL API.
89680         * lib/set-mode-acl.c (qset_acl): Likewise.
89681         * lib/copy-acl.c (qcopy_acl): Likewise.
89683 2008-06-08  Bruno Haible  <bruno@clisp.org>
89685         Add support for HP-UX ACLs.
89686         * lib/acl-internal.h (acl_nontrivial): New declaration.
89687         * lib/file-has-acl.c (acl_nontrivial): New function.
89688         (file_has_acl): Add implementation using HP-UX 11 ACL API.
89689         * lib/set-mode-acl.c (qset_acl): Likewise.
89690         * lib/copy-acl.c (qcopy_acl): Likewise.
89692 2008-06-08  Bruno Haible  <bruno@clisp.org>
89694         Add support for Cygwin ACLs.
89695         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
89696         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
89697         the chmod_or_fchmod call.
89698         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
89700 2008-06-08  Bruno Haible  <bruno@clisp.org>
89702         Fix bug with setuid modes in Solaris 10+ code.
89703         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
89704         succeeded, when the mode contains some special bits.
89706 2008-06-08  Bruno Haible  <bruno@clisp.org>
89708         Add support for Solaris 7..10 ACLs.
89709         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
89710         declarations.
89711         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
89712         functions.
89713         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
89714         * lib/set-mode-acl.c (qset_acl): Likewise.
89715         * lib/copy-acl.c (qcopy_acl): Likewise.
89717 2008-06-08  Bruno Haible  <bruno@clisp.org>
89719         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
89720         declaration.
89721         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
89722         (acl_access_nontrivial): Remove MacOS X case.
89723         (file_has_acl): Use acl_extended_nontrivial.
89724         * lib/copy-acl.c (qcopy_acl): Likewise.
89726 2008-06-08  Bruno Haible  <bruno@clisp.org>
89728         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
89730 2008-06-08  Jim Meyering  <meyering@redhat.com>
89732         * modules/acl (Maintainer): Add Bruno Haible.
89734 2008-06-07  Bruno Haible  <bruno@clisp.org>
89736         Improve support for Tru64 ACLs.
89737         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
89738         ACL on OSF/1.
89740 2008-06-07  Bruno Haible  <bruno@clisp.org>
89742         Add support for MacOS X ACLs.
89743         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
89744         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
89745         * lib/set-mode-acl.c (qset_acl): Likewise.
89746         * lib/copy-acl.c (qcopy_acl): Likewise.
89748 2008-06-07  Bruno Haible  <bruno@clisp.org>
89750         Fix memory leak introduced on 2008-05-22.
89751         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
89752         use.
89754 2008-06-07  Bruno Haible  <bruno@clisp.org>
89756         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
89757         to construct an empty ACL.
89759 2008-06-07  Bruno Haible  <bruno@clisp.org>
89761         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
89762         precisely.
89763         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
89765 2008-06-07  Bruno Haible  <bruno@clisp.org>
89767         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
89768         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
89770 2008-06-07  Bruno Haible  <bruno@clisp.org>
89772         * doc/posix-functions/_setjmp.texi: Explain the use of this function
89773         regardless of POSIX.
89774         * doc/posix-functions/_longjmp.texi: Likewise.
89775         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
89776         SystemV platform in this case.
89778 2008-06-06  Eric Blake  <ebb9@byu.net>
89780         Document abort() bugs.
89781         * doc/posix-functions/abort.texi (abort): Mention anomalies.
89783         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
89784         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
89785         sigsetjmp.
89786         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
89787         siglongjmp, but only as a macro.
89788         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
89789         is obsolete.
89790         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
89792         Tweak documentation to cover cygwin argz bugs.
89793         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
89794         argz bug fix; no code change needed since no cygwin releases
89795         occurred between the last fix and the bug being tested.
89796         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
89797         module and recently fixed cygwin bugs.
89798         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
89799         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
89800         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
89801         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
89802         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
89803         Likewise.
89804         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
89805         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
89806         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
89807         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
89808         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
89809         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
89810         Likewise.
89812         Avoid gcc warning on cygwin.
89813         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
89814         !ACL_NO_TRIVIAL]: Avoid unused variable.
89816 2008-06-05  Eric Blake  <ebb9@byu.net>
89818         Be tolerant of UNKNOWN version in gnulib-tool test dir.
89819         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
89820         git-version-gen fails to come up with a version.
89821         Reported by Simon Josefsson.
89823 2008-06-05  Jim Meyering  <meyering@redhat.com>
89824             Paul Eggert  <eggert@cs.ucla.edu>
89826         utimens.c: work around a probable Linux kernel bug
89827         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
89828         appears to be a kernel bug that causes utimensat to return 280
89829         instead of 0, indicating success.
89831 2008-06-04  Bruno Haible  <bruno@clisp.org>
89833         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
89834         2008-06-01 commit.
89836 2008-06-04  Bruno Haible  <bruno@clisp.org>
89838         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
89839         * lib/file-has-acl.c (acl_access_nontrivial): New function.
89840         (file_has_acl): Use it. Save errno afterwards.
89841         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
89843 2008-06-03  Bruno Haible  <bruno@clisp.org>
89845         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
89846         draft code. Simplify #ifs.
89847         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
89848         Put Solaris code after POSIX-draft code. Fix comments regarding
89849         Solaris 10, HP-UX. Mention Cygwin.
89850         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
89852 2008-06-03  Eric Blake  <ebb9@byu.net>
89854         Provide fallback for older kernels.
89855         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
89856         Provide runtime fallback if kernel lacks support.
89857         Reported by Mike Frysinger.
89859 2008-06-02  Bruno Haible  <bruno@clisp.org>
89861         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
89862         it exists.
89864 2008-06-02  Bruno Haible  <bruno@clisp.org>
89866         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
89867         * lib/copy-acl.c (qcopy_acl): Update comment.
89869 2008-06-02  Bruno Haible  <bruno@clisp.org>
89871         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
89872         like ACL APIs.
89874 2008-06-02  Bruno Haible  <bruno@clisp.org>
89876         * tests/test-file-has-acl.sh: Use different code for Cygwin.
89877         * tests/test-set-mode-acl.sh: Likewise.
89878         * tests/test-copy-acl.sh: Likewise.
89879         * tests/test-copy-file.sh: Likewise.
89881 2008-06-02  Bruno Haible  <bruno@clisp.org>
89883         * tests/test-file-has-acl.sh: Remove unused code.
89885 2008-06-01  Bruno Haible  <bruno@clisp.org>
89887         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
89888         (copy_acl): Just a wrapper around qcopy_acl that emits the error
89889         messages.
89890         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
89892 2008-06-01  Bruno Haible  <bruno@clisp.org>
89894         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
89895         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
89896         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
89897         APIs.
89898         * modules/acl-tests (configure.ac): Remove tests now contained in
89899         m4/acl.m4.
89901 2008-06-02  Jim Meyering  <meyering@redhat.com>
89903         announce-gen: use a better key-server host name
89904         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
89905         it may be more consistently reliable.  Suggested by Werner Koch
89906         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
89908 2008-06-01  Bruno Haible  <bruno@clisp.org>
89910         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
89911         Reported by Voroskoi Andras <voroskoi@gmail.com>.
89913 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
89915         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
89917 2008-06-01  Bruno Haible  <bruno@clisp.org>
89919         New ACL tests.
89920         * tests/test-file-has-acl.sh: New file.
89921         * tests/test-file-has-acl.c: New file.
89922         * tests/test-set-mode-acl.sh: New file.
89923         * tests/test-set-mode-acl.c: New file.
89924         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
89925         * tests/test-copy-acl.c: New file.
89926         * modules/acl-tests: New file, based on modules/copy-file-tests.
89927         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
89928         (Depends-on): Add acl-tests.
89929         (configure.ac): Remove checks.
89930         (Makefile.am): Don't create test-sameacls program here any more.
89932 2008-06-01  Bruno Haible  <bruno@clisp.org>
89934         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
89935         * tests/test-sameacls.c: Include progname.h.
89936         (main): Invoke set_program_name. Portability fixes for MacOS X,
89937         Solaris, HP-UX.
89939 2008-06-01  Bruno Haible  <bruno@clisp.org>
89941         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
89942         function.
89943         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
89945 2008-06-01  Bruno Haible  <bruno@clisp.org>
89947         * modules/rpmatch (Depends-on): Add strdup.
89949 2008-06-01  Bruno Haible  <bruno@clisp.org>
89951         * lib/pipe.c: Include unistd-safer.h.
89952         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
89953         * modules/pipe (Depends-on): Add unistd-safer.
89955 2008-05-30  Simon Josefsson  <simon@josefsson.org>
89957         * modules/autobuild (configure.ac): Call AB_INIT.
89959 2008-05-30  Simon Josefsson  <simon@josefsson.org>
89961         * tests/test-getaddrinfo.c: Don't print debug messages by default.
89962         Suggested by Bruno Haible <bruno@clisp.org>.
89964 2008-05-30  Simon Josefsson  <simon@josefsson.org>
89966         * tests/test-base64.c: Cast size_t to unsigned long when invoking
89967         printf.  Use %lu instead of %d.  Reported by Bruno Haible
89968         <bruno@clisp.org>.
89970 2008-05-29  Eric Blake  <ebb9@byu.net>
89972         Prefer new POSIX 200x interfaces over futimesat.
89973         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
89974         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
89975         when available.
89976         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
89978 2008-05-28  Bruno Haible  <bruno@clisp.org>
89980         * modules/stpcpy (License): Change to LGPLv2+.
89981         Requested by David Lutterkort <dlutter@redhat.com>.
89983 2008-05-27  Bruno Haible  <bruno@clisp.org>
89985         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
89986         current mingw.
89987         Reported by Jose E. Marchesi <jemarch@gnu.org>.
89989 2008-05-27  Bruno Haible  <bruno@clisp.org>
89991         * modules/iconv_open (Link): New section, from module 'iconv'.
89992         * modules/striconv (Link): Likewise.
89993         * modules/striconveh (Link): Likewise.
89994         * modules/xstriconv (Link): Likewise.
89995         * modules/unicodeio (Link): Likewise.
89996         * modules/propername (Link): Likewise.
89997         Reported by Jim Meyering.
89999 2008-05-26  Jim Meyering  <meyering@redhat.com>
90001         sha256: do not artificially restrict buffer length to be < 2^32
90002         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
90003         uint32_t to size_t.
90004         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
90005         to match.
90007         avoid unaligned access errors, e.g., on sparc
90008         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
90009         direct access through a possibly-unaligned uint64* pointer.
90010         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
90011         direct access through a possibly-unaligned uint32* pointer.
90012         Prompted by this patch from Tom "spot" Callaway:
90013         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
90015         sha512.c: fix typo in comment
90016         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
90018 2008-05-25  Bruno Haible  <bruno@clisp.org>
90020         * lib/set-mode-acl.c: Renamed from lib/acl.c.
90021         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
90022         (Makefile.am): Update lib_SOURCES.
90024 2008-05-25  Bruno Haible  <bruno@clisp.org>
90026         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
90028 2008-05-25  Jim Meyering  <meyering@redhat.com>
90030         useless-if-before-free: freed expr may have white-space differences
90031         * build-aux/useless-if-before-free: Recognize cases in which the
90032         freed expression differs from the tested one in embedded white
90033         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
90034         $1 was used, so we can't make any regexp shy.  Improved tests now
90035         detect this.
90037         useless-if-before-free: accept white space in the expression.
90038         * build-aux/useless-if-before-free: For now, any white space
90039         in the expression must be identical in the free argument.
90041         useless-if-before-free: efficiency tweak
90042         * build-aux/useless-if-before-free: Make the expression-matching
90043         regexp "shy".
90044         Make the *outer* regexp shy, not the expr-matching one.
90046         update code-in-comment to accept cast of free arg
90047         * build-aux/useless-if-before-free: Update regexp.
90049 2008-05-25  Bruno Haible  <bruno@clisp.org>
90051         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
90052         * modules/copy-file-tests (Files, Makefile.am): Update.
90053         * tests/test-copy-file.c (func_test_copy): Update.
90055 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
90057         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
90059 2008-05-23  Bruno Haible  <bruno@clisp.org>
90061         Improve support for ACLs on OSF/1.
90062         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
90063         Remove fallback for unknown flavors of ACLs.
90065 2008-05-22  Bruno Haible  <bruno@clisp.org>
90067         Add support for ACLs on OSF/1.
90068         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
90069         replacements.
90070         (acl_free_text): New macro fallback.
90071         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
90072         acl_free.
90073         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
90074         acl_free_text function. Require AC_C_INLINE.
90076 2008-05-22  Bruno Haible  <bruno@clisp.org>
90078         Make copy_acl work on MacOS X 10.5.
90079         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
90080         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
90081         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
90082         If MODE_INSIDE_ACL, don't assume that every system has the same text
90083         representation for ACLs as FreeBSD.
90084         * lib/copy-acl.c (copy_acl): Add support for platforms with
90085         !MODE_INSIDE_ACL.
90086         * lib/file-has-acl.c (file_has_acl): Likewise.
90087         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
90088         FreeBSD, MacOS X, or IRIX, respectively.
90090 2008-05-22  Bruno Haible  <bruno@clisp.org>
90092         * lib/acl.h: Don't include <sys/acl.h>.
90093         (GETACLCNT): Move fallback to lib/acl-internal.h.
90094         * lib/acl-internal.h: Include <sys/acl.h> here.
90095         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
90097 2008-05-22  Bruno Haible  <bruno@clisp.org>
90099         Split off copy_acl function to separate file.
90100         * lib/copy-acl.c: New file, extracted from lib/acl.c.
90101         * lib/acl.c (copy_acl): Moved function to separate file.
90102         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
90103         * modules/acl (Files): Add lib/copy-acl.c.
90104         (Makefiles.am): Augment lib_SOURCES.
90106 2008-05-22  Bruno Haible  <bruno@clisp.org>
90108         * modules/copy-file-tests: New file.
90109         * tests/test-copy-file.sh: New file.
90110         * tests/test-copy-file.c: New file.
90111         * tests/test-copy-file-sameacls.c: New file.
90113 2008-05-22  Eric Blake  <ebb9@byu.net>
90115         Avoid gcc warning.
90116         * tests/test-memcmp.c (main): Pass NULL indirectly.
90118 2008-05-21  Bruno Haible  <bruno@clisp.org>
90120         Add reference doc about ACLs.
90121         * doc/acl-resources.txt: New file.
90122         * doc/acl-cygwin.txt: New file.
90124 2008-05-21  Bruno Haible  <bruno@clisp.org>
90126         Avoid one more warning from gcc.
90127         * lib/vasnprintf.c (IF_LINT): Update comments.
90128         (VASNPRINTF): Use it also for the 'prefix' array initializer.
90130 2008-05-21  Jim Meyering  <meyering@redhat.com>
90132         avoid a warning from gcc
90133         * lib/vasnprintf.c (IF_LINT): Define.
90134         (scale10_round_decimal_long_double):
90135         Use it to avoid a "may be used uninitialized" warning.
90136         (scale10_round_decimal_double): Likewise.
90138 2008-05-21  Simon Josefsson  <simon@josefsson.org>
90140         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
90141         declared.
90143 2008-05-20  Bruno Haible  <bruno@clisp.org>
90145         * tests/test-memcmp.c (main): Test also the sign of the result. Test
90146         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
90148 2008-05-20  Simon Josefsson  <simon@josefsson.org>
90150         * modules/memcmp-tests: New file.
90151         * tests/test-memcmp.c: New file.
90153 2008-05-19  Bruno Haible  <bruno@clisp.org>
90155         * modules/propername (Notice, configure.ac): Put quoted "..." into
90156         --keyword option.
90157         * lib/propername.h: Update comments accordingly.
90158         Reported by Eric Blake.
90160 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
90162         * modules/getpass-gnu (Depends-on): Add fseeko.
90164 2008-05-19  Simon Josefsson  <simon@josefsson.org>
90166         * modules/base64-tests: New file.
90168 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
90170         * lib/base64.c (base64_decode_ctx): If a decode context structure
90171         was passed in use it to ignore newlines.  If a context structure
90172         was _not_ passed in, continue to treat newlines as garbage (this
90173         is the historical behavior).  Formerly base64_decode.
90174         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
90175         takes a decode context structure.
90176         * lib/base64.h (base64_decode): Macro for four-argument calls.
90177         (base64_decode_alloc): Likewise.
90178         * lib/base64.c (base64_decode_ctx): If a decode context structure
90179         was passed in use it to ignore newlines.  If a context structure
90180         was _not_ passed in, continue to treat newlines as garbage (this
90181         is the historical behavior).  Formerly base64_decode.
90182         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
90183         takes a decode context structure.
90184         * lib/base64.h (base64_decode): Macro for four-argument calls.
90185         (base64_decode_alloc): Likewise.
90187 2008-05-19  Jim Meyering  <meyering@redhat.com>
90189         avoid a warning from gcc
90190         * lib/trim.c (IF_LINT): Define.
90191         (trim2): Use it to avoid a "may be used uninitialized" warning.
90193         Fix doc typo.
90194         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
90196 2008-05-19  Bruno Haible  <bruno@clisp.org>
90198         * doc/glibc-functions/getpass.texi: Document limits of other
90199         implementations.
90201 2008-05-19  Simon Josefsson  <simon@josefsson.org>
90202             Bruno Haible <bruno@clisp.org>
90204         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
90206 2008-05-18  Bruno Haible  <bruno@clisp.org>
90208         * modules/propername: New file, from GNU gettext.
90209         * lib/propername.h: New file, from GNU gettext.
90210         * lib/propername.c: New file, from GNU gettext.
90211         * MODULES.html.sh (Internationalization functions): Add propername.
90213 2008-05-16  Jim Meyering  <meyering@redhat.com>
90214             Bruno Haible  <bruno@clisp.org>
90216         Avoid some warnings from "gcc -Wshadow".
90217         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
90219 2008-05-15  Eric Blake  <ebb9@byu.net>
90221         Extend previous patch to cygwin 1.7.0.
90222         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
90223         fast implementation in cygwin >= 1.7.0.
90224         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90225         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90227 2008-05-15  Bruno Haible  <bruno@clisp.org>
90229         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
90230         implementation in glibc >= 2.9.
90231         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90234 2008-05-15  Bruno Haible  <bruno@clisp.org>
90236         * MODULES.html.sh (Internationalization functions): Remove linebreak.
90237         (Unicode string functions): Add unilbrk/*.
90238         Reported by Karl Berry.
90240 2008-05-15  Eric Blake  <ebb9@byu.net>
90242         Fix violation of <stdbool.h> replacement in regex.
90243         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
90244         * lib/regexec.c (re_search_internal): Likewise.
90245         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
90247 2008-05-15  Jim Meyering  <meyering@redhat.com>
90249         avoid distracting test output when git or cvs is not found
90250         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
90251         * tests/test-vc-list-files-git.sh: Likewise.
90253 2008-05-15  Eric Blake  <ebb9@byu.net>
90255         Glibc finally accepted the memmem speedup code, bugzilla #5514.
90256         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
90257         glibc version.
90258         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
90259         * doc/posix-functions/strstr.texi (strstr): Likewise.
90260         * lib/str-two-way.h (MAX): Sychronize with glibc.
90262 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
90264         * lib/regcomp.c (optimize_utf8): Add a note on why we test
90265         opr.ctx_type.
90266         (calc_first): Initialize constraint field.
90267         (duplicate_node_closure): Use it instead of special casing ANCHORS.
90268         Fix grammar.
90269         (duplicate_node): Merge constraint field for all node types.
90270         (calc_eclosure_iter): Look at constraint field for all node types.
90271         * lib/regex_internal.c (create_cd_newstate): Don't look at
90272         opr.ctx_type.
90274 2008-05-14  Bruno Haible  <bruno@clisp.org>
90276         Help GCC to do better code generation.
90277         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
90278         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
90279         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
90280         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
90281         Declare with attribute 'malloc' if supported.
90283 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
90285         use "echo STR|wc -c" rather than unportable "expr length STR"
90286         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
90287         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
90289 2008-05-14  Jim Meyering  <meyering@redhat.com>
90291         use dd ibs=$n count=1 ... rather than less-portable head -c$n
90292         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
90293         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
90294         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
90295         via Collin Lasse.
90297 2008-05-14  Eric Blake  <ebb9@byu.net>
90299         Avoid quadratic growth in gl_LIBSOURCES.
90300         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
90301         Suggested by Bruno Haible.
90303         Test xmemdup0.
90304         * modules/xmemdup0-tests: New file.
90305         * tests/test-xmemdup0.c: Likewise.
90307 2008-05-13  Eric Blake  <ebb9@byu.net>
90309         Split xmemdup0 into its own module.
90310         * modules/xmemdup0: New file.
90311         * lib/xmemdup0.h: Likewise.
90312         * lib/xmemdup0.c: Likewise.
90313         * MODULES.html.sh (Memory management functions): Add xmemdup0.
90314         * lib/xalloc.h (xmemdup0): Remove.
90315         * lib/xmalloc.c (xmemdup0): Likewise.
90317 2008-05-13  Eric Blake  <ebb9@byu.net>
90318             Bruno Haible  <bruno@clisp.org>
90320         Reduce number of forks required during autoconf.
90321         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
90322         and gl_LIBSOURCES_DIR.
90323         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
90324         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
90325         m4_syscmd per file.
90326         <m4_foreach_w>: Move...
90327         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
90329 2008-05-13  Eric Blake  <ebb9@byu.net>
90331         * gnulib-tool: Fix various comment typos.
90333 2008-05-12  Bruno Haible  <bruno@clisp.org>
90335         Tailor the linebreaking algorithm.
90336         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
90338 2008-05-12  Bruno Haible  <bruno@clisp.org>
90340         Update to Unicode 5.0.0.
90341         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90342         LBP_JV, LBP_JT. Redistribute values.
90343         (unilbrk_table): Change size.
90344         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
90345         Unicode TR#14 rev. 22.
90346         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90347         LBP_JV, LBP_JT. Redistribute values.
90348         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
90349         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
90350         Update.
90351         * lib/unilbrk/lbrkprop1.h: Regenerated.
90352         * lib/unilbrk/lbrkprop2.h: Regenerated.
90353         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
90354         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
90355         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
90356         Likewise.
90357         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
90358         Likewise.
90359         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
90360         result.
90361         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
90362         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
90363         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
90364         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
90365         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
90366         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
90368 2008-05-11  Bruno Haible  <bruno@clisp.org>
90370         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
90372 2008-05-11  Bruno Haible  <bruno@clisp.org>
90374         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
90375         * modules/unilbrk/gen-lbrk: New file.
90377 2008-05-11  Bruno Haible  <bruno@clisp.org>
90379         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
90380         * m4/sha512.m4 (gl_SHA512): Likewise.
90382 2008-05-11  Jim Meyering  <meyering@redhat.com>
90384         New modules: crypto/sha256, crypto/sha512 (from coreutils)
90385         * modules/crypto/sha256: New file.
90386         * modules/crypto/sha512: Likewise.
90387         * lib/sha256.c: Likewise.
90388         * lib/sha256.h: Likewise.
90389         * lib/sha512.c: Likewise.
90390         * lib/sha512.h: Likewise.
90391         * lib/u64.h: Likewise.
90392         * m4/sha256.m4: Likewise.
90393         * m4/sha512.m4: Likewise.
90394         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
90396 2008-05-10  Bruno Haible  <bruno@clisp.org>
90398         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
90399         (Input/Output <stdio.h>): Add xprintf.
90400         (Signal handling <signal.h>): Add strsignal.
90401         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
90402         (Core language properties): Add func.
90403         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
90404         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
90405         strings.
90406         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
90407         (Input/output): New section.
90408         (File system functions): Add openat-die, stat-macros.
90409         (Networking functions): Add sockets.
90410         (Unicode string functions): Add unictype/*.
90411         (Support for building libraries and executables): Add gperf.
90412         (Support for building documentation): Add agpl-3.0.
90413         (Misc): Add nocrash.
90415 2008-05-10  Bruno Haible  <bruno@clisp.org>
90417         * modules/unictype/gen-ctype: New file.
90419 2008-05-10  Jim Meyering  <meyering@redhat.com>
90421         Make chdir-safer.c more efficient on a system with no symlinks.
90422         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
90423         also if ELOOP is zero.  Suggested by Bruno Haible.
90425         Make chdir-safer.c slightly safer.
90426         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
90427         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
90429         Avoid compile failure on systems without ELOOP (like mingw).
90430         * lib/chdir-safer.c (ELOOP): Define if not already defined.
90431         Reported by Bruno Haible.
90433 2008-05-10  Bruno Haible  <bruno@clisp.org>
90435         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
90436         (is_utf8_encoding): Use a case-insensitive comparison.
90437         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
90438         streq.
90440 2008-05-10  Bruno Haible  <bruno@clisp.org>
90442         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
90443         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
90444         * lib/unilbrk/ulc-common.h (iconv_string_length,
90445         iconv_string_keeping_offsets): Remove declarations.
90446         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
90447         Don't include <iconv.h>, streq.h, xsize.h.
90448         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
90449         conversion.
90450         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
90451         <iconv.h>, streq.h, xsize.h.
90452         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
90453         conversion.
90454         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
90455         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
90456         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
90457         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
90459 2008-05-10  Bruno Haible  <bruno@clisp.org>
90461         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
90462         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
90464         * modules/unilbrk/u32-width-linebreaks-tests: New file.
90465         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
90467         * modules/unilbrk/u16-width-linebreaks-tests: New file.
90468         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
90470         * modules/unilbrk/u8-width-linebreaks-tests: New file.
90471         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
90473         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
90474         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
90476         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
90477         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
90479         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
90480         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
90482         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
90483         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
90485 2008-05-10  Bruno Haible  <bruno@clisp.org>
90487         Split up 'linebreak' module.
90488         * lib/unilbrk.h: New file, based on lib/linebreak.h.
90489         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
90490         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
90491         modifications.
90492         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
90493         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
90494         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
90495         lib/linebreak.c.
90496         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
90497         lib/linebreak.c.
90498         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
90499         lib/linebreak.c.
90500         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
90501         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
90502         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
90503         lib/linebreak.c.
90504         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
90505         lib/linebreak.c.
90506         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
90507         lib/linebreak.c.
90508         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
90509         lib/linebreak.c.
90510         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
90511         lib/linebreak.c.
90512         * modules/unilbrk/base: New file.
90513         * modules/unilbrk/tables: New file.
90514         * modules/unilbrk/u8-possible-linebreaks: New file.
90515         * modules/unilbrk/u16-possible-linebreaks: New file.
90516         * modules/unilbrk/u32-possible-linebreaks: New file.
90517         * modules/unilbrk/ulc-common: New file.
90518         * modules/unilbrk/ulc-possible-linebreaks: New file.
90519         * modules/unilbrk/u8-width-linebreaks: New file.
90520         * modules/unilbrk/u16-width-linebreaks: New file.
90521         * modules/unilbrk/u32-width-linebreaks: New file.
90522         * modules/unilbrk/ulc-width-linebreaks: New file.
90523         * lib/linebreak.h: Remove file.
90524         * lib/linebreak.c: Remove file.
90525         * m4/linebreak.m4: Remove file.
90526         * modules/linebreak: Remove file.
90527         * NEWS: Mention the changes.
90529 2008-05-09  Eric Blake  <ebb9@byu.net>
90531         Add xmemdup0.
90532         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
90533         implementation.
90534         * lib/xmalloc.c (xmemdup0): New C implementation.
90536 2008-05-08  Bruno Haible  <bruno@clisp.org>
90538         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
90540 2008-05-07  Eric Blake  <ebb9@byu.net>
90542         Support cross-compilation of <wctype.h>.
90543         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
90544         AC_CACHE_CHECK.
90546 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
90548         * build-aux/vc-list-files: Add support for bzr.
90550 2008-05-03  Jim Meyering  <meyering@redhat.com>
90552         avoid failed assertion with tight malloc
90553         * tests/test-getndelim2.c: Correct an off-by-one assertion.
90555 2008-05-03  Simon Josefsson  <simon@josefsson.org>
90557         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
90558         are needed from arpa/inet.h.
90559         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
90560         Reported by Bruno Haible.
90562 2008-05-02  Jim Meyering  <meyering@redhat.com>
90564         avoid compilation error on FreeBSD 6
90565         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
90567 2008-05-01  Jim Meyering  <meyering@redhat.com>
90569         useless-if-before-free: correct --help's exit status description
90570         * build-aux/useless-if-before-free (usage): Like grep, exit 0
90571         for one or more matches, etc.  Reported by Bruno Haible.
90573         vc-list-files: make the stand-alone gnulib test work
90574         * modules/vc-list-files-tests (configure.ac):
90575         Define and AC_SUBST abs_aux_dir.
90576         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
90577         $(abs_top_srcdir) to each script and having each of them
90578         duplicate the work of setting PATH, set PATH here, using
90579         the new variable, abs_aux_dir instead.
90580         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
90581         * tests/test-vc-list-files-git.sh: Likewise.
90582         Reported by Bruno Haible.
90584 2008-05-01  Bruno Haible  <bruno@clisp.org>
90586         * lib/getndelim2.c (getndelim2): Fix newsize computation during
90587         reallocation. Rename 'done' to 'found_delimiter'.
90589 2008-05-01  Jim Meyering  <meyering@redhat.com>
90591         vc-list-files: accommodate /bin/sh like the one from Solaris 10
90592         * build-aux/vc-list-files: Use `...`, not $(...).
90594 2008-04-30  Jim Meyering  <meyering@redhat.com>
90596         add tests for vc-list-files
90597         * modules/vc-list-files-tests: New module.
90598         * tests/test-vc-list-files-cvs.sh: New file.
90599         * tests/test-vc-list-files-git.sh: New file.
90601         avoid a warning from gcc
90602         * lib/getndelim2.c (IF_LINT): Define.
90603         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
90605         vc-list-files: work properly with build-aux/cvsu, too
90606         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
90607         to all cvs-based clauses.
90609         vc-list-files: work properly in the CVS+awk case, too
90610         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
90612         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
90613         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
90614         take more than one file argument, so .  Add quotes, just in case $dir
90615         ever contains a shell meta-character.  Prompted by Soren Hansen in
90616         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
90618 2008-04-29  Eric Blake  <ebb9@byu.net>
90620         Optimize getndelim2 to use block operations when possible.
90621         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
90622         freadseek, and memchr2.
90623         * lib/getndelim2.c (getndelim2): Use them for block reads.
90625 2008-04-29  Bruno Haible  <bruno@clisp.org>
90627         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
90628         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90629         * modules/inet_ntop (Depends-on): Add extensions.
90630         * modules/inet_pton (Depends-on): Likewise.
90631         Reported by Simon Josefsson.
90633 2008-04-29  Jim Meyering  <meyering@redhat.com>
90635         When the is more than one match in a block, match all of them.
90636         * build-aux/useless-if-before-free: Iterate through each block
90637         until there are no more matches.
90639         Fix broken useless-if-before-free script.
90640         * build-aux/useless-if-before-free: Fix typo: missing "?" after
90641         the expression to match cast of argument to free-like function.
90643 2008-04-29  Eric Blake  <ebb9@byu.net>
90645         Use new header.
90646         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
90648 2008-04-29  Jim Meyering  <meyering@redhat.com>
90650         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
90651         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
90652         by gnulib to exist and to declare e.g., inet_ntop.
90653         Don't include "inet_ntop.h", now removed.
90655         * m4/arpa_inet_h.m4: Remove trailing blanks.
90657 2008-04-29  Eric Blake  <ebb9@byu.net>
90659         Silence valgrind on safe reads beyond potential array bounds.
90660         * lib/rawmemchr.valgrind: New file.
90661         * lib/strchrnul.valgrind: Likewise.
90662         * modules/rawmemchr (Files): Distribute new file.
90663         * modules/strchrnul (Files): Likewise.
90664         Suggested by Bruno Haible.
90666 2008-04-29  Bruno Haible  <bruno@clisp.org>
90668         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
90669         (inet_ntop, inet_pton): Change portability warning's wording.
90670         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
90671         Invoke gl_CHECK_NEXT_HEADERS.
90672         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
90673         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
90674         set ARPA_INET_H.
90675         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90676         * modules/arpa_inet (Description): No longer only for systems that
90677         lack it.
90678         (Depends-on): Add include_next.
90679         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
90680         HAVE_ARPA_INET_H.
90682 2008-04-29  Jim Meyering  <meyering@redhat.com>
90684         * modules/mkdir (License): Re-license as LGPLv2+.
90686 2008-04-29  Bruno Haible  <bruno@clisp.org>
90688         * modules/rawmemchr (Maintainer): Set to Eric.
90689         * modules/strchrnul (Maintainer): Likewise.
90691 2008-04-29  Simon Josefsson  <simon@josefsson.org>
90693         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
90694         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
90696         * modules/arpa_inet (arpa/inet.h): Use them.
90698 2008-04-28  Eric Blake  <ebb9@byu.net>
90700         Test getndelim2.
90701         * modules/getndelim2-tests: New file.
90702         * tests/test-getndelim2.c: Likewise.
90703         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
90704         stream.
90705         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
90707         * MODULES.html.sh: Document new module.
90709 2008-04-20  Bruno Haible  <bruno@clisp.org>
90711         * lib/c-stack.c (die): Use raise.
90712         * modules/c-stack (Depends-on): Add raise.
90714 2008-04-28  Bruno Haible  <bruno@clisp.org>
90716         Expect rpmatch to be declared.
90717         * lib/yesno.c (rpmatch): Remove declaration.
90719         Declare rpmatch.
90720         * lib/stdlib.in.h (rpmatch): New declaration.
90721         * lib/rpmatch.c: Include <stdlib.h> first.
90722         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
90723         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
90724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
90725         HAVE_RPMATCH.
90726         * modules/rpmatch (Depends-on): Add stdlib, extensions.
90727         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90728         (Include): Set to <stdlib.h>.
90729         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
90730         HAVE_RPMATCH.
90731         * NEWS: Document the change.
90733 2008-04-28  Bruno Haible  <bruno@clisp.org>
90735         Change rpmatch to use nl_langinfo when appropriate.
90736         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
90737         (N_): New macro.
90738         (localized_pattern): New function/macro.
90739         (try): Remove match, nomatch arguments. Copy the pattern into safe
90740         memory before caching it.
90741         (rpmatch): Use localized_pattern. Add translator comments.
90742         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
90743         Suggested by Eric Blake.
90744         * modules/rpmatch (Depends-on): Add stdbool.
90746 2008-04-28  Eric Blake  <ebb9@byu.net>
90748         Add rawmemchr module, matching glibc.
90749         * modules/string (Makefile.am): New indicator.
90750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
90751         * lib/string.in.h (rawmemchr): Declare when appropriate.
90752         * modules/rawmemchr: New file.
90753         * m4/rawmemchr.m4: Likewise.
90754         * lib/rawmemchr.c: Likewise.
90755         * modules/rawmemchr-tests: Likewise.
90756         * tests/test-rawmemchr.c: Likewise.
90757         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
90758         module.
90759         * modules/strchrnul (Depends-on): Add rawmemchr.
90760         * lib/strchrnul.c (strchrnul): Optimize a corner case.
90762         Whitespace cleanup.
90763         * tests/test-strchrnul.c: Reindent.
90764         * lib/strchrnul.c: Likewise.
90766         Optimize and test strchrnul.
90767         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
90768         * modules/strchrnul-tests: New file.
90769         * tests/test-strchrnul.c: Likewise.
90771         Remove intprops dependency.
90772         * modules/memchr (Depends-on): Remove intprops.
90773         * modules/memrchr (Depends-on): Likewise.
90774         * modules/memchr2 (Depends-on): Likewise.
90775         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
90776         * lib/memrchr.c (__memrchr): Likewise.
90777         * lib/memrchr2.c (memchr2): Likewise.
90778         Reported by Simon Josefsson.
90780 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90782         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
90783         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90785 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90787         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
90789         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
90791         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
90793         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
90794         declarations.
90795         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
90797         * m4/inet_pton.m4: Don't check for header files.
90799         * m4/inet_ntop.m4: Don't check for header files.
90801 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90803         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
90804         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
90805         trigger for cygwin).
90806         Reported by Bruno Haible  <bruno@clisp.org>.
90808 2008-04-28  Bruno Haible  <bruno@clisp.org>
90810         * doc/posix-functions/strdup.texi: Mention mingw problem.
90812 2008-04-27  Bruno Haible  <bruno@clisp.org>
90814         * modules/stat-time-tests (Depends-on): Add sleep.
90815         * tests/test-stat-time.c (force_unlink): New function.
90816         (cleanup): Use it.
90817         (test_mtime): Remove the ctime related tests.
90818         (test_ctime): New function, containing the ctime related tests.
90819         (main): Call test_ctime, except on native Windows platforms.
90821 2008-04-27  Bruno Haible  <bruno@clisp.org>
90823         * lib/rpmatch.c (rpmatch): Add some comments.
90824         Reported by James Youngman <jay@gnu.org>.
90826 2008-04-27  Bruno Haible  <bruno@clisp.org>
90828         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
90829         quiet NaNs.
90831 2008-04-27  Bruno Haible  <bruno@clisp.org>
90833         Make test-yesno.sh work on mingw.
90834         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
90835         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
90836         (main): Set stdin to binary mode.
90837         * modules/yesno-tests (Depends-on): Add binary-io.
90839 2008-04-27  Bruno Haible  <bruno@clisp.org>
90841         Fix 'isfinite' on x86, x86_64, ia64 platforms.
90842         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
90843         argument that lie outside the IEEE 854 domain.
90844         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
90845         (gl_ISFINITE): Use it.
90846         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
90848 2008-04-27  Bruno Haible  <bruno@clisp.org>
90850         Allow local renaming in config.h.
90851         * lib/memrchr.c (memrchr): Don't undefine outside libc.
90853 2008-04-27  Bruno Haible  <bruno@clisp.org>
90855         * lib/memchr.c (__memchr): Change type of 'i'.
90856         * lib/memchr2.c (memchr2): Likewise.
90858 2008-04-26  Eric Blake  <ebb9@byu.net>
90859         and Bruno Haible  <bruno@clisp.org>
90861         Optimize and test memrchr.
90862         * modules/memrchr (Depends-on): Add intprops.
90863         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
90864         * modules/memrchr-tests: New file.
90865         * tests/test-memrchr.c: New file.
90867 2008-04-26  Bruno Haible  <bruno@clisp.org>
90869         Add tentative support for DragonFly BSD.
90870         * lib/stdio-impl.h: Add macros for DragonFly BSD.
90871         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
90872         fp.
90873         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
90874         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
90875         * lib/fpurge.c (fpurge): Likewise.
90876         * lib/freadable.c (freaadable): Likewise.
90877         * lib/freadahead.c (freadahead): Likewise.
90878         * lib/freading.c (freading): Likewise.
90879         * lib/freadptr.c (freadptr): Likewise.
90880         * lib/freadseek.c (freadptrinc): Likewise.
90881         * lib/fseeko.c (fseeko): Likewise.
90882         * lib/fseterr.c (fseterr): Likewise.
90883         * lib/fwritable.c (fwritable): Likewise.
90884         * lib/fwriting.c (fwriting): Likewise.
90886 2008-04-26  Bruno Haible  <bruno@clisp.org>
90888         * lib/stdio-impl.h: New file.
90889         * lib/fbufmode.c: Include stdio-impl.h.
90890         (fbufmode): Use fp_, remove redundant #defines.
90891         * lib/fflush.c: Include stdio-impl.h.
90892         (clear_ungetc_buffer): Remove redundant #defines.
90893         * lib/fpurge.c: Include stdio-impl.h.
90894         (fpurge): Remove redundant #defines.
90895         * lib/freadable.c: Include stdio-impl.h.
90896         (freadable): Remove redundant #defines.
90897         * lib/freadahead.c: Include stdio-impl.h.
90898         (freadahead): Remove redundant #defines.
90899         * lib/freading.c: Include stdio-impl.h.
90900         (freading): Remove redundant #defines.
90901         * lib/freadptr.c: Include stdio-impl.h.
90902         (freadptr): Remove redundant #defines.
90903         * lib/freadseek.c: Include stdio-impl.h.
90904         (freadptrinc): Remove redundant #defines.
90905         * lib/fseeko.c: Include stdio-impl.h.
90906         (rpl_fseeko): Remove redundant #defines.
90907         * lib/fseterr.c: Include stdio-impl.h.
90908         (fseterr): Remove redundant #defines.
90909         * lib/fwritable.c: Include stdio-impl.h.
90910         (fwritable: Remove redundant #defines.
90911         * lib/fwriting.c: Include stdio-impl.h.
90912         (fwriting): Remove redundant #defines.
90913         * modules/fbufmode (Files): Add lib/stdio-impl.h.
90914         * modules/fflush (Files): Likewise.
90915         * modules/fpurge (Files): Likewise.
90916         * modules/freadable (Files): Likewise.
90917         * modules/freadahead (Files): Likewise.
90918         * modules/freading (Files): Likewise.
90919         * modules/freadptr (Files): Likewise.
90920         * modules/freadseek (Files): Likewise.
90921         * modules/fseeko (Files): Likewise.
90922         * modules/fseterr (Files): Likewise.
90923         * modules/fwritable (Files): Likewise.
90924         * modules/fwriting (Files): Likewise.
90926 2008-04-26  Bruno Haible  <bruno@clisp.org>
90928         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
90929         restore_seek_optimization, update_fpos_cache): New functions, extracted
90930         from rpl_fflush.
90931         (rpl_fflush): Use them.
90932         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
90933         (gl_REPLACE_FFLUSH): Use it.
90935 2008-04-26  Bruno Haible  <bruno@clisp.org>
90937         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
90938         on Solaris.
90939         * tests/test-xstrtoimax.sh: Likewise.
90940         * tests/test-xstrtoumax.sh: Likewise.
90941         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90943 2008-04-26  Bruno Haible  <bruno@clisp.org>
90945         * modules/memchr-tests: New file.
90946         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
90948 2008-04-26  Eric Blake  <ebb9@byu.net>
90949             Bruno Haible  <bruno@clisp.org>
90951         * lib/memchr.c: Include intprops.h.
90952         (__memchr): Optimize parallel detection of matching bytes. Rename local
90953         variables. Add explanatory comments.
90955 2008-04-26  Bruno Haible  <bruno@clisp.org>
90957         Fix module 'memchr', broken since 2000-10-28.
90958         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
90960 2008-04-26  Bruno Haible  <bruno@clisp.org>
90962         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
90963         comments.
90965 2008-04-25  Eric Blake  <ebb9@byu.net>
90967         Use native fstatat on cygwin 1.7.0.
90968         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
90969         first.
90971 2008-04-23  Eric Blake  <ebb9@byu.net>
90973         Improve memchr2 performance.
90974         * lib/memchr2.c (memchr2): Further optimize parallel detection of
90975         NUL bytes.
90976         * modules/memchr2 (Depends-on): Use intprops.h.
90978 2008-04-23  Simon Josefsson  <simon@josefsson.org>
90980         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
90981         an inline function instead of a CPP macro.  Patch by Ben Pfaff
90982         <blp@cs.stanford.edu>.
90984 2008-04-23  Simon Josefsson  <simon@josefsson.org>
90986         * lib/arpa_inet.in.h: New file.
90988         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
90989         (Makefile.am): Sed in substitute header file.
90991         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
90992         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
90994         * modules/inet_ntop (configure.ac): Use
90995         gl_ARPA_INET_MODULE_INDICATOR.
90997         * modules/inet_pton (configure.ac): Use
90998         gl_ARPA_INET_MODULE_INDICATOR.
91000 2008-04-22  Jim Meyering  <meyering@redhat.com>
91002         * modules/verify (License): Re-license as LGPLv2+.
91004 2008-04-22  Simon Josefsson  <simon@josefsson.org>
91006         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
91007         parameter to void* as per POSIX standard (MinGW uses char*).
91009 2008-04-21  Bruno Haible  <bruno@clisp.org>
91011         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
91012         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
91013         Define to replacements if REPLACE_ISWCNTRL is 1.
91014         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
91015         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
91016         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
91017         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
91018         what it fixes.
91019         * doc/posix-functions/iswalpha.texi: Likewise.
91020         * doc/posix-functions/iswblank.texi: Likewise.
91021         * doc/posix-functions/iswcntrl.texi: Likewise.
91022         * doc/posix-functions/iswdigit.texi: Likewise.
91023         * doc/posix-functions/iswgraph.texi: Likewise.
91024         * doc/posix-functions/iswlower.texi: Likewise.
91025         * doc/posix-functions/iswprint.texi: Likewise.
91026         * doc/posix-functions/iswpunct.texi: Likewise.
91027         * doc/posix-functions/iswspace.texi: Likewise.
91028         * doc/posix-functions/iswupper.texi: Likewise.
91029         * doc/posix-functions/iswxdigit.texi: Likewise.
91030         Reported by Alain Guibert.
91032 2008-04-21  Bruno Haible  <bruno@clisp.org>
91034         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
91035         Patch by Alain Guibert.
91037 2008-04-21  Bruno Haible  <bruno@clisp.org>
91039         Fix test failures on mingw.
91040         * tests/test-xstrtol.c (print_no_progname): New function.
91041         (main): Install it in error_print_progname hook.
91042         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
91043         * tests/test-xstrtoimax.sh: Likewise.
91044         * tests/test-xstrtoumax.sh: Likewise.
91046 2008-04-21  Bruno Haible  <bruno@clisp.org>
91048         Fix test failure on mingw.
91049         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
91051 2008-04-21  Bruno Haible  <bruno@clisp.org>
91053         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
91054         Actually assign a value.
91056 2008-04-20  Bruno Haible  <bruno@clisp.org>
91058         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
91059         take 2.
91060         * lib/canonicalize.c (canonicalize_file_name): Elide if the
91061         'canonicalize-lgpl' module is also used.
91062         * lib/canonicalize-lgpl.c: Undo last change.
91063         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
91065 2008-04-20  Bruno Haible  <bruno@clisp.org>
91067         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
91068         config.h. Provide _mkdir based fallback for mingw.
91069         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
91070         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
91071         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
91072         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
91073         rather than defining mkdir in config.h.
91074         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
91075         (gl_SYS_STAT_H_DEFAULTS): New macro.
91076         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
91077         HAVE_IO_H any more.
91078         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
91079         HAVE_DECL_MKDIR and HAVE_IO_H.
91081 2008-04-20  Bruno Haible  <bruno@clisp.org>
91083         * lib/isapipe.c: Port to native Windows platforms.
91085 2008-04-20  Bruno Haible  <bruno@clisp.org>
91087         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
91089 2008-04-21  Eric Blake  <ebb9@byu.net>
91091         Work around preprocessors that don't handle UINTMAX_MAX.
91092         * lib/memchr2.c (memchr2): Avoid embedded #if.
91093         Reported by Alain Guibert, fix suggested by Bruno Haible.
91095 2008-04-21  Simon Josefsson  <simon@josefsson.org>
91097         * doc/posix-functions/strftime.texi (strftime): Explain better
91098         Windows incompatibility.  Suggested by Micah Cowan
91099         <micah@cowan.name>.
91101 2008-04-20  Bruno Haible  <bruno@clisp.org>
91103         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
91104         unistr/u8-mblen.
91106 2008-04-20  Bruno Haible  <bruno@clisp.org>
91108         Fix test failure on platforms with non-GNU iconv.
91109         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
91110         (U_TO_U8): Use it, rather than u16_to_u8.
91111         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
91112         units at the end of the input string.
91113         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
91115 2008-04-20  Bruno Haible  <bruno@clisp.org>
91117         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
91118         when the resulting length is 0.
91119         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
91121 2008-04-20  Bruno Haible  <bruno@clisp.org>
91123         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
91124         works.
91125         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
91127 2008-04-20  Bruno Haible  <bruno@clisp.org>
91129         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
91130         * modules/tsearch-tests (configure.ac): Test for initstate function.
91132 2008-04-20  Bruno Haible  <bruno@clisp.org>
91134         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
91135         for nlink_t if missing.
91136         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
91138 2008-04-19  Bruno Haible  <bruno@clisp.org>
91140         Work around snprintf bug on Linux libc5.
91141         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
91142         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
91143         gl_SNPRINTF_SIZE1.
91144         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91145         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
91146         that test failed.
91147         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
91148         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
91149         * modules/snprintf (Files): Add m4/printf.m4.
91150         * modules/vsnprintf (Files): Likewise.
91151         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
91152         * doc/posix-functions/vsnprintf.texi: Likewise.
91154 2008-04-19  Bruno Haible  <bruno@clisp.org>
91156         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
91157         from 0.0058 to less than 10^-7.
91159 2008-04-19  Bruno Haible  <bruno@clisp.org>
91161         Fix rounding when a precision is given.
91162         * lib/vasnprintf.c (is_borderline): New function.
91163         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
91164         9...9x.
91165         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
91166         %e, %g.
91167         * tests/test-vasprintf-posix.c (test_function): Likewise.
91168         * tests/test-snprintf-posix.h (test_function): Likewise.
91169         * tests/test-sprintf-posix.h (test_function): Likewise.
91170         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
91171         * tests/test-printf-posix.h (test_function): Likewise.
91172         * tests/test-printf-posix.output: Update.
91173         Reported by John Darrington <john@darrington.wattle.id.au> via
91174         Ben Pfaff <blp@cs.stanford.edu>.
91176 2008-04-18  Simon Josefsson  <simon@josefsson.org>
91178         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
91179         Suggested by Bruno Haible <bruno@clisp.org>.
91181 2008-04-17  Bruno Haible  <bruno@clisp.org>
91183         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
91184         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
91185         implementation.
91186         Patch by Bruce Merry <bmerry@gmail.com>.
91188 2008-04-17  Simon Josefsson  <simon@josefsson.org>
91190         * doc/posix-functions/strftime.texi (strftime): Mention that %e
91191         doesn't work under Windows.
91193 2008-04-16  Bruno Haible  <bruno@clisp.org>
91195         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
91196         New macros.
91197         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
91198         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
91199         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
91200         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
91201         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
91202         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
91203         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
91204         macros.
91205         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
91206         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
91207         Northern Sotho, Uighur.
91209 2008-04-16  Bruno Haible  <bruno@clisp.org>
91211         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
91212         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
91213         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
91214         Reported by Daniel Bergström <daniel@octocode.com>.
91216 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
91217             Bruno Haible  <bruno@clisp.org>
91219         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
91220         function.
91221         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
91222         New functions, mostly extracted from gl_locale_name_default.
91223         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
91225 2008-04-16  Eric Blake  <ebb9@byu.net>
91227         Adjust strtod detection to catch glibc 2.7 bug.
91228         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
91229         Reported by John Gatewood Ham.
91231 2008-04-16  Bruno Haible  <bruno@clisp.org>
91233         Add tentative support for Linux libc5.
91234         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
91235         * lib/fpurge.c (fpurge): Likewise.
91236         * lib/freadable.c (freadable): Likewise.
91237         * lib/freadahead.c (freadahead): Likewise.
91238         * lib/freading.c (freading): Likewise.
91239         * lib/freadptr.c (freadptr): Likewise.
91240         * lib/freadseek.c (freadptrinc): Likewise.
91241         * lib/fseeko.c (rpl_fseeko): Likewise.
91242         * lib/fseterr.c (fseterr): Likewise.
91243         * lib/fwritable.c (fwritable): Likewise.
91244         * lib/fwriting.c (fwriting): Likewise.
91245         Reported by Alain Guibert <alguibert+bts@free.fr>.
91247 2008-04-15  Bruno Haible  <bruno@clisp.org>
91249         * modules/mathl (configure.ac): Define module indicator.
91251 2008-04-15  Bruno Haible  <bruno@clisp.org>
91253         * lib/logl.c (logl): Remove unused variables.
91255 2008-04-15  Bruno Haible  <bruno@clisp.org>
91257         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
91258         fails.
91260 2008-04-15  Bruno Haible  <bruno@clisp.org>
91262         * lib/trim.c (trim2): Fix argument of isspace() macro.
91264 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
91266         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
91267         to 0.
91268         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
91270 2008-04-14  Bruno Haible  <bruno@clisp.org>
91272         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
91273         AC_LANG_PROGRAM argument.
91274         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
91275         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
91276         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
91277         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
91278         * m4/math_h.m4 (gl_MATH_H): Likewise.
91279         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
91280         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
91281         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
91282         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
91283         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
91284         * m4/regex.m4 (gl_REGEX): Likewise.
91285         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
91286         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
91287         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91288         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
91289         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
91290         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91291         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
91292         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
91294 2008-04-14  Jim Meyering  <meyering@redhat.com>
91296         test-strtod: fix typos: s/abs/fabs/
91297         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
91299 2008-04-13  Bruno Haible  <bruno@clisp.org>
91301         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
91302         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
91303         module is also used and while not building the reloc-wrapper.
91305 2008-04-13  Bruno Haible  <bruno@clisp.org>
91307         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
91309 2008-04-13  Bruno Haible  <bruno@clisp.org>
91311         Fix AIX compilation failure introduced on 2008-04-02.
91312         * tests/test-frexp.c (exp): Undefine before redefining.
91313         * tests/test-frexpl.c (exp): Likewise.
91315 2008-04-13  Bruno Haible  <bruno@clisp.org>
91317         Work around a HP-UX stdio bug.
91318         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
91319         * tests/test-ftello.c (main): Likewise.
91320         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
91321         * doc/posix-functions/ftello.texi: Likewise.
91323 2008-04-13  Bruno Haible  <bruno@clisp.org>
91325         Make test-signbit pass on HP-UX/hppa.
91326         * tests/test-signbit.c (minus_zerol): New variable.
91327         (test_signbitl): Use it.
91329 2008-04-13  Bruno Haible  <bruno@clisp.org>
91331         Make truncl work on OSF/1 4.0.
91332         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
91333         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91334         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
91336         HAVE_DECL_TRUNCL.
91337         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
91338         HAVE_DECL_TRUNCL.
91339         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
91341 2008-04-13  Bruno Haible  <bruno@clisp.org>
91343         * lib/unictype.h: Remove trailing comma from enumeration definitions.
91345 2008-04-13  Bruno Haible  <bruno@clisp.org>
91347         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
91348         expression, so as to avoid HP-UX 11 cc compiler bug.
91350 2008-04-13  Bruno Haible  <bruno@clisp.org>
91352         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
91354 2008-04-13  Bruno Haible  <bruno@clisp.org>
91356         * lib/git-merge-changelog.c: Remove empty declaration outside of
91357         functions.
91359 2008-04-13  Bruno Haible  <bruno@clisp.org>
91361         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
91363 2008-04-13  Bruno Haible  <bruno@clisp.org>
91365         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
91366         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
91367         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
91368         also if it exists but lacks definitions of the SHUT_* macros.
91369         * modules/sys_socket (Description): Update.
91370         Reported by Elbert Pol <e.pol@chello.nl>.
91372 2008-04-13  Bruno Haible  <bruno@clisp.org>
91374         * lib/localcharset.c (OS2): Don't redefine if already defined.
91375         Reported by Elbert Pol <e.pol@chello.nl>.
91377 2008-04-13  Bruno Haible  <bruno@clisp.org>
91379         * lib/binary-io.h [__EMX__]: Include <io.h>.
91380         Reported by Elbert Pol <e.pol@chello.nl>.
91382 2008-04-12  Bruno Haible  <bruno@clisp.org>
91384         * lib/fpucw.h: Enable the definitions also for x86_64.
91385         Needed for NetBSD/x86_64.
91386         Reported by Thomas Klausner <tk@giga.or.at>.
91388 2008-04-12  Bruno Haible  <bruno@clisp.org>
91390         * tests/test-strtod.c: Include isnand.h.
91391         (main): Use isnand instead of isnan.
91392         Reported by Jim Meyering.
91394 2008-04-12  Bruno Haible  <bruno@clisp.org>
91396         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
91397         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
91399 2008-04-12  Jim Meyering  <meyering@redhat.com>
91401         * m4/math_h.m4 (gl_MATH_H): Fix typos.
91403 2008-04-12  Bruno Haible  <bruno@clisp.org>
91405         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
91406         Reported by Elbert Pol <e.pol@chello.nl>.
91408 2008-04-12  Eric Blake  <ebb9@byu.net>
91410         Work around Solaris 10 math.h bug.
91411         * m4/math_h.m4 (gl_MATH_H): Check for bug.
91412         (gl_MATH_H_DEFAULTS): Set up default.
91413         * modules/math (Makefile.am): Replace new indicators.
91414         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
91415         * tests/test-math.c (main): Test this.
91416         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
91417         * doc/posix-headers/math.texi (math.h): Mention bug.
91418         Reported by Nelson H. F. Beebe and Jim Meyering.
91420 2008-04-11  Bruno Haible  <bruno@clisp.org>
91422         Adapt to future versions of Apple GCC.
91423         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
91424         Reported by Peter O'Gorman <peter@pogma.com>.
91426 2008-04-11  Bruno Haible  <bruno@clisp.org>
91428         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
91430 2008-04-11  Bruno Haible  <bruno@clisp.org>
91432         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
91434         * modules/getaddrinfo-tests (Makefile.am): Define
91435         test_getaddrinfo_LDADD.
91437 2008-04-11  Bruno Haible  <bruno@clisp.org>
91439         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
91440         (init): Fix syntax error.
91441         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
91442         is declared.
91444 2008-04-11  Bruno Haible  <bruno@clisp.org>
91446         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
91447         * modules/glob (Depends-on): Add stdbool.
91449 2008-04-11  Bruno Haible  <bruno@clisp.org>
91451         * lib/trim.c: Include <string.h>.
91453 2008-04-11  Eric Blake  <ebb9@byu.net>
91455         Avoid compile failure on OS/2.
91456         * lib/regex_internal.h (internal_function): Disable optimization
91457         on OS/2 (__EMX__), where it caused compiler error.
91458         Reported by Elbert Pol.
91460 2008-04-11  Bruno Haible  <bruno@clisp.org>
91462         Flush the standard error stream before aborting. Needed on mingw.
91463         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
91464         * tests/test-array_list.c (ASSERT): Likewise.
91465         * tests/test-array_oset.c (ASSERT): Likewise.
91466         * tests/test-avltree_list.c (ASSERT): Likewise.
91467         * tests/test-avltree_oset.c (ASSERT): Likewise.
91468         * tests/test-avltreehash_list.c (ASSERT): Likewise.
91469         * tests/test-binary-io.c (ASSERT): Likewise.
91470         * tests/test-byteswap.c (ASSERT): Likewise.
91471         * tests/test-c-ctype.c (ASSERT): Likewise.
91472         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
91473         * tests/test-c-strcasestr.c (ASSERT): Likewise.
91474         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
91475         * tests/test-c-strstr.c (ASSERT): Likewise.
91476         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
91477         * tests/test-canonicalize.c (ASSERT): Likewise.
91478         * tests/test-carray_list.c (ASSERT): Likewise.
91479         * tests/test-ceilf1.c (ASSERT): Likewise.
91480         * tests/test-ceilf2.c (ASSERT): Likewise.
91481         * tests/test-ceill.c (ASSERT): Likewise.
91482         * tests/test-count-one-bits.c (ASSERT): Likewise.
91483         * tests/test-fbufmode.c (ASSERT): Likewise.
91484         * tests/test-fflush2.c (ASSERT): Likewise.
91485         * tests/test-floorf1.c (ASSERT): Likewise.
91486         * tests/test-floorf2.c (ASSERT): Likewise.
91487         * tests/test-floorl.c (ASSERT): Likewise.
91488         * tests/test-fopen.c (ASSERT): Likewise.
91489         * tests/test-fpending.c (ASSERT): Likewise.
91490         * tests/test-fprintf-posix.c (ASSERT): Likewise.
91491         * tests/test-fpurge.c (ASSERT): Likewise.
91492         * tests/test-freadable.c (ASSERT): Likewise.
91493         * tests/test-freadahead.c (ASSERT): Likewise.
91494         * tests/test-freading.c (ASSERT): Likewise.
91495         * tests/test-freadptr.c (ASSERT): Likewise.
91496         * tests/test-freadptr2.c (ASSERT): Likewise.
91497         * tests/test-freadseek.c (ASSERT): Likewise.
91498         * tests/test-freopen.c (ASSERT): Likewise.
91499         * tests/test-frexp.c (ASSERT): Likewise.
91500         * tests/test-frexpl.c (ASSERT): Likewise.
91501         * tests/test-fseek.c (ASSERT): Likewise.
91502         * tests/test-fseeko.c (ASSERT): Likewise.
91503         * tests/test-fstrcmp.c (ASSERT): Likewise.
91504         * tests/test-ftell.c (ASSERT): Likewise.
91505         * tests/test-ftello.c (ASSERT): Likewise.
91506         * tests/test-func.c (ASSERT): Likewise.
91507         * tests/test-fwritable.c (ASSERT): Likewise.
91508         * tests/test-fwriting.c (ASSERT): Likewise.
91509         * tests/test-getdelim.c (ASSERT): Likewise.
91510         * tests/test-getline.c (ASSERT): Likewise.
91511         * tests/test-i-ring.c (ASSERT): Likewise.
91512         * tests/test-iconv-utf.c (ASSERT): Likewise.
91513         * tests/test-iconv.c (ASSERT): Likewise.
91514         * tests/test-isfinite.c (ASSERT): Likewise.
91515         * tests/test-isnand.c (ASSERT): Likewise.
91516         * tests/test-isnanf.c (ASSERT): Likewise.
91517         * tests/test-isnanl.h (ASSERT): Likewise.
91518         * tests/test-ldexpl.c (ASSERT): Likewise.
91519         * tests/test-linked_list.c (ASSERT): Likewise.
91520         * tests/test-linkedhash_list.c (ASSERT): Likewise.
91521         * tests/test-localename.c (ASSERT): Likewise.
91522         * tests/test-lseek.c (ASSERT): Likewise.
91523         * tests/test-mbscasecmp.c (ASSERT): Likewise.
91524         * tests/test-mbscasestr1.c (ASSERT): Likewise.
91525         * tests/test-mbscasestr2.c (ASSERT): Likewise.
91526         * tests/test-mbscasestr3.c (ASSERT): Likewise.
91527         * tests/test-mbscasestr4.c (ASSERT): Likewise.
91528         * tests/test-mbschr.c (ASSERT): Likewise.
91529         * tests/test-mbscspn.c (ASSERT): Likewise.
91530         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
91531         * tests/test-mbspbrk.c (ASSERT): Likewise.
91532         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
91533         * tests/test-mbsrchr.c (ASSERT): Likewise.
91534         * tests/test-mbsspn.c (ASSERT): Likewise.
91535         * tests/test-mbsstr1.c (ASSERT): Likewise.
91536         * tests/test-mbsstr2.c (ASSERT): Likewise.
91537         * tests/test-mbsstr3.c (ASSERT): Likewise.
91538         * tests/test-memchr2.c (ASSERT): Likewise.
91539         * tests/test-memmem.c (ASSERT): Likewise.
91540         * tests/test-open.c (ASSERT): Likewise.
91541         * tests/test-printf-frexp.c (ASSERT): Likewise.
91542         * tests/test-printf-frexpl.c (ASSERT): Likewise.
91543         * tests/test-printf-posix.c (ASSERT): Likewise.
91544         * tests/test-quotearg.c (ASSERT): Likewise.
91545         * tests/test-rbtree_list.c (ASSERT): Likewise.
91546         * tests/test-rbtree_oset.c (ASSERT): Likewise.
91547         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
91548         * tests/test-round1.c (ASSERT): Likewise.
91549         * tests/test-roundf1.c (ASSERT): Likewise.
91550         * tests/test-roundl.c (ASSERT): Likewise.
91551         * tests/test-signbit.c (ASSERT): Likewise.
91552         * tests/test-sleep.c (ASSERT): Likewise.
91553         * tests/test-snprintf-posix.c (ASSERT): Likewise.
91554         * tests/test-snprintf.c (ASSERT): Likewise.
91555         * tests/test-sprintf-posix.c (ASSERT): Likewise.
91556         * tests/test-stat-time.c (ASSERT): Likewise.
91557         * tests/test-strcasestr.c (ASSERT): Likewise.
91558         * tests/test-strerror.c (ASSERT): Likewise.
91559         * tests/test-striconv.c (ASSERT): Likewise.
91560         * tests/test-striconveh.c (ASSERT): Likewise.
91561         * tests/test-striconveha.c (ASSERT): Likewise.
91562         * tests/test-strsignal.c (ASSERT): Likewise.
91563         * tests/test-strstr.c (ASSERT): Likewise.
91564         * tests/test-strtod.c (ASSERT): Likewise.
91565         * tests/test-trunc1.c (ASSERT): Likewise.
91566         * tests/test-trunc2.c (ASSERT): Likewise.
91567         * tests/test-truncf1.c (ASSERT): Likewise.
91568         * tests/test-truncf2.c (ASSERT): Likewise.
91569         * tests/test-truncl.c (ASSERT): Likewise.
91570         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
91571         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
91572         * tests/test-vasnprintf.c (ASSERT): Likewise.
91573         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
91574         * tests/test-vasprintf.c (ASSERT): Likewise.
91575         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
91576         * tests/test-vprintf-posix.c (ASSERT): Likewise.
91577         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
91578         * tests/test-vsnprintf.c (ASSERT): Likewise.
91579         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
91580         * tests/test-wcwidth.c (ASSERT): Likewise.
91581         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
91582         * tests/test-xprintf-posix.c (ASSERT): Likewise.
91583         * tests/test-xvasprintf.c (ASSERT): Likewise.
91584         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
91585         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
91586         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
91587         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
91588         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
91589         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
91590         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
91591         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
91592         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
91593         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
91594         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
91595         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
91596         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
91597         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
91598         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
91599         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
91600         * tests/unictype/test-block_list.c (ASSERT): Likewise.
91601         * tests/unictype/test-block_of.c (ASSERT): Likewise.
91602         * tests/unictype/test-block_test.c (ASSERT): Likewise.
91603         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
91604         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
91605         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
91606         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
91607         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
91608         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
91609         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
91610         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
91611         * tests/unictype/test-combining.c (ASSERT): Likewise.
91612         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
91613         * tests/unictype/test-digit.c (ASSERT): Likewise.
91614         * tests/unictype/test-mirror.c (ASSERT): Likewise.
91615         * tests/unictype/test-numeric.c (ASSERT): Likewise.
91616         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
91617         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
91618         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
91619         * tests/unictype/test-scripts.c (ASSERT): Likewise.
91620         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
91621         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
91622         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
91623         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
91624         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
91625         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
91626         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
91627         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
91628         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
91629         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
91630         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
91631         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
91632         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
91633         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
91634         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
91635         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
91636         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
91637         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
91638         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
91639         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
91640         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
91641         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
91642         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
91643         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
91644         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
91645         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
91646         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
91647         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
91648         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
91649         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
91650         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
91651         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
91652         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
91653         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
91654         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
91655         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
91656         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
91657         Reported by Eric Blake.
91659 2008-04-11  Bruno Haible  <bruno@clisp.org>
91661         * lib/wchar.in.h: Tweak comment.
91663 2008-04-11  Bruno Haible  <bruno@clisp.org>
91665         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
91666         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
91667         gl_COMMON.
91668         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
91670 2008-04-11  Bruno Haible  <bruno@clisp.org>
91672         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
91674 2008-04-11  Simon Josefsson  <simon@josefsson.org>
91676         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
91677         of attempting to use non-existing /dev/*random.  Based on patch
91678         from Adam Strzelecki <ono@java.pl> in
91679         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
91681 2008-04-08  Bruno Haible  <bruno@clisp.org>
91683         Add tentative support for emx+gcc.
91684         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
91685         * lib/fpurge.c (fpurge): Likewise.
91686         * lib/freadable.c (freadable): Likewise.
91687         * lib/freadahead.c (freadahead): Likewise.
91688         * lib/freading.c (freading): Likewise.
91689         * lib/freadptr.c (freadptr): Likewise.
91690         * lib/freadseek.c (freadptrinc): Likewise.
91691         * lib/fseeko.c (rpl_fseeko): Likewise.
91692         * lib/fseterr.c (fseterr): Likewise.
91693         * lib/fwritable.c (fwritable): Likewise.
91694         * lib/fwriting.c (fwriting): Likewise.
91695         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
91697 2008-04-09  Eric Blake  <ebb9@byu.net>
91699         Avoid some autoconf warnings.
91700         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
91701         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
91702         * m4/afs.m4 (gl_AFS): Likewise.
91703         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
91704         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
91705         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
91706         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
91707         (gl_INTEGER_TYPE_SUFFIX): Likewise.
91708         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
91709         (AC_CHECK_DECLS_ONCE): Likewise.
91710         Rename file...
91711         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
91712         gnulib-tool requires autoconf 2.59 or better.
91713         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
91715 2008-04-08  Eric Blake  <ebb9@byu.net>
91717         Use 'git describe --match' if present (added in git 1.5.5).
91718         * build-aux/git-version-gen: Limit result to tags that match 'v*'
91719         if possible.
91721 2008-04-08  Bruno Haible  <bruno@clisp.org>
91723         Add tentative support for OpenServer.
91724         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
91725         _ptr, _cnt.
91726         * lib/fpurge.c (fpurge): Likewise.
91727         * lib/freadable.c (freadable): Likewise.
91728         * lib/freadahead.c (freadahead): Likewise.
91729         * lib/freading.c (freading): Likewise.
91730         * lib/freadptr.c (freadptr): Likewise.
91731         * lib/freadseek.c (freadptrinc): Likewise.
91732         * lib/fseeko.c (rpl_fseeko): Likewise.
91733         * lib/fseterr.c (fseterr): Likewise.
91734         * lib/fwritable.c (fwritable): Likewise.
91735         * lib/fwriting.c (fwriting): Likewise.
91736         Reported by Roger Cornelius <rac@tenzing.org> and
91737         Brian K. White <brian@aljex.com>.
91739 2008-04-06  Jim Meyering  <meyering@redhat.com>
91741         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
91743 2008-04-06  Bruno Haible  <bruno@clisp.org>
91745         Avoid possible error with non-ASCII bytes in UTF-8 locales.
91746         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
91747         * tests/test-printf-posix.sh: Likewise.
91748         * tests/test-vfprintf-posix.sh: Likewise.
91749         * tests/test-vprintf-posix.sh: Likewise.
91750         * tests/test-xprintf-posix.sh: Likewise.
91752 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91754         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
91755         hide error from 'ls', needed on OS/2.
91756         Report by Elbert Pol <elbert.pol@gmail.com>.
91758 2008-04-04  Eric Blake  <ebb9@byu.net>
91760         Make test-fseeko.c failures meaningful.
91761         * tests/test-fseeko.c: Print line number on failure.
91762         * tests/test-fseek.c: Likewise.
91763         Reported by Nelson H. F. Beebe.
91765         Improve strtod bug detection check.
91766         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
91767         required for Solaris 10.
91768         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
91770 2008-04-04  Bruno Haible  <bruno@clisp.org>
91772         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
91773         by m4/setenv.m4.
91775 2008-04-03  Eric Blake  <ebb9@byu.net>
91777         Ensure sane .version contents.
91778         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
91779         version string.
91780         * build-aux/git-version-gen: Improve documentation.
91782         Make GNU make output nicer.
91783         * top/GNUmakefile [!_have-Makefile]: Add dependency on
91784         MAKECMDGOALS to enforce message for all command line targets.  Set
91785         srcdir for use in maint.mk.
91787         Another maintainer tweak.
91788         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
91789         a target that regenerates version.
91791 2008-04-03  Jim Meyering  <meyering@redhat.com>
91793         vc-list-files: don't cause coreutils "make po-check" failure
91794         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
91796 2008-04-03  Eric Blake  <ebb9@byu.net>
91798         Allow VPATH usage of vc-list-files.
91799         * build-aux/vc-list-files (scriptversion): Add timestamp.
91800         (options): Add --help, --version, -C.
91801         (CVS): Support installed cvsu.
91803 2008-04-02  Bruno Haible  <bruno@clisp.org>
91805         Avoid some "statement with no effect" warnings from gcc.
91806         * tests/test-wctype.c (main): Explicitly ignore unused values.
91807         Reported by Jim Meyering.
91809 2008-04-02  Jim Meyering  <meyering@redhat.com>
91811         Avoid some warnings from "gcc -Wshadow".
91812         * tests/test-frexp.c (exp): Define to a different identifier.
91813         * tests/test-frexpl.c (exp): Likewise.
91815 2008-04-03  Jim Meyering  <meyering@redhat.com>
91817         bootstrap: remove dangling *.[ch] symlinks from lib
91818         * build-aux/bootstrap [dangling symlink removal]: Move find's
91819         -depth option to precede all others, to avoid a warning.
91820         Remove *.[ch] files too, and from "$source_base" (usually lib/).
91822 2008-04-02  Bruno Haible  <bruno@clisp.org>
91824         Avoid some warnings from "gcc -Wshadow".
91825         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
91826         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
91827         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
91828         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
91829         Reported by Jim Meyering.
91831 2008-04-01  Bruno Haible  <bruno@clisp.org>
91833         Fix test to work on IRIX 6.5 with cc.
91834         * tests/test-math.c (numeric_equal): New function.
91835         (main): Use it.
91837 2008-04-01  Bruno Haible  <bruno@clisp.org>
91839         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
91841 2008-04-01  Bruno Haible  <bruno@clisp.org>
91843         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
91844         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91845         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
91846         (Depends-on): Remove math.
91848         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
91849         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91850         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
91851         (Depends-on): Remove math.
91853         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
91854         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91855         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
91856         (Depends-on): Remove math.
91857         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
91858         (Depends-on): Remove math.
91860         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
91861         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91862         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
91863         (Depends-on): Remove math.
91864         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
91865         (Depends-on): Remove math.
91867         * tests/test-round1.c: Include nan.h.
91868         (main): Use NaNd instead of NAN.
91869         * modules/round-tests (Files): Add tests/nan.h.
91871         * tests/test-trunc1.c: Include nan.h.
91872         (main): Use NaNd instead of NAN.
91873         * modules/trunc-tests (Files): Add tests/nan.h.
91875         * tests/test-roundf1.c: Include nan.h.
91876         (main): Use NaNf instead of NAN.
91877         * modules/roundf-tests (Files): Add tests/nan.h.
91879         * tests/test-truncf1.c: Include nan.h.
91880         (main): Use NaNf instead of NAN.
91881         * modules/truncf-tests (Files): Add tests/nan.h.
91883         * tests/test-ceilf1.c: Include nan.h.
91884         (main): Use NaNf instead of NAN.
91885         * modules/ceilf-tests (Files): Add tests/nan.h.
91887         * tests/test-floorf1.c: Include nan.h.
91888         (main): Use NaNf instead of NAN.
91889         * modules/floorf-tests (Files): Add tests/nan.h.
91891         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
91892         (main): Use NaNf instead of NAN.
91893         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
91895         * tests/test-isnand.c: Include nan.h instead of <math.h>.
91896         (main): Use NaNd instead of NAN.
91897         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
91899         * tests/test-frexp.c: Include nan.h.
91900         (main): Use NaNd instead of NAN.
91901         * modules/frexp-tests (Files): Add tests/nan.h.
91903         * lib/isnan.c: Don't include <math.h>.
91904         (FUNC): Don't use NAN macro.
91905         * modules/isnand-nolibm (Depends-on): Remove math.
91906         * modules/isnanf-nolibm (Depends-on): Remove math.
91907         * modules/isnanl (Depends-on): Remove math.
91908         * modules/isnanl-nolibm (Depends-on): Remove math.
91910         * tests/nan.h: New file.
91912 2008-04-01  Eric Blake  <ebb9@byu.net>
91914         Fix typos.
91915         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
91916         values to be the right type.
91918         For now, cater to gnulib strtod inaccuracies.
91919         * tests/test-strtod.c (main): Allow 1-ulp error on expected
91920         fractional results.  While not as nice from a QoI perspective, it
91921         is a quicker patch than correctly implementing decimal to binary
91922         rounding.
91924 2008-03-31  Eric Blake  <ebb9@byu.net>
91926         Guarantee a definition of NAN.
91927         * lib/math.in.h (NAN): Define if missing.
91928         * tests/test-math.c (main): Test it.
91929         * doc/posix-headers/math.texi (math.h): Document this.
91930         * lib/isnan.c (rpl_isnand): Use it.
91931         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
91932         * tests/test-floorf1.c (NaN): Likewise.
91933         * tests/test-frexp.c (NaN): Likewise.
91934         * tests/test-isnand.c (NaN): Likewise.
91935         * tests/test-isnanf.c (NaN): Likewise.
91936         * tests/test-round1.c (NaN): Likewise.
91937         * tests/test-roundf1.c (NaN): Likewise.
91938         * tests/test-snprintf-posix.h (NaN): Likewise.
91939         * tests/test-sprintf-posix.h (NaN): Likewise.
91940         * tests/test-trunc1.c (NaN): Likewise.
91941         * tests/test-truncf1.c (NaN): Likewise.
91942         * tests/test-vasnprintf-posix.c (NaN): Likewise.
91943         * tests/test-vasprintf-posix.c (NaN): Likewise.
91944         * modules/isnand-nolibm (Depends-on): Add math.
91945         * modules/isnanf-nolibm (Depends-on): Likewise.
91946         * modules/isnanl (Depends-on): Likewise.
91947         * modules/isnanl-nolibm (Depends-on): Likewise.
91948         * modules/snprintf-posix-tests (Depends-on): Likewise.
91949         * modules/sprintf-posix-tests (Depends-on): Likewise.
91950         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
91951         * modules/vsprintf-posix-tests (Depends-on): Likewise.
91952         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
91953         * modules/vasprintf-posix-tests (Depends-on): Likewise.
91955 2008-03-31  Bruno Haible  <bruno@clisp.org>
91957         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
91958         * doc/posix-functions/strtod.texi: Likewise.
91960 2008-03-31  Bruno Haible  <bruno@clisp.org>
91962         * tests/test-strtod.c (main): Don't use C99 syntax.
91964 2008-03-31  Bruno Haible  <bruno@clisp.org>
91966         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
91967         Reported by Eric Blake.
91969 2008-03-31  Jim Meyering  <meyering@redhat.com>
91971         Don't compare actual signbit return values.
91972         * tests/test-strtod.c (main): Rather, compare only their
91973         zero/non-zero nature.
91975 2008-03-31  Eric Blake  <ebb9@byu.net>
91977         More strtod documentation.
91978         * doc/posix-functions/strtod.texi (strtod): Interpret more test
91979         failures as distinct bugs.
91981 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
91983         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
91984         Problem reported by Erik Benada in
91985         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
91987 2008-03-30  Bruno Haible  <bruno@clisp.org>
91989         * tests/test-strtod.c: Add comments about which assertion fails on which
91990         platform.
91991         * doc/posix-functions/strtod.texi: Add info about many more platforms.
91993 2008-03-30  Eric Blake  <ebb9@byu.net>
91995         Test signbit behavior on zeros.
91996         * tests/test-signbit.c (test_signbitf): Add tests for zero.
91997         (test_signbitd, test_signbitl): Likewise.
91999         More strtod touchups.
92000         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
92001         sign of negative underflow, for now.  Use .5, not .1.
92002         * doc/posix-functions/strtod.texi (strtod): Mention these
92003         limitations.
92004         Reported by Jim Meyering.
92006 2008-03-30  Bruno Haible  <bruno@clisp.org>
92008         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
92009         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
92011 2008-03-30  Bruno Haible  <bruno@clisp.org>
92013         Avoid failure when attempting to return empty iconv results on some
92014         platforms.
92015         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
92016         allocation, don't report ENOMEM when the resulting string is empty.
92018 2008-03-30  Bruno Haible  <bruno@clisp.org>
92020         Fix buffer overrun.
92021         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
92022         Don't consider the width for tmp_length. Check count against tmp_length
92023         before doing the padding. Ensure enough allocation during padding.
92025 2008-03-30  Eric Blake  <ebb9@byu.net>
92027         strtod touchups.
92028         * lib/strtod.c (strtod): Avoid compiler warnings.
92029         Reported by Jim Meyering.
92031 2008-03-30  Bruno Haible  <bruno@clisp.org>
92033         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
92034         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
92035         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
92036         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
92037         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
92038         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
92039         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
92040         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
92042         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
92043         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
92044         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
92045         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
92046         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
92047         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
92048         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
92049         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
92051         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
92052         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
92053         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
92054         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
92055         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
92056         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
92057         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
92058         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
92060         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
92061         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
92063         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
92064         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
92066         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
92067         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
92069         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
92070         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
92071         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
92073         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
92074         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
92075         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
92077         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
92078         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
92079         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
92081         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
92082         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
92083         * modules/vasprintf (Depends-on): Add EOVERFLOW.
92085         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
92086         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
92087         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
92088         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
92089         (Depends-on): Add EOVERFLOW.
92090         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
92091         (Depends-on): Add EOVERFLOW.
92092         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
92093         (Depends-on): Add EOVERFLOW.
92094         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
92095         (Depends-on): Add EOVERFLOW.
92096         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
92097         (Depends-on): Add EOVERFLOW.
92098         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
92099         (Depends-on): Add EOVERFLOW.
92100         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
92101         (Depends-on): Add EOVERFLOW.
92102         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
92103         (Depends-on): Add EOVERFLOW.
92105         * lib/sprintf.c (EOVERFLOW): Remove fallback.
92106         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
92107         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
92109         * lib/snprintf.c (EOVERFLOW): Remove fallback.
92110         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
92111         * modules/snprintf (Depends-on): Add EOVERFLOW.
92113         * lib/poll.c (EOVERFLOW): Remove fallback.
92114         * modules/poll (Depends-on): Add EOVERFLOW.
92116         * lib/getugroups.c (EOVERFLOW): Remove fallback.
92117         * modules/getugroups (Depends-on): Add EOVERFLOW.
92119         * lib/getdelim.c (EOVERFLOW): Remove fallback.
92120         * modules/getdelim (Depends-on): Add EOVERFLOW.
92122         * lib/ftell.c (EOVERFLOW): Remove fallback.
92123         * modules/ftell (Depends-on): Add EOVERFLOW.
92125         * lib/fprintf.c (EOVERFLOW): Remove fallback.
92126         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
92127         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
92129         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
92131         * modules/EOVERFLOW-tests: New file.
92132         * tests/test-EOVERFLOW.c: New file.
92134         * modules/EOVERFLOW: New file.
92135         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
92137 2008-03-30  Bruno Haible  <bruno@clisp.org>
92139         Fix bug introduced on 2007-06-10.
92140         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
92141         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
92143 2008-03-30  Bruno Haible  <bruno@clisp.org>
92145         Improve freadseek's efficiency after ungetc.
92146         * lib/freadseek.c: Include freadahead.h.
92147         (freadptrinc): New function, extracted from freadseek.
92148         (freadseek): Use it in a loop. Use freadahead to determine the number
92149         of loop iterations.
92150         * modules/freadseek (Depends-on): Add freadahead.
92151         (configure.ac): Require AC_C_INLINE.
92153 2008-03-30  Bruno Haible  <bruno@clisp.org>
92155         * lib/freadseek.c (freadseek): Don't ignore the return value of
92156         freadptr.
92158 2008-03-29  Eric Blake  <ebb9@byu.net>
92160         Add hex float support.
92161         * modules/strtod (Depends-on): Add c-ctype.
92162         (Link): Mention POW_LIB.
92163         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
92164         whitespace between 'e' and exponent.
92165         * tests/test-strtod.c (main): Enable hex float tests.
92166         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
92167         now provides.
92169         Document various strtod bugs, with some fixes.
92170         * doc/posix-functions/strtod.texi (strtod): Document bugs with
92171         "-0x", "inf", "nan", and hex constants.
92172         * doc/posix-functions/atof.texi (atof): Likewise.
92173         * modules/stdlib (Makefile.am): Support strtod.
92174         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
92175         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
92176         detect additional strtod bugs.
92177         * lib/stdlib.in.h (rpl_strtod): Add declarations.
92178         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
92179         bool where appropriate.  Parse 'inf' and 'nan'.
92180         * tests/test-strtod.c: New file.
92181         * modules/strtod (Depends-on): Add stdbool, stdlib.
92182         (configure.ac): Turn on module indicator.
92183         * modules/strtod-tests: New module.
92185 2008-03-29  Eric Blake  <ebb9@byu.net>
92187         Fix ftell on mingw.
92188         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
92189         * modules/ftell-tests (Depends-on): Add binary-io.
92190         * modules/ftello-tests (Depends-on): Likewise.
92191         * tests/test-ftell.c (main): Enhance test to cover behavior after
92192         ungetc.  Enforce binary mode.
92193         * tests/test-ftello.c (main): Likewise.
92195         Pass test-freadseek on cygwin.
92196         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
92197         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
92198         ungetc buffer.
92200         * tests/test-fflush2.c (main): Fix typo.
92202 2008-03-29  Bruno Haible  <bruno@clisp.org>
92204         * tests/test-fflush2.c (main): Temporarily disable the contents of
92205         this test.
92206         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
92207         Reported by Eric Blake.
92209 2008-03-28  Simon Josefsson  <simon@josefsson.org>
92211         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
92212         (GC_SHA224_DIGEST_SIZE): Add.
92214         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
92215         (gc_hash_digest_length): Likewise.
92216         (gc_hash_buffer): Likewise.
92218 2008-03-25  Bruno Haible  <bruno@clisp.org>
92220         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
92221         detail which gettext release to use.
92222         Reported by Simon Josefsson.
92224 2008-03-26  Jim Meyering  <meyering@redhat.com>
92226         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
92227         * modules/gnumakefile (clean-GNUmakefile): Also, use
92228         test ... && ... || : syntax rather than if-then ... fi.
92230         gnumakefile: Don't double-quote-expand $(VPATH) value.
92231         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
92233 2008-03-24  Eric Blake  <ebb9@byu.net>
92235         Alter GNUmakefile to install into top directory.
92236         * modules/maintainer-makefile: Split, and add dependency...
92237         * modules/gnumakefile: to this new module.
92238         * build-aux/GNUmakefile: Move...
92239         * top/GNUmakefile: ...here.
92240         * build-aux/maint.mk: Move...
92241         * top/maint.mk: ...here.
92242         * MODULES.html.sh (Support for maintaining...): Document new
92243         module.
92245 2008-03-23  Bruno Haible  <bruno@clisp.org>
92247         * gnulib-tool: New options --vc-files, --no-vc-files.
92248         (func_usage): Document them.
92249         (vc_files): New variable.
92250         (func_import): Consider vc_files.
92251         (func_create_testdir): Set vc_files to empty.
92252         Suggested by Jim Meyering and Karl Berry.
92254 2008-03-23  Bruno Haible  <bruno@clisp.org>
92256         Fix regex compilation error on HP-UX 11.
92257         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
92258         * modules/regex (Files): Add m4/mbstate_t.m4.
92259         Reported by Ton Voon <ton.voon@altinity.com>.
92261 2008-03-23  Bruno Haible  <bruno@clisp.org>
92263         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
92265 2008-03-23  Eric Blake  <ebb9@byu.net>
92266             Bruno Haible  <bruno@clisp.org>
92268         Install files from top/ in the destination directory.
92269         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
92270         augmentation also for the files from top/.
92271         (func_import, func_create_testdir): Rewrite file names:
92272         top/filename -> filename.
92274 2008-03-23  Bruno Haible  <bruno@clisp.org>
92276         Tweak "gnulib --version" output.
92277         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
92279 2008-03-23  Bruno Haible  <bruno@clisp.org>
92281         Tweak "gnulib --version" output.
92282         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
92283         rather than contents of ChangeLog, when possible.
92285 2008-03-21  Eric Blake  <ebb9@byu.net>
92287         More --version tweaks.
92288         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
92289         date of last ChangeLog entry.
92291 2008-03-21  Jim Meyering  <meyering@redhat.com>
92293         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
92295 2008-03-20  Eric Blake  <ebb9@byu.net>
92297         VPATH fix.
92298         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
92300 2008-03-20  Simon Josefsson  <simon@josefsson.org>
92302         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
92303         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
92305 2008-03-20  Eric Blake  <ebb9@byu.net>
92307         Sync GNUmakefile with coreutils.
92308         * build-aux/GNUmakefile (have-Makefile): Rename...
92309         (_have-Makefile): ...to this, for namespace consideration.
92310         (GNUmakefile.cfg): Include, if present.
92311         (_autoreconf): Define a default.
92312         (_is-dist-target): New rule for rebuilds to pick up intra-release
92313         version.
92314         (maint-cfg.mk): Rename...
92315         (cfg.mk): ...to this.
92317 2008-03-18  Jim Meyering  <meyering@redhat.com>
92319         New script and module: mktempd
92320         * MODULES.html.sh (maint+release support): Add mktempd.
92321         * build-aux/mktempd: New file.
92322         * modules/mktempd: New file.
92324 2008-03-15  Jim Meyering  <meyering@redhat.com>
92326         Undo last change.
92327         * lib/sha1.c, lib/md5.c: 63 != ~63.
92328         Reported by Andreas Schwab.
92330         sha1.c, md5.c: Hoist a redundant expression.
92331         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
92332         "ctx->buflen" only once, before calling *_process_block.
92333         * lib/md5.c (md5_process_bytes): Likewise.
92335 2008-03-14  Eric Blake  <ebb9@byu.net>
92337         Bump copyright year in files generated by gnulib-tool.
92338         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
92339         gnulib-tool, rather than hard-coding it.
92341         Fix 'gnulib-tool --version' output to work with git.
92342         * gnulib-tool (func_gnulib_dir): New function, extracted from...
92343         (startup): ...here.
92344         (func_version): Use it to invoke git-version-gen, rather than
92345         relying on CVS keyword expansion.  Modernize wording.
92346         (cvsdatestamp, last_checkin_date, version): Kill unused
92347         variables.
92349 2008-03-12  Jim Meyering  <meyering@redhat.com>
92351         Recognize optional cast of the argument to free.
92352         * build-aux/useless-if-before-free: Update regexps.
92354         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
92356 2008-03-11  Bruno Haible  <bruno@clisp.org>
92358         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
92359         by a single package.
92360         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
92361         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
92362         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
92363         Reported by Sam Steingold <sds@gnu.org>.
92365 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
92367         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
92368         repositories.
92370 2008-03-11  Bruno Haible  <bruno@clisp.org>
92372         Avoid conflicts between local macro definitions.
92373         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
92374         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
92376 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
92377             Bruno Haible  <bruno@clisp.org>
92379         Make va_copy work with some version of xlc on AIX 5.1.
92380         * lib/stdarg.in.h: New file.
92381         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
92382         On AIX, use a <stdarg.h> file substitute.
92383         * modules/stdarg (Files): Add lib/stdarg.in.h.
92384         (Depends-on): Add include_next.
92385         (Makefile.am): Build a stdarg.h substitute if requested.
92386         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
92388 2008-03-10  Bruno Haible  <bruno@clisp.org>
92390         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
92391         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
92392         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
92394 2008-03-10  Bruno Haible  <bruno@clisp.org>
92396         * modules/stdlib (Depends-on): Add include_next, remove
92397         absolute-header.
92399 2008-03-09  Bruno Haible  <bruno@clisp.org>
92401         * lib/freadahead.h (freadahead): Document more precisely.
92402         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
92403         the sum of both buffer sizes.
92404         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
92405         * NEWS: Document the change.
92407 2008-03-09  Bruno Haible  <bruno@clisp.org>
92409         Extend freadptr to return also the buffer size.
92410         * lib/freadptr.h (freadptr): Add sizep argument.
92411         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
92412         (freadptr): Add sizep argument. Determine buffer size like freadahead
92413         does.
92414         * tests/test-freadptr.c: Don't include freadahead.h.
92415         (main): Adapt for new calling convention of freadptr.
92416         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
92417         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
92418         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
92419         tests/test-freadptr2.sh.
92420         (Depends): Remove freadahead.
92421         (TESTS): Add test-freadptr2.sh.
92422         (check_PROGRAMS): Add test-freadptr2.
92424 2008-03-09  Bruno Haible  <bruno@clisp.org>
92426         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
92427         Report and solution by Simon Josefsson.
92429 2008-03-06  Bruno Haible  <bruno@clisp.org>
92431         Make fflush after ungetc work on BSD platforms.
92432         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
92433         * tests/test-fflush2.c: New file.
92434         * tests/test-fflush2.sh: New file.
92435         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
92436         tests/test-fflush2.c.
92437         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
92438         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
92440 2008-03-06  Eric Blake  <ebb9@byu.net>
92442         Likewise for ftello.
92443         * modules/ftello (Dependencies): Add extensions.
92444         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
92446 2008-03-06  Bruno Haible  <bruno@clisp.org>
92448         * modules/fseeko (Dependencies): Add extensions.
92449         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
92450         Needed on glibc systems.
92452 2008-03-06  Bruno Haible  <bruno@clisp.org>
92454         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
92455         email address.
92456         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92458 2008-03-06  Bruno Haible  <bruno@clisp.org>
92460         * users.txt: Add libgnupdf.
92462 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
92464         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
92465         (Header File Substitutes, Function Substitutes,
92466         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
92467         (Build robot for gnulib): Fix typo.
92469 2008-03-06  Bruno Haible  <bruno@clisp.org>
92471         * doc/gnulib-tool.texi (VCS Issues): Small updates.
92472         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92474 2008-03-06  Bruno Haible  <bruno@clisp.org>
92476         * doc/func.texi: New file, extracted from doc/gnulib.texi.
92477         * doc/gnulib.texi: Include it.
92479 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92481         * modules/func (License): Change license to unlimited; there was
92482         no LGPL parts in the module anyway.
92484 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92486         * modules/__func__: Renamed to modules/func.
92487         * modules/__func__-tests: Renamed to modules/func-tests.
92488         * tests/test-__func__.c: Renamed to tests/test-func.c.
92489         * m4/__func__.m4: Renamed to m4/func.m4.
92490         * doc/gnulib.texi (__func__): Section renamed to func.
92491         Suggested by Eric Blake <ebb9@byu.net>.
92493 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92495         * doc/gnulib.texi (__func__): Use C99 terminology when talking
92496         about __func__.  Make example self-contained.  Suggested by Eric
92497         Blake <ebb9@byu.net>.
92499         * tests/test-__func__.c (main): Avoid extraneous () around __func.
92500         Suggested by Eric Blake <ebb9@byu.net>.
92502 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92504         * modules/__func__: New file.
92505         * modules/__func__-tests: New file.
92506         * tests/test-__func__.c: New file.
92507         * m4/__func__.m4: New file.
92508         * doc/gnulib.texi (__func__): Document __func__ module.
92510 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92512         * modules/byteswap (License): Re-license as LGPLv2+.
92514 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92516         * doc/Makefile: Add pdf target.
92518 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92520         * modules/inline (License): Use 'unlimited', since there are only
92521         *.m4 files in this module.
92523 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
92524             Bruno Haible  <bruno@clisp.org>
92526         Add support for HP C 7.1 on OpenVMS 8.3.
92527         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
92529 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
92531         Update VMS specifics.
92532         * lib/getopt.c [VMS]: Remove include of unixlib.h.
92534 2008-03-02  Jim Meyering  <meyering@redhat.com>
92536         Remove the last dependency on the "free" module.
92537         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
92538         Reported by Bob Proulx.
92540         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
92542         Remove useless "if" tests before free.  Deprecate "free" module.
92543         * doc/posix-functions/free.texi: Mention that this
92544         module is no longer useful.
92545         * modules/free (Notice): Say this module is obsolete.
92546         * modules/readutmp (Depends-on): Remove free.
92547         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
92548         * lib/putenv.c (putenv): Likewise.
92549         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
92550         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
92551         * tests/test-c-strcasestr.c (main): Likewise.
92552         * tests/test-c-strstr.c (main): Likewise.
92553         * tests/test-mbscasestr1.c (main): Likewise.
92554         * tests/test-mbscasestr2.c (main): Likewise.
92555         * tests/test-mbsstr1.c (main): Likewise.
92556         * tests/test-mbsstr2.c (main): Likewise.
92557         * tests/test-memmem.c (main): Likewise.
92558         * tests/test-strcasestr.c (main): Likewise.
92559         * tests/test-striconv.c (main): Likewise.
92560         * tests/test-striconveh.c (main): Likewise.
92561         * tests/test-striconveha.c (main): Likewise.
92562         * tests/test-strstr.c (main): Likewise.
92564         * build-aux/git-version-gen: Adjust a comment and the Usage string.
92566         bootstrap: sync from coreutils again
92567         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
92569 2008-03-01  Jim Meyering  <meyering@redhat.com>
92571         bootstrap: sync from coreutils
92572         * build-aux/bootstrap (update_po_files): Copy a .po file into place
92573         also when the target doesn't exist.
92575 2008-03-01  Eric Blake  <ebb9@byu.net>
92577         Fix bugs in last patch.
92578         * lib/memchr2.c (memchr2): Fix typo.
92579         * tests/test-memchr2.c: Test previous bug, and don't use GNU
92580         extension.
92581         Reported by Bruce Korb.
92583         New module 'memchr2'.
92584         * modules/memchr2: New file.
92585         * modules/memchr2-tests: Likewise.
92586         * lib/memchr2.h: Likewise.
92587         * lib/memchr2.c: Likewise, based on memchr.c.
92588         * tests/test-memchr2.c: New test.
92589         * MODULES.html.sh (String handling): Add memchr2.
92591 2008-02-29  Bruno Haible  <bruno@clisp.org>
92593         * modules/freadseek-tests: New file.
92594         * tests/test-freadseek.sh: New file.
92595         * tests/test-freadseek.c: New file.
92597         New module 'freadseek'.
92598         * modules/freadseek: New file.
92599         * lib/freadseek.h: New file.
92600         * lib/freadseek.c: New file.
92601         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
92603 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
92605         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
92606         wydawca.
92608         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
92609         program_invocation_name and program_invocation_short_name are
92610         present.
92612 2008-02-28  Bruno Haible  <bruno@clisp.org>
92614         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
92615         * tests/test-freadptr.sh: Also test non-seekable stdin.
92617 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
92619         * build-aux/bootstrap (source_base, m4_base)
92620         (doc_base, tests_base): New variables.
92621         (gnulib_tool_options): Do not hardcode base directories, use
92622         the above variables instead.
92624 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
92626         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
92628 2008-02-28  Bruno Haible  <bruno@clisp.org>
92630         * modules/freadptr-tests: New file.
92631         * tests/test-freadptr.sh: New file.
92632         * tests/test-freadptr.c: New file.
92634         New module 'freadptr'.
92635         * modules/freadptr: New file.
92636         * lib/freadptr.h: New file.
92637         * lib/freadptr.c: New file.
92638         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
92640 2008-02-26  Karl Berry  <karl@freefriends.org>
92642         Sync from Libtool:
92643         * libltdl/argz.c (argz_add, argz_count): New functions.
92644         * libltdl/argz.in.h: Declare them.
92645         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
92647 2008-02-22  Bruno Haible  <bruno@clisp.org>
92649         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
92650         is a pointer type.  Needed for HP-UX 10.
92651         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
92652         * doc/posix-functions/gmtime_r.texi: Likewise.
92653         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
92655 2008-02-24  Bruno Haible  <bruno@clisp.org>
92657         * modules/environ-tests: New file.
92658         * tests/test-environ.c: New file.
92660         New module 'environ'.
92661         * modules/environ: New file.
92662         * lib/unistd.in.h (environ): New declaration.
92663         * m4/environ.m4: New file.
92664         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
92665         after use.
92666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
92667         HAVE_DECL_ENVIRON.
92668         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
92669         HAVE_DECL_ENVIRON.
92670         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
92671         wrong claim that 'environ' is missing on some systems.
92672         * modules/execute (Depends-on): Add environ.
92673         * lib/execute.c (environ): Remove fallback declaration.
92674         * modules/pipe (Depends-on): Add environ.
92675         * lib/pipe.c (environ): Remove fallback declaration.
92676         * modules/setenv (Depends-on): Add environ.
92677         * lib/setenv.c (environ): Remove fallback declaration.
92678         * modules/unsetenv (Depends-on): Add environ.
92679         * lib/unsetenv.c (environ): Remove fallback declaration.
92680         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
92681         m4/environ.m4.
92682         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
92683         (gl_PREREQ_UNSETENV): Likewise.
92685 2008-02-24  Bruno Haible  <bruno@clisp.org>
92687         * doc/posix-functions/environ.texi: Document the MacOS X problem.
92689 2008-02-20  Bob Proulx  <bob@proulx.com>
92691         Enable use of older two part flavor 'git describe'.
92692         * build-aux/git-version-gen: If using the older two part flavor of
92693         git version then recreate the third part now present in the
92694         newer three part flavor of git describe.
92696 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
92698         * lib/fts.c (fts_build): Typo correction to comment.
92700 2008-02-17  Bruno Haible  <bruno@clisp.org>
92702         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
92703         generating no-op conflicts.
92705 2008-02-17  Bruno Haible  <bruno@clisp.org>
92707         Speed up by 10%.
92708         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
92709         result_entries, rather than an index-based loop.
92711 2008-02-17  Bruno Haible  <bruno@clisp.org>
92713         Speed up by 25%.
92714         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
92715         'hashcode_cached'.
92716         (entry_create): New function.
92717         (entry_hashcode): Use the cached hashcode if possible.
92718         (read_changelog_file, try_split_merged_entry): Use entry_create.
92720 2008-02-17  Bruno Haible  <bruno@clisp.org>
92722         Speed up from O(n^2) to O(n) for long ChangeLog files.
92723         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
92724         (read_changelog_file): Change implementation of entries_reversed list
92725         to rbtreehash.
92726         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
92728 2008-02-17  Bruno Haible  <bruno@clisp.org>
92730         New option --split-merged-entry.
92731         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
92732         (find_paragraph_end, try_split_merged_entry): New functions.
92733         (long_options): Add option --split-merged-entry.
92734         (usage): Document option --split-merged-entry.
92735         (main): Implement option --split-merged-entry.
92736         Reported by Eric Blake.
92738 2008-02-17  Bruno Haible  <bruno@clisp.org>
92740         * lib/git-merge-changelog.c: Include c-strstr.h.
92741         (main): Support the "git pull --rebase" situation.
92742         * modules/git-merge-changelog (Depends-on): Add c-strstr.
92743         Reported by Eric Blake.
92745 2008-02-16  Eric Blake  <ebb9@byu.net>
92747         Avoid doubling \ in common case of "c-maybe" quoting style.
92748         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
92749         eliding outer quotes.
92750         * lib/quotearg.h: Document this.
92751         * tests/test-quotearg.c (result_strings, inputs, results_g)
92752         (flag_results, locale_results): Test it by adding a new string to
92753         each test group.
92754         (compare_strings): Test new string.
92756 2008-02-13  Eric Blake  <ebb9@byu.net>
92758         Avoid trigraph quoting in default output.
92759         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
92760         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
92761         unless explicitly requested.
92762         * tests/test-quotearg.c (flag_results, main): Add additional tests.
92764 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
92766         Don't rely on signed integer overflowing to negative value.
92767         * lib/getugroups.c (getugroups): Include <limits.h>.
92768         Instead, compare against INT_MAX, and increment only if the test passes.
92770 2008-02-13  Jim Meyering  <meyering@redhat.com>
92771         and Eric Blake  <ebb9@byu.net>
92773         Avoid shadowing warning and compile errors on Linux.
92774         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
92775         forwarding macros on Linux.
92776         (dcgettext): Define a stub, for Linux.
92777         (results_g, main): Avoid warnings.
92779 2008-02-12  Eric Blake  <ebb9@byu.net>
92781         Silence warning in last patch.
92782         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
92784         Quotearg part 4: add tests, fix c-maybe colon quoting.
92785         * lib/quotearg.h: Improve documentation.
92786         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
92787         escapes when adding outer quotes.  When quoting trigraphs, use
92788         valid C notation.  When quoting NUL, omit extra characters if next
92789         character is not digit.  Alter prototype.
92790         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
92791         callers.
92792         * modules/quotearg-tests: New module.
92793         * tests/test-quotearg.c: New test.
92795 2008-02-07  Eric Blake  <ebb9@byu.net>
92797         Quotearg part 3: add flag to control outer quote elision.
92798         * lib/quotearg.h (c_maybe_quoting_style): New style.
92799         (enum quoting_flags): Better documentation of flags.
92800         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
92801         c-maybe style.
92802         (quotearg_buffer_restyled): Handle new flag to elide outer
92803         quotes.
92805         Quotearg part 2: add flag that can control NUL elision.
92806         * lib/quotearg.h (set_quoting_flags): New prototype.
92807         * lib/quotearg.c (struct quoting_options): Add flag field.
92808         (set_quoting_flags): New function.
92809         (quotearg_buffer_restyled): Add flags parameter.
92810         (quotearg_alloc_mem): Set the flag if length cannot be returned.
92811         (quotearg_n_options): Set the flag, since length cannot be
92812         returned.
92813         (quoting_options_from_style): Default flags correctly.
92815         Quotearg part 1: more wrappers, restore quotearg_char state.
92816         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
92817         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
92818         (quotearg_colon_mem): New wrappers.
92819         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
92820         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
92821         functions.
92822         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
92823         (quotearg_colon_mem): New functions.
92825 2008-02-11  Bruno Haible  <bruno@clisp.org>
92827         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
92828         library in the current directory: it does not work with parallel make.
92829         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92831 2008-02-11  Bruno Haible  <bruno@clisp.org>
92833         * .gitattributes: New file.
92835 2008-02-11  Jim Meyering  <meyering@redhat.com>
92837         useless-if-before-free: Fix reversed exit values.
92838         * build-aux/useless-if-before-free: Use correct values
92839         for EXIT_MATCH and EXIT_NO_MATCH.
92841         * build-aux/useless-if-before-free: Close stdout carefully.
92843 2008-02-10  Bruno Haible  <bruno@clisp.org>
92845         New module 'git-merge-changelog'.
92846         * modules/git-merge-changelog: New file.
92847         * lib/git-merge-changelog.c: New file.
92849 2008-02-10  Jim Meyering  <meyering@redhat.com>
92851         useless-if-before-free: New option: --list (-l).
92853         useless-if-before-free: Don't exit immediately upon open failure.
92854         * build-aux/useless-if-before-free: Exit 2 for errors.
92855         Upon failure to open a file, don't exit immediately.
92856         Rather, just warn and continue with any remaining files.
92858 2008-02-10  Bruno Haible  <bruno@clisp.org>
92860         New abstract list operation 'node_set_value'.
92861         * lib/gl_list.h (gl_list_node_set_value): New function.
92862         (struct gl_list_implementation): New field node_set_value.
92863         * lib/gl_list.c (gl_list_node_set_value): New function.
92864         * lib/gl_array_list.c (gl_array_node_set_value): New function.
92865         (gl_array_list_implementation): Update.
92866         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
92867         (gl_carray_list_implementation): Update.
92868         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
92869         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
92870         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
92871         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
92872         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
92873         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
92874         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
92875         Update.
92876         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
92877         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
92878         (gl_sublist_list_implementation): Update.
92880 2008-02-10  Bruno Haible  <bruno@clisp.org>
92882         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
92883         Needed when ELEMENT is #defined to 'some_type *'.
92885 2008-02-10  Jim Meyering  <meyering@redhat.com>
92887         New script and module: useless-if-before-free
92888         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
92889         * build-aux/useless-if-before-free: New file.
92890         * modules/useless-if-before-free: New file.
92892         * build-aux/gitlog-to-changelog: Use committer date, not author date.
92894         xstrtol_error: Fix typo.
92895         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
92896         s/exit_failure/exit_status/.
92898 2008-02-09  Jim Meyering  <meyering@redhat.com>
92900         New script and module: gitlog-to-changelog
92901         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
92902         * modules/gitlog-to-changelog: New file.
92903         * build-aux/gitlog-to-changelog: New file.
92905 2008-02-08  Jim Meyering  <meyering@redhat.com>
92907         Avoid two "parameter unused" warnings.
92908         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
92909         Mark "st" as used.
92911         Use "git COMMAND", not "git-COMMAND".
92912         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
92913         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
92914         * build-aux/git-version-gen: Use "git status", not "git-status".
92916 2008-02-07  Bruno Haible  <bruno@clisp.org>
92918         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
92919         Avoids a crash on Windows Vista.
92920         Reported by Adam Strzelecki <ono@java.pl> via
92921         Simon Josefsson <simon@josefsson.org>.
92923 2008-02-06  Bruno Haible  <bruno@clisp.org>
92925         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
92926         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
92927         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
92928         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
92929         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
92930         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
92931         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
92932         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
92933         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
92934         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
92935         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
92936         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
92937         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
92938         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
92939         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
92940         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
92941         left-adjust flag.
92942         * tests/test-snprintf-posix.h (test_function): Likewise.
92943         * tests/test-sprintf-posix.h (test_function): Likewise.
92944         * tests/test-vasprintf-posix.c (test_function): Likewise.
92945         * doc/posix-functions/fprintf.texi: Update.
92946         * doc/posix-functions/printf.texi: Update.
92947         * doc/posix-functions/snprintf.texi: Update.
92948         * doc/posix-functions/sprintf.texi: Update.
92949         * doc/posix-functions/vfprintf.texi: Update.
92950         * doc/posix-functions/vprintf.texi: Update.
92951         * doc/posix-functions/vsnprintf.texi: Update.
92952         * doc/posix-functions/vsprintf.texi: Update.
92953         Reported by Peter Fales <psfales@alcatel-lucent.com>.
92955 2008-02-06  Bruno Haible  <bruno@clisp.org>
92957         Fix bug introduced on 2008-01-26.
92958         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
92960 2008-02-06  Bruno Haible  <bruno@clisp.org>
92962         Fix bug introduced on 2007-06-10.
92963         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
92964         !NEED_PRINTF_FLAG_ZERO.
92966 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
92968         getloadavg: use libperfstat on AIX5
92969         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
92971 2008-02-03  Bruno Haible  <bruno@clisp.org>
92973         * lib/diffseq.h: Add comments about required #includes.
92974         Reported by Michael Biggs <gnulib@doubleplum.net>.
92976 2008-02-01  Bruno Haible  <bruno@clisp.org>
92978         * users.txt: Add gnuit.
92980 2008-01-31  Bruno Haible  <bruno@clisp.org>
92982         * lib/md4.c (set_uint32): Mark as inline.
92983         * lib/md5.c (set_uint32): Likewise.
92984         * lib/sha1.c (set_uint32): Likewise.
92985         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
92986         * m4/md5.m4 (gl_MD5): Likewise.
92987         * m4/sha1.m4 (gl_SHA1): Likewise.
92989 2008-01-31  Jim Meyering  <meyering@redhat.com>
92991         Use "sizeof VAR", rather than a literal "4".
92992         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
92993         * lib/md4.c (md4_read_ctx): Likewise.
92994         * lib/sha1.c (sha1_read_ctx): Likewise.
92996 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92998         * tests/test-sha1.c: New file, based on test-md5.c.
93000         * modules/crypto/sha1-tests: New file.
93002 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93004         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
93006 2008-01-31  Jim Meyering  <meyering@redhat.com>
93008         Prefer "sizeof v" over the equivalent "4".
93009         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
93010         * lib/md5.c (set_uint32): Likewise.
93011         * lib/sha1.c (set_uint32): Likewise.
93013 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93015         * lib/sha1.c (set_uint32): Mark function as static.
93017 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93019         md2: clarify comments to say that alignment is not required.
93020         * lib/md2.h: Remove warning about alignment in comment.
93021         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
93022         never been required.
93024 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93026         md4: adapt alignment constraint fix from sha1.
93027         * lib/md4.c (set_uint32): New function, from sha1.c
93028         (md4_read_ctx): Use it.
93029         (md4_finish_ctx): Doc fix.
93030         * lib/md4.h: Doc fix.
93032 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93034         md5: adapt alignment constraint fix from sha1.
93035         * lib/md5.c (set_uint32): New function, from sha1.c
93036         (md5_read_ctx): Use it.
93037         (md5_finish_ctx): Doc fix.
93038         * lib/md5.h: Doc fix.
93040 2008-01-30  Peter Palfrader  <weasel@debian.org>
93042         sha1: remove the result buffer alignment constraint
93043         * lib/sha1.c (set_uint32): New function.
93044         (sha1_read_ctx): Rewrite to remove the result buffer alignment
93045         constraint.
93046         (sha1_finish_ctx): Remove comment warning about alignment constraint.
93047         * lib/sha1.h: Likewise.
93049 2008-01-30  Andreas Schwab  <schwab@suse.de>
93050             Bruno Haible  <bruno@clisp.org>
93052         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
93053         correct definition of LDBL_MIN_EXP.
93055 2008-01-30  Karl Berry  <karl@gnu.org>
93057         * config/srclist-update: try to preserve x bit on updates.
93058         * config/srclistvars.sh: update for karl.
93060 2008-01-29  Jim Meyering  <meyering@redhat.com>
93062         vasnprintf.c: Avoid warning about unused label
93063         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
93064         "overflow" label definition and associated code with the
93065         same cpp condition that guards the sole use of that label.
93067 2008-01-26  Bruno Haible  <bruno@clisp.org>
93069         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
93070         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
93071         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
93072         * lib/isnanl-nolibm.h (isnanl): Likewise.
93073         Reported by Paul Eggert <eggert@cs.ucla.edu>.
93075 2008-01-26  Bruno Haible  <bruno@clisp.org>
93077         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
93078         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
93080 2008-01-26  Bruno Haible  <bruno@clisp.org>
93082         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
93083         GCC >= 4.0 built-in.
93084         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
93086 2008-01-26  Bruno Haible  <bruno@clisp.org>
93088         Rename isnan, applicable to 'double' only, to isnand.
93089         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
93090         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
93091         (configure.ac): Update.
93092         (Include): Replace "isnan.h" with "isnand.h".
93093         * m4/isnand.m4: Renamed from m4/isnan.m4.
93094         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
93095         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
93096         instead of isnan.c.
93097         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
93098         instead of HAVE_ISNAN_IN_LIBC.
93099         (isnand): Renamed from isnan.
93100         * lib/isnand.c: New file.
93101         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
93102         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
93103         (Makefile.am): Update.
93104         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
93105         Include isnand.h instead of isnan.h.
93106         (main): Test isnand instead of isnan.
93107         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
93108         isnan-nolibm.
93109         * modules/frexp (Depends-on): Likewise.
93110         * modules/frexp-tests (Depends-on): Likewise.
93111         * modules/frexp-nolibm (Depends-on): Likewise.
93112         * modules/frexp-nolibm-tests (Depends-on): Likewise.
93113         * modules/isfinite (Depends-on): Likewise.
93114         * modules/round-tests (Depends-on): Likewise.
93115         * modules/signbit (Depends-on): Likewise.
93116         * modules/signbit-tests (Depends-on): Likewise.
93117         * modules/snprintf-posix (Depends-on): Likewise.
93118         * modules/sprintf-posix (Depends-on): Likewise.
93119         * modules/trunc-tests (Depends-on): Likewise.
93120         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
93121         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
93122         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
93123         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
93124         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
93125         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
93126         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
93127         * modules/vasnprintf-posix (Depends-on): Likewise.
93128         * modules/vasprintf-posix (Depends-on): Likewise.
93129         * modules/vfprintf-posix (Depends-on): Likewise.
93130         * modules/vsnprintf-posix (Depends-on): Likewise.
93131         * modules/vsprintf-posix (Depends-on): Likewise.
93132         * lib/frexp.c: Include isnand.h instead of isnan.h.
93133         (ISNAN): Set to isnand instead of isnan.
93134         * lib/isfinite.c: Include isnand.h instead of isnan.h.
93135         (gl_isfinited): Use isnand instead of isnan.
93136         * lib/signbitd.c: Include isnand.h instead of isnan.h.
93137         (gl_signbitd): Use isnand instead of isnan.
93138         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
93139         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
93140         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
93141         (main): Use isnand instead of isnan.
93142         * tests/test-round1.c: Include isnand.h.
93143         (main): Use isnand instead of isnan.
93144         * tests/test-round2.c: Include isnand.h instead of isnan.h.
93145         (ISNAN): Set to isnand instead of isnan.
93146         * tests/test-trunc1.c: Include isnand.h.
93147         (main): Use isnand instead of isnan.
93148         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
93149         (equal): Use isnand instead of isnan.
93150         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
93151         isnand-nolibm.
93152         * NEWS: Mention the change.
93154 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
93155             Bruno Haible  <bruno@clisp.org>
93157         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
93158         the GCC builtins for signbits are present and set
93159         REPLACE_SIGNBIT_USING_GCC if so.
93160         * lib/math.in.h (signbit): Define using GCC builtins if
93161         REPLACE_SIGNBIT_USING_GCC is set.
93162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
93163         REPLACE_SIGNBIT_USING_GCC.
93164         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
93166 2008-01-25  Jim Meyering  <meyering@redhat.com>
93168         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
93169         * lib/poll.c: Include <config.h>, not "config.h".
93170         * tests/test-getaddrinfo.c: Likewise.
93172 2008-01-25  Simon Josefsson  <simon@josefsson.org>
93174         * modules/sockets-tests: New file.
93176 2008-01-24  Simon Josefsson  <simon@josefsson.org>
93178         * modules/sockets: New module, can be used to call WSA_Startup and
93179         WSA_Cleanup when needed.
93181         * lib/sockets.h, lib/sockets.c: New files.
93183         * m4/sockets.m4: New file.
93185         * tests/test-sockets.c: New file.
93187 2008-01-19  Bruno Haible  <bruno@clisp.org>
93189         * doc/posix-headers: Renamed from doc/headers.
93190         * doc/posix-functions: Renamed from doc/functions.
93191         * doc/gnulib.texi: Update.
93193 2008-01-19  Bruno Haible  <bruno@clisp.org>
93195         * doc/glibc-functions/strcasestr.texi: Include contents of
93196         doc/functions/strcasestr.texi, fixing the list of platforms.
93197         * doc/functions/strcasestr.texi: Remove file.
93199 2008-01-19  Bruno Haible  <bruno@clisp.org>
93201         * doc/glibc-functions/memmem.texi: Include contents of
93202         doc/functions/memmem.texi.
93203         * doc/functions/memmem.texi: Remove file.
93205 2008-01-18  Bruno Haible  <bruno@clisp.org>
93207         * doc/glibc-functions/*.texi: New files.
93208         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
93209         to use the new files.
93211 2008-01-17  Bruno Haible  <bruno@clisp.org>
93213         * tests/test-gethostname.c (main): Fix printf statement.
93215 2008-01-17  Simon Josefsson  <simon@josefsson.org>
93217         * modules/gethostname-tests: New file.
93219         * tests/test-gethostname.c: New file.
93221 2008-01-17  Simon Josefsson  <simon@josefsson.org>
93223         * lib/gethostname.c: Include string.h unconditionally, strncpy is
93224         used by the UNAME case.  Reported by Bruno Haible
93225         <bruno@clisp.org>.
93227 2008-01-17  Eric Blake  <ebb9@byu.net>
93229         Convert c-strcasestr to be more efficient.
93230         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
93231         (Depends-on): Add c-strcase, remove malloca, strnlen.
93232         * tests/test-c-strcasestr.c (main): Enhance test.
93233         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
93235 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93237         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
93238         Use it in creating po/Makevars.
93240 2008-01-15  Simon Josefsson  <simon@josefsson.org>
93242         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
93243         Applications that requires it should initialize libgcrypt
93244         manually.
93246 2008-01-16  Simon Josefsson  <simon@josefsson.org>
93248         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
93250 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
93252         Fix problem with getdate on mingw32 reported by Simon Josefsson
93253         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
93254         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
93255         tzname", when deciding whether to declare tzname.
93256         * lib/strftime.c (tzname): Likewise.
93258 2008-01-15  Bruno Haible  <bruno@clisp.org>
93260         Work around a MacOS X 10.5 bug in frexpl().
93261         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
93262         * doc/functions/frexpl.texi: Document the bug.
93263         Reported by Elias Pipping <pipping@gentoo.org>.
93265 2008-01-14  Eric Blake  <ebb9@byu.net>
93267         Touch up previous patch.
93268         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
93269         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
93271         Convert strcasestr module to use Two-Way algorithm.
93272         * modules/strcasestr-simple: New module, based on the old
93273         strcasestr, but with Two-Way rather than KMP.
93274         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
93275         * lib/string.in.h (rpl_strcasestr): Declare.
93276         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
93277         performance.
93278         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
93279         * modules/string (Makefile.am): Support strcasestr.
93280         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
93281         * modules/strcasestr-tests (Depends-on): Check for alarm.
93282         * tests/test-strcasestr.c: Augment test.
93283         * lib/str-two-way.h: Clean up stray macro.
93284         * NEWS: Document new module.
93285         * MODULES.html.sh (string handling): Likewise.
93286         * doc/functions/strcasestr.texi: New file.
93287         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
93288         here, since it is not a POSIX function.
93290 2008-01-14  Colin Watson  <cjwatson@debian.org>
93291             Bruno Haible  <bruno@clisp.org>
93293         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
93294         works fine; if not, set REPLACE_STRSIGNAL.
93295         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
93296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93297         REPLACE_STRSIGNAL.
93298         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
93299         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
93300         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
93302 2008-01-14  Bruno Haible  <bruno@clisp.org>
93304         * modules/strsignal (Include): Change to <string.h>.
93306 2008-01-14  Colin Watson  <cjwatson@debian.org>
93308         * modules/argp (Notice): Add a notice recommending to change
93309         XGETTEXT_OPTIONS.
93310         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
93312 2008-01-13  Colin Watson  <cjwatson@debian.org>
93314         * modules/strsignal-tests: New file.
93315         * tests/test-strsignal.c: New file.
93317         * lib/strsignal.c: New file, from glibc with modifications.
93318         * lib/siglist.h: New file, from glibc with modifications.
93319         * lib/string.in.h (strsignal): New declaration.
93320         * m4/strsignal.m4: New file.
93321         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93322         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
93323         * modules/strsignal: New file.
93324         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
93325         HAVE_DECL_STRSIGNAL.
93327 2008-01-13  Bruno Haible  <bruno@clisp.org>
93329         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
93330         locale encoding is not ASCII. Needed for OpenBSD 4.0.
93331         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
93332         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
93334 2008-01-13  Bruno Haible  <bruno@clisp.org>
93336         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
93337         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
93338         * lib/argp.h (__attribute__): Likewise.
93339         * lib/c-stack.c (__attribute__): Likewise.
93340         * lib/error.h (__attribute__): Likewise.
93341         * lib/fts.c (__attribute__): Likewise.
93342         * lib/openat.h (__attribute__): Likewise.
93343         * lib/stdio.in.h (__attribute__): Likewise.
93344         * lib/string.in.h (__attribute__): Likewise.
93345         * lib/utimens.c (__attribute__): Likewise.
93346         * lib/vasnprintf.h (__attribute__): Likewise.
93347         * lib/xalloc.h (__attribute__): Likewise.
93348         * lib/xprintf.h (__attribute__): Likewise.
93349         * lib/xstrtol.h (__attribute__): Likewise.
93350         * lib/xvasprintf.h (__attribute__): Likewise.
93352 2008-01-12  Bruno Haible  <bruno@clisp.org>
93354         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
93355         * doc/glibc-headers/a.out.texi: New file.
93356         * doc/glibc-headers/aliases.texi: New file.
93357         * doc/glibc-headers/alloca.texi: New file.
93358         * doc/glibc-headers/ar.texi: New file.
93359         * doc/glibc-headers/argp.texi: New file.
93360         * doc/glibc-headers/argz.texi: New file.
93361         * doc/glibc-headers/byteswap.texi: New file.
93362         * doc/glibc-headers/crypt.texi: New file.
93363         * doc/glibc-headers/endian.texi: New file.
93364         * doc/glibc-headers/envz.texi: New file.
93365         * doc/glibc-headers/err.texi: New file.
93366         * doc/glibc-headers/error.texi: New file.
93367         * doc/glibc-headers/execinfo.texi: New file.
93368         * doc/glibc-headers/fpu_control.texi: New file.
93369         * doc/glibc-headers/fstab.texi: New file.
93370         * doc/glibc-headers/fts.texi: New file.
93371         * doc/glibc-headers/getopt.texi: New file.
93372         * doc/glibc-headers/ieee754.texi: New file.
93373         * doc/glibc-headers/ifaddrs.texi: New file.
93374         * doc/glibc-headers/libintl.texi: New file.
93375         * doc/glibc-headers/mcheck.texi: New file.
93376         * doc/glibc-headers/mntent.texi: New file.
93377         * doc/glibc-headers/obstack.texi: New file.
93378         * doc/glibc-headers/paths.texi: New file.
93379         * doc/glibc-headers/printf.texi: New file.
93380         * doc/glibc-headers/pty.texi: New file.
93381         * doc/glibc-headers/resolv.texi: New file.
93382         * doc/glibc-headers/shadow.texi: New file.
93383         * doc/glibc-headers/sysexits.texi: New file.
93384         * doc/glibc-headers/ttyent.texi: New file.
93386 2008-01-12  Jim Meyering  <meyering@redhat.com>
93388         announce-gen: emit Gnulib's git-based version string.
93389         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
93390         New option --gnulib-version=V, where V is expected to be
93391         the output of running git describe in the gnulib directory.
93392         (get_tool_versions): Request feedback on xdelta.  I suspect it's
93393         not useful, and plan to stop publishing an xdelta file with each
93394         coreutils release.
93396         * build-aux/announce-gen: Also check for lzma-compressed files.
93398 2008-01-11  Bruno Haible  <bruno@clisp.org>
93400         * tests/test-memmem.c (main): Increase maximum allowed time.
93401         * tests/test-strstr.c (main): Likewise.
93403 2008-01-11  Bruno Haible  <bruno@clisp.org>
93405         * doc/functions/memmem.texi: Add more precisions about platforms.
93406         * doc/functions/strstr.texi: Likewise.
93408 2008-01-10  Eric Blake  <ebb9@byu.net>
93410         * m4/strstr.m4: Delete cruft from copy-n-paste.
93411         Reported by Bruno Haible.
93413 2008-01-10  Bruno Haible  <bruno@clisp.org>
93415         Make c-strstr rely on strstr.
93416         * lib/c-strstr.c: Don't include str-kmp.h.
93417         (c_strstr): Define in terms of strstr.
93418         * modules/c-strstr (Files): Remove lib/str-kmp.h.
93419         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
93421 2008-01-10  Bruno Haible  <bruno@clisp.org>
93423         * doc/gnulib.texi (String Functions in C Locale): New section.
93424         * doc/c-ctype.texi: New file.
93425         * doc/c-strcase.texi: New file.
93426         * doc/c-strcaseeq.texi: New file.
93427         * doc/c-strcasestr.texi: New file.
93428         * doc/c-strstr.texi: New file.
93429         * doc/c-strtod.texi: New file.
93430         * doc/c-strtold.texi: New file.
93432 2008-01-10  Eric Blake  <ebb9@byu.net>
93434         * lib/relocatable.h: Fix a comment.
93436 2008-01-10  Eric Blake  <ebb9@byu.net>
93438         Share two-way algorithm.
93439         * lib/str-two-way.h: New file, merged from...
93440         * lib/memmem.c: ...here...
93441         * lib/strstr.c: ...and here.
93442         * modules/memmem (Files): Use it.
93443         * modules/strstr (Files): Likewise.
93445         Avoid quadratic strstr implementations.
93446         * lib/strstr.c: New file.
93447         * m4/strstr.m4: Likewise.
93448         * modules/strstr: Likewise.
93449         * modules/strstr-tests: Likewise.
93450         * tests/test-strstr.c: Likewise.
93451         * lib/string.in.h (rpl_strstr): Declare.
93452         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
93453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
93454         * modules/string (Makefile.am): Likewise.
93455         * MODULES.html.sh (string handling): Mention new module.
93456         * doc/functions/strstr.texi (strstr): Document the bug.
93458 2008-01-10  Bruno Haible  <bruno@clisp.org>
93460         * lib/relocatable.h (relocate): State whether result is freshly
93461         allocated or not.
93462         * lib/relocatable.c (relocate): Return a freshly allocated string
93463         instead of a pointer to a privately held string.
93464         Reported by Sylvain Beucler <beuc@gnu.org>.
93466 2008-01-10  Colin Watson  <cjwatson@debian.org>
93468         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
93469         s/S_ISNLK/S_ISLNK/.
93471 2008-01-09  Bruno Haible  <bruno@clisp.org>
93473         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
93474         and other files.
93475         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
93476         if it's only a guess.
93477         * modules/memmem: Simplify by depending on memmem-simple.
93479 2008-01-09  Bruno Haible  <bruno@clisp.org>
93481         Work around OpenBSD 4.0 tdelete() bug.
93482         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
93483         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
93484         macros and don't redefine the enum values.
93485         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
93486         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
93487         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
93489 2008-01-09  Bruno Haible  <bruno@clisp.org>
93491         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
93492         (main): Don't perform the tests if setlocale did not install a UTF-8
93493         locale. Needed on OpenBSD 4.0.
93494         * modules/wcwidth-tests (Depends-on): Add localcharset.
93496 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
93498         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
93499         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
93500         * NEWS: announce this.
93501         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
93503 2008-01-09  Simon Josefsson  <simon@josefsson.org>
93504         and Eric Blake  <ebb9@byu.net>
93506         Add memmem-simple module.
93507         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
93508         (gl_FUNC_MEMMEM): Separate performance from presence checks.
93509         * modules/memmem-simple: New file.
93510         * modules/memmem (Description): Tweak.
93511         * MODULES.html.sh (string handling): Mention new module.
93512         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
93513         addressed by memmem-simple.
93514         * NEWS: Document the difference.
93516 2008-01-09  Eric Blake  <ebb9@byu.net>
93518         Give gcc some memmem optimization hints.
93519         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
93520         (strcasestr): Declare as pure.
93521         * modules/memmem (Maintainer): Claim my implementation.
93523 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93525         Support AIX 6.1 and higher.
93526         * build-aux/config.libpath: Likewise.
93527         * build-aux/config.rpath: Likewise.
93529 2008-01-08  Jim Meyering  <meyering@redhat.com>
93530             Bruno Haible  <bruno@clisp.org>
93532         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
93533         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
93534         Reported by Peter Fales in
93535         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
93537 2008-01-08  Bruno Haible  <bruno@clisp.org>
93539         * modules/unictype/category-of (Depends-on): Add
93540         unictype/category-none.
93541         * modules/unictype/category-and-tests (Depends-on): Add
93542         unictype/category-{L,N,Lu,Nd}.
93543         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
93544         * modules/unictype/category-or-tests (Depends-on): Add
93545         unictype/category-{L,N}.
93546         * modules/unictype/category-name-tests (Depends-on): Add
93547         unictype/category-{Z,Nl}.
93548         Reported by Simon Josefsson.
93550 2008-01-08  Bruno Haible  <bruno@clisp.org>
93552         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
93553         convention better.
93554         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
93555         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
93556         Reported by Peter Miller <millerp@canb.auug.org.au>.
93558 2008-01-08  Eric Blake  <ebb9@byu.net>
93560         Rewrite memmem to guarantee linear complexity without malloc.
93561         * lib/memmem.c (memmem): Use Two-Way rather than
93562         Knuth-Morris-Pratt, to allow O(1) space usage.
93563         (critical_factorization, two_way_short_needle)
93564         (two_way_long_needle): New functions.
93565         (knuth_morris_pratt): Delete.
93566         * modules/memmem (Depends-on): No longer need malloca or stdbool.
93567         Add stdint.
93568         * tests/test-memmem.c (main): Add tests for periodic needle and
93569         sublinear performance.
93570         * doc/functions/memmem.texi (memmem): Document other deficiencies
93571         in cygwin and older glibc.
93573 2008-01-08  Bruno Haible  <bruno@clisp.org>
93575         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
93576         augmentation.
93578 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
93580         Add a configure time option: --disable-acl.
93581         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
93582         AC_ARG_ENABLE(acl).
93584 2008-01-06  Simon Josefsson  <simon@josefsson.org>
93586         * tests/test-localename.c: Don't include obsolete "setenv.h".
93588         * modules/localename-tests (Depends-on): Need unsetenv.
93590 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93592         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
93594 2008-01-06  Colin Watson  <cjwatson@debian.org>
93596         * users.txt: Add man-db.
93598 2008-01-07  Bruno Haible  <bruno@clisp.org>
93600         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
93601         previous section name.
93603 2008-01-07  Bruno Haible  <bruno@clisp.org>
93605         * lib/progname.c (set_program_name): Don't strip off a leading
93606         "lt-" prefix outside a .libs directory.
93607         Suggested by Paul Eggert.
93609 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
93610             Bruno Haible  <bruno@clisp.org>
93612         Improve memory cleanup in 'relocatable' module.
93613         * lib/relocatable.h (compute_curr_prefix): Change return type to
93614         'char *'.
93615         * lib/relocatable.c (compute_curr_prefix): Change return type to
93616         'char *'. Free curr_installdir after use.
93617         (relocate): Free curr_prefix_better after use.
93618         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
93620 2008-01-01  Bruno Haible  <bruno@clisp.org>
93622         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
93623         failure on older glibc systems.
93624         Reported by Peter Fales <psfales@alcatel-lucent.com>.
93626 2008-01-05  Eric Blake  <ebb9@byu.net>
93628         Avoid quadratic system memmem.
93629         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
93630         Reported by Ralf Wildenhues.
93632         Fix memmem test for mingw.
93633         * modules/memmem-tests (configure.ac): Check for alarm.
93634         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
93635         it.
93636         * doc/functions/memmem.texi: New file.
93637         * doc/gnulib.texi (Function Substitutes): Add memmem.
93638         Reported by Bruno Haible.
93640 2008-01-04  Bruno Haible  <bruno@clisp.org>
93642         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
93643         Require gl_HEADER_STRINGS_H_DEFAULTS, not
93644         gl_HEADER_STRING_H_DEFAULTS.
93646 2008-01-04  Eric Blake  <ebb9@byu.net>
93648         Shorten duration of memmem test.
93649         * tests/test-memmem.c (main): Use alarm to declare failure if test
93650         is taking too long.
93651         Reported by Ralf Wildenhues.
93653 2007-12-21  Simon Josefsson  <simon@josefsson.org>
93655         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
93656         string, needed by strerror.
93658 2008-01-03  Colin Watson  <cjwatson@debian.org>
93659             Bruno Haible  <bruno@clisp.org>
93661         * doc/gnulib-tool.texi (Localization): New section.
93663 2008-01-02  Bruno Haible  <bruno@clisp.org>
93665         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
93666         variables to 'unsigned char *' type.
93667         Reported by Paul Eggert.
93669 2008-01-02  Jim Meyering  <jim@meyering.net>
93671         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
93673 2007-12-31  Jim Meyering  <jim@meyering.net>
93675         Avoid use of private FTS type name.
93676         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
93678 2007-12-30  Karl Berry  <karl@gnu.org>
93680         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
93681         work around defect in Texinfo and/or the standalone Info browser.
93683 2007-12-30  Bruno Haible  <bruno@clisp.org>
93685         Unify 5 copies of the KMP code.
93686         * lib/str-kmp.h: New file.
93687         * lib/c-strcasestr.c: Include str-kmp.h.
93688         (knuth_morris_pratt): Remove function.
93689         (c_strcasestr): Update.
93690         * lib/c-strstr.c: Include str-kmp.h.
93691         (knuth_morris_pratt): Remove function.
93692         (c_strcasestr): Update.
93693         * lib/mbscasestr.c: Include str-kmp.h.
93694         (knuth_morris_pratt_unibyte): Remove function.
93695         * lib/mbsstr.c: Include str-kmp.h.
93696         (knuth_morris_pratt_unibyte): Remove function.
93697         * lib/strcasestr.c: Include str-kmp.h.
93698         (knuth_morris_pratt): Remove function.
93699         (strcasestr): Update.
93700         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
93701         * modules/c-strstr (Files): Likewise.
93702         * modules/mbscasestr (Files): Likewise.
93703         * modules/mbsstr (Files): Likewise.
93704         * modules/strcasestr (Files): Likewise.
93705         Suggested by Paul Eggert.
93707 2007-12-30  Bruno Haible  <bruno@clisp.org>
93709         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
93710         defined.
93712 2007-12-30  Bruno Haible  <bruno@clisp.org>
93714         * lib/xmalloca.h: Include xalloc.h.
93715         (xnmalloca): New macro.
93717 2007-12-30  Bruno Haible  <bruno@clisp.org>
93719         * lib/malloca.h (nmalloca): New macro.
93720         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
93721         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
93722         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
93723         knuth_morris_pratt_multibyte): Likewise.
93724         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
93725         knuth_morris_pratt_multibyte): Likewise.
93726         * lib/memmem.c (knuth_morris_pratt): Likewise.
93727         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
93729 2007-12-25  Bruno Haible  <bruno@clisp.org>
93731         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
93732         * lib/glob.c: Don't include openat.h.
93733         (link_exists2_p): Add back the code that deals with the
93734         !GLOB_ALTDIRFUNC case.
93735         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
93736         let it do the filename concatenation.
93737         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
93738         * modules/glob (Depends-on): Remove openat.
93740 2007-12-31  Bruno Haible  <bruno@clisp.org>
93742         * modules/dirfd (License): Change to LGPLv2+.
93743         Approved by Jim Meyering.
93745 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
93747         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
93748         when multiplying M by sizeof (size_t).
93750 2007-12-10  Martin Lambers  <marlam@marlam.de>
93752         Override getpagesize on mingw.
93753         * lib/getpagesize.c: New file.
93754         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
93755         * modules/getpagesize (Files): Add lib/getpagesize.c.
93756         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
93757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
93758         REPLACE_GETPAGESIZE.
93759         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
93761 2007-12-25  Bruno Haible  <bruno@clisp.org>
93763         * modules/localcharset (Notice): New field.
93764         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
93765         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
93767 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
93768             Bruno Haible  <bruno@clisp.org>
93770         Avoid using the syntax symbol() in formatted documentation.
93771         * MODULES.html.sh (func_module): When replacing symbol() with a
93772         hyperlink, remove the parentheses. Show an error if some remain.
93773         Recognize and render the '...' syntax.
93774         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
93775         Rework. Add paragraph about GCC's inlining.
93776         * doc/alloca.texi: Likewise.
93777         * doc/error.texi: Remove parentheses from symbol reference.
93778         * doc/gnulib-intro.texi: Likewise.
93779         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
93780         * modules/fnmatch (Description): Reword to say "the ... function".
93781         * modules/full-read (Description): Likewise.
93782         * modules/full-write (Description): Likewise.
93783         * modules/safe-read (Description): Likewise.
93784         * modules/safe-write (Description): Likewise.
93785         * modules/strchrnul (Description): Likewise.
93786         * modules/trim (Description): Likewise.
93787         * modules/error (Description): Remove parentheses from symbol
93788         references.
93789         * modules/verror (Description): Likewise.
93790         Reported by Karl Berry.
93792 2007-12-25  Bruno Haible  <bruno@clisp.org>
93794         Fixup after 2007-10-16 commit.
93795         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
93797 2007-12-24  Bruno Haible  <bruno@clisp.org>
93799         Make --enable-relocatable work with DESTDIR.
93800         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
93801         to compute installdir from destprog.
93802         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
93803         also set the RELOC_DESTDIR variable.
93804         Reported by Левашев Иван <octagram@bluebottle.com>.
93806 2007-12-24  Bruno Haible  <bruno@clisp.org>
93808         Fix link error due to xalloc_die().
93809         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
93810         of xreadlink.
93811         * lib/relocwrapper.c: Update comments.
93812         * build-aux/install-reloc: Remove xreadlink.c from file list.
93813         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
93814         xreadlink.c.
93815         Reported by Левашев Иван <octagram@bluebottle.com>.
93817 2007-12-24  Bruno Haible  <bruno@clisp.org>
93819         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
93820         * lib/setenv.h: Remove file.
93821         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
93822         lib/setenv.h.
93823         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
93824         (Depends-on): Add stdlib.
93825         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
93826         gl_FUNC_UNSETENV.
93827         (Include): Replace setenv.h with <stdlib.h>.
93828         * modules/unsetenv: New file.
93829         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
93830         * lib/unsetenv.c: Include <stdlib.h> first.
93831         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
93832         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
93833         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
93834         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
93835         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
93836         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
93837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
93838         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
93839         * doc/functions/unsetenv.texi: Update.
93840         * modules/xsetenv (Depends-on): Add unsetenv.
93841         * modules/getdate (Depends-on): Likewise.
93842         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
93843         * lib/xsetenv.c: Don't include setenv.h.
93844         * lib/getdate.y: Likewise.
93845         * lib/relocwrapper.c: Likewise.
93846         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
93847         (Depends-on): Add stdlib.
93848         * NEWS: Mention the changes.
93849         Reported by Левашев Иван <octagram@bluebottle.com>.
93851 2007-12-23  Bruno Haible  <bruno@clisp.org>
93853         * lib/memmem.c (memmem): Use lowercase variable names. Tab
93854         indentation.
93856 2007-12-23  Bruno Haible  <bruno@clisp.org>
93858         * lib/c-strcasestr.c: Add more comments.
93859         * lib/c-strstr.c: Likewise.
93860         * lib/mbscasestr.c: Likewise.
93861         * lib/mbsstr.c: Likewise.
93862         * lib/strcasestr.c: Likewise.
93863         * lib/memmem.c: Likewise.
93865 2007-12-23  Bruno Haible  <bruno@clisp.org>
93867         * tests/test-memmem.c: Include <string.h> first.
93869 2007-12-22  Bruno Haible  <bruno@clisp.org>
93871         * gnulib-tool (func_create_testdir): Change $auxdir while generating
93872         the contents of $testsbase.
93873         Reported by Ralf Wildenhues.
93875 2007-12-22  Bruno Haible  <bruno@clisp.org>
93877         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
93878         two variables local_ldadd_before, local_ldadd_last.
93880 2007-12-20  Eric Blake  <ebb9@byu.net>
93882         Work around circular library issue when cross-compiling.
93883         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
93884         that progname.o does not need to pull in rpl_memcmp.
93886 2007-12-19  Eric Blake  <ebb9@byu.net>
93888         Fix memmem to avoid O(n^2) worst-case complexity.
93889         * lib/memmem.c (knuth_morris_pratt): New function.
93890         (memmem): Use it if first few naive iterations fail.
93891         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
93892         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
93893         * modules/memchr (License): Likewise.
93894         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
93895         malloca.
93896         * tests/test-memmem.c: Rewrite, borrowing ideas from
93897         test-mbsstr1.c; the old version wouldn't even compile!
93898         * modules/memmem-tests: New file.
93899         * lib/string.in.h (rpl_memmem): Add declaration.
93900         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
93901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
93902         REPLACE_MEMMEM.
93904 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
93906         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
93907         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
93908         before any system include files, and undef after them all.  This
93909         should fix a problem on VMS reported by John E. Malmberg in
93910         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
93912 2007-12-17  Eric Blake  <ebb9@byu.net>
93914         Revert addition of verify, for BSD/OS.
93915         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
93916         can't handle large files, for the sake of obsolete platforms.
93917         * modules/fseeko (Depends-on): Remove verify.
93918         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
93919         * doc/functions/ftello.texi (ftello): Likewise.
93920         * doc/functions/fgetpos.texi (fgetpos): Likewise.
93921         Reported by Larry Jones.
93923 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
93925         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
93926         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
93928 2007-12-17  Jim Meyering  <meyering@redhat.com>
93930         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
93931         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
93932         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
93933         * modules/getcwd (Depends-on): Add openat.
93934         Reported by Petr Salinger.
93936 2007-12-17  Bruno Haible  <bruno@clisp.org>
93938         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
93939         avoid a segmentation fault of the configure test on x86_64 systems.
93941 2007-12-15  Jim Meyering  <meyering@redhat.com>
93943         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
93945 2007-12-13  Eric Blake  <ebb9@byu.net>
93947         Another fseek test.
93948         * tests/test-fseek.c (main): Also test ungetc handling.
93949         * tests/test-fseeko.c (main): Likewise.
93950         * modules/fseeko (Depends-on): Add verify.
93951         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
93952         large.
93953         Reported by Larry Jones.
93955         Fix fseeko on mingw.
93956         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
93957         seek.
93959         Beef up fseek tests.
93960         * tests/test-fseek.c (main): Also test eof handling.
93961         * tests/test-fseeko.c (main): Likewise.
93962         Reported by Larry Jones.
93964 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
93966         Fix fseeko on BSD-based platforms.
93967         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
93968         successful seek.
93970 2007-12-12  Eric Blake  <ebb9@byu.net>
93972         Allow circular dependency of separate libtests.a
93973         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
93974         when use_libtests.
93976 2007-12-11  Eric Blake  <ebb9@byu.net>
93978         Fix bug with -0.0L in previous patch.
93979         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
93980         * tests/test-isnan.c (main): Also test on zeroes.
93981         * tests/test-isnanf.c (main): Likewise.
93982         * tests/test-isnanl.h (main): Likewise.
93984         Detect pseudo-denormals on x86 even when cross-compiling.
93985         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
93986         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
93987         invalid bit patterns that happen to satisfy ==.
93989         Avoid link failures with separate libtests.a.
93990         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
93991         last, to satisfy circular dependencies.
93993 2007-12-11  Eric Blake  <ebb9@byu.net>
93994         and Bruno Haible  <bruno@clisp.org>
93996         Fix OpenBSD 4.0 <float.h> handling of long double.
93997         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
93998         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
93999         * doc/headers/float.texi (float.h): Document OpenBSD bug.
94001 2007-12-11  Jim Meyering  <meyering@redhat.com>
94003         * users.txt: Add libvirt.
94005         Support versions of autoconf prior to 2.59c.
94006         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
94007         if it is not already defined.
94009 2007-12-09  Bruno Haible  <bruno@clisp.org>
94011         Let 'gnulib-tool --import' collect sources needed for the tests in
94012         tests/ rather than in lib/.
94013         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
94014         argument. If true, add rules to generate libtests.a, and put libtests.a
94015         into $(LDADD). Consider source files in subdirectories and set
94016         uses_subdirs.
94017         (func_emit_initmacro_start, func_emit_initmacro_end,
94018         func_emit_initmacro_done): Pass all arguments explicitly.
94019         (func_import): Determine two module lists main_modules,
94020         testsrelated_modules. Determine use_libtests. Determine two variables
94021         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
94022         instead of just sed_transform_lib_file. Determine two variables
94023         main_files and testsrelated_files. Compute 'files' as the union of
94024         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
94025         func_add_or_update. In the generated gnulib-comp.m4, collect the
94026         object files for tests/ in different variables than those for lib/.
94027         Substitute LIBTESTS_LIBDEPS.
94028         (func_create_testdir): Combine the uses_subdirs results from
94029         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
94031 2007-12-09  Bruno Haible  <bruno@clisp.org>
94033         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
94034         the build-aux directory.
94036 2007-12-09  Bruno Haible  <bruno@clisp.org>
94038         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
94039         introduced on 2006-09-09.
94041 2007-12-07  Jim Meyering  <meyering@redhat.com>
94043         Let these macros work also with autoconf-2.59.
94044         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
94045         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
94046         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
94048 2007-12-06  Jim Meyering  <meyering@redhat.com>
94050         Avoid a configure-time syntax error in gl_FUNC_ACL.
94051         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
94052         function in each branch, before testing the cache variable.
94054 2007-12-04  Eric Blake  <ebb9@byu.net>
94056         Make scripts executable.
94057         * build-aux/config.guess: Add execute permissions.
94058         * build-aux/config.sub: Likewise.
94059         * build-aux/gendocs.sh: Likewise.
94061         Fix frexp on mingw.
94062         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
94063         cross-compiling.
94064         * doc/functions/frexp.texi (frexp): Document the bug.
94066         Make cygwin fseeko check more reliable.
94067         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
94068         version numbers, rather than unrelated feature check.
94069         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
94070         * doc/functions/ftello.texi (ftello): Likewise.
94071         Reported by Bruno Haible.
94073         * m4/strerror.m4: Bump version number.
94075 2007-12-03  Bruno Haible  <bruno@clisp.org>
94077         * doc/functions/mprotect.texi: Mention the mingw problem.
94079 2007-12-03  Eric Blake  <ebb9@byu.net>
94081         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
94082         REPLACE_STRERROR is initialized before this macro.
94084 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
94086         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
94087         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
94088         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
94089         put -lsec in even for programs other than 'ls'.  This fixes a problem
94090         for gettext reported by Bruno Haible in
94091         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
94092         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
94093         Add support for Solaris 10.  This isn't efficient, but should get the
94094         job done for now.
94096 2007-12-03  James Youngman  <jay@gnu.org>
94098         * doc/regexprops-generic.texi: change "an close-group" to "a
94099         close-group" and "illegal" to "not allowed".
94101 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94103         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
94104         pr_byname.h. Needed for the rare case when the maintainer has done
94105         "make maintainer-clean" in the source directory and then attempts a
94106         build outside the source directory.
94107         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
94108         scripts_byname.h.
94110 2007-12-02  Martin Lambers  <marlam@marlam.de>
94111             Bruno Haible  <bruno@clisp.org>
94113         * lib/getpagesize.h: Remove file.
94114         * lib/unistd.in.h: Include declaration of getpagesize here.
94115         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
94116         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
94117         HAVE_SYS_PARAM_H.
94118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
94119         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
94120         * modules/getpagesize (Files): Remove lib/getpagesize.h.
94121         (Depends-on): Add unistd.
94122         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
94123         (Include): Use <unistd.h> instead of getpagesize.h.
94124         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
94125         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
94126         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
94127         gl_GETPAGESIZE invocation, already handled by module dependency.
94128         * lib/pagealign_alloc.c: Don't include getpagesize.h.
94130 2007-12-02  Bruno Haible  <bruno@clisp.org>
94132         * modules/strings-tests: New file.
94133         * tests/test-strings.c: New file.
94135         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
94136         * lib/strings.in.h: New file.
94137         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
94138         * m4/strings_h.m4: New file.
94139         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
94140         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
94141         * modules/strings: New file.
94142         * modules/string (Makefile.am): Update.
94143         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
94144         Reported by Karl Berry.
94146 2007-12-01  Eric Blake  <ebb9@byu.net>
94148         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
94149         accommodate fix in cygwin 1.5.25.
94151 2007-12-01  Jim Meyering  <meyering@redhat.com>
94153         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
94154         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
94155         that would inhibit utf8-optimization of a regexp containing line-
94156         or buffer-anchors, e.g., `^', `$'.
94158 2007-11-30  Bruno Haible  <bruno@clisp.org>
94160         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
94161         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
94162         glthread_recursive_lock_init.
94163         * lib/lock.c (glthread_recursive_lock_init)
94164         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
94165         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
94167 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
94169         New function qset_acl, like set_acl but with syscall semantics.
94170         * lib/acl.h (qset_acl): New decl.
94171         * lib/acl.c (qset_acl): New function.
94172         (set_acl): Use new function.  Use more-consistent diagnostics.
94174 2007-11-28  Jim Meyering  <meyering@redhat.com>
94176         * modules/physmem (License): Change from GPL to LGPLv2+.
94178 2007-11-26  Bruno Haible  <bruno@clisp.org>
94180         * lib/vasnprintf.c (decode_long_double): Don't abort if the
94181         'long double' type has excess precision.
94182         Reported by Jim Meyering in
94183         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
94185 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94187         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
94188         Sync from <http://gnu.org/licenses>.
94189         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
94190         with license text from same location.
94191         * doc/maintain.texi, doc/standards.texi:  Sync from
94192         <http://savannah.gnu.org/projects/gnustandards>.
94194 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
94195         and Jim Meyering  <meyering@redhat.com>
94197         Adjust getdate' grammar to accept a slightly more regular language.
94198         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
94199         Before, the former was rejected.
94200         * lib/getdate.y (digits_to_date_time): New function, factored
94201         out of ...
94202         (number): ...here.  Just call digits_to_date_time.
94203         (hybrid): New non-terminal to handle an <unsigned number,
94204         signed relative offset> sequence consistently.
94206 2007-11-18  Jim Meyering  <meyering@redhat.com>
94208         Pull my changes from coreutils:
94209         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
94210         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
94211         use of $gnulib_tool_option_extras, so that it's separated from the
94212         preceding argument.
94214         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
94215         * build-aux/bootstrap (cp_mark_as_generated): Create any required
94216         parent destination directories before copying a file into place.
94218 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
94220         bootstrap: work also with 4-argument variant of AC_INIT
94221         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
94223 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
94225         Port test-getaddrinfo to Solaris.
94226         Problem reported by Bruno Haible in
94227         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
94228         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
94229         explanation of setting 'hints'.
94230         Don't reject an implementation merely because it returns EAI_SERVICE.
94231         (EAI_SERVICE): Define to 0 if not defined.
94233 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
94235         The license of gnu-make and posix-shell is now "GPLed build tool".
94236         * modules/gnu-make (License): Likewise.
94237         * modules/posix-shell (License): Likewise.
94239         New module posix-shell, for determining a POSIX shell
94240         or perhaps something that is close enough to a POSIX shell.
94241         * m4/posix-shell.m4: New file.
94242         * modules/posix-shell: New file.
94244         * MODULES.html.sh: Mention new module.
94246         New module gnu-make, for determining whether we're using GNU Make.
94247         * m4/gnu-make.m4: New file.
94248         * modules/gnu-make: New file.
94249         * MODULES.html.sh: Mention new module.
94251 2007-11-14  Jim Meyering  <meyering@redhat.com>
94253         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
94254         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
94255         use this macro to create a function _definition_.
94256         Remove useless "#undef ARGMATCH_DIE".
94258 2007-11-14  Bruno Haible  <bruno@clisp.org>
94260         * lib/config.charset: Update for OpenBSD 4.1.
94261         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
94263 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
94265         Document 64-bit #if problems in stdint.texi.
94266         * doc/headers/stdint.texi (stdint.h): Mention problems with
94267         64-bit-#if, and how to work around them.
94269         Don't insist on 'long long int' support in the preprocessor.  It
94270         breaks too many things.  For example, PRIdMAX still uses a 'long
94271         long int' format with the latest Sun compiler, even though
94272         HAVE_LONG_LONG_INT isn't defined due to that compiler's
94273         preprocessor problem.  This causes the latest coreutils to dump
94274         core on Solaris 10 sparc with the Sun C compiler.
94275         Instead, fix the 2007-10-16 problem in a different way, by evaluating
94276         the troublesome expressions at configure-time, not at #if-time.
94277         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
94278         preprocessor.
94279         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
94280         compile-time C checks, done at 'configure'-time.
94281         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
94282         * modules/inttypes (Makefile): Substitute the new symbols that
94283         gl_INTTYPES_H now generates.
94284         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
94286 2007-11-12  Bruno Haible  <bruno@clisp.org>
94288         Tests for Unicode character classification functions.
94290         * modules/unictype/bidicategory-byname-tests: New file.
94291         * modules/unictype/bidicategory-name-tests: New file.
94292         * modules/unictype/bidicategory-of-tests: New file.
94293         * modules/unictype/bidicategory-test-tests: New file.
94294         * modules/unictype/block-list-tests: New file.
94295         * modules/unictype/block-of-tests: New file.
94296         * modules/unictype/block-test-tests: New file.
94297         * modules/unictype/category-C-tests: New file.
94298         * modules/unictype/category-Cc-tests: New file.
94299         * modules/unictype/category-Cf-tests: New file.
94300         * modules/unictype/category-Cn-tests: New file.
94301         * modules/unictype/category-Co-tests: New file.
94302         * modules/unictype/category-Cs-tests: New file.
94303         * modules/unictype/category-L-tests: New file.
94304         * modules/unictype/category-Ll-tests: New file.
94305         * modules/unictype/category-Lm-tests: New file.
94306         * modules/unictype/category-Lo-tests: New file.
94307         * modules/unictype/category-Lt-tests: New file.
94308         * modules/unictype/category-Lu-tests: New file.
94309         * modules/unictype/category-M-tests: New file.
94310         * modules/unictype/category-Mc-tests: New file.
94311         * modules/unictype/category-Me-tests: New file.
94312         * modules/unictype/category-Mn-tests: New file.
94313         * modules/unictype/category-N-tests: New file.
94314         * modules/unictype/category-Nd-tests: New file.
94315         * modules/unictype/category-Nl-tests: New file.
94316         * modules/unictype/category-No-tests: New file.
94317         * modules/unictype/category-P-tests: New file.
94318         * modules/unictype/category-Pc-tests: New file.
94319         * modules/unictype/category-Pd-tests: New file.
94320         * modules/unictype/category-Pe-tests: New file.
94321         * modules/unictype/category-Pf-tests: New file.
94322         * modules/unictype/category-Pi-tests: New file.
94323         * modules/unictype/category-Po-tests: New file.
94324         * modules/unictype/category-Ps-tests: New file.
94325         * modules/unictype/category-S-tests: New file.
94326         * modules/unictype/category-Sc-tests: New file.
94327         * modules/unictype/category-Sk-tests: New file.
94328         * modules/unictype/category-Sm-tests: New file.
94329         * modules/unictype/category-So-tests: New file.
94330         * modules/unictype/category-Z-tests: New file.
94331         * modules/unictype/category-Zl-tests: New file.
94332         * modules/unictype/category-Zp-tests: New file.
94333         * modules/unictype/category-Zs-tests: New file.
94334         * modules/unictype/category-and-not-tests: New file.
94335         * modules/unictype/category-and-tests: New file.
94336         * modules/unictype/category-byname-tests: New file.
94337         * modules/unictype/category-name-tests: New file.
94338         * modules/unictype/category-none-tests: New file.
94339         * modules/unictype/category-of-tests: New file.
94340         * modules/unictype/category-or-tests: New file.
94341         * modules/unictype/category-test-withtable-tests: New file.
94342         * modules/unictype/combining-class-tests: New file.
94343         * modules/unictype/ctype-alnum-tests: New file.
94344         * modules/unictype/ctype-alpha-tests: New file.
94345         * modules/unictype/ctype-blank-tests: New file.
94346         * modules/unictype/ctype-cntrl-tests: New file.
94347         * modules/unictype/ctype-digit-tests: New file.
94348         * modules/unictype/ctype-graph-tests: New file.
94349         * modules/unictype/ctype-lower-tests: New file.
94350         * modules/unictype/ctype-print-tests: New file.
94351         * modules/unictype/ctype-punct-tests: New file.
94352         * modules/unictype/ctype-space-tests: New file.
94353         * modules/unictype/ctype-upper-tests: New file.
94354         * modules/unictype/ctype-xdigit-tests: New file.
94355         * modules/unictype/decimal-digit-tests: New file.
94356         * modules/unictype/digit-tests: New file.
94357         * modules/unictype/mirror-tests: New file.
94358         * modules/unictype/numeric-tests: New file.
94359         * modules/unictype/property-alphabetic-tests: New file.
94360         * modules/unictype/property-ascii-hex-digit-tests: New file.
94361         * modules/unictype/property-bidi-arabic-digit-tests: New file.
94362         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
94363         * modules/unictype/property-bidi-block-separator-tests: New file.
94364         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
94365         * modules/unictype/property-bidi-common-separator-tests: New file.
94366         * modules/unictype/property-bidi-control-tests: New file.
94367         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
94368         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
94369         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
94370         * modules/unictype/property-bidi-european-digit-tests: New file.
94371         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
94372         * modules/unictype/property-bidi-left-to-right-tests: New file.
94373         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
94374         * modules/unictype/property-bidi-other-neutral-tests: New file.
94375         * modules/unictype/property-bidi-pdf-tests: New file.
94376         * modules/unictype/property-bidi-segment-separator-tests: New file.
94377         * modules/unictype/property-bidi-whitespace-tests: New file.
94378         * modules/unictype/property-byname-tests: New file.
94379         * modules/unictype/property-combining-tests: New file.
94380         * modules/unictype/property-composite-tests: New file.
94381         * modules/unictype/property-currency-symbol-tests: New file.
94382         * modules/unictype/property-dash-tests: New file.
94383         * modules/unictype/property-decimal-digit-tests: New file.
94384         * modules/unictype/property-default-ignorable-code-point-tests: New file.
94385         * modules/unictype/property-deprecated-tests: New file.
94386         * modules/unictype/property-diacritic-tests: New file.
94387         * modules/unictype/property-extender-tests: New file.
94388         * modules/unictype/property-format-control-tests: New file.
94389         * modules/unictype/property-grapheme-base-tests: New file.
94390         * modules/unictype/property-grapheme-extend-tests: New file.
94391         * modules/unictype/property-grapheme-link-tests: New file.
94392         * modules/unictype/property-hex-digit-tests: New file.
94393         * modules/unictype/property-hyphen-tests: New file.
94394         * modules/unictype/property-id-continue-tests: New file.
94395         * modules/unictype/property-id-start-tests: New file.
94396         * modules/unictype/property-ideographic-tests: New file.
94397         * modules/unictype/property-ids-binary-operator-tests: New file.
94398         * modules/unictype/property-ids-trinary-operator-tests: New file.
94399         * modules/unictype/property-ignorable-control-tests: New file.
94400         * modules/unictype/property-iso-control-tests: New file.
94401         * modules/unictype/property-join-control-tests: New file.
94402         * modules/unictype/property-left-of-pair-tests: New file.
94403         * modules/unictype/property-line-separator-tests: New file.
94404         * modules/unictype/property-logical-order-exception-tests: New file.
94405         * modules/unictype/property-lowercase-tests: New file.
94406         * modules/unictype/property-math-tests: New file.
94407         * modules/unictype/property-non-break-tests: New file.
94408         * modules/unictype/property-not-a-character-tests: New file.
94409         * modules/unictype/property-numeric-tests: New file.
94410         * modules/unictype/property-other-alphabetic-tests: New file.
94411         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
94412         * modules/unictype/property-other-grapheme-extend-tests: New file.
94413         * modules/unictype/property-other-id-continue-tests: New file.
94414         * modules/unictype/property-other-id-start-tests: New file.
94415         * modules/unictype/property-other-lowercase-tests: New file.
94416         * modules/unictype/property-other-math-tests: New file.
94417         * modules/unictype/property-other-uppercase-tests: New file.
94418         * modules/unictype/property-paired-punctuation-tests: New file.
94419         * modules/unictype/property-paragraph-separator-tests: New file.
94420         * modules/unictype/property-pattern-syntax-tests: New file.
94421         * modules/unictype/property-pattern-white-space-tests: New file.
94422         * modules/unictype/property-private-use-tests: New file.
94423         * modules/unictype/property-punctuation-tests: New file.
94424         * modules/unictype/property-quotation-mark-tests: New file.
94425         * modules/unictype/property-radical-tests: New file.
94426         * modules/unictype/property-sentence-terminal-tests: New file.
94427         * modules/unictype/property-soft-dotted-tests: New file.
94428         * modules/unictype/property-space-tests: New file.
94429         * modules/unictype/property-terminal-punctuation-tests: New file.
94430         * modules/unictype/property-test-tests: New file.
94431         * modules/unictype/property-titlecase-tests: New file.
94432         * modules/unictype/property-unassigned-code-value-tests: New file.
94433         * modules/unictype/property-unified-ideograph-tests: New file.
94434         * modules/unictype/property-uppercase-tests: New file.
94435         * modules/unictype/property-variation-selector-tests: New file.
94436         * modules/unictype/property-white-space-tests: New file.
94437         * modules/unictype/property-xid-continue-tests: New file.
94438         * modules/unictype/property-xid-start-tests: New file.
94439         * modules/unictype/property-zero-width-tests: New file.
94440         * modules/unictype/scripts-tests: New file.
94441         * modules/unictype/syntax-c-ident-tests: New file.
94442         * modules/unictype/syntax-c-whitespace-tests: New file.
94443         * modules/unictype/syntax-java-ident-tests: New file.
94444         * modules/unictype/syntax-java-whitespace-tests: New file.
94445         * tests/unictype/test-bidi_byname.c: New file.
94446         * tests/unictype/test-bidi_name.c: New file.
94447         * tests/unictype/test-bidi_of.c: New file.
94448         * tests/unictype/test-bidi_test.c: New file.
94449         * tests/unictype/test-block_list.c: New file.
94450         * tests/unictype/test-block_of.c: New file.
94451         * tests/unictype/test-block_test.c: New file.
94452         * tests/unictype/test-categ_and.c: New file.
94453         * tests/unictype/test-categ_and_not.c: New file.
94454         * tests/unictype/test-categ_byname.c: New file.
94455         * tests/unictype/test-categ_name.c: New file.
94456         * tests/unictype/test-categ_none.c: New file.
94457         * tests/unictype/test-categ_of.c: New file.
94458         * tests/unictype/test-categ_or.c: New file.
94459         * tests/unictype/test-categ_test_withtable.c: New file.
94460         * tests/unictype/test-combining.c: New file.
94461         * tests/unictype/test-decdigit.c: New file.
94462         * tests/unictype/test-digit.c: New file.
94463         * tests/unictype/test-mirror.c: New file.
94464         * tests/unictype/test-numeric.c: New file.
94465         * tests/unictype/test-pr_byname.c: New file.
94466         * tests/unictype/test-pr_test.c: New file.
94467         * tests/unictype/test-predicate-part1.h: New file.
94468         * tests/unictype/test-predicate-part2.h: New file.
94469         * tests/unictype/test-scripts.c: New file.
94470         * tests/unictype/test-sy_c_ident.c: New file.
94471         * tests/unictype/test-sy_java_ident.c: New file.
94473         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
94474         for Unicode 5.0.0.
94475         * tests/unictype/test-categ_Cc.c: Likewise.
94476         * tests/unictype/test-categ_Cf.c: Likewise.
94477         * tests/unictype/test-categ_Cn.c: Likewise.
94478         * tests/unictype/test-categ_Co.c: Likewise.
94479         * tests/unictype/test-categ_Cs.c: Likewise.
94480         * tests/unictype/test-categ_L.c: Likewise.
94481         * tests/unictype/test-categ_Ll.c: Likewise.
94482         * tests/unictype/test-categ_Lm.c: Likewise.
94483         * tests/unictype/test-categ_Lo.c: Likewise.
94484         * tests/unictype/test-categ_Lt.c: Likewise.
94485         * tests/unictype/test-categ_Lu.c: Likewise.
94486         * tests/unictype/test-categ_M.c: Likewise.
94487         * tests/unictype/test-categ_Mc.c: Likewise.
94488         * tests/unictype/test-categ_Me.c: Likewise.
94489         * tests/unictype/test-categ_Mn.c: Likewise.
94490         * tests/unictype/test-categ_N.c: Likewise.
94491         * tests/unictype/test-categ_Nd.c: Likewise.
94492         * tests/unictype/test-categ_Nl.c: Likewise.
94493         * tests/unictype/test-categ_No.c: Likewise.
94494         * tests/unictype/test-categ_P.c: Likewise.
94495         * tests/unictype/test-categ_Pc.c: Likewise.
94496         * tests/unictype/test-categ_Pd.c: Likewise.
94497         * tests/unictype/test-categ_Pe.c: Likewise.
94498         * tests/unictype/test-categ_Pf.c: Likewise.
94499         * tests/unictype/test-categ_Pi.c: Likewise.
94500         * tests/unictype/test-categ_Po.c: Likewise.
94501         * tests/unictype/test-categ_Ps.c: Likewise.
94502         * tests/unictype/test-categ_S.c: Likewise.
94503         * tests/unictype/test-categ_Sc.c: Likewise.
94504         * tests/unictype/test-categ_Sk.c: Likewise.
94505         * tests/unictype/test-categ_Sm.c: Likewise.
94506         * tests/unictype/test-categ_So.c: Likewise.
94507         * tests/unictype/test-categ_Z.c: Likewise.
94508         * tests/unictype/test-categ_Zl.c: Likewise.
94509         * tests/unictype/test-categ_Zp.c: Likewise.
94510         * tests/unictype/test-categ_Zs.c: Likewise.
94511         * tests/unictype/test-ctype_alnum.c: Likewise.
94512         * tests/unictype/test-ctype_alpha.c: Likewise.
94513         * tests/unictype/test-ctype_blank.c: Likewise.
94514         * tests/unictype/test-ctype_cntrl.c: Likewise.
94515         * tests/unictype/test-ctype_digit.c: Likewise.
94516         * tests/unictype/test-ctype_graph.c: Likewise.
94517         * tests/unictype/test-ctype_lower.c: Likewise.
94518         * tests/unictype/test-ctype_print.c: Likewise.
94519         * tests/unictype/test-ctype_punct.c: Likewise.
94520         * tests/unictype/test-ctype_space.c: Likewise.
94521         * tests/unictype/test-ctype_upper.c: Likewise.
94522         * tests/unictype/test-ctype_xdigit.c: Likewise.
94523         * tests/unictype/test-decdigit.h: Likewise.
94524         * tests/unictype/test-digit.h: Likewise.
94525         * tests/unictype/test-numeric.h: Likewise.
94526         * tests/unictype/test-pr_alphabetic.c: Likewise.
94527         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
94528         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
94529         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
94530         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
94531         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
94532         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
94533         * tests/unictype/test-pr_bidi_control.c: Likewise.
94534         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
94535         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
94536         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
94537         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
94538         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
94539         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
94540         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
94541         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
94542         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
94543         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
94544         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
94545         * tests/unictype/test-pr_combining.c: Likewise.
94546         * tests/unictype/test-pr_composite.c: Likewise.
94547         * tests/unictype/test-pr_currency_symbol.c: Likewise.
94548         * tests/unictype/test-pr_dash.c: Likewise.
94549         * tests/unictype/test-pr_decimal_digit.c: Likewise.
94550         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
94551         * tests/unictype/test-pr_deprecated.c: Likewise.
94552         * tests/unictype/test-pr_diacritic.c: Likewise.
94553         * tests/unictype/test-pr_extender.c: Likewise.
94554         * tests/unictype/test-pr_format_control.c: Likewise.
94555         * tests/unictype/test-pr_grapheme_base.c: Likewise.
94556         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
94557         * tests/unictype/test-pr_grapheme_link.c: Likewise.
94558         * tests/unictype/test-pr_hex_digit.c: Likewise.
94559         * tests/unictype/test-pr_hyphen.c: Likewise.
94560         * tests/unictype/test-pr_id_continue.c: Likewise.
94561         * tests/unictype/test-pr_id_start.c: Likewise.
94562         * tests/unictype/test-pr_ideographic.c: Likewise.
94563         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
94564         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
94565         * tests/unictype/test-pr_ignorable_control.c: Likewise.
94566         * tests/unictype/test-pr_iso_control.c: Likewise.
94567         * tests/unictype/test-pr_join_control.c: Likewise.
94568         * tests/unictype/test-pr_left_of_pair.c: Likewise.
94569         * tests/unictype/test-pr_line_separator.c: Likewise.
94570         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
94571         * tests/unictype/test-pr_lowercase.c: Likewise.
94572         * tests/unictype/test-pr_math.c: Likewise.
94573         * tests/unictype/test-pr_non_break.c: Likewise.
94574         * tests/unictype/test-pr_not_a_character.c: Likewise.
94575         * tests/unictype/test-pr_numeric.c: Likewise.
94576         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
94577         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
94578         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
94579         * tests/unictype/test-pr_other_id_continue.c: Likewise.
94580         * tests/unictype/test-pr_other_id_start.c: Likewise.
94581         * tests/unictype/test-pr_other_lowercase.c: Likewise.
94582         * tests/unictype/test-pr_other_math.c: Likewise.
94583         * tests/unictype/test-pr_other_uppercase.c: Likewise.
94584         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
94585         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
94586         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
94587         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
94588         * tests/unictype/test-pr_private_use.c: Likewise.
94589         * tests/unictype/test-pr_punctuation.c: Likewise.
94590         * tests/unictype/test-pr_quotation_mark.c: Likewise.
94591         * tests/unictype/test-pr_radical.c: Likewise.
94592         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
94593         * tests/unictype/test-pr_soft_dotted.c: Likewise.
94594         * tests/unictype/test-pr_space.c: Likewise.
94595         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
94596         * tests/unictype/test-pr_titlecase.c: Likewise.
94597         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
94598         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
94599         * tests/unictype/test-pr_uppercase.c: Likewise.
94600         * tests/unictype/test-pr_variation_selector.c: Likewise.
94601         * tests/unictype/test-pr_white_space.c: Likewise.
94602         * tests/unictype/test-pr_xid_continue.c: Likewise.
94603         * tests/unictype/test-pr_xid_start.c: Likewise.
94604         * tests/unictype/test-pr_zero_width.c: Likewise.
94605         * tests/unictype/test-sy_c_whitespace.c: Likewise.
94606         * tests/unictype/test-sy_java_whitespace.c: Likewise.
94608 2007-11-12  Bruno Haible  <bruno@clisp.org>
94610         Unicode character classification functions.
94611         * lib/unictype.h: New file.
94612         * modules/unictype/base: New file.
94613         * modules/unictype/category-L: New file.
94614         * modules/unictype/category-Lu: New file.
94615         * modules/unictype/category-Ll: New file.
94616         * modules/unictype/category-Lt: New file.
94617         * modules/unictype/category-Lm: New file.
94618         * modules/unictype/category-Lo: New file.
94619         * modules/unictype/category-M: New file.
94620         * modules/unictype/category-Mn: New file.
94621         * modules/unictype/category-Mc: New file.
94622         * modules/unictype/category-Me: New file.
94623         * modules/unictype/category-N: New file.
94624         * modules/unictype/category-Nd: New file.
94625         * modules/unictype/category-Nl: New file.
94626         * modules/unictype/category-No: New file.
94627         * modules/unictype/category-P: New file.
94628         * modules/unictype/category-Pc: New file.
94629         * modules/unictype/category-Pd: New file.
94630         * modules/unictype/category-Ps: New file.
94631         * modules/unictype/category-Pe: New file.
94632         * modules/unictype/category-Pi: New file.
94633         * modules/unictype/category-Pf: New file.
94634         * modules/unictype/category-Po: New file.
94635         * modules/unictype/category-S: New file.
94636         * modules/unictype/category-Sm: New file.
94637         * modules/unictype/category-Sc: New file.
94638         * modules/unictype/category-Sk: New file.
94639         * modules/unictype/category-So: New file.
94640         * modules/unictype/category-Z: New file.
94641         * modules/unictype/category-Zs: New file.
94642         * modules/unictype/category-Zl: New file.
94643         * modules/unictype/category-Zp: New file.
94644         * modules/unictype/category-C: New file.
94645         * modules/unictype/category-Cc: New file.
94646         * modules/unictype/category-Cf: New file.
94647         * modules/unictype/category-Cs: New file.
94648         * modules/unictype/category-Co: New file.
94649         * modules/unictype/category-Cn: New file.
94650         * modules/unictype/category-or: New file.
94651         * modules/unictype/category-of: New file.
94652         * modules/unictype/category-test: New file.
94653         * modules/unictype/category-test-withtable: New file.
94654         * modules/unictype/category-byname: New file.
94655         * modules/unictype/category-none: New file.
94656         * modules/unictype/category-and: New file.
94657         * modules/unictype/category-and-not: New file.
94658         * modules/unictype/category-name: New file.
94659         * modules/unictype/combining-class: New file.
94660         * modules/unictype/category-all: New file.
94661         * modules/unictype/bidicategory-all: New file.
94662         * modules/unictype/bidicategory-byname: New file.
94663         * modules/unictype/bidicategory-name: New file.
94664         * modules/unictype/bidicategory-of: New file.
94665         * modules/unictype/bidicategory-test: New file.
94666         * modules/unictype/decimal-digit: New file.
94667         * modules/unictype/digit: New file.
94668         * modules/unictype/numeric: New file.
94669         * modules/unictype/mirror: New file.
94670         * modules/unictype/property-white-space: New file.
94671         * modules/unictype/property-alphabetic: New file.
94672         * modules/unictype/property-other-alphabetic: New file.
94673         * modules/unictype/property-not-a-character: New file.
94674         * modules/unictype/property-default-ignorable-code-point: New file.
94675         * modules/unictype/property-other-default-ignorable-code-point: New
94676         file.
94677         * modules/unictype/property-deprecated: New file.
94678         * modules/unictype/property-logical-order-exception: New file.
94679         * modules/unictype/property-variation-selector: New file.
94680         * modules/unictype/property-private-use: New file.
94681         * modules/unictype/property-unassigned-code-value: New file.
94682         * modules/unictype/property-uppercase: New file.
94683         * modules/unictype/property-other-uppercase: New file.
94684         * modules/unictype/property-lowercase: New file.
94685         * modules/unictype/property-other-lowercase: New file.
94686         * modules/unictype/property-titlecase: New file.
94687         * modules/unictype/property-soft-dotted: New file.
94688         * modules/unictype/property-id-start: New file.
94689         * modules/unictype/property-other-id-start: New file.
94690         * modules/unictype/property-id-continue: New file.
94691         * modules/unictype/property-other-id-continue: New file.
94692         * modules/unictype/property-xid-start: New file.
94693         * modules/unictype/property-xid-continue: New file.
94694         * modules/unictype/property-pattern-white-space: New file.
94695         * modules/unictype/property-pattern-syntax: New file.
94696         * modules/unictype/property-join-control: New file.
94697         * modules/unictype/property-grapheme-base: New file.
94698         * modules/unictype/property-grapheme-extend: New file.
94699         * modules/unictype/property-other-grapheme-extend: New file.
94700         * modules/unictype/property-grapheme-link: New file.
94701         * modules/unictype/property-bidi-control: New file.
94702         * modules/unictype/property-bidi-left-to-right: New file.
94703         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
94704         * modules/unictype/property-bidi-arabic-right-to-left: New file.
94705         * modules/unictype/property-bidi-european-digit: New file.
94706         * modules/unictype/property-bidi-eur-num-separator: New file.
94707         * modules/unictype/property-bidi-eur-num-terminator: New file.
94708         * modules/unictype/property-bidi-arabic-digit: New file.
94709         * modules/unictype/property-bidi-common-separator: New file.
94710         * modules/unictype/property-bidi-block-separator: New file.
94711         * modules/unictype/property-bidi-segment-separator: New file.
94712         * modules/unictype/property-bidi-whitespace: New file.
94713         * modules/unictype/property-bidi-non-spacing-mark: New file.
94714         * modules/unictype/property-bidi-boundary-neutral: New file.
94715         * modules/unictype/property-bidi-pdf: New file.
94716         * modules/unictype/property-bidi-embedding-or-override: New file.
94717         * modules/unictype/property-bidi-other-neutral: New file.
94718         * modules/unictype/property-hex-digit: New file.
94719         * modules/unictype/property-ascii-hex-digit: New file.
94720         * modules/unictype/property-ideographic: New file.
94721         * modules/unictype/property-unified-ideograph: New file.
94722         * modules/unictype/property-radical: New file.
94723         * modules/unictype/property-ids-binary-operator: New file.
94724         * modules/unictype/property-ids-trinary-operator: New file.
94725         * modules/unictype/property-zero-width: New file.
94726         * modules/unictype/property-space: New file.
94727         * modules/unictype/property-non-break: New file.
94728         * modules/unictype/property-iso-control: New file.
94729         * modules/unictype/property-format-control: New file.
94730         * modules/unictype/property-dash: New file.
94731         * modules/unictype/property-hyphen: New file.
94732         * modules/unictype/property-punctuation: New file.
94733         * modules/unictype/property-line-separator: New file.
94734         * modules/unictype/property-paragraph-separator: New file.
94735         * modules/unictype/property-quotation-mark: New file.
94736         * modules/unictype/property-sentence-terminal: New file.
94737         * modules/unictype/property-terminal-punctuation: New file.
94738         * modules/unictype/property-currency-symbol: New file.
94739         * modules/unictype/property-math: New file.
94740         * modules/unictype/property-other-math: New file.
94741         * modules/unictype/property-paired-punctuation: New file.
94742         * modules/unictype/property-left-of-pair: New file.
94743         * modules/unictype/property-combining: New file.
94744         * modules/unictype/property-composite: New file.
94745         * modules/unictype/property-decimal-digit: New file.
94746         * modules/unictype/property-numeric: New file.
94747         * modules/unictype/property-diacritic: New file.
94748         * modules/unictype/property-extender: New file.
94749         * modules/unictype/property-ignorable-control: New file.
94750         * modules/unictype/property-test: New file.
94751         * modules/unictype/property-byname: New file.
94752         * modules/unictype/property-all: New file.
94753         * modules/unictype/scripts: New file.
94754         * modules/unictype/scripts-all: New file.
94755         * modules/unictype/block-of: New file.
94756         * modules/unictype/block-test: New file.
94757         * modules/unictype/block-list: New file.
94758         * modules/unictype/block-all: New file.
94759         * modules/unictype/syntax-c-whitespace: New file.
94760         * modules/unictype/syntax-java-whitespace: New file.
94761         * modules/unictype/syntax-c-ident: New file.
94762         * modules/unictype/syntax-java-ident: New file.
94763         * modules/unictype/ctype-alnum: New file.
94764         * modules/unictype/ctype-alpha: New file.
94765         * modules/unictype/ctype-cntrl: New file.
94766         * modules/unictype/ctype-digit: New file.
94767         * modules/unictype/ctype-graph: New file.
94768         * modules/unictype/ctype-lower: New file.
94769         * modules/unictype/ctype-print: New file.
94770         * modules/unictype/ctype-punct: New file.
94771         * modules/unictype/ctype-space: New file.
94772         * modules/unictype/ctype-upper: New file.
94773         * modules/unictype/ctype-xdigit: New file.
94774         * modules/unictype/ctype-blank: New file.
94775         * lib/unictype/bidi_byname.c: New file.
94776         * lib/unictype/bidi_name.c: New file.
94777         * lib/unictype/bidi_of.c: New file.
94778         * lib/unictype/bidi_test.c: New file.
94779         * lib/unictype/bitmap.h: New file.
94780         * lib/unictype/block_test.c: New file.
94781         * lib/unictype/blocks.c: New file.
94782         * lib/unictype/categ_C.c: New file.
94783         * lib/unictype/categ_Cc.c: New file.
94784         * lib/unictype/categ_Cf.c: New file.
94785         * lib/unictype/categ_Cn.c: New file.
94786         * lib/unictype/categ_Co.c: New file.
94787         * lib/unictype/categ_Cs.c: New file.
94788         * lib/unictype/categ_L.c: New file.
94789         * lib/unictype/categ_Ll.c: New file.
94790         * lib/unictype/categ_Lm.c: New file.
94791         * lib/unictype/categ_Lo.c: New file.
94792         * lib/unictype/categ_Lt.c: New file.
94793         * lib/unictype/categ_Lu.c: New file.
94794         * lib/unictype/categ_M.c: New file.
94795         * lib/unictype/categ_Mc.c: New file.
94796         * lib/unictype/categ_Me.c: New file.
94797         * lib/unictype/categ_Mn.c: New file.
94798         * lib/unictype/categ_N.c: New file.
94799         * lib/unictype/categ_Nd.c: New file.
94800         * lib/unictype/categ_Nl.c: New file.
94801         * lib/unictype/categ_No.c: New file.
94802         * lib/unictype/categ_P.c: New file.
94803         * lib/unictype/categ_Pc.c: New file.
94804         * lib/unictype/categ_Pd.c: New file.
94805         * lib/unictype/categ_Pe.c: New file.
94806         * lib/unictype/categ_Pf.c: New file.
94807         * lib/unictype/categ_Pi.c: New file.
94808         * lib/unictype/categ_Po.c: New file.
94809         * lib/unictype/categ_Ps.c: New file.
94810         * lib/unictype/categ_S.c: New file.
94811         * lib/unictype/categ_Sc.c: New file.
94812         * lib/unictype/categ_Sk.c: New file.
94813         * lib/unictype/categ_Sm.c: New file.
94814         * lib/unictype/categ_So.c: New file.
94815         * lib/unictype/categ_Z.c: New file.
94816         * lib/unictype/categ_Zl.c: New file.
94817         * lib/unictype/categ_Zp.c: New file.
94818         * lib/unictype/categ_Zs.c: New file.
94819         * lib/unictype/categ_and.c: New file.
94820         * lib/unictype/categ_and_not.c: New file.
94821         * lib/unictype/categ_byname.c: New file.
94822         * lib/unictype/categ_name.c: New file.
94823         * lib/unictype/categ_none.c: New file.
94824         * lib/unictype/categ_of.c: New file.
94825         * lib/unictype/categ_or.c: New file.
94826         * lib/unictype/categ_test.c: New file.
94827         * lib/unictype/combining.c: New file.
94828         * lib/unictype/ctype_alnum.c: New file.
94829         * lib/unictype/ctype_alpha.c: New file.
94830         * lib/unictype/ctype_blank.c: New file.
94831         * lib/unictype/ctype_cntrl.c: New file.
94832         * lib/unictype/ctype_digit.c: New file.
94833         * lib/unictype/ctype_graph.c: New file.
94834         * lib/unictype/ctype_lower.c: New file.
94835         * lib/unictype/ctype_print.c: New file.
94836         * lib/unictype/ctype_punct.c: New file.
94837         * lib/unictype/ctype_space.c: New file.
94838         * lib/unictype/ctype_upper.c: New file.
94839         * lib/unictype/ctype_xdigit.c: New file.
94840         * lib/unictype/decdigit.c: New file.
94841         * lib/unictype/digit.c: New file.
94842         * lib/unictype/identsyntaxmap.h: New file.
94843         * lib/unictype/mirror.c: New file.
94844         * lib/unictype/numeric.c: New file.
94845         * lib/unictype/pr_alphabetic.c: New file.
94846         * lib/unictype/pr_ascii_hex_digit.c: New file.
94847         * lib/unictype/pr_bidi_arabic_digit.c: New file.
94848         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
94849         * lib/unictype/pr_bidi_block_separator.c: New file.
94850         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
94851         * lib/unictype/pr_bidi_common_separator.c: New file.
94852         * lib/unictype/pr_bidi_control.c: New file.
94853         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
94854         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
94855         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
94856         * lib/unictype/pr_bidi_european_digit.c: New file.
94857         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
94858         * lib/unictype/pr_bidi_left_to_right.c: New file.
94859         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
94860         * lib/unictype/pr_bidi_other_neutral.c: New file.
94861         * lib/unictype/pr_bidi_pdf.c: New file.
94862         * lib/unictype/pr_bidi_segment_separator.c: New file.
94863         * lib/unictype/pr_bidi_whitespace.c: New file.
94864         * lib/unictype/pr_byname.c: New file.
94865         * lib/unictype/pr_byname.gperf: New file.
94866         * lib/unictype/pr_combining.c: New file.
94867         * lib/unictype/pr_composite.c: New file.
94868         * lib/unictype/pr_currency_symbol.c: New file.
94869         * lib/unictype/pr_dash.c: New file.
94870         * lib/unictype/pr_decimal_digit.c: New file.
94871         * lib/unictype/pr_default_ignorable_code_point.c: New file.
94872         * lib/unictype/pr_deprecated.c: New file.
94873         * lib/unictype/pr_diacritic.c: New file.
94874         * lib/unictype/pr_extender.c: New file.
94875         * lib/unictype/pr_format_control.c: New file.
94876         * lib/unictype/pr_grapheme_base.c: New file.
94877         * lib/unictype/pr_grapheme_extend.c: New file.
94878         * lib/unictype/pr_grapheme_link.c: New file.
94879         * lib/unictype/pr_hex_digit.c: New file.
94880         * lib/unictype/pr_hyphen.c: New file.
94881         * lib/unictype/pr_id_continue.c: New file.
94882         * lib/unictype/pr_id_start.c: New file.
94883         * lib/unictype/pr_ideographic.c: New file.
94884         * lib/unictype/pr_ids_binary_operator.c: New file.
94885         * lib/unictype/pr_ids_trinary_operator.c: New file.
94886         * lib/unictype/pr_ignorable_control.c: New file.
94887         * lib/unictype/pr_iso_control.c: New file.
94888         * lib/unictype/pr_join_control.c: New file.
94889         * lib/unictype/pr_left_of_pair.c: New file.
94890         * lib/unictype/pr_line_separator.c: New file.
94891         * lib/unictype/pr_logical_order_exception.c: New file.
94892         * lib/unictype/pr_lowercase.c: New file.
94893         * lib/unictype/pr_math.c: New file.
94894         * lib/unictype/pr_non_break.c: New file.
94895         * lib/unictype/pr_not_a_character.c: New file.
94896         * lib/unictype/pr_numeric.c: New file.
94897         * lib/unictype/pr_other_alphabetic.c: New file.
94898         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
94899         * lib/unictype/pr_other_grapheme_extend.c: New file.
94900         * lib/unictype/pr_other_id_continue.c: New file.
94901         * lib/unictype/pr_other_id_start.c: New file.
94902         * lib/unictype/pr_other_lowercase.c: New file.
94903         * lib/unictype/pr_other_math.c: New file.
94904         * lib/unictype/pr_other_uppercase.c: New file.
94905         * lib/unictype/pr_paired_punctuation.c: New file.
94906         * lib/unictype/pr_paragraph_separator.c: New file.
94907         * lib/unictype/pr_pattern_syntax.c: New file.
94908         * lib/unictype/pr_pattern_white_space.c: New file.
94909         * lib/unictype/pr_private_use.c: New file.
94910         * lib/unictype/pr_punctuation.c: New file.
94911         * lib/unictype/pr_quotation_mark.c: New file.
94912         * lib/unictype/pr_radical.c: New file.
94913         * lib/unictype/pr_sentence_terminal.c: New file.
94914         * lib/unictype/pr_soft_dotted.c: New file.
94915         * lib/unictype/pr_space.c: New file.
94916         * lib/unictype/pr_terminal_punctuation.c: New file.
94917         * lib/unictype/pr_test.c: New file.
94918         * lib/unictype/pr_titlecase.c: New file.
94919         * lib/unictype/pr_unassigned_code_value.c: New file.
94920         * lib/unictype/pr_unified_ideograph.c: New file.
94921         * lib/unictype/pr_uppercase.c: New file.
94922         * lib/unictype/pr_variation_selector.c: New file.
94923         * lib/unictype/pr_white_space.c: New file.
94924         * lib/unictype/pr_xid_continue.c: New file.
94925         * lib/unictype/pr_xid_start.c: New file.
94926         * lib/unictype/pr_zero_width.c: New file.
94927         * lib/unictype/scripts.c: New file.
94928         * lib/unictype/sy_c_ident.c: New file.
94929         * lib/unictype/sy_c_whitespace.c: New file.
94930         * lib/unictype/sy_java_ident.c: New file.
94931         * lib/unictype/sy_java_whitespace.c: New file.
94933         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
94934         Unicode 5.0.0.
94935         * lib/unictype/blocks.h: Likewise.
94936         * lib/unictype/categ_C.h: Likewise.
94937         * lib/unictype/categ_Cc.h: Likewise.
94938         * lib/unictype/categ_Cf.h: Likewise.
94939         * lib/unictype/categ_Cn.h: Likewise.
94940         * lib/unictype/categ_Co.h: Likewise.
94941         * lib/unictype/categ_Cs.h: Likewise.
94942         * lib/unictype/categ_L.h: Likewise.
94943         * lib/unictype/categ_Ll.h: Likewise.
94944         * lib/unictype/categ_Lm.h: Likewise.
94945         * lib/unictype/categ_Lo.h: Likewise.
94946         * lib/unictype/categ_Lt.h: Likewise.
94947         * lib/unictype/categ_Lu.h: Likewise.
94948         * lib/unictype/categ_M.h: Likewise.
94949         * lib/unictype/categ_Mc.h: Likewise.
94950         * lib/unictype/categ_Me.h: Likewise.
94951         * lib/unictype/categ_Mn.h: Likewise.
94952         * lib/unictype/categ_N.h: Likewise.
94953         * lib/unictype/categ_Nd.h: Likewise.
94954         * lib/unictype/categ_Nl.h: Likewise.
94955         * lib/unictype/categ_No.h: Likewise.
94956         * lib/unictype/categ_P.h: Likewise.
94957         * lib/unictype/categ_Pc.h: Likewise.
94958         * lib/unictype/categ_Pd.h: Likewise.
94959         * lib/unictype/categ_Pe.h: Likewise.
94960         * lib/unictype/categ_Pf.h: Likewise.
94961         * lib/unictype/categ_Pi.h: Likewise.
94962         * lib/unictype/categ_Po.h: Likewise.
94963         * lib/unictype/categ_Ps.h: Likewise.
94964         * lib/unictype/categ_S.h: Likewise.
94965         * lib/unictype/categ_Sc.h: Likewise.
94966         * lib/unictype/categ_Sk.h: Likewise.
94967         * lib/unictype/categ_Sm.h: Likewise.
94968         * lib/unictype/categ_So.h: Likewise.
94969         * lib/unictype/categ_Z.h: Likewise.
94970         * lib/unictype/categ_Zl.h: Likewise.
94971         * lib/unictype/categ_Zp.h: Likewise.
94972         * lib/unictype/categ_Zs.h: Likewise.
94973         * lib/unictype/categ_of.h: Likewise.
94974         * lib/unictype/combining.h: Likewise.
94975         * lib/unictype/ctype_alnum.h: Likewise.
94976         * lib/unictype/ctype_alpha.h: Likewise.
94977         * lib/unictype/ctype_blank.h: Likewise.
94978         * lib/unictype/ctype_cntrl.h: Likewise.
94979         * lib/unictype/ctype_digit.h: Likewise.
94980         * lib/unictype/ctype_graph.h: Likewise.
94981         * lib/unictype/ctype_lower.h: Likewise.
94982         * lib/unictype/ctype_print.h: Likewise.
94983         * lib/unictype/ctype_punct.h: Likewise.
94984         * lib/unictype/ctype_space.h: Likewise.
94985         * lib/unictype/ctype_upper.h: Likewise.
94986         * lib/unictype/ctype_xdigit.h: Likewise.
94987         * lib/unictype/decdigit.h: Likewise.
94988         * lib/unictype/digit.h: Likewise.
94989         * lib/unictype/mirror.h: Likewise.
94990         * lib/unictype/numeric.h: Likewise.
94991         * lib/unictype/pr_alphabetic.h: Likewise.
94992         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
94993         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
94994         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
94995         * lib/unictype/pr_bidi_block_separator.h: Likewise.
94996         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
94997         * lib/unictype/pr_bidi_common_separator.h: Likewise.
94998         * lib/unictype/pr_bidi_control.h: Likewise.
94999         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
95000         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
95001         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
95002         * lib/unictype/pr_bidi_european_digit.h: Likewise.
95003         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
95004         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
95005         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
95006         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
95007         * lib/unictype/pr_bidi_pdf.h: Likewise.
95008         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
95009         * lib/unictype/pr_bidi_whitespace.h: Likewise.
95010         * lib/unictype/pr_combining.h: Likewise.
95011         * lib/unictype/pr_composite.h: Likewise.
95012         * lib/unictype/pr_currency_symbol.h: Likewise.
95013         * lib/unictype/pr_dash.h: Likewise.
95014         * lib/unictype/pr_decimal_digit.h: Likewise.
95015         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
95016         * lib/unictype/pr_deprecated.h: Likewise.
95017         * lib/unictype/pr_diacritic.h: Likewise.
95018         * lib/unictype/pr_extender.h: Likewise.
95019         * lib/unictype/pr_format_control.h: Likewise.
95020         * lib/unictype/pr_grapheme_base.h: Likewise.
95021         * lib/unictype/pr_grapheme_extend.h: Likewise.
95022         * lib/unictype/pr_grapheme_link.h: Likewise.
95023         * lib/unictype/pr_hex_digit.h: Likewise.
95024         * lib/unictype/pr_hyphen.h: Likewise.
95025         * lib/unictype/pr_id_continue.h: Likewise.
95026         * lib/unictype/pr_id_start.h: Likewise.
95027         * lib/unictype/pr_ideographic.h: Likewise.
95028         * lib/unictype/pr_ids_binary_operator.h: Likewise.
95029         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
95030         * lib/unictype/pr_ignorable_control.h: Likewise.
95031         * lib/unictype/pr_iso_control.h: Likewise.
95032         * lib/unictype/pr_join_control.h: Likewise.
95033         * lib/unictype/pr_left_of_pair.h: Likewise.
95034         * lib/unictype/pr_line_separator.h: Likewise.
95035         * lib/unictype/pr_logical_order_exception.h: Likewise.
95036         * lib/unictype/pr_lowercase.h: Likewise.
95037         * lib/unictype/pr_math.h: Likewise.
95038         * lib/unictype/pr_non_break.h: Likewise.
95039         * lib/unictype/pr_not_a_character.h: Likewise.
95040         * lib/unictype/pr_numeric.h: Likewise.
95041         * lib/unictype/pr_other_alphabetic.h: Likewise.
95042         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
95043         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
95044         * lib/unictype/pr_other_id_continue.h: Likewise.
95045         * lib/unictype/pr_other_id_start.h: Likewise.
95046         * lib/unictype/pr_other_lowercase.h: Likewise.
95047         * lib/unictype/pr_other_math.h: Likewise.
95048         * lib/unictype/pr_other_uppercase.h: Likewise.
95049         * lib/unictype/pr_paired_punctuation.h: Likewise.
95050         * lib/unictype/pr_paragraph_separator.h: Likewise.
95051         * lib/unictype/pr_pattern_syntax.h: Likewise.
95052         * lib/unictype/pr_pattern_white_space.h: Likewise.
95053         * lib/unictype/pr_private_use.h: Likewise.
95054         * lib/unictype/pr_punctuation.h: Likewise.
95055         * lib/unictype/pr_quotation_mark.h: Likewise.
95056         * lib/unictype/pr_radical.h: Likewise.
95057         * lib/unictype/pr_sentence_terminal.h: Likewise.
95058         * lib/unictype/pr_soft_dotted.h: Likewise.
95059         * lib/unictype/pr_space.h: Likewise.
95060         * lib/unictype/pr_terminal_punctuation.h: Likewise.
95061         * lib/unictype/pr_titlecase.h: Likewise.
95062         * lib/unictype/pr_unassigned_code_value.h: Likewise.
95063         * lib/unictype/pr_unified_ideograph.h: Likewise.
95064         * lib/unictype/pr_uppercase.h: Likewise.
95065         * lib/unictype/pr_variation_selector.h: Likewise.
95066         * lib/unictype/pr_white_space.h: Likewise.
95067         * lib/unictype/pr_xid_continue.h: Likewise.
95068         * lib/unictype/pr_xid_start.h: Likewise.
95069         * lib/unictype/pr_zero_width.h: Likewise.
95070         * lib/unictype/scripts.h: Likewise.
95071         * lib/unictype/scripts_byname.gperf: Likewise.
95072         * lib/unictype/sy_c_ident.h: Likewise.
95073         * lib/unictype/sy_c_whitespace.h: Likewise.
95074         * lib/unictype/sy_java_ident.h: Likewise.
95075         * lib/unictype/sy_java_whitespace.h: Likewise.
95077         * lib/unictype/Makefile: New file.
95078         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
95079         glibc.
95080         * lib/unictype/3level.h: New file, copied from glibc.
95081         * lib/unictype/3levelbit.h: New file.
95083 2007-11-11  Bruno Haible  <bruno@clisp.org>
95085         * modules/gperf: New file.
95086         * modules/iconv_open (Depends-on): Add it.
95087         (Makefile.am): Remove the GPERF definition.
95089 2007-11-11  Bruno Haible  <bruno@clisp.org>
95091         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
95092         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
95094 2007-11-11  Bruno Haible  <bruno@clisp.org>
95096         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
95097         (usage): Remove function.
95099 2007-11-11  Bruno Haible  <bruno@clisp.org>
95101         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
95102         gl_FUNC_CEILF_LIBS.
95103         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
95104         gl_FUNC_CEIL_LIBS.
95105         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
95106         gl_FUNC_CEILL_LIBS.
95107         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
95108         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
95109         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
95111 2007-11-11  Bruno Haible  <bruno@clisp.org>
95113         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
95114         roundf were declared but do not exist on functions.
95115         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
95116         roundl were declared but do not exist on functions.
95117         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
95118         HAVE_FLOORL_AND_CEILL, respectively.
95119         Needed for Sun C on Solaris 10.
95121 2007-11-11  Bruno Haible  <bruno@clisp.org>
95123         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
95124         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
95125         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
95126         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
95127         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
95128         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
95129         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
95130         HAVE_DECL_ROUNDF.
95131         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
95132         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
95133         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
95134         of HAVE_DECL_ROUND*.
95135         * modules/math (Makefile.am): Update.
95137 2007-11-10  Bruno Haible  <bruno@clisp.org>
95139         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
95140         ptrdiff_t as m4/intl.m4.
95142 2007-11-10  Jim Meyering  <meyering@redhat.com>
95144         Avoid link failure for the argmatch test.
95145         * tests/test-argmatch.c (usage): Define function to avoid a link
95146         failure: argmatch_die requires a usage function.
95148 2007-11-09  Bruno Haible  <bruno@clisp.org>
95150         * doc/functions/snprintf.texi: Mention BeOS deficiency.
95151         * doc/functions/vsnprintf.texi: Likewise.
95152         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
95153         with a size argument < 2.
95155 2007-11-09  Bruno Haible  <bruno@clisp.org>
95157         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
95158         buffer. Fixes an inefficiency introduced on 2007-11-03.
95160 2007-11-09  Bruno Haible  <bruno@clisp.org>
95162         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
95163         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
95165 2007-11-08  Jim Meyering  <meyering@redhat.com>
95167         Change cache variable name prefix "jm_" to "gl_" everywhere.
95168         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
95169         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
95170         * m4/uptime.m4: s/gl_/jm_/
95172 2007-11-07  Bruno Haible  <bruno@clisp.org>
95174         Update to GNU gettext 0.17.
95175         * m4/intl.m4: Update to GNU gettext 0.17.
95176         * m4/po.m4: Likewise.
95177         * modules/gettext (Files): Remove m4/ulonglong.m4.
95178         (configure.ac): Require gettext infrastructure from version 0.17.
95180 2007-11-06  Bruno Haible  <bruno@clisp.org>
95182         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
95183         symbolic values are not defined in a public header.
95184         * lib/freadable.c (freadable) [QNX]: Likewise.
95185         * lib/freadahead.c (freadahead) [QNX]: Likewise.
95186         * lib/freading.c (freading) [QNX]: Likewise.
95187         * lib/fseterr.c (fseterr) [QNX]: Likewise.
95188         * lib/fwritable.c (fwritable) [QNX]: Likewise.
95189         * lib/fwriting.c (fwriting) [QNX]: Likewise.
95190         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
95191         Reported by Alain Magloire.
95193         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
95195 2007-11-05  Bruno Haible  <bruno@clisp.org>
95197         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
95198         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
95199         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
95200         Reported by Eric Blake.
95202 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95203             Bruno Haible  <bruno@clisp.org>
95205         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
95206         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
95207         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
95208         (malloc): Undefine also before including <stdlib.h>.
95209         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
95210         Needed on OSF/1 4.0.
95212 2007-11-05  Jim Meyering  <meyering@redhat.com>
95214         git-version-gen: sync from coreutils.
95215         * build-aux/git-version-gen: Add comments.
95216         Change the first '-' to '.' in the snapshot version string,
95217         e.g., 6.9-377-08144 -> 6.9.377-08144
95218         Remove first parameter.
95219         Don't declare a version "-dirty" merely because a time
95220         stamp has changed.
95222 2007-11-04  Bruno Haible  <bruno@clisp.org>
95224         * lib/lock.h: Protect all macro definitions containing an 'if'
95225         statement through a "do { ... } while (0)".
95226         * lib/tls.h: Likewise.
95228 2007-11-04  Bruno Haible  <bruno@clisp.org>
95230         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
95232 2007-11-04  Bruno Haible  <bruno@clisp.org>
95234         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
95235         * modules/fprintf-posix (Depends-on): Add nocrash.
95236         * modules/snprintf-posix (Depends-on): Likewise.
95237         * modules/sprintf-posix (Depends-on): Likewise.
95238         * modules/vasnprintf-posix (Depends-on): Likewise.
95239         * modules/vasprintf-posix (Depends-on): Likewise.
95240         * modules/vfprintf-posix (Depends-on): Likewise.
95241         * modules/vsnprintf-posix (Depends-on): Likewise.
95242         * modules/vsprintf-posix (Depends-on): Likewise.
95243         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
95244         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
95245         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
95246         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
95247         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
95248         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
95249         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
95251 2007-11-04  Bruno Haible  <bruno@clisp.org>
95253         * modules/nocrash: New file.
95254         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
95255         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
95257 2007-11-04  Bruno Haible  <bruno@clisp.org>
95259         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
95260         precision handling.
95261         * tests/test-vasprintf-posix.c (test_function): Likewise.
95262         * tests/test-snprintf-posix.h (test_function): Likewise.
95263         * tests/test-sprintf-posix.h (test_function): Likewise.
95265         Fix *printf behaviour for large precisions on mingw and BeOS.
95266         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
95267         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
95268         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
95269         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95270         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95271         gl_PRINTF_PRECISION and test its result. Invoke
95272         gl_PREREQ_VASNPRINTF_PRECISION.
95273         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95274         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95275         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95276         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95277         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95278         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95279         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95280         * doc/functions/fprintf.texi: Update.
95281         * doc/functions/printf.texi: Update.
95282         * doc/functions/snprintf.texi: Update.
95283         * doc/functions/sprintf.texi: Update.
95284         * doc/functions/vfprintf.texi: Update.
95285         * doc/functions/vprintf.texi: Update.
95286         * doc/functions/vsnprintf.texi: Update.
95287         * doc/functions/vsprintf.texi: Update.
95289 2007-11-04  Bruno Haible  <bruno@clisp.org>
95291         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
95293 2007-11-04  Bruno Haible  <bruno@clisp.org>
95295         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
95296         Reported by Sylvain Beucler <beuc@gnu.org>.
95298 2007-11-03  Bruno Haible  <bruno@clisp.org>
95300         * tests/test-fprintf-posix2.sh: New file.
95301         * tests/test-fprintf-posix2.c: New file.
95302         * modules/fprintf-posix-tests (Files): Add them.
95303         (TESTS): Add test-fprintf-posix2.sh.
95304         (configure.ac): Check for getrlimit and setrlimit.
95305         (check_PROGRAMS): Add test-fprintf-posix2.
95307         * tests/test-printf-posix2.sh: New file.
95308         * tests/test-printf-posix2.c: New file.
95309         * modules/printf-posix-tests (Files): Add them.
95310         (TESTS): Add test-printf-posix2.sh.
95311         (configure.ac): Check for getrlimit and setrlimit.
95312         (check_PROGRAMS): Add test-printf-posix2.
95314         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
95315         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
95316         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
95317         (decode_double): New function, copied from decode_long_double.
95318         (scale10_round_decimal_decoded): New function, extracted from
95319         scale10_round_decimal_long_double.
95320         (scale10_round_decimal_long_double): Use it.
95321         (scale10_round_decimal_double): New function.
95322         (floorlog10): New function.
95323         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
95324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
95325         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95326         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95327         gl_PRINTF_ENOMEM and test its result. Invoke
95328         gl_PREREQ_VASNPRINTF_ENOMEM.
95329         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95330         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95331         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95332         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95333         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95334         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95335         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95336         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
95337         * modules/snprintf-posix (Depends-on): Likewise.
95338         * modules/sprintf-posix (Depends-on): Likewise.
95339         * modules/vasnprintf-posix (Depends-on): Likewise.
95340         * modules/vasprintf-posix (Depends-on): Likewise.
95341         * modules/vfprintf-posix (Depends-on): Likewise.
95342         * modules/vsnprintf-posix (Depends-on): Likewise.
95343         * modules/vsprintf-posix (Depends-on): Likewise.
95344         * doc/functions/fprintf.texi: Update.
95345         * doc/functions/printf.texi: Update.
95346         * doc/functions/snprintf.texi: Update.
95347         * doc/functions/sprintf.texi: Update.
95348         * doc/functions/vfprintf.texi: Update.
95349         * doc/functions/vprintf.texi: Update.
95350         * doc/functions/vsnprintf.texi: Update.
95351         * doc/functions/vsprintf.texi: Update.
95353 2007-11-03  Bruno Haible  <bruno@clisp.org>
95355         * modules/frexp-nolibm-tests: New file.
95357         * modules/frexp-nolibm: New file.
95358         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
95360 2007-11-03  Bruno Haible  <bruno@clisp.org>
95362         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
95363         value is C99 compliant.
95364         Needed for OSF/1 5.1.
95366 2007-11-03  Bruno Haible  <bruno@clisp.org>
95368         Fix out-of-memory handling of vasnprintf.
95369         * lib/printf-parse.c: Include <errno.h>.
95370         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
95371         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
95372         is already set.
95374 2007-11-02  Eric Blake  <ebb9@byu.net>
95376         Fix tests on cygwin.
95377         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
95379 2007-11-01  Bruno Haible  <bruno@clisp.org>
95381         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
95382         warning.
95383         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
95384         needed for POSIX compatibility.
95386 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
95388         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
95389         for compatibility with GNU.
95391 2007-11-01  Bruno Haible  <bruno@clisp.org>
95393         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
95394         (putenv): Renamed from rpl_putenv. Change argument type from
95395         'const char *' to 'char *'.
95396         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
95397         of defining putenv in config.h, just set REPLACE_PUTENV.
95398         * modules/putenv (Depends-on): Add stdlib.
95399         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
95400         (Include): Use <stdlib.h>.
95401         * lib/stdlib.in.h (putenv): New declaration.
95402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
95403         REPLACE_PUTENV.
95404         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
95405         REPLACE_PUTENV.
95406         Needed for MacOS X 10.5.0.
95407         Reported by Peter O'Gorman <peter@pogma.com>.
95409 2007-11-01  Jim Meyering  <meyering@redhat.com>
95411         Treat an empty date string exactly like "0".
95412         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
95413         if the remaining date string (to be parsed) is empty, use "0".
95414         Reported by Mischa Molhoek and discussed in this thread:
95415         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
95417 2007-10-31  Bruno Haible  <bruno@clisp.org>
95419         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
95420         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
95421         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
95422         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
95423         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
95424         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
95426 2007-10-31  Bruno Haible  <bruno@clisp.org>
95428         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
95429         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
95430         (AC_TYPE_LONG_LONG_INT): Use it.
95431         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
95432         it as well.
95433         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
95434         to m4/longlong.m4.
95435         * modules/stdint (Files): Remove m4/ulonglong.m4.
95436         * modules/strtoull (Files): Use m4/longlong.m4 instead of
95437         m4/ulonglong.m4.
95438         * modules/strtoumax (Files): Likewise.
95440 2007-10-30  Bruno Haible  <bruno@clisp.org>
95442         * modules/xvasprintf-posix: New file.
95443         Suggested by Eric Blake.
95445 2007-10-30  Bruno Haible  <bruno@clisp.org>
95447         * modules/xprintf-posix-tests: New file.
95448         * tests/test-xprintf-posix.sh: New file.
95449         * tests/test-xprintf-posix.c: New file.
95450         * tests/test-xfprintf-posix.c: New file.
95452         * modules/xprintf-posix: New file.
95454 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95456         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
95457         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
95458         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
95460 2007-10-29  Bruno Haible  <bruno@clisp.org>
95462         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
95463         contain the special marker '_cv_'.
95464         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
95465         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
95466         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
95467         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
95468         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
95469         Reported by Ralf Wildenhues.
95471 2007-10-29  Bruno Haible  <bruno@clisp.org>
95473         * gnulib-tool (func_import): When --lgpl is not specified, set
95474         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
95475         GPLv3.
95476         Reported by Simon Josefsson.
95478 2007-10-28  Bruno Haible  <bruno@clisp.org>
95480         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
95481         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
95482         HAVE_DECL_ISFINITE.
95483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
95484         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
95485         HAVE_DECL_ISFINITE.
95487 2007-10-28  Bruno Haible  <bruno@clisp.org>
95489         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
95490         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
95492 2007-10-28  Bruno Haible  <bruno@clisp.org>
95494         Fix link errors with Sun C 5.0 on Solaris 10.
95495         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
95496         function is declared but not present in the compiler's libm.
95497         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
95498         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
95499         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
95500         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
95501         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
95502         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
95503         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
95504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
95505         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
95506         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
95507         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
95508         HAVE_DECL_FLOORL.
95510 2007-10-28  Bruno Haible  <bruno@clisp.org>
95512         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
95513         gl_FUNC_FLOORL. Cache the result.
95514         (gl_FUNC_FLOORL): Use it.
95515         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
95516         gl_FUNC_CEILL. Cache the result.
95517         (gl_FUNC_CEILL): Use it.
95519         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
95520         gl_FUNC_FLOOR. Cache the result.
95521         (gl_FUNC_FLOOR): Use it.
95522         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
95523         gl_FUNC_CEIL. Cache the result.
95524         (gl_FUNC_CEIL): Use it.
95526         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
95527         gl_FUNC_FLOORF. Cache the result.
95528         (gl_FUNC_FLOORF): Use it.
95529         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
95530         gl_FUNC_CEILF. Cache the result.
95531         (gl_FUNC_CEILF): Use it.
95533 2007-10-28  Bruno Haible  <bruno@clisp.org>
95535         * gnulib-tool: Allow specifying the LGPL version number through
95536         --lgpl=2 or --lgpl=3.
95537         (func_usage): Document --lgpl with argument.
95538         Handle --lgpl=... arguments.
95539         (func_import): Recognize also gl_LGPL calls with an argument. When
95540         --lgpl=2 is used and the module's license is just LGPL, report an
95541         error. Set sed_transform_lib_file according to the lgpl variable. In
95542         the generated files, use --lgpl or gl_LGPL invocations with argument,
95543         if necessary.
95544         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
95545         an LGPv2+ license.
95546         * doc/gnulib-tool.texi (Modified imports): Update explanation of
95547         gl_LGPL macro.
95549 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95550             Bruno Haible  <bruno@clisp.org>
95552         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
95553         (u16_uctomb_aux): Likewise.
95554         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
95555         !HAVE_INLINE.
95556         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
95558 2007-10-28  Bruno Haible  <bruno@clisp.org>
95560         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
95561         Invoke AM_GETTEXT_OPTION if it exists.
95562         * modules/vasprintf: Likewise.
95563         * modules/verror: Likewise.
95564         * modules/xprintf: Likewise.
95565         * modules/xvasprintf: Likewise.
95567 2007-10-27  Ben Pfaff  <blp@gnu.org>
95569         * lib/math.in.h: Define isfinite macro and prototypes for
95570         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
95571         implementations.
95572         * m4/math_h.m4: New substitutions for isfinite module.
95573         * lib/isfinite.c: New file.
95574         * m4/isfinite.m4: New file.
95575         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
95576         * modules/isfinite: New file.
95577         * modules/isfinite-tests: New file.
95578         * tests/tests-isfinite.c: New file.
95579         * doc/functions/isfinite.texi: Mention isfinite module.
95580         * MODULES.html.sh: Mention new module.
95582 2007-10-27  Ben Pfaff  <blp@gnu.org>
95584         Ralf Wildenhues reported that Tru64 4.0D declares the round
95585         functions but does not have definitions.
95586         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
95587         cannot be found in any library, set the output variable to
95588         "missing" instead of "".
95589         * m4/round.m4: Also use our substitute if we cannot find round in
95590         any library, even if it is declared.
95591         * m4/roundf.m4: Likewise for roundf.
95592         * m4/roundl.m4: Likewise for roundl.
95593         * lib/math.in.h: Undefine roundf, round, roundl before defining
95594         their replacements, to allow for hypothetical systems where these
95595         may be defined as macros but not available in libraries.
95597 2007-10-27  Bruno Haible  <bruno@clisp.org>
95599         * doc/gnulib.texi: Invoke @firstparagraphindent.
95600         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
95601         changes in gnulib.
95602         (Source changes): New section.
95604 2007-10-26  Bruno Haible  <bruno@clisp.org>
95606         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
95607         borrowed from autoconf.
95609 2007-10-26  Bruno Haible  <bruno@clisp.org>
95611         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
95612         strerror returned the empty string. Needed on HP-UX 11.00.
95614 2007-10-24  Micah Cowan  <micah@cowan.name>
95616         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
95617         * build-aux/bootstrap: Remove support for now-unnecessary option,
95618         --cvs-user, and envvars CVS_USER, CVS_RSH.
95620 2007-10-24  Jim Meyering  <meyering@redhat.com>
95622         Avoid diagnostics from sha1sum when there is no cached checksum.
95623         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
95624         if the po.s1 file hasn't been created yet.
95626         * build-aux/bootstrap: Sync from coreutils:
95627         2007-10-24  Jim Meyering  <meyering@redhat.com>
95628         Get gnulib from the git repository, not from an obsolete cvs one.
95629         * build-aux/bootstrap: Suggestion from Micah Cowan.
95630         2007-10-04  Jim Meyering  <jim@meyering.net>
95631         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
95632         (update_po_files): Work also when there are no .po files in po/.
95634 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95636         * README: Append ".git" to git and cg examples.
95637         Problem reported by Benoit Sigoure.
95639 2007-10-23  Micah Cowan  <micah@cowan.name>
95641         * users.txt: Add wget.
95643 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95645         Fix linking of some unistdio tests on FreeBSD.
95646         * modules/unistdio/u16-vsnprintf-tests
95647         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
95648         * modules/unistdio/u16-vsprintf-tests
95649         (test_u16_vsnprintf1_LDADD): Likewise.
95650         * modules/unistdio/u32-vsnprintf-tests
95651         (test_u32_vsnprintf1_LDADD): Likewise.
95652         * modules/unistdio/u32-vsprintf-tests
95653         (test_u32_vsprintf1_LDADD): Likewise.
95654         * modules/unistdio/u8-vsnprintf-tests
95655         (test_u8_vsnprintf1_LDADD): Likewise.
95656         * modules/unistdio/u8-vsprintf-tests
95657         (test_u8_vsprintf1_LDADD): Likewise.
95658         * modules/unistdio/ulc-vsnprintf-tests
95659         (test_ulc_vsnprintf1_LDADD): Likewise.
95660         * modules/unistdio/ulc-vsprintf-tests
95661         (test_ulc_vsprintf1_LDADD): Likewise.
95663         Fix linking of some uniconv tests on FreeBSD.
95664         * modules/uniconv/u16-conv-from-enc-tests
95665         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
95666         * modules/uniconv/u16-conv-to-enc-tests
95667         (test_u16_conv_to_enc_LDADD): Likewise.
95668         * modules/uniconv/u16-strconv-from-enc-tests
95669         (test_u16_strconv_from_enc_LDADD): Likewise.
95670         * modules/uniconv/u16-strconv-to-enc-tests
95671         (test_u16_strconv_to_enc_LDADD): Likewise.
95672         * modules/uniconv/u32-conv-from-enc-tests
95673         (test_u32_conv_from_enc_LDADD): Likewise.
95674         * modules/uniconv/u32-conv-to-enc-tests
95675         (test_u32_conv_to_enc_LDADD): Likewise.
95676         * modules/uniconv/u32-strconv-from-enc-tests
95677         (test_u32_strconv_from_enc_LDADD): Likewise.
95678         * modules/uniconv/u32-strconv-to-enc-tests
95679         (test_u32_strconv_to_enc_LDADD): Likewise.
95680         * modules/uniconv/u8-conv-from-enc-tests
95681         (test_u8_conv_from_enc_LDADD): Likewise.
95682         * modules/uniconv/u8-conv-to-enc-tests
95683         (test_u8_conv_to_enc_LDADD): Likewise.
95684         * modules/uniconv/u8-strconv-from-enc-tests
95685         (test_u8_strconv_from_enc_LDADD): Likewise.
95686         * modules/uniconv/u8-strconv-to-enc-tests
95687         (test_u8_strconv_to_enc_LDADD): Likewise.
95689 2007-10-22  Bruno Haible  <bruno@clisp.org>
95691         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
95692         size.
95694 2007-10-22  Eric Blake  <ebb9@byu.net>
95696         Tweak x*printf documentation.
95697         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
95698         variable name and comments.
95699         Suggested by Bruno Haible.
95701 2007-10-22  Bruno Haible  <bruno@clisp.org>
95703         * lib/acl.c (copy_acl): Fix file name in comment.
95705 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
95707         Fix Tru64 problem with stdbool.h.
95708         * lib/stdbool.in.h (false, true):
95709         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
95710         Don't declare as an enum in this situation; it runs afoul of Tru64.
95711         Problem reported by Steven M. Schweda in
95712         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
95714 2007-10-22  Eric Blake  <ebb9@byu.net>
95716         Also wrap vf?printf.
95717         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
95718         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
95719         (xvprintf, xvfprintf): New functions.
95721 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95723         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
95724         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
95726         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
95727         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
95729 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
95731         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
95732         by Bruno Haible.
95734 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95736         * lib/getloadavg.c
95737         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
95738         Undef `sys' after including sys/table.h, for Tru64 4.0D.
95740         * tests/test-i-ring.c: Work for C89.
95742 2007-10-22  Bruno Haible  <bruno@clisp.org>
95744         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
95745         -1u, in preprocessor expression, so that we don't test for the bug
95746         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
95747         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
95749 2007-10-22  Eric Blake  <ebb9@byu.net>
95751         * tests/test-yesno.sh: Silence stderr during test.
95753 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95755         * modules/crypto/gc-camellia: New file.
95757         * m4/gc-camellia.m4: New file.
95759         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
95761         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
95763 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95765         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
95766         --help to stdout.  Reported by sms@antinode.org (Steven
95767         M. Schweda).
95769 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95771         * users.txt: Fix link to libksba.
95773 2007-10-21  Ben Pfaff  <blp@gnu.org>
95775         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
95776         round.c roundf implementation that depends on floorf and ceilf to
95777         be tested unconditionally.
95779 2007-10-21  Ben Pfaff  <blp@gnu.org>
95781         * m4/check-libm-func.m4: Removed.
95782         * m4/check-math-lib.m4: New file.
95783         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
95784         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
95785         definition and lack of AC_LIBOBJ([roundf]).
95786         * m4/roundl.m4: Ditto, and similarly for roundl.
95787         * modules/round: Reference new m4 file.
95788         * modules/roundf: Ditto.
95789         * modules/roundl: Ditto.
95790         * tests/test-round2.c (main): Use ROUND instead of round.
95791         Bug report from Bruno Haible.
95793 2007-10-21  Bruno Haible  <bruno@clisp.org>
95795         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
95796         context.
95798 2007-10-21  Bruno Haible  <bruno@clisp.org>
95800         * tests/test-wcwidth.c (main): Allow negative result for some control
95801         characters.
95803         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
95804         Needed on OSF/1 5.1.
95806 2007-10-21  Bruno Haible  <bruno@clisp.org>
95808         * tests/test-floorf1.c: Include isnanf.h.
95809         (main): Use isnanf() instead of isnan().
95810         * tests/test-ceilf1.c: Include isnanf.h.
95811         (main): Use isnanf() instead of isnan().
95812         * tests/test-truncf1.c: Include isnanf.h.
95813         (main): Use isnanf() instead of isnan().
95814         * tests/test-roundf1.c: Include isnanf.h.
95815         (main): Use isnanf() instead of isnan().
95817 2007-10-21  Eric Blake  <ebb9@byu.net>
95819         * users.txt: Update URL for m4.
95821 2007-10-21  Bruno Haible  <bruno@clisp.org>
95823         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
95825 2007-10-21  Bruno Haible  <bruno@clisp.org>
95827         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
95828         Git's management files if the CVS files are not present.
95830 2007-10-20  Bruno Haible  <bruno@clisp.org>
95832         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
95833         gcc-3.4.x.
95835 2007-10-20  Ben Pfaff  <blp@gnu.org>
95837         * lib/math.in.h: Declare round, roundf, roundl if we are providing
95838         implementations.
95839         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
95840         * lib/round.c: New file.
95841         * lib/roundf.c: New file.
95842         * lib/roundl.c: New file.
95843         * m4/round.m4: New file.
95844         * m4/roundf.m4: New file.
95845         * m4/roundl.m4: New file.
95846         * m4/check-libm-func-m4: New file.
95847         * modules/math: Replace round, roundf, roundl related @VARS@ in
95848         math.in.h.
95849         * modules/round: New file.
95850         * modules/round-tests: New file.
95851         * modules/roundf: New file.
95852         * modules/roundf-tests: New file.
95853         * modules/roundl: New file.
95854         * modules/roundl-tests: New file.
95855         * tests/test-round1.c: New file.
95856         * tests/test-round2.c: New file.
95857         * tests/test-roundf1.c: New file.
95858         * tests/test-roundf2.c: New file.
95859         * tests/test-roundl.c: New file.
95860         * doc/functions/round.texi: Mention round module.
95861         * doc/functions/roundf.texi: Mention roundf module.
95862         * doc/functions/roundl.texi: Mention roundl module.
95863         * MODULES.html.sh: Mention new modules.
95864         Thanks to Bruno Haible for suggestions.
95866 2007-10-20  Jim Meyering  <meyering@redhat.com>
95868         * lib/xprintf.c: Include <config.h> unconditionally.
95870         Change xprintf's license to GPL.
95871         * modules/xprintf (License): s/LGPL/GPL/, since this module
95872         depends on modules (exit and exitfail) which are GPL.
95873         Suggestion from Bruno Haible.
95875         xprintf fixes.
95876         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
95877         Use a clearer diagnostic.
95878         Patch from Bruno Haible.
95880 2007-10-20  Bruno Haible  <bruno@clisp.org>
95882         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
95883         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
95884         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95886 2007-10-20  Bruno Haible  <bruno@clisp.org>
95888         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
95889         precision in the comparison result > x - 1 or similar.
95890         * tests/test-ceilf2.c (correct_result_p): Likewise.
95891         * tests/test-truncf2.c (correct_result_p): Likewise.
95892         * tests/test-trunc2.c (correct_result_p): Likewise.
95893         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95895 2007-10-20  Bruno Haible  <bruno@clisp.org>
95897         * modules/ceil: New file.
95898         * m4/ceil.m4: New file.
95899         * doc/functions/ceil.texi: Mention the 'ceil' module.
95901 2007-10-20  Bruno Haible  <bruno@clisp.org>
95903         * modules/floor: New file.
95904         * m4/floor.m4: New file.
95905         * doc/functions/floor.texi: Mention the 'floor' module.
95907 2007-10-20  Bruno Haible  <bruno@clisp.org>
95909         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
95910         of %a.
95911         * modules/floorf-tests (Depends-on): Likewise.
95912         * modules/truncf-tests (Depends-on): Likewise.
95913         * modules/trunc-tests (Depends-on): Likewise.
95914         Reported by Ben Pfaff.
95916 2007-10-19  Jim Meyering  <meyering@redhat.com>
95918         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
95919         Don't bother testing specific errno values.  Just test ferror.
95921         New module: xprintf
95922         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
95924 2007-10-19  Bruno Haible  <bruno@clisp.org>
95926         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
95927         syntax.
95928         * modules/javaexec (Makefile.am): Likewise.
95929         * modules/relocatable-prog (Makefile.am): Likewise.
95930         Suggested by Jim Meyering.
95932 2007-10-18  Bruno Haible  <bruno@clisp.org>
95934         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
95935         Reported by Jim Meyering.
95937 2007-10-18  Eric Blake  <ebb9@byu.net>
95939         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
95941 2007-10-18  Bruno Haible  <bruno@clisp.org>
95943         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
95944         the format string into writable memory. Needed in Fortify conditions.
95946 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
95947             Bruno Haible  <bruno@clisp.org>
95949         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
95950         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
95951         * modules/trim (Depends-on): Add mbchar.
95952         (configure.ac): Add gl_FUNC_MBRTOWC.
95953         (Makefile.am): Augment lib_SOURCES.
95955 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
95957         Modify glob.c to use fstatat and dirfd, to simplify it.
95958         Suggested by Eric Blake.
95959         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
95960         Don't include <stdbool.h>; not used.
95961         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
95962         (link_exists_p): Simplify implementation, since we can now assume
95963         dirfd and fstatat.
95964         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
95966 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95968         * gnulib-tool (func_get_dependencies): Fix sed script to
95969         match only tests.
95971 2007-10-17  Bruno Haible  <bruno@clisp.org>
95973         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
95974         allow locale names without encoding suffix.
95975         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
95976         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
95978 2007-10-16  Bruno Haible  <bruno@clisp.org>
95980         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
95981         * lib/getgroups.c (getgroups): Likewise.
95982         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
95984 2007-10-16  Bruno Haible  <bruno@clisp.org>
95986         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
95987         * modules/malloc-posix (License): Likewise.
95988         * modules/realloc-posix (License): Likewise.
95989         * modules/calloc-posix (License): Likewise.
95990         * modules/intprops (License): Change from GPL to LGPL, with
95991         Paul Eggert's approval.
95993 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
95995         Merge glibc changes into lib/glob.c.
95997         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
95998         2007-10-15 04:59:03 UTC.  Here are the changes:
96000         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
96002         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
96004         * lib/glob.c: Add some branch prediction throughout.
96006         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
96008         [BZ #5103]
96009         * lib/glob.c (glob): Recognize patterns starting \/.
96011         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
96013         [BZ #3996]
96014         * lib/glob.c (attribute_hidden): Define if not defined.
96015         (glob): Unescape dirname, filename or username when needed and not
96016         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
96017         is NULL.  Handle unescaped [ in pattern without closing ].
96018         Don't pass GLOB_CHECK down to recursive glob for directories.
96019         (__glob_pattern_type): New function.
96020         (__glob_pattern_p): Implement using __glob_pattern_type.
96021         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
96022         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
96023         Remove unreachable code.
96025         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
96027         * lib/glob.c (glob_in_dir): Add some comments and asserts to
96028         explain why there are no leaks.
96030         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
96032         [BZ #3253]
96033         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
96034         time, rather allocate increasingly bigger arrays of pointers, if
96035         possible with alloca, if too large with malloc.
96037 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
96039         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
96040         Problem reported by H.Merijn Brand in
96041         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
96042         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
96043         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
96045 2007-10-15  Bruno Haible  <bruno@clisp.org>
96047         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
96048         with explicit rpl_ prefix.
96049         * lib/fopen.c (fopen): Likewise.
96050         * lib/freopen.c (freopen): Likewise.
96051         * lib/iconv.c (iconv): Likewise.
96052         * lib/iconv_close.c (iconv_close): Likewise.
96054 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96056         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
96058 2007-10-15  Bruno Haible  <bruno@clisp.org>
96060         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
96061         <stddef.h> instead of <stdlib.h> since we only need NULL.
96062         Reported by Ben Pfaff <blp@cs.stanford.edu>.
96064 2007-10-15  Bruno Haible  <bruno@clisp.org>
96066         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
96067         Replace paragraph talking about LIBOBJS.
96068         Reported by Colin Watson <cjwatson@debian.org>.
96070 2007-10-15  Bruno Haible  <bruno@clisp.org>
96072         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
96073         <stdlib.h> before using NULL.
96075 2007-10-15  Simon Josefsson  <simon@josefsson.org>
96077         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
96078         Reported by Albert Chin <china@thewrittenword.com>.
96080 2007-10-14  Bruno Haible  <bruno@clisp.org>
96082         * modules/iconv_open-utf-tests: New file.
96083         * tests/test-iconv-utf.c: New file.
96085         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
96086         * modules/iconv_open-utf: New file.
96087         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
96088         (iconv, iconv_close): New declarations.
96089         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
96090         be defined.
96091         (iconv_open): Add special handling of conversion between UTF-8 and
96092         UTF-{16,32}{BE,LE}.
96093         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
96094         * lib/iconv_close.c: New file.
96095         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
96096         gl_FUNC_ICONV_OPEN.
96097         (gl_FUNC_ICONV_OPEN): Use it.
96098         (gl_FUNC_ICONV_OPEN_UTF): New macro.
96099         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
96100         and REPLACE_ICONV_UTF.
96101         * modules/iconv_open (Depends-on): Add c-strcase.
96102         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
96103         ICONV_CONST.
96104         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
96106 2007-10-13  Albert Chin  <china@thewrittenword.com>
96107             Bruno Haible  <bruno@clisp.org>
96109         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
96110         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
96112 2007-10-13  Bruno Haible  <bruno@clisp.org>
96114         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
96115         defined, use the ISO C99 inline semantics.
96116         * lib/argp.h (ARGP_EI): Likewise.
96118 2007-10-13  Bruno Haible  <bruno@clisp.org>
96120         Handle 'inline' change in gcc 4.3.0.
96121         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
96122         argp_fmtstream_write, argp_fmtstream_set_lmargin,
96123         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
96124         argp_fmtstream_point): Disable 'extern' declaration if the function
96125         definition is going to be provided inline.
96126         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
96127         semantics, not the ISO C99 inline semantics.
96128         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
96129         'extern' declaration if the function definition is going to be provided
96130         inline.
96131         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
96132         the GNU C inline semantics, not the ISO C99 inline semantics. With
96133         GCC 4.2, avoid a warning.
96135 2007-10-13  Bruno Haible  <bruno@clisp.org>
96137         * lib/freading.h (freading): Enable the use of __freading for
96138         glibc >= 2.7.
96139         * lib/freading.c (freading): Likewise.
96141 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96143         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
96144         "warning: C99 inline functions are not supported; using GNU89".
96146 2007-10-12  Bruno Haible  <bruno@clisp.org>
96148         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
96149         of 2.
96150         * tests/test-ceilf2.c: New file.
96151         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
96153         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
96154         * modules/ceilf-tests: Update.
96156 2007-10-12  Bruno Haible  <bruno@clisp.org>
96158         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
96159         of 2.
96160         * tests/test-floorf2.c: New file.
96161         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
96163         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
96164         * modules/floorf-tests: Update.
96166 2007-10-12  Bruno Haible  <bruno@clisp.org>
96168         * tests/test-trunc2.c: New file.
96169         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
96171         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
96172         * modules/trunc-tests: Update.
96174 2007-10-12  Bruno Haible  <bruno@clisp.org>
96176         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
96177         of 2.
96178         * tests/test-truncf2.c: New file.
96179         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
96181         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
96182         * modules/truncf-tests: Update.
96184 2007-10-11  Eric Blake  <ebb9@byu.net>
96186         Don't claim strerror is broken on Interix.
96187         * doc/functions/strerror.texi (strerror): Known broken systems are
96188         now Solaris 8, and not Interix.
96189         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
96190         Interix on cross-compile.
96191         Reported by Martin Koeppe in
96192         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
96194 2007-10-11  Bruno Haible  <bruno@clisp.org>
96196         * modules/i-ring-tests: New file.
96197         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
96198         instead of assert.
96200 2007-10-11  Bruno Haible  <bruno@clisp.org>
96202         * modules/filenamecat-tests: New file.
96203         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
96204         * lib/filenamecat.c: Remove test code.
96206 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96208         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
96210         * lib/strerror.c: Include <string.h> always, to test interface,
96211         and to remove the need for the dummy.
96212         Include intprops.h to compute width instead of doing it ourselves
96213         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
96214         (strerror): Define it to return NULL if there's no system strerror.
96215         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
96216         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
96217         ancient pre-strerror Unix systems well any more.  Saying "unknown
96218         system error" is enough.
96219         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
96220         simpler strerror.c implementation.
96221         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
96222         Simplify the tests to reflect the simpler strerror implementation.
96223         * modules/strerror (Depends-on): Add intprops.
96225 2007-10-09  Eric Blake  <ebb9@byu.net>
96227         Silence test-fpending.
96228         * modules/fpending-tests (Files): Add wrapper script.
96229         * tests/test-fpending.sh: New file.
96231 2007-10-09  Bruno Haible  <bruno@clisp.org>
96233         * MODULES.html.sh (func_module): Don't create a hyperlink for
96234         function names like 'printf_frexp'.
96235         (Misc): Add crc, memxor.
96236         (Characteristics of floating types): New section.
96237         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
96238         isnanf-nolibm, signbit, trunc, truncf, truncl.
96239         (Enhancements for ISO C 99 functions): New subsection Input/output.
96240         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
96241         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
96242         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
96243         (Compatibility checks for POSIX:2001 functions): Add clock-time.
96244         (Enhancements for POSIX:2001 functions): Add chdir-long.
96245         (File system functions): Add areadlink, chdir-safer, read-file.
96246         Remove cycle-check.
96247         (File system as inode set): New section.
96248         (Date and time): Add gethrxtime.
96249         (Multithreading): Add openmp.
96250         (Internationalization functions): Add localename.
96251         (Unicode string functions): Add unistr/u*-mbsnlen.
96252         (Support for maintaining and releasing projects): Add git-version-gen.
96253         (Lone files): Remove directories.
96255 2007-10-08  Ben Pfaff  <blp@gnu.org>
96257         * lib/xmalloca.h: Fix typo in comment.
96259 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96261         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
96262         when avoiding problems with integer overflow.  Use a portable test
96263         instead.
96265 2007-10-08  Simon Josefsson  <simon@josefsson.org>
96267         * modules/dummy (License): Change to LGPLv2+.
96268         * modules/float (License): Likewise
96269         * modules/realloc (License): Likewise
96270         * modules/stdlib (License): Likewise
96272 2007-10-07  Bruno Haible  <bruno@clisp.org>
96274         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
96275         * floor.c (TWO_MANT_DIG): Likewise.
96276         * ceil.c (TWO_MANT_DIG): Likewise.
96277         Reported by Ben Pfaff.
96279 2007-10-07  Bruno Haible  <bruno@clisp.org>
96281         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
96282         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
96283         * lib/frexp.c (FUNC): Likewise.
96284         * lib/printf-frexp.h (printf_frexp): Likewise.
96285         * lib/printf-frexpl.h (printf_frexpl): Likewise.
96286         * lib/printf-frexp.c (FUNC): Likewise.
96287         Suggested by Jim Meyering.
96289 2007-10-07  Jim Meyering  <meyering@redhat.com>
96291         Make xnanosleep's integer overflow test more robust.
96292         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
96293         so that gcc-4.3.0 doesn't optimize away this test for overflow.
96295 2007-10-07  Bruno Haible  <bruno@clisp.org>
96297         * NEWS: Mention the license change.
96299         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
96300         abbreviations in the modules files.
96302         Change copyright notice from GPLv2+ to GPLv3+.
96303         * README: Change copyright notice.
96304         * MODULES.html.sh: Likewise.
96305         * build-aux/bootstrap.conf: Likewise.
96306         * build-aux/config.libpath: Likewise.
96307         * build-aux/csharpcomp.sh.in: Likewise.
96308         * build-aux/csharpexec.sh.in: Likewise.
96309         * build-aux/install-reloc: Likewise.
96310         * build-aux/javacomp.sh.in: Likewise.
96311         * build-aux/javaexec.sh.in: Likewise.
96312         * build-aux/ldd.sh.in: Likewise.
96313         * build-aux/reloc-ldflags: Likewise.
96314         * build-aux/relocatable.sh.in: Likewise.
96315         * build-aux/x-to-1.in: Likewise.
96316         * check-module: Likewise.
96317         * config/srclistvars.sh: Likewise.
96318         * gnulib-tool: Likewise.
96319         * lib/acl-internal.h: Likewise.
96320         * lib/acl.c: Likewise.
96321         * lib/acl.h: Likewise.
96322         * lib/acl_entries.c: Likewise.
96323         * lib/areadlink-with-size.c: Likewise.
96324         * lib/areadlink.c: Likewise.
96325         * lib/areadlink.h: Likewise.
96326         * lib/argmatch.c: Likewise.
96327         * lib/argmatch.h: Likewise.
96328         * lib/argp-ba.c: Likewise.
96329         * lib/argp-eexst.c: Likewise.
96330         * lib/argp-fmtstream.c: Likewise.
96331         * lib/argp-fmtstream.h: Likewise.
96332         * lib/argp-fs-xinl.c: Likewise.
96333         * lib/argp-help.c: Likewise.
96334         * lib/argp-namefrob.h: Likewise.
96335         * lib/argp-parse.c: Likewise.
96336         * lib/argp-pin.c: Likewise.
96337         * lib/argp-pv.c: Likewise.
96338         * lib/argp-pvh.c: Likewise.
96339         * lib/argp-xinl.c: Likewise.
96340         * lib/argp.h: Likewise.
96341         * lib/at-func.c: Likewise.
96342         * lib/atanl.c: Likewise.
96343         * lib/backupfile.c: Likewise.
96344         * lib/backupfile.h: Likewise.
96345         * lib/basename.c: Likewise.
96346         * lib/binary-io.h: Likewise.
96347         * lib/byteswap.in.h: Likewise.
96348         * lib/c-stack.c: Likewise.
96349         * lib/c-stack.h: Likewise.
96350         * lib/c-strcasestr.c: Likewise.
96351         * lib/c-strcasestr.h: Likewise.
96352         * lib/c-strstr.c: Likewise.
96353         * lib/c-strstr.h: Likewise.
96354         * lib/c-strtod.c: Likewise.
96355         * lib/calloc.c: Likewise.
96356         * lib/canon-host.c: Likewise.
96357         * lib/canon-host.h: Likewise.
96358         * lib/canonicalize-lgpl.c: Likewise.
96359         * lib/canonicalize.c: Likewise.
96360         * lib/canonicalize.h: Likewise.
96361         * lib/ceil.c: Likewise.
96362         * lib/ceilf.c: Likewise.
96363         * lib/ceill.c: Likewise.
96364         * lib/chdir-long.c: Likewise.
96365         * lib/chdir-long.h: Likewise.
96366         * lib/chdir-safer.c: Likewise.
96367         * lib/chdir-safer.h: Likewise.
96368         * lib/chown.c: Likewise.
96369         * lib/classpath.c: Likewise.
96370         * lib/classpath.h: Likewise.
96371         * lib/clean-temp.c: Likewise.
96372         * lib/clean-temp.h: Likewise.
96373         * lib/cloexec.c: Likewise.
96374         * lib/close-stream.c: Likewise.
96375         * lib/closein.c: Likewise.
96376         * lib/closein.h: Likewise.
96377         * lib/closeout.c: Likewise.
96378         * lib/closeout.h: Likewise.
96379         * lib/concat-filename.c: Likewise.
96380         * lib/copy-file.c: Likewise.
96381         * lib/copy-file.h: Likewise.
96382         * lib/count-one-bits.h: Likewise.
96383         * lib/crc.c: Likewise.
96384         * lib/crc.h: Likewise.
96385         * lib/creat-safer.c: Likewise.
96386         * lib/csharpcomp.c: Likewise.
96387         * lib/csharpcomp.h: Likewise.
96388         * lib/csharpexec.c: Likewise.
96389         * lib/csharpexec.h: Likewise.
96390         * lib/cycle-check.c: Likewise.
96391         * lib/cycle-check.h: Likewise.
96392         * lib/diacrit.c: Likewise.
96393         * lib/diacrit.h: Likewise.
96394         * lib/diffseq.h: Likewise.
96395         * lib/dirchownmod.c: Likewise.
96396         * lib/dirent.in.h: Likewise.
96397         * lib/dirfd.c: Likewise.
96398         * lib/dirfd.h: Likewise.
96399         * lib/dirname.c: Likewise.
96400         * lib/dirname.h: Likewise.
96401         * lib/dummy.c: Likewise.
96402         * lib/dup-safer.c: Likewise.
96403         * lib/dup2.c: Likewise.
96404         * lib/eealloc.h: Likewise.
96405         * lib/error.c: Likewise.
96406         * lib/error.h: Likewise.
96407         * lib/euidaccess.c: Likewise.
96408         * lib/exclude.c: Likewise.
96409         * lib/exclude.h: Likewise.
96410         * lib/execute.c: Likewise.
96411         * lib/execute.h: Likewise.
96412         * lib/exitfail.c: Likewise.
96413         * lib/exitfail.h: Likewise.
96414         * lib/expl.c: Likewise.
96415         * lib/fatal-signal.c: Likewise.
96416         * lib/fatal-signal.h: Likewise.
96417         * lib/fbufmode.c: Likewise.
96418         * lib/fbufmode.h: Likewise.
96419         * lib/fchdir.c: Likewise.
96420         * lib/fchmodat.c: Likewise.
96421         * lib/fchownat.c: Likewise.
96422         * lib/fcntl--.h: Likewise.
96423         * lib/fcntl-safer.h: Likewise.
96424         * lib/fcntl.in.h: Likewise.
96425         * lib/fd-safer.c: Likewise.
96426         * lib/fflush.c: Likewise.
96427         * lib/file-has-acl.c: Likewise.
96428         * lib/file-set.c: Likewise.
96429         * lib/file-type.c: Likewise.
96430         * lib/file-type.h: Likewise.
96431         * lib/fileblocks.c: Likewise.
96432         * lib/filemode.c: Likewise.
96433         * lib/filemode.h: Likewise.
96434         * lib/filename.h: Likewise.
96435         * lib/filenamecat.c: Likewise.
96436         * lib/filenamecat.h: Likewise.
96437         * lib/findprog.c: Likewise.
96438         * lib/findprog.h: Likewise.
96439         * lib/float.in.h: Likewise.
96440         * lib/floor.c: Likewise.
96441         * lib/floorf.c: Likewise.
96442         * lib/floorl.c: Likewise.
96443         * lib/fopen-safer.c: Likewise.
96444         * lib/fopen.c: Likewise.
96445         * lib/fpending.c: Likewise.
96446         * lib/fpending.h: Likewise.
96447         * lib/fprintf.c: Likewise.
96448         * lib/fprintftime.h: Likewise.
96449         * lib/fpucw.h: Likewise.
96450         * lib/fpurge.c: Likewise.
96451         * lib/fpurge.h: Likewise.
96452         * lib/freadable.c: Likewise.
96453         * lib/freadable.h: Likewise.
96454         * lib/freadahead.c: Likewise.
96455         * lib/freadahead.h: Likewise.
96456         * lib/freading.c: Likewise.
96457         * lib/freading.h: Likewise.
96458         * lib/free.c: Likewise.
96459         * lib/freopen.c: Likewise.
96460         * lib/frexp.c: Likewise.
96461         * lib/frexpl.c: Likewise.
96462         * lib/fseek.c: Likewise.
96463         * lib/fseterr.c: Likewise.
96464         * lib/fseterr.h: Likewise.
96465         * lib/fstatat.c: Likewise.
96466         * lib/fstrcmp.c: Likewise.
96467         * lib/fstrcmp.h: Likewise.
96468         * lib/fsusage.c: Likewise.
96469         * lib/fsusage.h: Likewise.
96470         * lib/ftell.c: Likewise.
96471         * lib/ftello.c: Likewise.
96472         * lib/fts-cycle.c: Likewise.
96473         * lib/fts.c: Likewise.
96474         * lib/fts_.h: Likewise.
96475         * lib/full-read.c: Likewise.
96476         * lib/full-read.h: Likewise.
96477         * lib/full-write.c: Likewise.
96478         * lib/full-write.h: Likewise.
96479         * lib/fwritable.c: Likewise.
96480         * lib/fwritable.h: Likewise.
96481         * lib/fwriteerror.c: Likewise.
96482         * lib/fwriteerror.h: Likewise.
96483         * lib/fwriting.c: Likewise.
96484         * lib/fwriting.h: Likewise.
96485         * lib/gcd.c: Likewise.
96486         * lib/gcd.h: Likewise.
96487         * lib/getcwd.c: Likewise.
96488         * lib/getdate.h: Likewise.
96489         * lib/getdate.y: Likewise.
96490         * lib/getdomainname.c: Likewise.
96491         * lib/getdomainname.h: Likewise.
96492         * lib/getgroups.c: Likewise.
96493         * lib/gethostname.c: Likewise.
96494         * lib/gethrxtime.c: Likewise.
96495         * lib/gethrxtime.h: Likewise.
96496         * lib/getloadavg.c: Likewise.
96497         * lib/getndelim2.c: Likewise.
96498         * lib/getndelim2.h: Likewise.
96499         * lib/getnline.c: Likewise.
96500         * lib/getnline.h: Likewise.
96501         * lib/getopt.c: Likewise.
96502         * lib/getopt.in.h: Likewise.
96503         * lib/getopt1.c: Likewise.
96504         * lib/getopt_int.h: Likewise.
96505         * lib/getpagesize.h: Likewise.
96506         * lib/getsubopt.c: Likewise.
96507         * lib/gettime.c: Likewise.
96508         * lib/getugroups.c: Likewise.
96509         * lib/getugroups.h: Likewise.
96510         * lib/getusershell.c: Likewise.
96511         * lib/gl_anyavltree_list1.h: Likewise.
96512         * lib/gl_anyavltree_list2.h: Likewise.
96513         * lib/gl_anyhash_list1.h: Likewise.
96514         * lib/gl_anyhash_list2.h: Likewise.
96515         * lib/gl_anylinked_list1.h: Likewise.
96516         * lib/gl_anylinked_list2.h: Likewise.
96517         * lib/gl_anyrbtree_list1.h: Likewise.
96518         * lib/gl_anyrbtree_list2.h: Likewise.
96519         * lib/gl_anytree_list1.h: Likewise.
96520         * lib/gl_anytree_list2.h: Likewise.
96521         * lib/gl_anytree_oset.h: Likewise.
96522         * lib/gl_anytreehash_list1.h: Likewise.
96523         * lib/gl_anytreehash_list2.h: Likewise.
96524         * lib/gl_array_list.c: Likewise.
96525         * lib/gl_array_list.h: Likewise.
96526         * lib/gl_array_oset.c: Likewise.
96527         * lib/gl_array_oset.h: Likewise.
96528         * lib/gl_avltree_list.c: Likewise.
96529         * lib/gl_avltree_list.h: Likewise.
96530         * lib/gl_avltree_oset.c: Likewise.
96531         * lib/gl_avltree_oset.h: Likewise.
96532         * lib/gl_avltreehash_list.c: Likewise.
96533         * lib/gl_avltreehash_list.h: Likewise.
96534         * lib/gl_carray_list.c: Likewise.
96535         * lib/gl_carray_list.h: Likewise.
96536         * lib/gl_linked_list.c: Likewise.
96537         * lib/gl_linked_list.h: Likewise.
96538         * lib/gl_linkedhash_list.c: Likewise.
96539         * lib/gl_linkedhash_list.h: Likewise.
96540         * lib/gl_list.c: Likewise.
96541         * lib/gl_list.h: Likewise.
96542         * lib/gl_oset.c: Likewise.
96543         * lib/gl_oset.h: Likewise.
96544         * lib/gl_rbtree_list.c: Likewise.
96545         * lib/gl_rbtree_list.h: Likewise.
96546         * lib/gl_rbtree_oset.c: Likewise.
96547         * lib/gl_rbtree_oset.h: Likewise.
96548         * lib/gl_rbtreehash_list.c: Likewise.
96549         * lib/gl_rbtreehash_list.h: Likewise.
96550         * lib/gl_sublist.c: Likewise.
96551         * lib/gl_sublist.h: Likewise.
96552         * lib/group-member.c: Likewise.
96553         * lib/group-member.h: Likewise.
96554         * lib/hard-locale.c: Likewise.
96555         * lib/hard-locale.h: Likewise.
96556         * lib/hash-pjw.c: Likewise.
96557         * lib/hash-pjw.h: Likewise.
96558         * lib/hash-triple.c: Likewise.
96559         * lib/hash.c: Likewise.
96560         * lib/hash.h: Likewise.
96561         * lib/human.c: Likewise.
96562         * lib/human.h: Likewise.
96563         * lib/i-ring.c: Likewise.
96564         * lib/i-ring.h: Likewise.
96565         * lib/idcache.c: Likewise.
96566         * lib/imaxabs.c: Likewise.
96567         * lib/imaxdiv.c: Likewise.
96568         * lib/inet_pton.c: Likewise.
96569         * lib/inet_pton.h: Likewise.
96570         * lib/intprops.h: Likewise.
96571         * lib/inttostr.c: Likewise.
96572         * lib/inttostr.h: Likewise.
96573         * lib/inttypes.in.h: Likewise.
96574         * lib/isapipe.c: Likewise.
96575         * lib/isdir.c: Likewise.
96576         * lib/isnan.c: Likewise.
96577         * lib/isnan.h: Likewise.
96578         * lib/isnanf.c: Likewise.
96579         * lib/isnanf.h: Likewise.
96580         * lib/isnanl-nolibm.h: Likewise.
96581         * lib/isnanl.c: Likewise.
96582         * lib/isnanl.h: Likewise.
96583         * lib/javacomp.c: Likewise.
96584         * lib/javacomp.h: Likewise.
96585         * lib/javaexec.c: Likewise.
96586         * lib/javaexec.h: Likewise.
96587         * lib/javaversion.c: Likewise.
96588         * lib/javaversion.h: Likewise.
96589         * lib/javaversion.java: Likewise.
96590         * lib/lbrkprop.h: Likewise.
96591         * lib/lchmod.h: Likewise.
96592         * lib/lchown.c: Likewise.
96593         * lib/ldexpl.c: Likewise.
96594         * lib/linebreak.c: Likewise.
96595         * lib/linebreak.h: Likewise.
96596         * lib/linebuffer.c: Likewise.
96597         * lib/linebuffer.h: Likewise.
96598         * lib/locale.in.h: Likewise.
96599         * lib/logl.c: Likewise.
96600         * lib/long-options.c: Likewise.
96601         * lib/long-options.h: Likewise.
96602         * lib/lstat.c: Likewise.
96603         * lib/lstat.h: Likewise.
96604         * lib/math.in.h: Likewise.
96605         * lib/mbchar.c: Likewise.
96606         * lib/mbchar.h: Likewise.
96607         * lib/mbfile.h: Likewise.
96608         * lib/mbiter.h: Likewise.
96609         * lib/mbscasecmp.c: Likewise.
96610         * lib/mbscasestr.c: Likewise.
96611         * lib/mbschr.c: Likewise.
96612         * lib/mbscspn.c: Likewise.
96613         * lib/mbslen.c: Likewise.
96614         * lib/mbsncasecmp.c: Likewise.
96615         * lib/mbsnlen.c: Likewise.
96616         * lib/mbspbrk.c: Likewise.
96617         * lib/mbspcasecmp.c: Likewise.
96618         * lib/mbsrchr.c: Likewise.
96619         * lib/mbssep.c: Likewise.
96620         * lib/mbsspn.c: Likewise.
96621         * lib/mbsstr.c: Likewise.
96622         * lib/mbstok_r.c: Likewise.
96623         * lib/mbswidth.c: Likewise.
96624         * lib/mbswidth.h: Likewise.
96625         * lib/mbuiter.h: Likewise.
96626         * lib/memcasecmp.c: Likewise.
96627         * lib/memcasecmp.h: Likewise.
96628         * lib/memchr.c: Likewise.
96629         * lib/memcmp.c: Likewise.
96630         * lib/memcoll.c: Likewise.
96631         * lib/memcoll.h: Likewise.
96632         * lib/memcpy.c: Likewise.
96633         * lib/memrchr.c: Likewise.
96634         * lib/mkancesdirs.c: Likewise.
96635         * lib/mkdir-p.c: Likewise.
96636         * lib/mkdir-p.h: Likewise.
96637         * lib/mkdir.c: Likewise.
96638         * lib/mkdirat.c: Likewise.
96639         * lib/mkdtemp.c: Likewise.
96640         * lib/mkstemp-safer.c: Likewise.
96641         * lib/mkstemp.c: Likewise.
96642         * lib/modechange.c: Likewise.
96643         * lib/modechange.h: Likewise.
96644         * lib/mountlist.c: Likewise.
96645         * lib/mountlist.h: Likewise.
96646         * lib/mpsort.c: Likewise.
96647         * lib/nanosleep.c: Likewise.
96648         * lib/obstack.c: Likewise.
96649         * lib/obstack.h: Likewise.
96650         * lib/open-safer.c: Likewise.
96651         * lib/open.c: Likewise.
96652         * lib/openat-die.c: Likewise.
96653         * lib/openat-priv.h: Likewise.
96654         * lib/openat-proc.c: Likewise.
96655         * lib/openat.c: Likewise.
96656         * lib/openat.h: Likewise.
96657         * lib/pagealign_alloc.c: Likewise.
96658         * lib/pagealign_alloc.h: Likewise.
96659         * lib/physmem.c: Likewise.
96660         * lib/physmem.h: Likewise.
96661         * lib/pipe-safer.c: Likewise.
96662         * lib/pipe.c: Likewise.
96663         * lib/pipe.h: Likewise.
96664         * lib/posixtm.c: Likewise.
96665         * lib/posixtm.h: Likewise.
96666         * lib/posixver.c: Likewise.
96667         * lib/printf-frexp.c: Likewise.
96668         * lib/printf-frexp.h: Likewise.
96669         * lib/printf-frexpl.c: Likewise.
96670         * lib/printf-frexpl.h: Likewise.
96671         * lib/printf.c: Likewise.
96672         * lib/progname.c: Likewise.
96673         * lib/progname.h: Likewise.
96674         * lib/progreloc.c: Likewise.
96675         * lib/putenv.c: Likewise.
96676         * lib/quote.c: Likewise.
96677         * lib/quote.h: Likewise.
96678         * lib/quotearg.c: Likewise.
96679         * lib/quotearg.h: Likewise.
96680         * lib/raise.c: Likewise.
96681         * lib/readline.c: Likewise.
96682         * lib/readline.h: Likewise.
96683         * lib/readlink.c: Likewise.
96684         * lib/readtokens.c: Likewise.
96685         * lib/readtokens.h: Likewise.
96686         * lib/readtokens0.c: Likewise.
96687         * lib/readtokens0.h: Likewise.
96688         * lib/readutmp.c: Likewise.
96689         * lib/readutmp.h: Likewise.
96690         * lib/realloc.c: Likewise.
96691         * lib/relocwrapper.c: Likewise.
96692         * lib/rename-dest-slash.c: Likewise.
96693         * lib/rename.c: Likewise.
96694         * lib/rmdir.c: Likewise.
96695         * lib/rpmatch.c: Likewise.
96696         * lib/safe-read.c: Likewise.
96697         * lib/safe-read.h: Likewise.
96698         * lib/safe-write.c: Likewise.
96699         * lib/safe-write.h: Likewise.
96700         * lib/same-inode.h: Likewise.
96701         * lib/same.c: Likewise.
96702         * lib/same.h: Likewise.
96703         * lib/save-cwd.c: Likewise.
96704         * lib/save-cwd.h: Likewise.
96705         * lib/savedir.c: Likewise.
96706         * lib/savedir.h: Likewise.
96707         * lib/savewd.c: Likewise.
96708         * lib/savewd.h: Likewise.
96709         * lib/search.in.h: Likewise.
96710         * lib/setenv.c: Likewise.
96711         * lib/setenv.h: Likewise.
96712         * lib/settime.c: Likewise.
96713         * lib/sh-quote.c: Likewise.
96714         * lib/sh-quote.h: Likewise.
96715         * lib/sig2str.c: Likewise.
96716         * lib/sig2str.h: Likewise.
96717         * lib/signal.in.h: Likewise.
96718         * lib/signbitd.c: Likewise.
96719         * lib/signbitf.c: Likewise.
96720         * lib/signbitl.c: Likewise.
96721         * lib/sigprocmask.c: Likewise.
96722         * lib/sincosl.c: Likewise.
96723         * lib/sleep.c: Likewise.
96724         * lib/sprintf.c: Likewise.
96725         * lib/sqrtl.c: Likewise.
96726         * lib/stat-time.h: Likewise.
96727         * lib/stdio--.h: Likewise.
96728         * lib/stdio-safer.h: Likewise.
96729         * lib/stdlib--.h: Likewise.
96730         * lib/stdlib-safer.h: Likewise.
96731         * lib/stdlib.in.h: Likewise.
96732         * lib/stpcpy.c: Likewise.
96733         * lib/stpncpy.c: Likewise.
96734         * lib/strchrnul.c: Likewise.
96735         * lib/strcspn.c: Likewise.
96736         * lib/strerror.c: Likewise.
96737         * lib/strftime.c: Likewise.
96738         * lib/strftime.h: Likewise.
96739         * lib/striconveh.c: Likewise.
96740         * lib/striconveh.h: Likewise.
96741         * lib/striconveha.c: Likewise.
96742         * lib/striconveha.h: Likewise.
96743         * lib/stripslash.c: Likewise.
96744         * lib/strnlen1.c: Likewise.
96745         * lib/strnlen1.h: Likewise.
96746         * lib/strtod.c: Likewise.
96747         * lib/strtoimax.c: Likewise.
96748         * lib/strtok_r.c: Likewise.
96749         * lib/strtol.c: Likewise.
96750         * lib/strtoll.c: Likewise.
96751         * lib/strtoul.c: Likewise.
96752         * lib/strtoull.c: Likewise.
96753         * lib/sysexits.in.h: Likewise.
96754         * lib/tempname.c: Likewise.
96755         * lib/tempname.h: Likewise.
96756         * lib/timespec.h: Likewise.
96757         * lib/tls.c: Likewise.
96758         * lib/tls.h: Likewise.
96759         * lib/tmpdir.c: Likewise.
96760         * lib/tmpdir.h: Likewise.
96761         * lib/tmpfile-safer.c: Likewise.
96762         * lib/tmpfile.c: Likewise.
96763         * lib/trigl.c: Likewise.
96764         * lib/trigl.h: Likewise.
96765         * lib/trim.c: Likewise.
96766         * lib/trim.h: Likewise.
96767         * lib/trunc.c: Likewise.
96768         * lib/truncf.c: Likewise.
96769         * lib/truncl.c: Likewise.
96770         * lib/tsearch.c: Likewise.
96771         * lib/unicodeio.c: Likewise.
96772         * lib/unicodeio.h: Likewise.
96773         * lib/unistd--.h: Likewise.
96774         * lib/unistd-safer.h: Likewise.
96775         * lib/unistdio/ulc-fprintf.c: Likewise.
96776         * lib/unistdio/ulc-vfprintf.c: Likewise.
96777         * lib/unlinkdir.c: Likewise.
96778         * lib/unlinkdir.h: Likewise.
96779         * lib/unlocked-io.h: Likewise.
96780         * lib/unsetenv.c: Likewise.
96781         * lib/userspec.c: Likewise.
96782         * lib/utime.c: Likewise.
96783         * lib/utimecmp.c: Likewise.
96784         * lib/utimecmp.h: Likewise.
96785         * lib/utimens.c: Likewise.
96786         * lib/verify.h: Likewise.
96787         * lib/verror.c: Likewise.
96788         * lib/verror.h: Likewise.
96789         * lib/version-etc-fsf.c: Likewise.
96790         * lib/version-etc.c: Likewise.
96791         * lib/version-etc.h: Likewise.
96792         * lib/vfprintf.c: Likewise.
96793         * lib/vprintf.c: Likewise.
96794         * lib/vsprintf.c: Likewise.
96795         * lib/w32spawn.h: Likewise.
96796         * lib/wait-process.c: Likewise.
96797         * lib/wait-process.h: Likewise.
96798         * lib/wcwidth.c: Likewise.
96799         * lib/write-any-file.c: Likewise.
96800         * lib/xalloc-die.c: Likewise.
96801         * lib/xalloc.h: Likewise.
96802         * lib/xasprintf.c: Likewise.
96803         * lib/xgetcwd.c: Likewise.
96804         * lib/xgetcwd.h: Likewise.
96805         * lib/xgetdomainname.c: Likewise.
96806         * lib/xgetdomainname.h: Likewise.
96807         * lib/xgethostname.c: Likewise.
96808         * lib/xmalloc.c: Likewise.
96809         * lib/xmalloca.c: Likewise.
96810         * lib/xmalloca.h: Likewise.
96811         * lib/xmemcoll.c: Likewise.
96812         * lib/xnanosleep.c: Likewise.
96813         * lib/xreadlink.c: Likewise.
96814         * lib/xreadlink.h: Likewise.
96815         * lib/xsetenv.c: Likewise.
96816         * lib/xsetenv.h: Likewise.
96817         * lib/xstriconv.c: Likewise.
96818         * lib/xstriconv.h: Likewise.
96819         * lib/xstrndup.c: Likewise.
96820         * lib/xstrndup.h: Likewise.
96821         * lib/xstrtod.c: Likewise.
96822         * lib/xstrtod.h: Likewise.
96823         * lib/xstrtol-error.c: Likewise.
96824         * lib/xstrtol.c: Likewise.
96825         * lib/xstrtol.h: Likewise.
96826         * lib/xtime.h: Likewise.
96827         * lib/xvasprintf.c: Likewise.
96828         * lib/xvasprintf.h: Likewise.
96829         * lib/yesno.c: Likewise.
96830         * lib/yesno.h: Likewise.
96831         * posix-modules: Likewise.
96832         * tests/test-alloca-opt.c: Likewise.
96833         * tests/test-arcfour.c: Likewise.
96834         * tests/test-arctwo.c: Likewise.
96835         * tests/test-argmatch.c: Likewise.
96836         * tests/test-argp-2.sh: Likewise.
96837         * tests/test-argp.c: Likewise.
96838         * tests/test-arpa_inet.c: Likewise.
96839         * tests/test-array_list.c: Likewise.
96840         * tests/test-array_oset.c: Likewise.
96841         * tests/test-atexit.c: Likewise.
96842         * tests/test-avltree_list.c: Likewise.
96843         * tests/test-avltree_oset.c: Likewise.
96844         * tests/test-avltreehash_list.c: Likewise.
96845         * tests/test-base64.c: Likewise.
96846         * tests/test-binary-io.c: Likewise.
96847         * tests/test-byteswap.c: Likewise.
96848         * tests/test-c-ctype.c: Likewise.
96849         * tests/test-c-strcasecmp.c: Likewise.
96850         * tests/test-c-strcasestr.c: Likewise.
96851         * tests/test-c-strncasecmp.c: Likewise.
96852         * tests/test-c-strstr.c: Likewise.
96853         * tests/test-canonicalize-lgpl.c: Likewise.
96854         * tests/test-canonicalize.c: Likewise.
96855         * tests/test-carray_list.c: Likewise.
96856         * tests/test-ceilf.c: Likewise.
96857         * tests/test-ceill.c: Likewise.
96858         * tests/test-count-one-bits.c: Likewise.
96859         * tests/test-crc.c: Likewise.
96860         * tests/test-dirname.c: Likewise.
96861         * tests/test-fbufmode.c: Likewise.
96862         * tests/test-fcntl.c: Likewise.
96863         * tests/test-fflush.c: Likewise.
96864         * tests/test-floorf.c: Likewise.
96865         * tests/test-floorl.c: Likewise.
96866         * tests/test-fopen.c: Likewise.
96867         * tests/test-fprintf-posix.c: Likewise.
96868         * tests/test-fprintf-posix.h: Likewise.
96869         * tests/test-fpurge.c: Likewise.
96870         * tests/test-freadable.c: Likewise.
96871         * tests/test-freadahead.c: Likewise.
96872         * tests/test-freading.c: Likewise.
96873         * tests/test-freopen.c: Likewise.
96874         * tests/test-frexp.c: Likewise.
96875         * tests/test-frexpl.c: Likewise.
96876         * tests/test-fseek.c: Likewise.
96877         * tests/test-fseeko.c: Likewise.
96878         * tests/test-fseterr.c: Likewise.
96879         * tests/test-fstrcmp.c: Likewise.
96880         * tests/test-ftell.c: Likewise.
96881         * tests/test-ftello.c: Likewise.
96882         * tests/test-fwritable.c: Likewise.
96883         * tests/test-fwriting.c: Likewise.
96884         * tests/test-getaddrinfo.c: Likewise.
96885         * tests/test-getpass.c: Likewise.
96886         * tests/test-gettimeofday.c: Likewise.
96887         * tests/test-hmac-md5.c: Likewise.
96888         * tests/test-hmac-sha1.c: Likewise.
96889         * tests/test-iconv.c: Likewise.
96890         * tests/test-iconvme.c: Likewise.
96891         * tests/test-inttypes.c: Likewise.
96892         * tests/test-isnan.c: Likewise.
96893         * tests/test-isnanf.c: Likewise.
96894         * tests/test-isnanl-nolibm.c: Likewise.
96895         * tests/test-isnanl.c: Likewise.
96896         * tests/test-isnanl.h: Likewise.
96897         * tests/test-ldexpl.c: Likewise.
96898         * tests/test-linked_list.c: Likewise.
96899         * tests/test-linkedhash_list.c: Likewise.
96900         * tests/test-locale.c: Likewise.
96901         * tests/test-localename.c: Likewise.
96902         * tests/test-lock.c: Likewise.
96903         * tests/test-lseek.c: Likewise.
96904         * tests/test-malloca.c: Likewise.
96905         * tests/test-math.c: Likewise.
96906         * tests/test-mbscasecmp.c: Likewise.
96907         * tests/test-mbscasestr1.c: Likewise.
96908         * tests/test-mbscasestr2.c: Likewise.
96909         * tests/test-mbscasestr3.c: Likewise.
96910         * tests/test-mbscasestr4.c: Likewise.
96911         * tests/test-mbschr.c: Likewise.
96912         * tests/test-mbscspn.c: Likewise.
96913         * tests/test-mbsncasecmp.c: Likewise.
96914         * tests/test-mbspbrk.c: Likewise.
96915         * tests/test-mbspcasecmp.c: Likewise.
96916         * tests/test-mbsrchr.c: Likewise.
96917         * tests/test-mbsspn.c: Likewise.
96918         * tests/test-mbsstr1.c: Likewise.
96919         * tests/test-mbsstr2.c: Likewise.
96920         * tests/test-mbsstr3.c: Likewise.
96921         * tests/test-md5.c: Likewise.
96922         * tests/test-memmem.c: Likewise.
96923         * tests/test-netinet_in.c: Likewise.
96924         * tests/test-open.c: Likewise.
96925         * tests/test-printf-frexp.c: Likewise.
96926         * tests/test-printf-frexpl.c: Likewise.
96927         * tests/test-printf-posix.c: Likewise.
96928         * tests/test-printf-posix.h: Likewise.
96929         * tests/test-rbtree_list.c: Likewise.
96930         * tests/test-rbtree_oset.c: Likewise.
96931         * tests/test-rbtreehash_list.c: Likewise.
96932         * tests/test-read-file.c: Likewise.
96933         * tests/test-rijndael.c: Likewise.
96934         * tests/test-search.c: Likewise.
96935         * tests/test-signbit.c: Likewise.
96936         * tests/test-sleep.c: Likewise.
96937         * tests/test-snprintf-posix.c: Likewise.
96938         * tests/test-snprintf-posix.h: Likewise.
96939         * tests/test-snprintf.c: Likewise.
96940         * tests/test-sprintf-posix.c: Likewise.
96941         * tests/test-sprintf-posix.h: Likewise.
96942         * tests/test-stat-time.c: Likewise.
96943         * tests/test-stdbool.c: Likewise.
96944         * tests/test-stdint.c: Likewise.
96945         * tests/test-stdio.c: Likewise.
96946         * tests/test-stdlib.c: Likewise.
96947         * tests/test-stpncpy.c: Likewise.
96948         * tests/test-strcasestr.c: Likewise.
96949         * tests/test-striconv.c: Likewise.
96950         * tests/test-striconveh.c: Likewise.
96951         * tests/test-striconveha.c: Likewise.
96952         * tests/test-string.c: Likewise.
96953         * tests/test-sys_select.c: Likewise.
96954         * tests/test-sys_socket.c: Likewise.
96955         * tests/test-sys_stat.c: Likewise.
96956         * tests/test-sys_time.c: Likewise.
96957         * tests/test-sysexits.c: Likewise.
96958         * tests/test-time.c: Likewise.
96959         * tests/test-tls.c: Likewise.
96960         * tests/test-trunc.c: Likewise.
96961         * tests/test-truncf.c: Likewise.
96962         * tests/test-truncl.c: Likewise.
96963         * tests/test-unistd.c: Likewise.
96964         * tests/test-vasnprintf-posix.c: Likewise.
96965         * tests/test-vasnprintf-posix2.c: Likewise.
96966         * tests/test-vasnprintf.c: Likewise.
96967         * tests/test-vasprintf-posix.c: Likewise.
96968         * tests/test-vasprintf.c: Likewise.
96969         * tests/test-verify.c: Likewise.
96970         * tests/test-vfprintf-posix.c: Likewise.
96971         * tests/test-vprintf-posix.c: Likewise.
96972         * tests/test-vsnprintf-posix.c: Likewise.
96973         * tests/test-vsnprintf.c: Likewise.
96974         * tests/test-vsprintf-posix.c: Likewise.
96975         * tests/test-wchar.c: Likewise.
96976         * tests/test-wctype.c: Likewise.
96977         * tests/test-wcwidth.c: Likewise.
96978         * tests/test-xstrtol.c: Likewise.
96979         * tests/test-xvasprintf.c: Likewise.
96980         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
96981         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
96982         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
96983         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
96984         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
96985         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
96986         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
96987         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
96988         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
96989         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
96990         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
96991         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
96992         * tests/uniname/test-uninames.c: Likewise.
96993         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
96994         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
96995         * tests/unistdio/test-u16-printf1.h: Likewise.
96996         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
96997         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
96998         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
96999         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
97000         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
97001         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
97002         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
97003         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
97004         * tests/unistdio/test-u32-printf1.h: Likewise.
97005         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
97006         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
97007         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
97008         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
97009         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
97010         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
97011         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
97012         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
97013         * tests/unistdio/test-u8-printf1.h: Likewise.
97014         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
97015         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
97016         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
97017         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
97018         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
97019         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
97020         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
97021         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
97022         * tests/unistdio/test-ulc-printf1.h: Likewise.
97023         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
97024         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
97025         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
97026         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
97027         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
97028         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
97029         * tests/uniwidth/test-u16-strwidth.c: Likewise.
97030         * tests/uniwidth/test-u16-width.c: Likewise.
97031         * tests/uniwidth/test-u32-strwidth.c: Likewise.
97032         * tests/uniwidth/test-u32-width.c: Likewise.
97033         * tests/uniwidth/test-u8-strwidth.c: Likewise.
97034         * tests/uniwidth/test-u8-width.c: Likewise.
97035         * tests/uniwidth/test-uc_width.c: Likewise.
97036         * config/srclist-update: Likewise.
97037         (fixlicense): Update to GPLv3+.
97039         Change copyright notice from LGPLv2.1+ to LGPLv3+.
97040         * tests/test-tsearch.c: Change copyright notice.
97042         Change copyright notice from LGPLv2.0+ to LGPLv3+.
97043         * lib/c-strcaseeq.h: Change copyright notice.
97044         * lib/streq.h: Likewise.
97045         * lib/uniconv.h: Likewise.
97046         * lib/uniconv/u-conv-from-enc.h: Likewise.
97047         * lib/uniconv/u-conv-to-enc.h: Likewise.
97048         * lib/uniconv/u-strconv-from-enc.h: Likewise.
97049         * lib/uniconv/u-strconv-to-enc.h: Likewise.
97050         * lib/uniconv/u16-conv-from-enc.c: Likewise.
97051         * lib/uniconv/u16-conv-to-enc.c: Likewise.
97052         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
97053         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
97054         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
97055         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
97056         * lib/uniconv/u32-conv-from-enc.c: Likewise.
97057         * lib/uniconv/u32-conv-to-enc.c: Likewise.
97058         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
97059         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
97060         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
97061         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
97062         * lib/uniconv/u8-conv-from-enc.c: Likewise.
97063         * lib/uniconv/u8-conv-to-enc.c: Likewise.
97064         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
97065         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
97066         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
97067         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
97068         * lib/uniname.h: Likewise.
97069         * lib/uniname/uniname.c: Likewise.
97070         * lib/unistdio.h: Likewise.
97071         * lib/unistdio/u-asnprintf.h: Likewise.
97072         * lib/unistdio/u-asprintf.h: Likewise.
97073         * lib/unistdio/u-printf-args.c: Likewise.
97074         * lib/unistdio/u-printf-args.h: Likewise.
97075         * lib/unistdio/u-printf-parse.h: Likewise.
97076         * lib/unistdio/u-snprintf.h: Likewise.
97077         * lib/unistdio/u-sprintf.h: Likewise.
97078         * lib/unistdio/u-vasprintf.h: Likewise.
97079         * lib/unistdio/u-vsnprintf.h: Likewise.
97080         * lib/unistdio/u-vsprintf.h: Likewise.
97081         * lib/unistdio/u16-asnprintf.c: Likewise.
97082         * lib/unistdio/u16-asprintf.c: Likewise.
97083         * lib/unistdio/u16-printf-parse.c: Likewise.
97084         * lib/unistdio/u16-snprintf.c: Likewise.
97085         * lib/unistdio/u16-sprintf.c: Likewise.
97086         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
97087         * lib/unistdio/u16-u16-asprintf.c: Likewise.
97088         * lib/unistdio/u16-u16-snprintf.c: Likewise.
97089         * lib/unistdio/u16-u16-sprintf.c: Likewise.
97090         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
97091         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
97092         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
97093         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
97094         * lib/unistdio/u16-vasnprintf.c: Likewise.
97095         * lib/unistdio/u16-vasprintf.c: Likewise.
97096         * lib/unistdio/u16-vsnprintf.c: Likewise.
97097         * lib/unistdio/u16-vsprintf.c: Likewise.
97098         * lib/unistdio/u32-asnprintf.c: Likewise.
97099         * lib/unistdio/u32-asprintf.c: Likewise.
97100         * lib/unistdio/u32-printf-parse.c: Likewise.
97101         * lib/unistdio/u32-snprintf.c: Likewise.
97102         * lib/unistdio/u32-sprintf.c: Likewise.
97103         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
97104         * lib/unistdio/u32-u32-asprintf.c: Likewise.
97105         * lib/unistdio/u32-u32-snprintf.c: Likewise.
97106         * lib/unistdio/u32-u32-sprintf.c: Likewise.
97107         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
97108         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
97109         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
97110         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
97111         * lib/unistdio/u32-vasnprintf.c: Likewise.
97112         * lib/unistdio/u32-vasprintf.c: Likewise.
97113         * lib/unistdio/u32-vsnprintf.c: Likewise.
97114         * lib/unistdio/u32-vsprintf.c: Likewise.
97115         * lib/unistdio/u8-asnprintf.c: Likewise.
97116         * lib/unistdio/u8-asprintf.c: Likewise.
97117         * lib/unistdio/u8-printf-parse.c: Likewise.
97118         * lib/unistdio/u8-snprintf.c: Likewise.
97119         * lib/unistdio/u8-sprintf.c: Likewise.
97120         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
97121         * lib/unistdio/u8-u8-asprintf.c: Likewise.
97122         * lib/unistdio/u8-u8-snprintf.c: Likewise.
97123         * lib/unistdio/u8-u8-sprintf.c: Likewise.
97124         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
97125         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
97126         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
97127         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
97128         * lib/unistdio/u8-vasnprintf.c: Likewise.
97129         * lib/unistdio/u8-vasprintf.c: Likewise.
97130         * lib/unistdio/u8-vsnprintf.c: Likewise.
97131         * lib/unistdio/u8-vsprintf.c: Likewise.
97132         * lib/unistdio/ulc-asnprintf.c: Likewise.
97133         * lib/unistdio/ulc-asprintf.c: Likewise.
97134         * lib/unistdio/ulc-printf-parse.c: Likewise.
97135         * lib/unistdio/ulc-snprintf.c: Likewise.
97136         * lib/unistdio/ulc-sprintf.c: Likewise.
97137         * lib/unistdio/ulc-vasnprintf.c: Likewise.
97138         * lib/unistdio/ulc-vasprintf.c: Likewise.
97139         * lib/unistdio/ulc-vsnprintf.c: Likewise.
97140         * lib/unistdio/ulc-vsprintf.c: Likewise.
97141         * lib/unistr.h: Likewise.
97142         * lib/unistr/u-cpy-alloc.h: Likewise.
97143         * lib/unistr/u-cpy.h: Likewise.
97144         * lib/unistr/u-endswith.h: Likewise.
97145         * lib/unistr/u-move.h: Likewise.
97146         * lib/unistr/u-set.h: Likewise.
97147         * lib/unistr/u-startswith.h: Likewise.
97148         * lib/unistr/u-stpcpy.h: Likewise.
97149         * lib/unistr/u-stpncpy.h: Likewise.
97150         * lib/unistr/u-strcat.h: Likewise.
97151         * lib/unistr/u-strcpy.h: Likewise.
97152         * lib/unistr/u-strcspn.h: Likewise.
97153         * lib/unistr/u-strdup.h: Likewise.
97154         * lib/unistr/u-strlen.h: Likewise.
97155         * lib/unistr/u-strncat.h: Likewise.
97156         * lib/unistr/u-strncpy.h: Likewise.
97157         * lib/unistr/u-strnlen.h: Likewise.
97158         * lib/unistr/u-strpbrk.h: Likewise.
97159         * lib/unistr/u-strspn.h: Likewise.
97160         * lib/unistr/u-strstr.h: Likewise.
97161         * lib/unistr/u-strtok.h: Likewise.
97162         * lib/unistr/u16-check.c: Likewise.
97163         * lib/unistr/u16-chr.c: Likewise.
97164         * lib/unistr/u16-cmp.c: Likewise.
97165         * lib/unistr/u16-cpy-alloc.c: Likewise.
97166         * lib/unistr/u16-cpy.c: Likewise.
97167         * lib/unistr/u16-endswith.c: Likewise.
97168         * lib/unistr/u16-mblen.c: Likewise.
97169         * lib/unistr/u16-mbsnlen.c: Likewise.
97170         * lib/unistr/u16-mbtouc-aux.c: Likewise.
97171         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
97172         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
97173         * lib/unistr/u16-mbtouc.c: Likewise.
97174         * lib/unistr/u16-mbtoucr.c: Likewise.
97175         * lib/unistr/u16-move.c: Likewise.
97176         * lib/unistr/u16-next.c: Likewise.
97177         * lib/unistr/u16-prev.c: Likewise.
97178         * lib/unistr/u16-set.c: Likewise.
97179         * lib/unistr/u16-startswith.c: Likewise.
97180         * lib/unistr/u16-stpcpy.c: Likewise.
97181         * lib/unistr/u16-stpncpy.c: Likewise.
97182         * lib/unistr/u16-strcat.c: Likewise.
97183         * lib/unistr/u16-strchr.c: Likewise.
97184         * lib/unistr/u16-strcmp.c: Likewise.
97185         * lib/unistr/u16-strcpy.c: Likewise.
97186         * lib/unistr/u16-strcspn.c: Likewise.
97187         * lib/unistr/u16-strdup.c: Likewise.
97188         * lib/unistr/u16-strlen.c: Likewise.
97189         * lib/unistr/u16-strmblen.c: Likewise.
97190         * lib/unistr/u16-strmbtouc.c: Likewise.
97191         * lib/unistr/u16-strncat.c: Likewise.
97192         * lib/unistr/u16-strncmp.c: Likewise.
97193         * lib/unistr/u16-strncpy.c: Likewise.
97194         * lib/unistr/u16-strnlen.c: Likewise.
97195         * lib/unistr/u16-strpbrk.c: Likewise.
97196         * lib/unistr/u16-strrchr.c: Likewise.
97197         * lib/unistr/u16-strspn.c: Likewise.
97198         * lib/unistr/u16-strstr.c: Likewise.
97199         * lib/unistr/u16-strtok.c: Likewise.
97200         * lib/unistr/u16-to-u32.c: Likewise.
97201         * lib/unistr/u16-to-u8.c: Likewise.
97202         * lib/unistr/u16-uctomb-aux.c: Likewise.
97203         * lib/unistr/u16-uctomb.c: Likewise.
97204         * lib/unistr/u32-check.c: Likewise.
97205         * lib/unistr/u32-chr.c: Likewise.
97206         * lib/unistr/u32-cmp.c: Likewise.
97207         * lib/unistr/u32-cpy-alloc.c: Likewise.
97208         * lib/unistr/u32-cpy.c: Likewise.
97209         * lib/unistr/u32-endswith.c: Likewise.
97210         * lib/unistr/u32-mblen.c: Likewise.
97211         * lib/unistr/u32-mbsnlen.c: Likewise.
97212         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
97213         * lib/unistr/u32-mbtouc.c: Likewise.
97214         * lib/unistr/u32-mbtoucr.c: Likewise.
97215         * lib/unistr/u32-move.c: Likewise.
97216         * lib/unistr/u32-next.c: Likewise.
97217         * lib/unistr/u32-prev.c: Likewise.
97218         * lib/unistr/u32-set.c: Likewise.
97219         * lib/unistr/u32-startswith.c: Likewise.
97220         * lib/unistr/u32-stpcpy.c: Likewise.
97221         * lib/unistr/u32-stpncpy.c: Likewise.
97222         * lib/unistr/u32-strcat.c: Likewise.
97223         * lib/unistr/u32-strchr.c: Likewise.
97224         * lib/unistr/u32-strcmp.c: Likewise.
97225         * lib/unistr/u32-strcpy.c: Likewise.
97226         * lib/unistr/u32-strcspn.c: Likewise.
97227         * lib/unistr/u32-strdup.c: Likewise.
97228         * lib/unistr/u32-strlen.c: Likewise.
97229         * lib/unistr/u32-strmblen.c: Likewise.
97230         * lib/unistr/u32-strmbtouc.c: Likewise.
97231         * lib/unistr/u32-strncat.c: Likewise.
97232         * lib/unistr/u32-strncmp.c: Likewise.
97233         * lib/unistr/u32-strncpy.c: Likewise.
97234         * lib/unistr/u32-strnlen.c: Likewise.
97235         * lib/unistr/u32-strpbrk.c: Likewise.
97236         * lib/unistr/u32-strrchr.c: Likewise.
97237         * lib/unistr/u32-strspn.c: Likewise.
97238         * lib/unistr/u32-strstr.c: Likewise.
97239         * lib/unistr/u32-strtok.c: Likewise.
97240         * lib/unistr/u32-to-u16.c: Likewise.
97241         * lib/unistr/u32-to-u8.c: Likewise.
97242         * lib/unistr/u32-uctomb.c: Likewise.
97243         * lib/unistr/u8-check.c: Likewise.
97244         * lib/unistr/u8-chr.c: Likewise.
97245         * lib/unistr/u8-cmp.c: Likewise.
97246         * lib/unistr/u8-cpy-alloc.c: Likewise.
97247         * lib/unistr/u8-cpy.c: Likewise.
97248         * lib/unistr/u8-endswith.c: Likewise.
97249         * lib/unistr/u8-mblen.c: Likewise.
97250         * lib/unistr/u8-mbsnlen.c: Likewise.
97251         * lib/unistr/u8-mbtouc-aux.c: Likewise.
97252         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
97253         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
97254         * lib/unistr/u8-mbtouc.c: Likewise.
97255         * lib/unistr/u8-mbtoucr.c: Likewise.
97256         * lib/unistr/u8-move.c: Likewise.
97257         * lib/unistr/u8-next.c: Likewise.
97258         * lib/unistr/u8-prev.c: Likewise.
97259         * lib/unistr/u8-set.c: Likewise.
97260         * lib/unistr/u8-startswith.c: Likewise.
97261         * lib/unistr/u8-stpcpy.c: Likewise.
97262         * lib/unistr/u8-stpncpy.c: Likewise.
97263         * lib/unistr/u8-strcat.c: Likewise.
97264         * lib/unistr/u8-strchr.c: Likewise.
97265         * lib/unistr/u8-strcmp.c: Likewise.
97266         * lib/unistr/u8-strcpy.c: Likewise.
97267         * lib/unistr/u8-strcspn.c: Likewise.
97268         * lib/unistr/u8-strdup.c: Likewise.
97269         * lib/unistr/u8-strlen.c: Likewise.
97270         * lib/unistr/u8-strmblen.c: Likewise.
97271         * lib/unistr/u8-strmbtouc.c: Likewise.
97272         * lib/unistr/u8-strncat.c: Likewise.
97273         * lib/unistr/u8-strncmp.c: Likewise.
97274         * lib/unistr/u8-strncpy.c: Likewise.
97275         * lib/unistr/u8-strnlen.c: Likewise.
97276         * lib/unistr/u8-strpbrk.c: Likewise.
97277         * lib/unistr/u8-strrchr.c: Likewise.
97278         * lib/unistr/u8-strspn.c: Likewise.
97279         * lib/unistr/u8-strstr.c: Likewise.
97280         * lib/unistr/u8-strtok.c: Likewise.
97281         * lib/unistr/u8-to-u16.c: Likewise.
97282         * lib/unistr/u8-to-u32.c: Likewise.
97283         * lib/unistr/u8-uctomb-aux.c: Likewise.
97284         * lib/unistr/u8-uctomb.c: Likewise.
97285         * lib/unitypes.h: Likewise.
97286         * lib/uniwidth.h: Likewise.
97287         * lib/uniwidth/cjk.h: Likewise.
97288         * lib/uniwidth/u16-strwidth.c: Likewise.
97289         * lib/uniwidth/u16-width.c: Likewise.
97290         * lib/uniwidth/u32-strwidth.c: Likewise.
97291         * lib/uniwidth/u32-width.c: Likewise.
97292         * lib/uniwidth/u8-strwidth.c: Likewise.
97293         * lib/uniwidth/u8-width.c: Likewise.
97294         * lib/uniwidth/width.c: Likewise.
97296 2007-10-07  Bruno Haible  <bruno@clisp.org>
97298         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
97299         The file is still under LGPL (see modules/inttypes).
97301 2007-10-06  Bruno Haible  <bruno@clisp.org>
97303         * modules/trunc (Dependencies): Add 'extensions'.
97304         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
97305         Reported by Ben Pfaff <blp@gnu.org>.
97307 2007-10-06  Bruno Haible  <bruno@clisp.org>
97309         * modules/freopen-tests: New file.
97310         * tests/test-freopen.c: New file.
97312         * modules/fopen-tests: New file.
97313         * tests/test-fopen.c: New file.
97315         * modules/fopen: New file.
97316         * lib/fopen.c: New file.
97317         * m4/fopen.m4: New file.
97318         * modules/freopen: New file.
97319         * lib/freopen.c: New file.
97320         * m4/freopen.m4: New file.
97321         * lib/stdio.in.h (fopen, freopen): New declarations.
97322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
97323         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97324         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
97325         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97326         * doc/functions/fopen.texi: Mention the 'fopen' module.
97327         * doc/functions/freopen.texi: Mention the 'freopen' module.
97329 2007-10-06  Bruno Haible  <bruno@clisp.org>
97331         * modules/open-tests: New file.
97332         * tests/test-open.c: New file.
97334         * modules/open: New file.
97335         * lib/open.c: New file.
97336         * m4/open.m4: New file.
97337         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
97338         lib/open.c does.
97339         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
97340         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
97341         macros.
97342         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
97343         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
97344         REPLACE_OPEN.
97345         * doc/functions/open.texi: Mention the 'open' module.
97347 2007-10-04  Bruno Haible  <bruno@clisp.org>
97349         * modules/ceill-tests: New file.
97350         * tests/test-ceill.c: New file.
97352         * modules/ceill: New file.
97353         * lib/ceill.c: Replace entire file.
97354         * m4/ceill.m4: New file.
97355         * lib/math.in.h (ceill): Replace declaration.
97356         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
97357         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
97358         * doc/functions/ceill.texi: Mention the 'ceill' module.
97359         * modules/mathl (Files): Remove lib/ceill.c.
97360         (Depends-on): Add ceill.
97362 2007-10-04  Bruno Haible  <bruno@clisp.org>
97364         * modules/ceilf-tests: New file.
97365         * tests/test-ceilf.c: New file.
97367         * modules/ceilf: New file.
97368         * lib/ceil.c: New file.
97369         * lib/ceilf.c: New file.
97370         * m4/ceilf.m4: New file.
97371         * lib/math.in.h (ceilf): New declaration.
97372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
97373         HAVE_DECL_CEILF.
97374         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
97375         HAVE_DECL_CEILF.
97376         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
97378 2007-10-04  Bruno Haible  <bruno@clisp.org>
97380         * modules/floorl-tests: New file.
97381         * tests/test-floorl.c: New file.
97383         * modules/floorl: New file.
97384         * lib/floorl.c: Replace entire file.
97385         * m4/floorl.m4: New file.
97386         * lib/math.in.h (floorl): Replace declaration.
97387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
97388         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
97389         * doc/functions/floorl.texi: Mention the 'floorl' module.
97390         * modules/mathl (Files): Remove lib/floorl.c.
97391         (Depends-on): Add floorl.
97393 2007-10-04  Bruno Haible  <bruno@clisp.org>
97395         * modules/floorf-tests: New file.
97396         * tests/test-floorf.c: New file.
97398         * modules/floorf: New file.
97399         * lib/floor.c: New file.
97400         * lib/floorf.c: New file.
97401         * m4/floorf.m4: New file.
97402         * lib/math.in.h (floorf): New declaration.
97403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
97404         HAVE_DECL_FLOORF.
97405         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
97406         HAVE_DECL_FLOORF.
97407         * doc/functions/floorf.texi: Mention the 'floorf' module.
97409 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
97410             Bruno Haible  <bruno@clisp.org>
97412         Advertise for the Git server instead of the CVS server.
97413         * doc/gnulib-intro.texi (Steady Development): Mention the Git
97414         repository instead of the CVS one.
97415         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
97416         about all VCS systems generically.
97417         * doc/gnulib.texi (Introduction): Capitalize `Git'.
97419 2007-10-04  Bruno Haible  <bruno@clisp.org>
97421         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
97422         means.
97423         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
97425 2007-10-04  Bruno Haible  <bruno@clisp.org>
97427         * modules/truncl-tests: New file.
97428         * tests/test-truncl.c: New file.
97430         * modules/truncl: New file.
97431         * lib/truncl.c: New file.
97432         * m4/truncl.m4: New file.
97433         * lib/math.in.h (truncl): New declaration.
97434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
97435         HAVE_DECL_TRUNCL.
97436         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
97437         HAVE_DECL_TRUNCL.
97438         * doc/functions/truncl.texi: Mention the 'truncl' module.
97440 2007-10-04  Bruno Haible  <bruno@clisp.org>
97442         * modules/truncf-tests: New file.
97443         * tests/test-truncf.c: New file.
97445         * modules/truncf: New file.
97446         * lib/trunc.c: Make paramerizable through USE_* macros.
97447         * lib/truncf.c: New file.
97448         * m4/truncf.m4: New file.
97449         * lib/math.in.h (truncf): New declaration.
97450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
97451         HAVE_DECL_TRUNCF.
97452         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
97453         HAVE_DECL_TRUNCF.
97454         * doc/functions/truncf.texi: Mention the 'truncf' module.
97456 2007-10-03  Bruno Haible  <bruno@clisp.org>
97458         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
97459         augmentation also for tests modules.
97460         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
97461         * modules/atexit-tests (Makefile.am): Likewise.
97462         * modules/binary-io-tests (Makefile.am): Likewise.
97463         * modules/c-strcase-tests (Makefile.am): Likewise.
97464         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
97465         * modules/canonicalize-tests (Makefile.am): Likewise.
97466         * modules/closein-tests (Makefile.am): Likewise.
97467         * modules/fprintf-posix-tests (Makefile.am): Likewise.
97468         * modules/freadahead-tests (Makefile.am): Likewise.
97469         * modules/fseek-tests (Makefile.am): Likewise.
97470         * modules/fseeko-tests (Makefile.am): Likewise.
97471         * modules/ftell-tests (Makefile.am): Likewise.
97472         * modules/ftello-tests (Makefile.am): Likewise.
97473         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
97474         * modules/isnanl-tests (Makefile.am): Likewise.
97475         * modules/lseek-tests (Makefile.am): Likewise.
97476         * modules/mbscasecmp-tests (Makefile.am): Likewise.
97477         * modules/mbscasestr-tests (Makefile.am): Likewise.
97478         * modules/mbschr-tests (Makefile.am): Likewise.
97479         * modules/mbscspn-tests (Makefile.am): Likewise.
97480         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
97481         * modules/mbspbrk-tests (Makefile.am): Likewise.
97482         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
97483         * modules/mbsrchr-tests (Makefile.am): Likewise.
97484         * modules/mbsspn-tests (Makefile.am): Likewise.
97485         * modules/mbsstr-tests (Makefile.am): Likewise.
97486         * modules/printf-posix-tests (Makefile.am): Likewise.
97487         * modules/snprintf-posix-tests (Makefile.am): Likewise.
97488         * modules/sprintf-posix-tests (Makefile.am): Likewise.
97489         * modules/tsearch-tests (Makefile.am): Likewise.
97490         * modules/uniname/uniname-tests (Makefile.am): Likewise.
97491         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
97492         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
97493         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
97494         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
97495         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
97496         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
97497         * modules/vprintf-posix-tests (Makefile.am): Likewise.
97498         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
97499         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
97500         * modules/xstrtoimax-tests (Makefile.am): Likewise.
97501         * modules/xstrtol-tests (Makefile.am): Likewise.
97502         * modules/xstrtoumax-tests (Makefile.am): Likewise.
97503         * modules/yesno-tests (Makefile.am): Likewise.
97505 2007-10-03  Bruno Haible  <bruno@clisp.org>
97507         * modules/trunc-tests: New file.
97508         * tests/test-trunc.c: New file.
97510         * modules/trunc: New file.
97511         * lib/trunc.c: New file.
97512         * m4/trunc.m4: New file.
97513         * lib/math.in.h (trunc): New declaration.
97514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
97515         HAVE_DECL_TRUNC.
97516         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
97517         HAVE_DECL_TRUNC.
97518         * doc/functions/trunc.texi: Mention the 'trunc' module.
97520 2007-10-03  Bruno Haible  <bruno@clisp.org>
97522         * tests/test-fpending.c: New file, mostly copied
97523         from coreutils/lib/t-fpending.c.
97524         * modules/fpending-tests: New file.
97526 2007-10-03  Bruno Haible  <bruno@clisp.org>
97528         Port the stdio extensions to QNX (untested).
97529         * lib/fseterr.c (fseterr): Add support for QNX.
97530         * lib/fbufmode.c (fbufmode): Likewise.
97531         * lib/freadable.c (freadable): Likewise.
97532         * lib/fwritable.c (fwritable): Likewise.
97533         * lib/freading.c (freading): Likewise.
97534         * lib/fwriting.c (fwriting): Likewise.
97535         * lib/freadahead.c (freadahed): Likewise.
97536         * lib/fpurge.c (fpurge): Likewise.
97537         * lib/fseeko.c (rpl_fseeko): Likewise.
97539 2007-10-03  Bruno Haible  <bruno@clisp.org>
97540             Jim Meyering  <jim@meyering.net>
97541             Eric Blake  <ebb9@byu.net>
97543         * doc/relocatable.texi: Use @command instead of @program.
97545 2007-10-02  Jim Meyering  <jim@meyering.net>
97547         Perform one more "_.h" -> ".in.h" substitution.
97548         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
97549         instead of unistd_.h here, too.
97551 2007-10-01  Bruno Haible  <bruno@clisp.org>
97553         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
97554         Needed for the alloca-opt module.
97556 2007-09-30  Bruno Haible  <bruno@clisp.org>
97558         * lib/alloca.in.h: Renamed from lib/alloca_.h.
97559         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
97560         alloca_.h.
97561         * lib/argz.in.h: Renamed from lib/argz_.h.
97562         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
97563         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
97564         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
97565         byteswap_.h.
97566         * lib/dirent.in.h: Renamed from lib/dirent_.h.
97567         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
97568         dirent_.h.
97569         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
97570         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
97571         fcntl_.h.
97572         * lib/float.in.h: Renamed from lib/float_.h.
97573         * modules/float (Files, Makefile.am): Use float.in.h instead of
97574         float_.h.
97575         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
97576         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
97577         fnmatch_.h.
97578         * lib/getopt.in.h: Renamed from lib/getopt_.h.
97579         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
97580         getopt_.h.
97581         * lib/glob.in.h: Renamed from lib/glob_.h.
97582         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
97583         * lib/iconv.in.h: Renamed from lib/iconv_.h.
97584         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
97585         iconv_.h.
97586         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
97587         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
97588         inttypes_.h.
97589         * lib/locale.in.h: Renamed from lib/locale_.h.
97590         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
97591         locale_.h.
97592         * lib/math.in.h: Renamed from lib/math_.h.
97593         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
97594         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
97595         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
97596         of netinet_in_.h. Add dependency.
97597         * lib/poll.in.h: Renamed from lib/poll_.h.
97598         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
97599         * lib/search.in.h: Renamed from lib/search_.h.
97600         * modules/search (Files, Makefile.am): Use search.in.h instead of
97601         search_.h.
97602         * lib/signal.in.h: Renamed from lib/signal_.h.
97603         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
97604         _signal.h.
97605         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
97606         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
97607         stdbool_.h.
97608         * lib/stdint.in.h: Renamed from lib/stdint_.h.
97609         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
97610         stdint_.h.
97611         * lib/stdio.in.h: Renamed from lib/stdio_.h.
97612         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
97613         stdio_.h.
97614         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
97615         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
97616         stdlib_.h.
97617         * lib/string.in.h: Renamed from lib/string_.h.
97618         * modules/string (Files, Makefile.am): Use string.in.h instead of
97619         string_.h.
97620         * doc/gnulib-tool.texi (Initial import): Update.
97621         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
97622         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
97623         of sys_select_.h. Add dependency.
97624         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
97625         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
97626         of sys_socket_.h.
97627         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
97628         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
97629         sys_stat_.h.
97630         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
97631         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
97632         sys_time_.h.
97633         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
97634         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
97635         sysexits_.h.
97636         * lib/time.in.h: Renamed from lib/time_.h.
97637         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
97638         * lib/unistd.in.h: Renamed from lib/unistd_.h.
97639         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
97640         unistd_.h.
97641         * lib/wchar.in.h: Renamed from lib/wchar_.h.
97642         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
97643         wchar_.h.
97644         * lib/wctype.in.h: Renamed from lib/wctype_.h.
97645         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
97646         wctype_.h.
97647         * build-aux/bootstrap (slurp): Update.
97648         * lib/.cppi-disable: Update.
97650 2007-09-30  Bruno Haible  <bruno@clisp.org>
97652         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
97653         Needed on BeOS.
97655 2007-09-30  Bruno Haible  <bruno@clisp.org>
97657         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
97659 2007-09-29  Bruno Haible  <bruno@clisp.org>
97661         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
97663 2007-09-29  Bruno Haible  <bruno@clisp.org>
97665         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
97666         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
97667         * build-aux/install-reloc: Compile also areadlink.c.
97668         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
97670 2007-09-29  Bruno Haible  <bruno@clisp.org>
97672         * gnulib-tool (func_emit_initmacro_done): Indentation.
97674 2007-09-29  Bruno Haible  <bruno@clisp.org>
97676         * README: Add CVS checkout update instructions.
97677         Info from Bob Proulx <bob@proulx.com>.
97679 2007-09-28  Eric Blake  <ebb9@byu.net>
97681         Provide move-if-change.
97682         * build-aux/move-if-change: New file, based on best practice
97683         rather than any canonical upstream location.
97685 2007-09-28  Jim Meyering  <jim@meyering.net>
97687         Fix canonicalize loop-detection corner case.
97688         Do not attempt to stat the symlink values stored via seen_triple.
97689         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
97690         on linux-2.6.18, (but not 2.6.22).
97691         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
97692         triple_compare.  The former compares dev,ino,filename, while the latter
97693         would actually stat dirname(filename) when dev and ino were equal.
97694         * lib/hash-triple.c: Install <string.h>.
97695         (STREQ): Define.
97696         (triple_compare_ino_str): New function.
97697         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
97699 2007-09-28  Eric Blake  <ebb9@byu.net>
97701         Enforce that AC_REPLACE_FUNCS files exist.
97702         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
97703         override check for typos.
97705         Fix test-closein on Solaris 10.
97706         * tests/test-closein.c (main): Don't assume stdin can be inherited
97707         closed on all systems.
97708         * tests/test-closein.sh: Likewise.
97709         Reported by Piotr Tarnowski.
97711 2007-09-28  Jim Meyering  <jim@meyering.net>
97713         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
97715 2007-09-27  Jim Meyering  <jim@meyering.net>
97717         canonicalize: Avoid a false-positive cycle failure.
97718         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
97719         Sort.  Remove cycle-check.
97720         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
97721         not cycle-check.h.
97722         (seen_triple): New function.
97723         (canonicalize_filename_mode): Use it instead of cycle-check.
97724         * tests/test-canonicalize.c: Add a test for this bug.
97725         * tests/test-canonicalize.sh: Set up and run the test.
97727         New module, file-set, from coreutils.
97728         * modules/file-set: Define it.
97729         * lib/file-set.c, lib/file-set.h: Implement.
97731         New module, hash-triple, from coreutils.
97732         * modules/hash-triple: Define it.
97733         * lib/hash-triple.c, lib/hash-triple.h: Implement.
97735 2007-09-25  Eric Blake  <ebb9@byu.net>
97737         Fix strerror on Interix.
97738         * lib/string_.h (strerror): Declare replacement.
97739         * doc/functions/strerror.texi (strerror): Document the Interix
97740         shortcoming.
97741         * modules/string (Makefile.am): Support new hooks.
97742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
97743         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
97744         gl_FUNC_STRERROR_SEPARATE.
97745         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
97746         * lib/strerror.c (rpl_strerror): Provide replacement.
97747         * modules/strerror (Depends-on): Add string.
97748         (configure.ac): Detect use of module.
97749         * tests/test-strerror.c: New file.
97750         * modules/strerror-tests: New test module.
97751         * modules/argp (Depends-on): Add strerror.
97752         * modules/error (Depends-on): Likewise.
97753         Reported by Martin Koeppe.
97755 2007-09-24  Bruno Haible  <bruno@clisp.org>
97757         * README: Update git instructions.
97759 2007-09-24  Eric Blake  <ebb9@byu.net>
97761         Revert fpending breakage from 2007-09-08.
97762         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
97763         __fpending.c.
97765 2007-09-24  Jim Meyering  <jim@meyering.net>
97767         filenamecat.c: Add a test.
97768         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
97769         showing how the function works when DIR is the empty string.
97771 2007-09-21  Simon Josefsson  <simon@josefsson.org>
97773         * tests/test-canonicalize.sh: Turn on executable bit.
97775 2007-09-19  Eric Blake  <ebb9@byu.net>
97777         * README: Update CVS instructions.
97779 2007-09-18  Bruno Haible  <bruno@clisp.org>
97781         * modules/areadlink: New file.
97782         * lib/areadlink.h (areadlink): New declaration.
97783         * lib/areadlink.c: New file, based on lib/xreadlink.c.
97785 2007-09-17  Jim Meyering  <jim@meyering.net>
97787         * lib/savewd.c (ESTALE) [!defined]: Define.
97788         Reported to be required on Interix by Martin Koeppe.
97790 2007-09-17  Bruno Haible  <bruno@clisp.org>
97792         * gnulib-tool (func_version): Use $version.
97794 2007-09-16  Bruno Haible  <bruno@clisp.org>
97796         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
97797         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
97798         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
97799         Reported by Greg Schafer <gschafer@zip.com.au>.
97801 2007-09-15  Bruno Haible  <bruno@clisp.org>
97803         * gnulib-tool (sed): Try a little harder to make bash understand the
97804         alias.
97805         Reported by Bruce Korb <bruce.korb@gmail.com>.
97807 2007-09-13  Eric Blake  <ebb9@byu.net>
97809         * ChangeLog: Remove conflict markers.
97811 2007-09-13  Simon Josefsson  <simon@josefsson.org>
97813         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
97814         Reported by Bruno Haible <bruno@clisp.org>.
97816 2007-09-12  Bruno Haible  <bruno@clisp.org>
97818         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
97819         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
97820         is not defined.
97822 2007-09-12  Eric Blake  <ebb9@byu.net>
97824         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
97825         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
97826         Autoconf definition.
97827         * modules/euidaccess (Depends-on): Add extensions, for
97828         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
97829         * modules/fnmatch (Depends-on): Likewise.
97830         * modules/getaddrinfo (Depends-on): Likewise.
97831         * modules/getdelim (Depends-on): Likewise.
97832         * modules/getline (Depends-on): Likewise.
97833         * modules/getsubopt (Depends-on): Likewise.
97834         * modules/gettext (Depends-on): Likewise.
97835         * modules/group-member (Depends-on): Likewise.
97836         * modules/mbchar (Depends-on): Likewise.
97837         * modules/memmem (Depends-on): Likewise.
97838         * modules/mempcpy (Depends-on): Likewise.
97839         * modules/memrchr (Depends-on): Likewise.
97840         * modules/pagealign_alloc (Depends-on): Likewise.
97841         * modules/readutmp (Depends-on): Likewise.
97842         * modules/stpcpy (Depends-on): Likewise.
97843         * modules/stpncpy (Depends-on): Likewise.
97844         * modules/strchrnul (Depends-on): Likewise.
97845         * modules/strndup (Depends-on): Likewise.
97846         * modules/strsep (Depends-on): Likewise.
97847         * modules/strverscmp (Depends-on): Likewise.
97848         * modules/vasprintf (Depends-on): Likewise.
97849         * modules/wcwidth (Depends-on): Likewise.
97850         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
97851         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
97852         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
97853         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
97854         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
97855         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
97856         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
97857         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
97858         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
97859         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
97860         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
97861         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
97862         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
97863         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
97864         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
97865         * m4/readutmp.m4 (gl_READUTMP): Likewise.
97866         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
97867         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
97868         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
97869         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
97870         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
97871         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
97872         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
97873         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
97874         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
97875         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
97876         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
97877         so that lock.m4 can be used in gettext without extensions module.
97879 2007-09-11  Bruno Haible  <bruno@clisp.org>
97881         * m4/isc-posix.m4: Remove file.
97882         Suggested by Eric Blake.
97884 2007-09-11  Eric Blake  <ebb9@byu.net>
97886         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
97888 2007-09-10  Bruno Haible  <bruno@clisp.org>
97890         * posix-modules: Fix typo in error message.
97891         Reported by Matt <mkraai@beckman.com>.
97893 2007-09-09  Bruno Haible  <bruno@clisp.org>
97895         * doc/functions/getdelim.texi: Update list of platforms lacking the
97896         function.
97897         * doc/functions/getline.texi: Likewise.
97899 2007-09-09  Jim Meyering  <jim@meyering.net>
97901         * lib/hash.c (hash_initialize): Detect calloc failure.
97902         Reported by Bruno Haible.
97904 2007-09-09  Bruno Haible  <bruno@clisp.org>
97906         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
97907         malloc or realloc fails.
97909 2007-09-09  Bruno Haible  <bruno@clisp.org>
97911         * modules/getcwd (Depends-on): Add malloc-posix.
97912         * modules/glob (Depends-on): Likewise.
97913         * modules/putenv (Depends-on): Likewise.
97914         * modules/strdup (Depends-on): Likewise.
97915         * modules/getdelim (Depends-on): Add realloc-posix.
97916         * modules/read-file (Depends-on): Likewise.
97918 2007-09-09  Bruno Haible  <bruno@clisp.org>
97920         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
97921         (gl_FUNC_MALLOC_POSIX): Require it.
97922         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
97923         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
97924         * modules/realloc (Files): Add m4/malloc.m4.
97925         * modules/calloc (Files): Likewise.
97927 2007-09-09  Bruno Haible  <bruno@clisp.org>
97929         * modules/malloc-posix: New file.
97930         * modules/malloc (Depends-on): Add malloc-posix.
97931         * lib/malloc.c: Include errno.h.
97932         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
97933         and a POSIX-compatible malloc into a single function. Set ENOMEM
97934         when returning NULL.
97935         * m4/malloc.m4: New file.
97936         * doc/functions/malloc.texi: Mention the malloc-posix module.
97937         * lib/stdlib_.h (malloc): New declaration.
97938         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
97939         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
97940         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
97941         and HAVE_MALLOC_POSIX.
97943 2007-09-09  Bruno Haible  <bruno@clisp.org>
97945         * modules/realloc-posix: New file.
97946         * modules/realloc (Depends-on): Add realloc-posix.
97947         * lib/realloc.c: Include errno.h.
97948         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
97949         and a POSIX-compatible realloc into a single function. Set ENOMEM
97950         when returning NULL.
97951         * m4/realloc.m4: New file.
97952         * doc/functions/realloc.texi: Mention the realloc-posix module.
97953         * lib/stdlib_.h (realloc): New declaration.
97954         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
97955         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
97956         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
97957         and HAVE_REALLOC_POSIX.
97959 2007-09-09  Bruno Haible  <bruno@clisp.org>
97961         * modules/calloc-posix: New file.
97962         * modules/calloc (Depends-on): Add calloc-posix.
97963         * lib/calloc.c: Include errno.h.
97964         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
97965         and a POSIX-compatible calloc into a single function. Set ENOMEM
97966         when returning NULL.
97967         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
97968         * doc/functions/calloc.texi: Mention the calloc-posix module.
97969         * lib/stdlib_.h (calloc): New declaration.
97970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
97971         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
97972         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
97973         and HAVE_CALLOC_POSIX.
97975 2007-09-09  Bruno Haible  <bruno@clisp.org>
97977         Allow for modules to show an arbitrary notice.
97978         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
97979         * gnulib-tool: New option --extract-notice.
97980         (func_usage): Document it.
97981         (sed_extract_prog): Update.
97982         (func_get_notice): New function.
97983         (func_modules_notice): New function.
97984         (func_import, func_create_testdir): Invoke it.
97985         Suggested by Jim Meyering.
97987 2007-09-09  Bruno Haible  <bruno@clisp.org>
97989         * gnulib-tool: New options --verbose, --quiet.
97990         (func_usage): Document them.
97991         (verbose): New variable.
97992         (func_execute_command): New function.
97993         (func_import): Don't show the module list and the file list if
97994         $verbose < 0.
97995         (func_create_testdir): Likewise. Use func_execute_command.
97996         (func_create_megatestdir): Use func_execute_command.
97998 2007-09-08  Bruno Haible  <bruno@clisp.org>
98000         * gnulib-tool (func_import): Prefer rsync over wget when available,
98001         for fetching the PO files.
98003 2007-09-08  Bruno Haible  <bruno@clisp.org>
98005         * posix-modules: New file. Portions copied from gnulib-tool.
98006         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
98008 2007-09-08  Jim Meyering  <jim@meyering.net>
98010         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
98011         * lib/fpending.h: Rename from __fpending.h.
98012         * lib/fpending.c: Rename from __fpending.c.
98013         Include "fpending.h", not "__fpending.h".
98014         * lib/__fpending.h, lib/__fpending.c: Remove files.
98015         * modules/fpending (Files): Reflect new file names.
98016         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
98018 2007-09-08  Bruno Haible  <bruno@clisp.org>
98020         * m4/inttypes-h.m4: Remove stub file.
98022 2007-09-07  Simon Josefsson  <simon@josefsson.org>
98024         * doc/headers/stdint.texi: Discuss #include_next issue.
98026 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98028         * build-aux/bootstrap: Remove obsolete comment about wget --help.
98030 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98032         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
98033         in variable name.
98035 2007-09-03  Jim Meyering  <jim@meyering.net>
98037         New module: git-version-gen.
98038         * modules/git-version-gen: New file.
98040         Import changes from coreutils for bootstrap script.
98042         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
98044         bootstrap: uses rsync to download the .po files
98045         * build-aux/bootstrap (po_download_command_format): New global.
98046         (download_po_files): Use rsync.
98047         (update_po_files): Don't remove .po files after download,
98048         so future rsync runs can take advantage of the copies.
98050         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
98052         Solve the unnecessary-.po-file-regeneration problem once and for all.
98053         * build-aux/bootstrap (download_po_files): New function, renamed from
98054         get_translations.  Now, downloads, but doesn't update LINGUAS.
98055         (update_po_files): New function.
98057         bootstrap: Ignore more.
98058         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
98059         uniwidth to e.g., lib/.gitignore.
98060         (slurp): Handle the sys_stat_.h -> sys mapping, too.
98062         * build-aux/bootstrap: New setting: vc_ignore.
98063         (insert_sorted_if_absent): Create $file if absent.
98064         Adapt to new, possibly empty, list: $vc_ignore.
98066         bootstrap: generate more ignorable names
98067         * build-aux/bootstrap (slurp): When generating ignorable names,
98068         also map .sin to .sed, .gperf to .c, and .y to .c.
98070 2007-09-03  Jim Meyering  <jim@meyering.net>
98072         * build-aux/git-version-gen: New file, from coreutils.  For details, see
98073         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
98075 2007-09-02  Bruno Haible  <bruno@clisp.org>
98077         Fix mis-recognition of 'mcs' on QNX 6.
98078         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
98079         output contains the string "Mono".
98080         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
98081         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
98083 2007-09-01  Bruno Haible  <bruno@clisp.org>
98085         Fix collision between uniwidth/* and linebreak modules.
98086         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
98087         u32_width): Remove declarations.
98088         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
98089         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
98090         streq3, streq2, streq1, streq0): Remove functions.
98091         (STREQ): Remove macro.
98092         (is_cjk_encoding): Remove function.
98093         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
98094         (uc_width, u8_width, u16_width, u32_width): Remove functions.
98095         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
98096         * NEWS: Document the change.
98098 2007-09-01  Bruno Haible  <bruno@clisp.org>
98100         * lib/streq.h: Add double-inclusion guard.
98102 2007-09-01  Karl Berry  <karl@gnu.org>
98104         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
98106 2007-08-28  Jim Meyering  <jim@meyering.net>
98108         Rename mreadlink_with_size to areadlink_with_size.
98109         * NEWS: Document the change.
98110         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
98111         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
98112         * lib/mreadlink.h: Rename this to...
98113         * lib/areadlink.h: ...this.
98114         * modules/mreadlink-with-size: Rename this to...
98115         * modules/areadlink-with-size: ...this.
98116         * lib/canonicalize.c: Reflect the renaming.
98117         * modules/canonicalize: Likewise.
98119 2007-08-26  Bruno Haible  <bruno@clisp.org>
98121         * gnulib-tool (func_import): When deciding which files to remove,
98122         consider also dangling symbolic links.
98123         Reported by Eric Blake.
98125 2007-08-26  Bruno Haible  <bruno@clisp.org>
98127         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
98129 2007-08-23  Simon Josefsson  <simon@josefsson.org>
98131         * lib/readline.c: Don't include getline.h, the prototype is now
98132         found in stdio.h.
98134 2007-08-23  Jim Meyering  <jim@meyering.net>
98136         Getdelim touchup.
98137         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
98138         around the funlockfile call, since funlockfile never sets errno.
98139         Don't set errno upon failed realloc.
98141 2007-08-22  Eric Blake  <ebb9@byu.net>
98143         Getline touchups.
98144         * lib/getdelim.c (getdelim): Revert regression that required *n to
98145         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
98146         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
98147         getdelim, rather than whether implementation is missing.
98148         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
98149         * lib/stdio_.h (getline): Also declare if replacement is
98150         required.
98151         * doc/functions/getdelim.texi: New file.
98152         * doc/functions/getline.texi: Likewise.
98153         * doc/gnulib.texi (Function Substitutes): Add new files.
98154         Reported by Bruno Haible.
98156 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
98158         * users.txt: Add Guile.
98160 2007-08-22  Eric Blake  <ebb9@byu.net>
98162         * tests/test-getdelim.c (main): Use remove, not unlink.
98163         * tests/test-getline.c (main): Likewise.
98165         Move getline and getdelim into stdio.h, per POSIX 200x.
98166         * modules/getline (Files): Remove getline.h.
98167         (Depends-on): Add stdio.
98168         (configure.ac): Add module indicator.
98169         * modules/getdelim (Files): Remove getdelim.h.
98170         (Depends-on): Add stdio.
98171         (configure.ac): Add module indicator.
98172         * modules/stdio (Makefile.am): Work with new indicators.
98173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
98174         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
98175         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
98176         * lib/getdelim.h: Delete.
98177         * lib/getline.h: Delete.
98178         * lib/stdio_.h (getdelim, getline): Declare.
98179         * modules/getdelim-tests: New module.
98180         * modules/getline-tests: Likewise.
98181         * tests/test-getdelim.c: New file.
98182         * tests/test-getline.c: Likewise.
98183         * NEWS: Document the change.
98184         * lib/getline.c: Update choice of header.
98185         * lib/csharpcomp.c: Likewise.
98186         * lib/getpass.c: Likewise.
98187         * lib/javacomp.c: Likewise.
98188         * lib/javaversion.c: Likewise.
98189         * lib/yesno.c: Likewise.
98190         * lib/getdelim.c: Likewise.
98191         (getdelim): Set errno on failure, and avoid memory leak.
98193 2007-08-19  Bruno Haible  <bruno@clisp.org>
98195         * modules/closein (Depends-on): Add freadahead.
98196         * lib/closein.c: Include freadahead.h.
98197         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
98198         is zero.
98200 2007-08-19  Bruno Haible  <bruno@clisp.org>
98202         * modules/freadahead-tests: New file.
98203         * tests/test-freadahead.sh: New file.
98204         * tests/test-freadahead.c: New file.
98206         * modules/freadahead: New file.
98207         * lib/freadahead.h: New file.
98208         * lib/freadahead.c: New file.
98209         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
98210         fbufmode, fpurge, freadable, fwritable.
98212 2007-08-19  Eric Blake  <ebb9@byu.net>
98214         Test yesno in combination with closein.
98215         * lib/yesno.c (yesno): Document use of stdin.
98216         * modules/yesno-tests (Files): New module.
98217         * tests/test-yesno.c (main): New file.
98218         * tests/test-yesno.sh: Likewise.
98220 2007-08-19  Bruno Haible  <bruno@clisp.org>
98222         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
98223         * lib/fseeko.c (rpl_fseeko): Likewise.
98224         * lib/fseterr.c (fseterr): Likewise.
98226 2007-08-19  Bruno Haible  <bruno@clisp.org>
98228         * tests/test-lseek.c (main): Disable a test for BeOS.
98229         * doc/functions/lseek.texi: Document the BeOS bug.
98231 2007-08-19  Bruno Haible  <bruno@clisp.org>
98232             Eric Blake  <ebb9@byu.net>
98234         * lib/lseek.c: Include <sys/stat.h>.
98235         (rpl_lseek): Add workaround code also for Unix platforms.
98236         Needed for BeOS.
98237         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
98238         * doc/functions/lseek.texi: Document BeOS definiency.
98240 2007-08-18  Bruno Haible  <bruno@clisp.org>
98242         * modules/fstrcmp-tests: New file.
98243         * tests/test-fstrcmp.c: New file.
98245 2007-08-18  Bruno Haible  <bruno@clisp.org>
98247         * modules/fstrcmp: New file, from GNU gettext with modifications.
98248         * lib/fstrcmp.h: New file, from GNU gettext.
98249         * lib/fstrcmp.c: New file, from GNU gettext.
98250         * MODULES.html.sh (String handling): Add fstrcmp.
98252 2007-08-18  Bruno Haible  <bruno@clisp.org>
98254         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
98255         'bool'.
98256         (diag, compareseq): Remove const from the ctxt argument.
98257         (USE_HEURISTIC): Undefine at the end.
98259 2007-08-18  Jim Meyering  <jim@meyering.net>
98261         New file: lib/idcache.h
98262         * NEWS: Mention the addition.
98263         * modules/idcache (Files): Add lib/idcache.h
98264         * lib/idcache.c: Include "idcache.h".
98265         Don't include <sys/types.h>.
98266         Add a FIXME comment.
98267         Move file-scoped "static" declarations to the top.
98268         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
98270 2007-08-17  Bruno Haible  <bruno@clisp.org>
98271         and Paul Eggert  <eggert@cs.ucla.edu>
98273         * MODULES.html.sh: Add diffseq.
98274         * modules/diffseq: New file.
98275         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
98276         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
98278 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98280         Import changes from coreutils for bootstrap script.
98282         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
98284         * build-aux/bootstrap (slurp): Work even in environments where
98285         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
98286         current code does not slurp files whose names start with ".", and
98287         this looks like it might be a troublesome area.
98289         2007-07-11  Jim Meyering  <jim@meyering.net>
98291         If there's a GPL vN copyright comment, require that N == 3.
98293         2007-07-08  Jim Meyering  <jim@meyering.net>
98295         Run the coreutils-specific code only if tests/Makefile.am.in exists.
98296         * build-aux/bootstrap (mam_template): Move definition out of loop.
98298         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
98300         * build-aux/bootstrap (symlink_to_dir): Rename function from
98301         symlink_to_gnulib.  Add a directory parameter.  Update all
98302         callers.
98303         (cp_mark_as_generated): Also check for -- and link to -- files in
98304         gl/.
98306         2007-07-08  Jim Meyering  <jim@meyering.net>
98308         Adapt to deeper hierarchy in gnulib.
98309         * build-aux/bootstrap (symlink_to_dir): If the destination
98310         directory doesn't exist, create it. This is required at least for
98311         "lib/uniwidth/cjk.h".
98313         2007-05-15  Jim Meyering  <jim@meyering.net>
98315         * build-aux/bootstrap: Now that generated Makefile.am files
98316         are no longer under version control, they must be created at
98317         bootstrap time.
98319 2007-08-14  Ben Pfaff  <blp@gnu.org>
98321         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
98323 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98325         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
98326         given the changes below.
98327         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
98328         even on hosts that have padding bits beyond the supported 64.
98330 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98332         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
98333         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
98334         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
98335         depends on it.
98336         (xstrtol_error): Remove.
98337         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
98338         but with a different signature.
98339         (ATTRIBUTE_NORETURN, __attribute__): New macros.
98340         * lib/xstrtol-error.c: Include exitfail.h.
98341         (xstrtol_fatal): New function, with a different signature from the
98342         old xstrtol_error, so that the caller need not worry about passing
98343         in an exit status, or about storage management of the option argument.
98344         (xstrtol_error): Now a static function.  Redo signature to
98345         implement xstrtol_fatal.  Output the correct number of hyphens in
98346         front of the option so that the caller need not worry about
98347         storage management.
98348         (N_): New macro.
98349         (_): Remove; not used now.
98350         * modules/xstrtol: Depend on getopt.
98351         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
98352         of old STRTOL_FATAL_ERROR macro.
98353         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
98354         of test program.
98355         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
98356         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
98358 2007-08-08  Eric Blake  <ebb9@byu.net>
98360         * lib/xstrtol-error.c: Add missing include.
98362         Move xstrtol messages into gnulib domain, when --pobase is used.
98363         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
98364         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
98365         * modules/xstrtol (Files): Distribute new file.
98366         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
98367         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
98368         * tests/test-xstrtol.c: ...into new file.
98369         * tests/test-xstrtoul.c: Also test xstrtoul.
98370         * tests/test-xstrtoimax.c: Also test xstrtoimax.
98371         * tests/test-xstrtoumax.c: Also test xstrtoumax.
98372         * tests/test-xstrtol.sh: Drive the tests.
98373         * tests/test-xstrtoimax.sh: Likewise.
98374         * tests/test-xstrtoumax.sh: Likewise.
98375         * modules/xstrtol-tests: New module.
98376         * modules/xstrtoimax-tests: Likewise.
98377         * modules/xstrtoumax-tests: Likewise.
98379 2007-08-08  Jim Meyering  <jim@meyering.net>
98381         New function: mfile_name_concat.
98382         * lib/filenamecat.c (mfile_name_concat): New function, just like
98383         file_name_concat, but return NULL upon failure rather than exiting
98384         with a diagnostic.
98385         * lib/filenamecat.h: Declare it.
98387 2007-08-07  Bruno Haible  <bruno@clisp.org>
98389         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
98390         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
98391         warning from gcc.
98392         Reported by Eric Blake.
98394 2007-08-07  Simon Josefsson  <simon@josefsson.org>
98396         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
98397         * modules/crypto/arcfour (License): Likewise.
98398         * modules/crypto/des-tests (License): Likewise.
98399         * modules/crypto/gc-arctwo-tests (License): Likewise.
98400         * modules/crypto/gc-des-tests (License): Likewise.
98401         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
98402         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
98403         * modules/crypto/gc-md2-tests (License): Likewise.
98404         * modules/crypto/gc-md4-tests (License): Likewise.
98405         * modules/crypto/gc-md5-tests (License): Likewise.
98406         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
98407         * modules/crypto/gc-rijndael-tests (License): Likewise.
98408         * modules/crypto/gc-sha1-tests (License): Likewise.
98409         * modules/crypto/gc-tests (License): Likewise.
98410         * modules/crypto/hmac-md5 (License): Likewise.
98411         * modules/crypto/hmac-sha1 (License): Likewise.
98412         * modules/crypto/md2-tests (License): Likewise.
98413         * modules/crypto/md4-tests (License): Likewise.
98414         * modules/crypto/md5 (License): Likewise.
98415         * modules/crypto/rijndael (License): Likewise.
98416         * modules/crypto/sha1 (License): Likewise.
98417         * modules/memxor (License): Likewise.
98419 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
98420         and Bruno Haible  <bruno@clisp.org>
98422         * NEWS: Describe interface changes to human, xstrtol.
98423         * lib/human.h: Include <xstrtol.h>.
98424         (human_options): Return enum strtol_error, not int.  Remove
98425         bool arg; take int * instead.
98426         * lib/human.c: Don't include "gettext.h".
98427         (_): Remove; no longer used.
98428         Don't include <xstrtol.h>, since human.h does it.
98429         (human_options): Adjust to abovementioned interface changes.
98430         Do not report error to stderr; that's now the caller's
98431         responsibility.
98432         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
98433         interface change.
98434         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
98435         Str, Argument_type_string.  All uses changed.  Put " argument"
98436         in diagnostics to make them clearer.  Change wording of suffix
98437         message for clarity.
98438         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
98439         Argument_type_string.
98440         (STRTOL_FATAL_WARN): Remove; no longer used.
98441         * modules/human (Depends-on): Remove gettext-h.
98443 2007-08-06  Simon Josefsson  <simon@josefsson.org>
98445         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
98447 2007-07-31  Bruno Haible  <bruno@clisp.org>
98449         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
98450         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
98451         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
98453 2007-07-31  Bruno Haible  <bruno@clisp.org>
98455         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
98456         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
98458 2007-07-30  Bruno Haible  <bruno@clisp.org>
98460         * modules/base64 (License): Use the synonymous term "LGPLv2+".
98461         * modules/c-ctype (License): Likewise.
98462         * modules/c-strcase (License): Likewise.
98463         * modules/check-version (License): Likewise.
98464         * modules/iconv (License): Likewise.
98465         * modules/iconv_open (License): Likewise.
98466         * modules/read-file (License): Likewise.
98467         * modules/striconv (License): Likewise.
98468         * modules/strverscmp (License): Likewise.
98469         * modules/vasprintf (License): Likewise.
98470         * modules/crypto/des (License): Likewise.
98471         * modules/crypto/gc (License): Likewise.
98472         * modules/crypto/gc-arcfour (License): Likewise.
98473         * modules/crypto/gc-arctwo (License): Likewise.
98474         * modules/crypto/gc-des (License): Likewise.
98475         * modules/crypto/gc-hmac-md5 (License): Likewise.
98476         * modules/crypto/gc-hmac-sha1 (License): Likewise.
98477         * modules/crypto/gc-md2 (License): Likewise.
98478         * modules/crypto/gc-md4 (License): Likewise.
98479         * modules/crypto/gc-md5 (License): Likewise.
98480         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
98481         * modules/crypto/gc-random (License): Likewise.
98482         * modules/crypto/gc-rijndael (License): Likewise.
98483         * modules/crypto/gc-sha1 (License): Likewise.
98484         * modules/crypto/md2 (License): Likewise.
98485         * modules/crypto/md4 (License): Likewise.
98487 2007-07-30  Jim Meyering  <jim@meyering.net>
98489         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
98490         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
98491         it has valid stat data.  This bug would cause du not to count the
98492         sizes of inaccessible directories.
98493         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
98494         in <http://bugzilla.redhat.com/250077>.
98496 2007-07-25  Peter O'Gorman  <peter@pogma.com>
98497             Bruno Haible  <bruno@clisp.org>
98499         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
98500         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
98501         #include_next, gives a diagnostic about it, but reports no error in
98502         the exit code.
98503         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
98505 2007-07-24  Ben Pfaff  <blp@gnu.org>
98507         Improve name: "count-one-bits" is better than "popcount".
98508         * MODULES.html.sh: Update name.
98509         * lib/popcount.h: Renamed lib/count-one-bits.h.
98510         (popcount): Renamed count_one_bits.
98511         (popcountl): Renamed count_one_bits_l.
98512         (popcountll): Renamed count_one_bits_ll.
98513         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
98514         * modules/popcount: Renamed module/count-one-bits.
98515         * modules/popcount-tests: Renamed module/count-one-bits-tests.
98516         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
98518 2007-07-23  Ben Pfaff  <blp@gnu.org>
98520         * lib/popcount.h (popcount32): Reduce size of constants, to allow
98521         better code generation, and add U to large constants to avoid
98522         warnings, in non-GCC case.
98523         Suggested by Bruno Haible.
98525 2007-07-23  Ben Pfaff  <blp@gnu.org>
98527         * lib/popcount.h: Use verify_true instead of if...abort.
98528         * modules/popcount: Depend on verify module.
98529         Suggested by Jim Meyering.
98531 2007-07-23  Bruno Haible  <bruno@clisp.org>
98533         * gnulib-tool (func_import): Create a .cvsignore file also when the
98534         directory is not yet in CVS but the toplevel directory is. When
98535         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
98536         Reported by Karl Berry.
98538 2007-07-22  Ben Pfaff  <blp@gnu.org>
98540         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
98541         case.
98542         Suggested by Eric Blake.
98544 2007-07-22  Ben Pfaff  <blp@gnu.org>
98546         New module: popcount.
98547         * MODULES.html.sh: Add popcount.
98548         * modules/popcount: New file.
98549         * modules/popcount-tests: New file.
98550         * tests/test-popcount.c: New file.
98551         * lib/popcount.h: New file.
98552         * m4/popcount.m4: New file.
98554 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
98556         * build-aux/announce-gen: Update to GPLv3.
98558         * build-aux/config.guess: Update from config.
98560 2007-07-21  Bruno Haible  <bruno@clisp.org>
98562         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
98563         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
98565 2007-07-20  Jim Meyering  <jim@meyering.net>
98567         * check-module: Diagnose a self-dependency.
98569 2007-07-19  Bruno Haible  <bruno@clisp.org>
98571         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
98572         empty.
98573         Reported by Eric Blake.
98575 2007-07-18  Bruno Haible  <bruno@clisp.org>
98577         * gnulib-tool: New options --po-base, --po-domain.
98578         (func_usage): Document them.
98579         (pobase, po_domain): New variables.
98580         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
98581         DEFAULT_TEXT_DOMAIN.
98582         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
98583         (func_import): Consider pobase and po_domain. Create a po/ directory.
98584         (func_create_testdir): Set pobase and po_domain to empty.
98585         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
98586         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
98588 2007-07-18  Bruno Haible  <bruno@clisp.org>
98590         * gnulib-tool (func_get_automake_snippet): Synthesize also an
98591         EXTRA_DIST augmentation for files in build-aux/.
98593 2007-07-16  Bruno Haible  <bruno@clisp.org>
98595         * modules/lseek (License): Use the synonymous term "LGPLv2+".
98596         * modules/getdelim (License): Likewise.
98598 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98600         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
98601         * modules/d-type (License): Likewise.
98602         * modules/extensions (License): Likewise.
98603         * modules/fnmatch (License): Likewise.
98604         * modules/fseeko (License): Likewise.
98605         * modules/getaddrinfo (License): Likewise.
98606         * modules/getline (License): Likewise.
98607         * modules/getlogin_r (License): Likewise.
98608         * modules/getpass (License): Likewise.
98609         * modules/gettimeofday (License): Likewise.
98610         * modules/glob (License): Likewise.
98611         * modules/inet_ntop (License): Likewise.
98612         * modules/malloc (License): Likewise.
98613         * modules/malloca (License): Likewise.
98614         * modules/memmem (License): Likewise.
98615         * modules/mempcpy (License): Likewise.
98616         * modules/memset (License): Likewise.
98617         * modules/minmax (License): Likewise.
98618         * modules/mktime (License): Likewise.
98619         * modules/netinet_in (License): Likewise.
98620         * modules/pathmax (License): Likewise.
98621         * modules/poll (License): Likewise.
98622         * modules/regex (License): Likewise.
98623         * modules/snprintf (License): Likewise.
98624         * modules/stdbool (License): Likewise.
98625         * modules/stdint (License): Likewise.
98626         * modules/stdio (License): Likewise.
98627         * modules/strcase (License): Likewise.
98628         * modules/strcasestr (License): Likewise.
98629         * modules/strdup (License): Likewise.
98630         * modules/string (License): Likewise.
98631         * modules/strndup (License): Likewise.
98632         * modules/strnlen (License): Likewise.
98633         * modules/strpbrk (License): Likewise.
98634         * modules/strptime (License): Likewise.
98635         * modules/strsep (License): Likewise.
98636         * modules/sys_select (License): Likewise.
98637         * modules/sys_socket (License): Likewise.
98638         * modules/sys_stat (License): Likewise.
98639         * modules/sys_time (License): Likewise.
98640         * modules/time (License): Likewise.
98641         * modules/time_r (License): Likewise.
98642         * modules/timegm (License): Likewise.
98643         * modules/unistd (License): Likewise.
98644         * modules/vsnprintf (License): Likewise.
98645         * modules/wctype (License): Likewise.
98647 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98649         * modules/argz (License): LGPLv2+.
98651 2007-07-15  Karl Berry  <karl@gnu.org>
98653         * doc/gnulib.texi: revise node structure per new fdl.texi.
98655 2007-07-14  Bruno Haible  <bruno@clisp.org>
98657         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
98658         the output file.
98659         * lib/uniname/uninames.h: Regenerated.
98661 2007-07-14  Karl Berry  <karl@gnu.org>
98663         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
98664         omitting sectioning and index commands.
98666 2007-07-13  Bruno Haible  <bruno@clisp.org>
98668         New gnulib-tool option --more-symlinks.
98669         * gnulib-tool (func_usage): Document --more-symlinks.
98670         (do_copyrights): New variable.
98671         Recognize option --more-symlinks.
98672         (func_import): Don't add a copyright notice transform to
98673         sed_transform_lib_file if do_copyrights is empty.
98675 2007-07-13  Bruno Haible  <bruno@clisp.org>
98677         * lib/vasnprintf.c (decimal_point_char): Define also if
98678         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
98679         && !NEED_PRINTF_DIRECTIVE_A.
98680         Reported by Clemens Koller <clemens.koller@anagramm.de> via
98681         Gary V. Vaughan <gary@gnu.org>.
98683 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
98685         * lib/inttypes_.h: Undo previous change, since it was fixed
98686         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
98688 2007-07-13  Bruno Haible  <bruno@clisp.org>
98690         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
98691         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
98693 2007-07-13  Jim Meyering  <jim@meyering.net>
98695         df: Don't fail for Tru64's "file-on-file mount".
98696         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
98697         so we fall through and use statfs instead.  Details here:
98698         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
98699         Reported by Albert Chin.
98701 2007-07-13  Bruno Haible  <bruno@clisp.org>
98703         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
98704         * modules/configmake (License): Likewise.
98705         * modules/gettext (License): Likewise.
98706         * modules/gettext-h (License): Likewise.
98707         * modules/include_next (License): Likewise.
98708         * modules/link-warning (License): Likewise.
98709         * modules/localcharset (License): Likewise.
98710         * modules/localename (License): Likewise.
98711         * modules/lock (License): Likewise.
98712         * modules/relocatable-lib-lgpl (License): Likewise.
98713         * modules/size_max (License): Likewise.
98714         * modules/vasnprintf (License): Likewise.
98715         * modules/wchar (License): Likewise.
98716         * modules/xsize (License): Likewise.
98718 2007-07-13  Bruno Haible  <bruno@clisp.org>
98720         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
98721         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
98723 2007-07-12  Bruno Haible  <bruno@clisp.org>
98725         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
98726         in the modules files.
98728 2007-07-11  Karl Berry  <karl@gnu.org>
98730         * MODULES.html.sh (func_module): use
98731          sed -e '\|^'"${includefile}"'$|d'
98732          instead of /.../d, to avoid errors on $includefile's containing /.
98734 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
98736         * gnulib-tool (func_import): Avoid duplication of --avoid
98737         statements
98738         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
98739         names to `_' in variable names.
98741 2007-07-10  Eric Blake  <ebb9@byu.net>
98743         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
98744         * NEWS: Document this change.
98746 2007-07-08  Bruno Haible  <bruno@clisp.org>
98748         Update to Unicode 5.0.
98749         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
98750         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
98751         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
98752         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
98753         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
98754         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
98755         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
98756         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
98757         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
98758         U+10A3F, U+1D242..U+1D244.
98759         (nonspacing_table_ind): Update.
98760         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
98761         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
98763 2007-07-08  Bruno Haible  <bruno@clisp.org>
98765         Update to Unicode 5.0.
98766         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
98767         code transform. Extend the name index field of unicode_name_to_code and
98768         unicode_code_to_name from 16 to 24 bits.
98769         * lib/uniname/uniname.c (unicode_character_name,
98770         unicode_name_character): Add the range 0x12xxx to the code transform.
98771         * lib/uniname/uninames.h: Regenerated.
98772         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
98774 2007-07-07  Bruno Haible  <bruno@clisp.org>
98776         * modules/wcwidth-tests: New file.
98777         * tests/test-wcwidth.c: New file.
98779         Work around MacOS X wcwidth() bug.
98780         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
98781         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
98782         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
98783         original wcwidth in non-UTF-8 locales.
98784         * modules/wcwidth (Depends-on): Add localcharset, streq,
98785         uniwidth/width.
98786         * doc/functions/wcwidth.texi: Update.
98788 2007-07-07  Bruno Haible  <bruno@clisp.org>
98790         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
98791         (wcwidth): New declaration.
98792         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
98793         macros.
98794         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
98795         here. Prepare for creating <wchar.h> unconditionally.
98796         * modules/wchar (Depends-on): Add link-warning.
98797         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
98798         REPLACE_WCWIDTH, and GL_LINK_WARNING.
98799         * lib/wcwidth.h: Remove file.
98800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
98801         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
98802         * modules/wcwidth (Files): Remove lib/wcwidth.h.
98803         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
98804         (Include): Replace wcwidth.h with <wchar.h>.
98805         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
98806         * lib/mbchar.h: Don't include wcwidth.h.
98807         * lib/mbswidth.c: Likewise.
98808         * NEWS: Mention the change.
98810 2007-07-07  Bruno Haible  <bruno@clisp.org>
98812         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
98813         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
98814         definition with an external declaration.
98815         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
98816         defined as a function. Remove AC_C_INLINE requirement.
98817         * modules/wcwidth (Files): Add lib/wcwidth.c.
98818         (Makefile.am): Remove redundant statement.
98820 2007-07-07  Bruno Haible  <bruno@clisp.org>
98822         * MODULES.html.sh (Unicode string functions): Add the new modules.
98824         * tests/uniwidth/test-u32-strwidth.c: New file.
98825         * modules/uniwidth/u32-strwidth-tests: New file.
98827         * lib/uniwidth/u32-strwidth.c: New file.
98828         * modules/uniwidth/u32-strwidth: New file.
98830         * tests/uniwidth/test-u16-strwidth.c: New file.
98831         * modules/uniwidth/u16-strwidth-tests: New file.
98833         * lib/uniwidth/u16-strwidth.c: New file.
98834         * modules/uniwidth/u16-strwidth: New file.
98836         * tests/uniwidth/test-u8-strwidth.c: New file.
98837         * modules/uniwidth/u8-strwidth-tests: New file.
98839         * lib/uniwidth/u8-strwidth.c: New file.
98840         * modules/uniwidth/u8-strwidth: New file.
98842         * tests/uniwidth/test-u32-width.c: New file.
98843         * modules/uniwidth/u32-width-tests: New file.
98845         * lib/uniwidth/u32-width.c: New file.
98846         * modules/uniwidth/u32-width: New file.
98848         * tests/uniwidth/test-u16-width.c: New file.
98849         * modules/uniwidth/u16-width-tests: New file.
98851         * lib/uniwidth/u16-width.c: New file.
98852         * modules/uniwidth/u16-width: New file.
98854         * tests/uniwidth/test-u8-width.c: New file.
98855         * modules/uniwidth/u8-width-tests: New file.
98857         * lib/uniwidth/u8-width.c: New file.
98858         * modules/uniwidth/u8-width: New file.
98860         * tests/uniwidth/test-uc_width.c: New file.
98861         * modules/uniwidth/width-tests: New file.
98863         * lib/uniwidth/width.c: New file, from GNU libiconv.
98864         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
98865         * modules/uniwidth/width: New file.
98867         * lib/uniwidth.h: New file, from GNU libiconv.
98868         * modules/uniwidth/base: New file.
98870 2007-07-07  Bruno Haible  <bruno@clisp.org>
98872         * lib/uniname.h: New file, from GNU gettext.
98873         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
98874         * lib/uniname/uninames.h: New file, from GNU gettext.
98875         * lib/uniname/uniname.c: New file, from GNU gettext.
98876         * tests/uniname/test-uninames.sh: New file.
98877         * tests/uniname/test-uninames.c: New file, from GNU gettext.
98878         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
98879         * modules/uniname/base: New file.
98880         * modules/uniname/uniname: New file.
98881         * modules/uniname/uniname-tests: New file.
98882         * MODULES.html.sh (Unicode string functions): Add the new modules.
98884 2007-07-06  Bruno Haible  <bruno@clisp.org>
98886         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
98888 2007-07-06  Bruno Haible  <bruno@clisp.org>
98890         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
98891         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
98892         includes <cygwin/sys_time.h> which includes <sys/select.h> which
98893         include <sys/time.h>.
98894         Reported by Eric Blake.
98896 2007-07-06  Eric Blake  <ebb9@byu.net>
98898         Fix testing canonicalize on cygwin.
98899         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
98900         Revert patch from 2007-06-19.
98901         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
98902         canonicalize module is also in use.
98903         * tests/test-canonicalize.c: New file.
98904         * tests/test-canonicalize.sh: Likewise.
98905         * modules/canonicalize-tests: Likewise.
98907 2007-07-06  Jim Meyering  <jim@meyering.net>
98909         * lib/getugroups.c (getugroups): Detect getgrent failure.
98910         Adjust comment to reflect reality: this function may return -1.
98912 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
98914         * build-aux/bootstrap (TP_URL,get_translations): Update to use
98915         the new TP address.
98916         (usage): Fix typo
98917         (gnulib_mk): New variable.
98919 2007-07-05  Jim Meyering  <jim@meyering.net>
98921         Don't let endgrent clobber errno, no matter how improbable.
98922         * lib/getugroups.c (getugroups): Save and restore errno around
98923         endgrent call.
98925         Close the group DB even when failing with 2^31 or more members.
98926         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
98928 2007-07-04  Jim Meyering  <jim@meyering.net>
98930         * lib/getugroups.h: New file.
98931         * lib/getugroups.c: Include "getugroups.h".
98932         Remove uses of "register" keyword.
98933         Move local variable, "cp", down into scope where used.
98934         Give "username" parameter the "const" attribute.
98935         * modules/getugroups (Files): Add lib/getugroups.h
98937 2007-07-04  Karl Berry  <karl@gnu.org>
98939         * MODULES.html.sh (func_all_modules): Complete rename of
98940         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
98942 2007-07-02  Bruno Haible  <bruno@clisp.org>
98944         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
98945         mode, when inttypes.h comes from gnulib.
98946         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
98948 2007-07-02  Simon Josefsson  <simon@josefsson.org>
98950         * NEWS: Mention lgpl module name change.
98952         * modules/lgpl-2.1: Renamed from lgpl.
98954         * NEWS: Mention gpl module name change.
98956         * modules/gpl-3.0: New file, based on gpl-2.0.
98958         * modules/gpl-2.0: Renamed from gpl.
98960         * modules/gpl: Fix filename, doc/gpl.texi is now found at
98961         doc/gpl-2.0.texi.
98963 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
98965         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
98966         #define __STDC_LIMIT_MACROS temporarily while including
98967         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
98968         Problem reported by Joel E. Denny in
98969         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
98971 2007-07-01  Bruno Haible  <bruno@clisp.org>
98973         * lib/unistdio.h: New file.
98974         * lib/unistdio/u-asnprintf.h: New file.
98975         * lib/unistdio/u-asprintf.h: New file.
98976         * lib/unistdio/u-printf-args.c: New file.
98977         * lib/unistdio/u-printf-args.h: New file.
98978         * lib/unistdio/u-printf-parse.h: New file.
98979         * lib/unistdio/u-snprintf.h: New file.
98980         * lib/unistdio/u-sprintf.h: New file.
98981         * lib/unistdio/u-vasprintf.h: New file.
98982         * lib/unistdio/u-vsnprintf.h: New file.
98983         * lib/unistdio/u-vsprintf.h: New file.
98984         * lib/unistdio/ulc-asnprintf.c: New file.
98985         * lib/unistdio/ulc-asprintf.c: New file.
98986         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
98987         * lib/unistdio/ulc-printf-parse.c: New file.
98988         * lib/unistdio/ulc-snprintf.c: New file.
98989         * lib/unistdio/ulc-sprintf.c: New file.
98990         * lib/unistdio/ulc-vasnprintf.c: New file.
98991         * lib/unistdio/ulc-vasprintf.c: New file.
98992         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
98993         * lib/unistdio/ulc-vsnprintf.c: New file.
98994         * lib/unistdio/ulc-vsprintf.c: New file.
98995         * lib/unistdio/u8-asnprintf.c: New file.
98996         * lib/unistdio/u8-asprintf.c: New file.
98997         * lib/unistdio/u8-printf-parse.c: New file.
98998         * lib/unistdio/u8-snprintf.c: New file.
98999         * lib/unistdio/u8-sprintf.c: New file.
99000         * lib/unistdio/u8-vasnprintf.c: New file.
99001         * lib/unistdio/u8-vasprintf.c: New file.
99002         * lib/unistdio/u8-vsnprintf.c: New file.
99003         * lib/unistdio/u8-vsprintf.c: New file.
99004         * lib/unistdio/u8-u8-asnprintf.c: New file.
99005         * lib/unistdio/u8-u8-asprintf.c: New file.
99006         * lib/unistdio/u8-u8-snprintf.c: New file.
99007         * lib/unistdio/u8-u8-sprintf.c: New file.
99008         * lib/unistdio/u8-u8-vasnprintf.c: New file.
99009         * lib/unistdio/u8-u8-vasprintf.c: New file.
99010         * lib/unistdio/u8-u8-vsnprintf.c: New file.
99011         * lib/unistdio/u8-u8-vsprintf.c: New file.
99012         * lib/unistdio/u16-asnprintf.c: New file.
99013         * lib/unistdio/u16-asprintf.c: New file.
99014         * lib/unistdio/u16-printf-parse.c: New file.
99015         * lib/unistdio/u16-snprintf.c: New file.
99016         * lib/unistdio/u16-sprintf.c: New file.
99017         * lib/unistdio/u16-vasnprintf.c: New file.
99018         * lib/unistdio/u16-vasprintf.c: New file.
99019         * lib/unistdio/u16-vsnprintf.c: New file.
99020         * lib/unistdio/u16-vsprintf.c: New file.
99021         * lib/unistdio/u16-u16-asnprintf.c: New file.
99022         * lib/unistdio/u16-u16-asprintf.c: New file.
99023         * lib/unistdio/u16-u16-snprintf.c: New file.
99024         * lib/unistdio/u16-u16-sprintf.c: New file.
99025         * lib/unistdio/u16-u16-vasnprintf.c: New file.
99026         * lib/unistdio/u16-u16-vasprintf.c: New file.
99027         * lib/unistdio/u16-u16-vsnprintf.c: New file.
99028         * lib/unistdio/u16-u16-vsprintf.c: New file.
99029         * lib/unistdio/u32-asnprintf.c: New file.
99030         * lib/unistdio/u32-asprintf.c: New file.
99031         * lib/unistdio/u32-printf-parse.c: New file.
99032         * lib/unistdio/u32-snprintf.c: New file.
99033         * lib/unistdio/u32-sprintf.c: New file.
99034         * lib/unistdio/u32-vasnprintf.c: New file.
99035         * lib/unistdio/u32-vasprintf.c: New file.
99036         * lib/unistdio/u32-vsnprintf.c: New file.
99037         * lib/unistdio/u32-vsprintf.c: New file.
99038         * lib/unistdio/u32-u32-asnprintf.c: New file.
99039         * lib/unistdio/u32-u32-asprintf.c: New file.
99040         * lib/unistdio/u32-u32-snprintf.c: New file.
99041         * lib/unistdio/u32-u32-sprintf.c: New file.
99042         * lib/unistdio/u32-u32-vasnprintf.c: New file.
99043         * lib/unistdio/u32-u32-vasprintf.c: New file.
99044         * lib/unistdio/u32-u32-vsnprintf.c: New file.
99045         * lib/unistdio/u32-u32-vsprintf.c: New file.
99046         * tests/unistdio/test-ulc-asnprintf1.c: New file.
99047         * tests/unistdio/test-ulc-asnprintf1.h: New file.
99048         * tests/unistdio/test-ulc-printf1.h: New file.
99049         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
99050         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
99051         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
99052         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
99053         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
99054         * tests/unistdio/test-ulc-vasprintf1.c: New file.
99055         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
99056         * tests/unistdio/test-ulc-vsprintf1.c: New file.
99057         * tests/unistdio/test-u8-asnprintf1.c: New file.
99058         * tests/unistdio/test-u8-asnprintf1.h: New file.
99059         * tests/unistdio/test-u8-printf1.h: New file.
99060         * tests/unistdio/test-u8-vasnprintf1.c: New file.
99061         * tests/unistdio/test-u8-vasnprintf2.c: New file.
99062         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
99063         * tests/unistdio/test-u8-vasnprintf3.c: New file.
99064         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
99065         * tests/unistdio/test-u8-vasprintf1.c: New file.
99066         * tests/unistdio/test-u8-vsnprintf1.c: New file.
99067         * tests/unistdio/test-u8-vsprintf1.c: New file.
99068         * tests/unistdio/test-u16-asnprintf1.c: New file.
99069         * tests/unistdio/test-u16-asnprintf1.h: New file.
99070         * tests/unistdio/test-u16-printf1.h: New file.
99071         * tests/unistdio/test-u16-vasnprintf1.c: New file.
99072         * tests/unistdio/test-u16-vasnprintf2.c: New file.
99073         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
99074         * tests/unistdio/test-u16-vasnprintf3.c: New file.
99075         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
99076         * tests/unistdio/test-u16-vasprintf1.c: New file.
99077         * tests/unistdio/test-u16-vsnprintf1.c: New file.
99078         * tests/unistdio/test-u16-vsprintf1.c: New file.
99079         * tests/unistdio/test-u32-asnprintf1.c: New file.
99080         * tests/unistdio/test-u32-asnprintf1.h: New file.
99081         * tests/unistdio/test-u32-printf1.h: New file.
99082         * tests/unistdio/test-u32-vasnprintf1.c: New file.
99083         * tests/unistdio/test-u32-vasnprintf2.c: New file.
99084         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
99085         * tests/unistdio/test-u32-vasnprintf3.c: New file.
99086         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
99087         * tests/unistdio/test-u32-vasprintf1.c: New file.
99088         * tests/unistdio/test-u32-vsnprintf1.c: New file.
99089         * tests/unistdio/test-u32-vsprintf1.c: New file.
99090         * modules/unistdio/base: New file.
99091         * modules/unistdio/u-printf-args: New file.
99092         * modules/unistdio/ulc-asnprintf: New file.
99093         * modules/unistdio/ulc-asprintf: New file.
99094         * modules/unistdio/ulc-fprintf: New file.
99095         * modules/unistdio/ulc-printf-parse: New file.
99096         * modules/unistdio/ulc-snprintf: New file.
99097         * modules/unistdio/ulc-sprintf: New file.
99098         * modules/unistdio/ulc-vasnprintf: New file.
99099         * modules/unistdio/ulc-vasprintf: New file.
99100         * modules/unistdio/ulc-vfprintf: New file.
99101         * modules/unistdio/ulc-vsnprintf: New file.
99102         * modules/unistdio/ulc-vsprintf: New file.
99103         * modules/unistdio/u8-asnprintf: New file.
99104         * modules/unistdio/u8-asprintf: New file.
99105         * modules/unistdio/u8-printf-parse: New file.
99106         * modules/unistdio/u8-snprintf: New file.
99107         * modules/unistdio/u8-sprintf: New file.
99108         * modules/unistdio/u8-vasnprintf: New file.
99109         * modules/unistdio/u8-vasprintf: New file.
99110         * modules/unistdio/u8-vsnprintf: New file.
99111         * modules/unistdio/u8-vsprintf: New file.
99112         * modules/unistdio/u8-u8-asnprintf: New file.
99113         * modules/unistdio/u8-u8-asprintf: New file.
99114         * modules/unistdio/u8-u8-snprintf: New file.
99115         * modules/unistdio/u8-u8-sprintf: New file.
99116         * modules/unistdio/u8-u8-vasnprintf: New file.
99117         * modules/unistdio/u8-u8-vasprintf: New file.
99118         * modules/unistdio/u8-u8-vsnprintf: New file.
99119         * modules/unistdio/u8-u8-vsprintf: New file.
99120         * modules/unistdio/u16-asnprintf: New file.
99121         * modules/unistdio/u16-asprintf: New file.
99122         * modules/unistdio/u16-printf-parse: New file.
99123         * modules/unistdio/u16-snprintf: New file.
99124         * modules/unistdio/u16-sprintf: New file.
99125         * modules/unistdio/u16-vasnprintf: New file.
99126         * modules/unistdio/u16-vasprintf: New file.
99127         * modules/unistdio/u16-vsnprintf: New file.
99128         * modules/unistdio/u16-vsprintf: New file.
99129         * modules/unistdio/u16-u16-asnprintf: New file.
99130         * modules/unistdio/u16-u16-asprintf: New file.
99131         * modules/unistdio/u16-u16-snprintf: New file.
99132         * modules/unistdio/u16-u16-sprintf: New file.
99133         * modules/unistdio/u16-u16-vasnprintf: New file.
99134         * modules/unistdio/u16-u16-vasprintf: New file.
99135         * modules/unistdio/u16-u16-vsnprintf: New file.
99136         * modules/unistdio/u16-u16-vsprintf: New file.
99137         * modules/unistdio/u32-asnprintf: New file.
99138         * modules/unistdio/u32-asprintf: New file.
99139         * modules/unistdio/u32-printf-parse: New file.
99140         * modules/unistdio/u32-snprintf: New file.
99141         * modules/unistdio/u32-sprintf: New file.
99142         * modules/unistdio/u32-vasnprintf: New file.
99143         * modules/unistdio/u32-vasprintf: New file.
99144         * modules/unistdio/u32-vsnprintf: New file.
99145         * modules/unistdio/u32-vsprintf: New file.
99146         * modules/unistdio/u32-u32-asnprintf: New file.
99147         * modules/unistdio/u32-u32-asprintf: New file.
99148         * modules/unistdio/u32-u32-snprintf: New file.
99149         * modules/unistdio/u32-u32-sprintf: New file.
99150         * modules/unistdio/u32-u32-vasnprintf: New file.
99151         * modules/unistdio/u32-u32-vasprintf: New file.
99152         * modules/unistdio/u32-u32-vsnprintf: New file.
99153         * modules/unistdio/u32-u32-vsprintf: New file.
99154         * modules/unistdio/ulc-asnprintf-tests: New file.
99155         * modules/unistdio/ulc-vasnprintf-tests: New file.
99156         * modules/unistdio/ulc-vasprintf-tests: New file.
99157         * modules/unistdio/ulc-vsnprintf-tests: New file.
99158         * modules/unistdio/ulc-vsprintf-tests: New file.
99159         * modules/unistdio/u8-asnprintf-tests: New file.
99160         * modules/unistdio/u8-vasnprintf-tests: New file.
99161         * modules/unistdio/u8-vasprintf-tests: New file.
99162         * modules/unistdio/u8-vsnprintf-tests: New file.
99163         * modules/unistdio/u8-vsprintf-tests: New file.
99164         * modules/unistdio/u16-asnprintf-tests: New file.
99165         * modules/unistdio/u16-vasnprintf-tests: New file.
99166         * modules/unistdio/u16-vasprintf-tests: New file.
99167         * modules/unistdio/u16-vsnprintf-tests: New file.
99168         * modules/unistdio/u16-vsprintf-tests: New file.
99169         * modules/unistdio/u32-asnprintf-tests: New file.
99170         * modules/unistdio/u32-vasnprintf-tests: New file.
99171         * modules/unistdio/u32-vasprintf-tests: New file.
99172         * modules/unistdio/u32-vsnprintf-tests: New file.
99173         * modules/unistdio/u32-vsprintf-tests: New file.
99174         * MODULES.html.sh (Unicode string functions): Add the new modules.
99176 2007-07-01  Bruno Haible  <bruno@clisp.org>
99178         * lib/sprintf.c (sprintf): Limit the available length estimation,
99179         to avoid address wraparound.
99180         * lib/vsprintf.c (vsprintf): Likewise.
99181         * modules/sprintf-posix (Dependencies): Add stdint.
99182         * modules/vsprintf-posix (Dependencies): Likewise.
99184 2007-07-01  Bruno Haible  <bruno@clisp.org>
99186         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
99187         Windows PATH as well. Conservative double-quoting. Comments.
99189 2007-07-01  Bruno Haible  <bruno@clisp.org>
99190             Eric Blake  <ebb9@byu.net>
99191             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99193         * gnulib-tool (self_abspathname): Fix algorithm to cope with
99194         empty components in $PATH, denoting '.'.
99196 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99198         * gnulib-tool: Fix indentation.
99199         (func_create_megatestdir): Likewise.
99200         Report by Bruno Haible.
99202 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99204         Sync from Automake.
99205         * build-aux/gnupload: Fix shell portability issues with for loops.
99206         Report by Karl Berry.
99208 2007-06-29  Simon Josefsson  <simon@josefsson.org>
99210         * build-aux/maint.mk (POURL): Use translationproject.org.
99212 2007-06-27  Simon Josefsson  <simon@josefsson.org>
99213             Bruno Haible  <bruno@clisp.org>
99215         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
99216         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
99217         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
99218         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
99219         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
99221 2007-06-27  Bruno Haible  <bruno@clisp.org>
99223         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
99224         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
99226 2007-06-26  Karl Berry  <karl@gnu.org>
99228         * MODULES.html.sh: remove xreadlink-with-size.
99230 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99232         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
99233         method that I hope also handles the double-include problem noted
99234         by Bruno Haible in
99235         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
99237 2007-06-23  Bruno Haible  <bruno@clisp.org>
99239         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99240         Don't let the 'mostlyclean' target fail if the last subdirectory could
99241         not be removed.
99242         Reported by Karl Berry.
99244 2007-06-23  Bruno Haible  <bruno@clisp.org>
99246         * gnulib-tool (echo): Add a speedier workaround for ksh.
99247         * tests/test-echo.sh: Likewise.
99249 2007-06-23  Bruno Haible  <bruno@clisp.org>
99251         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
99252         * tests/test-echo.sh: Likewise.
99254 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99256         * gnulib-tool (IFS): Initialize early, so we don't set it to
99257         empty later.
99258         (self_abspathname): Rewrite algorithm to set it, reindent.
99259         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
99260         (func_create_megatestdir): Merge some sed scripts.
99262 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99264         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
99265         exposed by Sun Studio 11 cc on Solaris 8.
99267 2007-06-22  Bruno Haible  <bruno@clisp.org>
99269         * gnulib-tool (echo): Ensure the echo primitive does not interpret
99270         backslashes.
99271         * tests/test-echo.sh: New file.
99273 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99275         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
99276         simplify `sed_replace_build_aux' scripts, they are portable but
99277         echoing them with `echo' is not.
99278         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
99280 2007-06-21  Karl Berry  <karl@gnu.org>
99282         * config/srclist.txt: guess we can't handle the licenses via
99283         srclist at the moment.
99285 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
99287         * MODULES.html.sh: Add include_next.
99288         * modules/include_next: New file.
99290 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
99292         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
99293         INCLUDE_NEXT.
99294         (gl_CHECK_NEXT_HEADERS): New macro.
99295         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
99296         the obsolescent gl_ABSOLUTE_HEADER.
99297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
99298         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
99299         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
99300         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
99301         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
99302         * m4/math_h.m4 (gl_MATH_H): Likewise.
99303         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
99304         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
99305         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
99306         * m4/stdint.m4 (gl_STDINT_H): Likewise.
99307         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
99308         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
99309         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
99310         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
99311         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
99312         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
99313         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
99314         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
99315         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
99316         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
99317         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
99318         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
99319         * m4/inttypes.m4 (gl_INTTYPES_H): Define
99320         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
99321         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
99322         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
99323         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
99324         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
99325         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
99326         * lib/float_.h: Likewise.
99327         * lib/inttypes_.h: Likewise.
99328         * lib/math_.h: Likewise.
99329         * lib/search_.h: Likewise.
99330         * lib/signal_.h: Likewise.
99331         * lib/stdint_.h: Likewise.
99332         * lib/stdio_.h: Likewise.
99333         * lib/stdlib_.h: Likewise.
99334         * lib/string_.h: Likewise.
99335         * lib/sys_stat_.h: Likewise.
99336         * lib/sys_time_.h: Likewise.
99337         * lib/time_.h: Likewise.
99338         * lib/unistd_.h: Likewise.
99339         * lib/wchar_.h: Likewise.
99340         * lib/wctype_.h: Likewise.
99341         * lib/dirent_.h: Likewise.
99342         * lib/iconv_.h: Likewise.
99343         * lib/locale_.h: Likewise.
99344         * lib/netinet_in_.h: Likewise.
99345         * lib/sys_select_.h: Likewise.
99346         * lib/sys_socket_.h: Likewise.
99347         * lib/sysexits_.h: Likewise.
99348         * modules/fcntl (Depends-on): Depend on include_next, not
99349         absolute_header.
99350         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
99351         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
99352         * modules/fchdir: Likewise.
99353         * modules/float: Likewise.
99354         * modules/iconv_open: Likewise.
99355         * modules/inttypes: Likewise.
99356         * modules/locale: Likewise.
99357         * modules/math: Likewise.
99358         * modules/netinet_in: Likewise.
99359         * modules/search: Likewise.
99360         * modules/signal: Likewise.
99361         * modules/stdint: Likewise.
99362         * modules/stdio: Likewise.
99363         * modules/stdlib: Likewise.
99364         * modules/string: Likewise.
99365         * modules/sys_select: Likewise.
99366         * modules/sys_socket: Likewise.
99367         * modules/sys_stat: Likewise.
99368         * modules/sys_time: Likewise.
99369         * modules/sysexits: Likewise.
99370         * modules/time: Likewise.
99371         * modules/unistd: Likewise.
99372         * modules/wchar: Likewise.
99373         * modules/wctype: Likewise.
99374         * modules/sys_stat: Change maintainer to "all".
99375         * modules/unistd: Likewise.
99377 2007-06-20  Karl Berry  <karl@gnu.org>
99379         * config/srclist.txt: track www changes in license files.
99381 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
99383         * build-aux/bootstrap: Remove stray dot.
99384         Make sure build_aux settings are honored when linking
99385         gnulib_extra_files.
99387 2007-06-19  Eric Blake  <ebb9@byu.net>
99389         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
99390         Allow compilation on cygwin.
99392 2007-06-19  Jim Meyering  <jim@meyering.net>
99394         xreadlink-with-size: Remove module.  No longer used.
99395         Ex-callers now use xreadlink or mreadlink-with-size.
99396         * modules/xreadlink-with-size: Remove module.
99397         * lib/xreadlink-with-size.c: Remove file.
99398         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
99399         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
99400         just before the function definition *is* accurate.
99402         Eliminate one way canonicalize_filename_mode could exit.
99403         * lib/canonicalize.c (canonicalize_filename_mode):
99404         Use mreadlink_with_size, not xreadlink_with_size.
99406 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
99408         Detect porting problems to FreeBSD/arm, which has time_t wider than
99409         long int.  Original problem reported for GNU diff by Xin Li in
99410         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
99411         * modules/getdate (Depends-on): Add intprops, verify.
99412         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
99413         is an integer type no wider than long int.
99415 2007-06-18  Jim Meyering  <jim@meyering.net>
99417         New module: mreadlink-with-size.
99418         * MODULES.html.sh: Add mreadlink-with-size.
99419         * modules/mreadlink-with-size: New module
99420         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
99421         not xreadlink-with-size.
99422         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
99424 2007-06-16  Bruno Haible  <bruno@clisp.org>
99426         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
99427         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
99428         Reported by Gary V. Vaughan <gary@gnu.org>.
99430 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
99432         Revamp lchown so that it lives in unistd.h where it belongs.
99433         * lib/lchown.h: Remove.
99434         * lib/dirchownmod.c: Don't include lib/lchown.h.
99435         * lib/fchownat.c: Likewise.
99436         * lib/openat.c: Likewise.
99437         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
99438         does not follow symlinks.
99439         (EOPNOTSUPP): Define if not defined.
99440         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
99441         is defined to 0.
99442         (lchown): New decl.
99443         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
99444         Do not check for lchown decl.
99445         Set REPLACE_LCHOWN.
99446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
99447         REPLACE_LCHOWN.
99448         * modules/chown: Make it clear it follows symlinks.
99449         * modules/lchown: Make it clear it doesn't follow symlinks.
99450         (Files): Remove lib/lchown.h
99451         (Depends-on): Add unistd.
99452         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
99453         (Include): Include <unistd.h>, not "lchown.h".
99454         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
99455         REPLACE_LCHOWN.
99457 2007-06-15  Jim Meyering  <jim@meyering.net>
99459         Change license (GPL to LGPL) of fsusage and dependents.
99460         * modules/fsusage (License): Change to LGPL.
99461         * modules/full-read (License): Likewise.
99462         * modules/full-write (License): Likewise.
99463         * modules/safe-read (License): Likewise.
99464         * modules/safe-write (License): Likewise.
99466 2007-06-14  Ben Pfaff  <blp@gnu.org>
99468         Missing part of allocsa -> malloca transition.
99469         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
99470         gl_MALLOCA.
99472 2007-06-12  Bruno Haible  <bruno@clisp.org>
99474         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
99475         to ia64, x86_64, i386.
99476         Reported by Eric Blake.
99478 2007-06-12  Bruno Haible  <bruno@clisp.org>
99480         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
99481         cross-compiling to x86_64.
99483 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
99485         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
99486         glitch reported by Ralf Wildenhues in
99487         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
99489         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
99490         Vin Shelton.
99492 2007-06-11  Bruno Haible  <bruno@clisp.org>
99494         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
99495         replacement string.
99496         Reported by Eric Blake.
99498 2007-06-10  Bruno Haible  <bruno@clisp.org>
99500         Prepare vasnprintf code for use with Unicode strings.
99501         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
99502         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
99503         TYPE_U32_STRING.
99504         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
99505         a_u32_string variants.
99506         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
99507         * lib/printf-args.c: Don't include config.h and the specification
99508         header if PRINTF_FETCHARGS is already defined.
99509         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
99510         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
99511         TYPE_U16_STRING, TYPE_U32_STRING.
99512         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
99513         u16_directive, u16_directives, u32_directive, u32_directives): New
99514         types.
99515         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
99516         New declarations.
99517         * lib/printf-parse.c: Don't include config.h and the specification
99518         header if PRINTF_PARSE is already defined. Eliminate the set of
99519         parameters for WIDE_CHAR_VERSION; the user of this file must provide
99520         them now. Include c-ctype.h.
99521         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
99522         directive and CHAR_T_ONLY_ASCII.
99523         * lib/vasnprintf.c: Don't include config.h and the specification header
99524         if VASNPRINTF is already defined.
99525         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
99526         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
99527         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
99528         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
99529         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
99530         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
99531         code accordingly.
99532         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
99533         pad_ourselves also in this case, with the 'c' and 's' directives, and
99534         with a different notion of "width".
99535         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
99537 2007-06-10  Bruno Haible  <bruno@clisp.org>
99539         * modules/unistr/u32-mbsnlen: New file.
99540         * lib/unistr/u32-mbsnlen.c: New file.
99542         * modules/unistr/u16-mbsnlen: New file.
99543         * lib/unistr/u16-mbsnlen.c: New file.
99545         * modules/unistr/u8-mbsnlen: New file.
99546         * lib/unistr/u8-mbsnlen.c: New file.
99548         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
99549         declarations.
99551 2007-06-10  Bruno Haible  <bruno@clisp.org>
99553         * lib/string_.h (mbsnlen): New declaration.
99554         * lib/mbsnlen.c: New file.
99555         * m4/mbsnlen.m4: New file.
99556         * modules/mbsnlen: New file.
99557         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
99558         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
99559         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
99561 2007-06-10  Bruno Haible  <bruno@clisp.org>
99563         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
99565 2007-06-10  Bruno Haible  <bruno@clisp.org>
99567         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
99568         * lib/mbuiter.h: Likewise.
99570 2007-06-10  Bruno Haible  <bruno@clisp.org>
99572         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
99573         declaration.
99575 2007-06-10  Karl Berry  <karl@gnu.org>
99577         * config/srclist.txt: remove gettext entries, Bruno prefers
99578         to update individually.
99580 2007-06-10  Bruno Haible  <bruno@clisp.org>
99582         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
99583         'maxlen'. Ensure only length + width bytes are allocated, not
99584         length + 1 + width.
99586 2007-06-09  Bruno Haible  <bruno@clisp.org>
99588         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
99589         (CHAR_T): Remove macro.
99590         (VASNPRINTF): Update.
99592 2007-06-09  Bruno Haible  <bruno@clisp.org>
99594         * MODULES.html.sh (Unicode string functions): Add the new modules.
99596         * modules/uniconv/u32-conv-to-enc: New file.
99597         * lib/uniconv/u32-conv-to-enc.c: New file.
99598         * modules/uniconv/u32-conv-to-enc-tests: New file.
99599         * tests/uniconv/test-u32-conv-to-enc.c: New file.
99601         * modules/uniconv/u16-conv-to-enc: New file.
99602         * lib/uniconv/u16-conv-to-enc.c: New file.
99603         * lib/uniconv/u-conv-to-enc.h: New file.
99604         * modules/uniconv/u16-conv-to-enc-tests: New file.
99605         * tests/uniconv/test-u16-conv-to-enc.c: New file.
99607         * modules/uniconv/u8-conv-to-enc: New file.
99608         * lib/uniconv/u8-conv-to-enc.c: New file.
99609         * modules/uniconv/u8-conv-to-enc-tests: New file.
99610         * tests/uniconv/test-u8-conv-to-enc.c: New file.
99612         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
99613         u32_conv_to_encoding): New declarations.
99615 2007-06-09  Bruno Haible  <bruno@clisp.org>
99617         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
99619 2007-06-09  Bruno Haible  <bruno@clisp.org>
99621         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
99622         * modules/malloca: Renamed from modules/allocsa, updated.
99623         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
99624         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
99625         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
99626         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
99627         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
99628         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
99629         * modules/xmalloca: Renamed from modules/xallocsa, updated.
99630         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
99631         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
99632         * modules/c-strcasestr (Depends-on): Update.
99633         * lib/c-strcasestr.c: Update.
99634         * modules/c-strstr (Depends-on): Update.
99635         * lib/c-strstr.c: Update.
99636         * modules/canonicalize-lgpl (Depends-on): Update.
99637         * lib/canonicalize-lgpl.c: Update.
99638         * modules/clean-temp (Depends-on): Update.
99639         * lib/clean-temp.c: Update.
99640         * modules/csharpcomp (Depends-on): Update.
99641         * lib/csharpcomp.c: Update.
99642         * modules/csharpexec (Depends-on): Update.
99643         * lib/csharpexec.c: Update.
99644         * modules/javacomp (Depends-on): Update.
99645         * lib/javacomp.c: Update.
99646         * modules/javaexec (Depends-on): Update.
99647         * lib/javaexec.c: Update.
99648         * modules/mbscasestr (Depends-on): Update.
99649         * lib/mbscasestr.c: Update.
99650         * modules/mbsstr (Depends-on): Update.
99651         * lib/mbsstr.c: Update.
99652         * modules/setenv (Depends-on): Update.
99653         * lib/setenv.c: Update.
99654         * modules/strcasestr (Depends-on): Update.
99655         * lib/strcasestr.c: Update.
99656         * modules/striconveha (Depends-on): Update.
99657         * lib/striconveha.c: Update.
99658         * modules/relocatable-prog-wrapper (Files): Update.
99659         * lib/relocwrapper.c: Update.
99660         * build-aux/install-reloc: Update.
99661         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
99663 2007-06-08  Bruno Haible  <bruno@clisp.org>
99665         Port to uClibc.
99666         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
99667         * lib/fpurge.c (fpurge): Likewise.
99668         * lib/freading.c (freading): Likewise.
99669         * lib/fseeko.c (rpl_fseeko): Likewise.
99670         * lib/fseterr.c (fseterr): Likewise.
99671         * lib/fwriting.c (fwriting): Likewise.
99672         * tests/test-fflush.c (main): Avoid a failure on uClibc.
99674 2007-06-08  Bruno Haible  <bruno@clisp.org>
99676         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
99677         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
99678         * modules/gettext (Files): Add m4/intlmacosx.m4.
99680 2007-06-07  Bruno Haible  <bruno@clisp.org>
99682         * modules/localename-tests: New file.
99683         * tests/test-localename.c: New file.
99685         New module 'localename'.
99686         * lib/localename.h: New file.
99687         * lib/localename.c: New file, from GNU gettext.
99688         * m4/localename.m4: New file.
99689         * modules/localename: New file.
99691 2007-06-07  Bruno Haible  <bruno@clisp.org>
99693         Work around the lack of <wchar.h> on some builds of uClibc.
99694         * doc/headers/wchar.texi: Update.
99695         * lib/wchar_.h: Include <wchar.h> only if it exists.
99696         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
99697         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
99698         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
99699         doesn't exist.
99700         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
99701         * modules/mbfile (Depends-on): Add wchar.
99702         * modules/mbiter (Depends-on): Likewise.
99703         * modules/mbuiter (Depends-on): Likewise.
99704         Reported by Simon Josefsson.
99706 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
99708         Work around problem reported by Steven M. Schweda in
99709         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
99710         Tru64 5.1B with the Compaq compiler environment installed declares
99711         an 'isblank' function but does not define it in the C library.
99712         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
99713         * lib/regex_internal.h (isblank): Likewise.
99714         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
99715         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
99717 2007-06-05  Bruno Haible  <bruno@clisp.org>
99719         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
99720         ia64.
99721         * modules/printf-safe: New file.
99722         * modules/fprintf-posix (Depends-on): Add printf-safe.
99723         * modules/printf-posix (Depends-on): Likewise.
99724         * modules/snprintf-posix (Depends-on): Likewise.
99725         * modules/sprintf-posix (Depends-on): Likewise.
99726         * modules/vasnprintf-posix (Depends-on): Likewise.
99727         * modules/vasprintf-posix (Depends-on): Likewise.
99728         * modules/vfprintf-posix (Depends-on): Likewise.
99729         * modules/vprintf-posix (Depends-on): Likewise.
99730         * modules/vsnprintf-posix (Depends-on): Likewise.
99731         * modules/vsprintf-posix (Depends-on): Likewise.
99732         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
99733         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
99734         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
99735         "no" on i386, x86_64, ia64.
99736         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
99737         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99738         on i386, x86_64, ia64.
99739         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
99740         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99741         on i386, x86_64, ia64.
99742         * tests/test-vasnprintf-posix.c: Include float.h.
99743         (LDBL80_WORDS): New macro.
99744         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99745         on i386, x86_64, ia64.
99746         * tests/test-vasprintf-posix.c: Include float.h.
99747         (LDBL80_WORDS): New macro.
99748         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99749         on i386, x86_64, ia64.
99750         * tests/test-snprintf-posix.c: Include float.h.
99751         * tests/test-sprintf-posix.c: Likewise.
99752         * tests/test-vsnprintf-posix.c: Likewise.
99753         * tests/test-vsprintf-posix.c: Likewise.
99755 2007-06-05  Bruno Haible  <bruno@clisp.org>
99757         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
99758         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
99759         non-IEEE numbers on i386, x86_64, ia64.
99760         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
99761         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
99762         * tests/test-isnanl.h: Include float.h.
99763         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
99765 2007-06-05  Bruno Haible  <bruno@clisp.org>
99767         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
99768         also the %a / %A. Handle the %a / %A code before this extra handling.
99770 2007-06-05  Bruno Haible  <bruno@clisp.org>
99772         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
99773         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
99775 2007-06-05  Bruno Haible  <bruno@clisp.org>
99777         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
99778         typo in variable name.
99780 2007-06-05  Eric Blake  <ebb9@byu.net>
99782         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
99783         Reported by Simon Josefsson.
99785 2007-06-04  Bruno Haible  <bruno@clisp.org>
99787         Avoid test failures on some PowerPC platforms.
99788         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
99789         Define differently for PowerPC.
99790         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
99791         Reported by Gary V. Vaughan <gary@gnu.org>.
99793 2007-06-02  Bruno Haible  <bruno@clisp.org>
99795         Fix test-stdint failure on FreeBSD/ia64.
99796         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
99797         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
99798         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
99799         * doc/headers/stdint.texi: Update.
99801 2007-06-01  Bruno Haible  <bruno@clisp.org>
99803         * tests/test-binary-io.c (main): Pass a third argument to open().
99804         Reported by Gary V. Vaughan <gary@gnu.org>.
99806 2007-06-01  Bruno Haible  <bruno@clisp.org>
99808         * doc/functions/frexpl.texi: Update for mingw.
99810 2007-06-01  Bruno Haible  <bruno@clisp.org>
99812         * tests/test-lseek.c (main): Disable test of errno for invalid third
99813         argument.
99814         * doc/functions/lseek.texi: Update.
99815         Reported by Gary V. Vaughan <gary@gnu.org>.
99817 2007-05-28  Bruno Haible  <bruno@clisp.org>
99819         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
99821 2007-05-31  Eric Blake  <ebb9@byu.net>
99823         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
99824         cross compiling.
99826 2007-05-30  Eric Blake  <ebb9@byu.net>
99827         and Bruno Haible  <bruno@clisp.org>
99829         Work around mingw test failures exposed by m4-1.4.9b.
99830         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
99831         * tests/test-unistd.c: Disable uid_t and git_t tests for the
99832         moment.
99834 2007-05-30  Bruno Haible  <bruno@clisp.org>
99836         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
99837         assuming that they are closed. Needed on HP-UX 11.
99839 2007-05-29  Bruno Haible  <bruno@clisp.org>
99841         Fix a problem with #include_next.
99842         * lib/dirent_.h: Split the double-inclusion guard.
99843         * lib/fcntl_.h: Likewise.
99844         * lib/float_.h: Likewise.
99845         * lib/iconv_.h: Likewise.
99846         * lib/inttypes_.h: Likewise.
99847         * lib/locale_.h: Likewise.
99848         * lib/math_.h: Likewise.
99849         * lib/netinet_in_.h: Likewise.
99850         * lib/search_.h: Likewise.
99851         * lib/signal_.h: Likewise.
99852         * lib/stdint_.h: Likewise.
99853         * lib/stdio_.h: Likewise.
99854         * lib/stdlib_.h: Likewise.
99855         * lib/string_.h: Likewise.
99856         * lib/sys_select_.h: Likewise.
99857         * lib/sys_socket_.h: Likewise.
99858         * lib/sys_stat_.h: Likewise.
99859         * lib/sys_time_.h: Likewise.
99860         * lib/sysexits_.h: Likewise.
99861         * lib/time_.h: Likewise.
99862         * lib/unistd_.h: Likewise.
99863         * lib/wchar_.h: Likewise.
99864         * lib/wctype_.h: Likewise.
99866 2007-05-29  Bruno Haible  <bruno@clisp.org>
99868         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
99869         for the moment.
99871 2007-05-29  Bruno Haible  <bruno@clisp.org>
99873         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
99874         invocation.
99875         Reported by Eric Blake.
99877 2007-05-29  Bruno Haible  <bruno@clisp.org>
99879         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
99880         compiling case.
99882 2007-05-29  Eric Blake  <ebb9@byu.net>
99883             Bruno Haible  <bruno@clisp.org>
99885         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
99886         cross compiles.
99888 2007-05-28  Eric Blake  <ebb9@byu.net>
99890         * modules/closein-tests (test_closein_LDADD): Support test on
99891         cygwin with libtool.
99893 2007-05-28  Bruno Haible  <bruno@clisp.org>
99895         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
99896         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
99897         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
99898         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
99899         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
99900         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
99901         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
99902         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
99903         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
99905 2007-05-28  Eric Blake  <ebb9@byu.net>
99907         Unconditionally include <config.h> in unit tests.
99908         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
99909         * tests/test-allocsa.c, tests/test-arcfour.c,
99910         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
99911         tests/test-array_list.c, tests/test-array_oset.c,
99912         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
99913         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
99914         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
99915         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
99916         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
99917         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
99918         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
99919         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
99920         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
99921         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
99922         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
99923         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
99924         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
99925         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
99926         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
99927         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
99928         test-md5.c, test-memmem.c, test-printf-posix.c,
99929         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
99930         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
99931         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
99932         test-strcasestr.c, test-striconv.c, test-striconveh.c,
99933         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
99934         test-vasnprintf-posix2.c, test-vasnprintf.c,
99935         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
99936         test-vfprintf-posix.c, test-vprintf-posix.c,
99937         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
99938         test-xvasprintf.c: Likewise.
99940 2007-05-28  Bruno Haible  <bruno@clisp.org>
99942         * gnulib-tool (func_import): Remember the --with-tests command-line
99943         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
99944         Reported by Eric Blake.
99946 2007-05-28  Bruno Haible  <bruno@clisp.org>
99948         * modules/ftell-tests: New file.
99949         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
99950         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
99952         * lib/ftell.c: New file.
99953         * modules/ftell: New file.
99954         * m4/ftell.m4: New file.
99955         * doc/functions/ftell.texi: Update.
99956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
99957         REPLACE_FTELL.
99958         * lib/stdio_.h (rpl_ftell): New declaration.
99959         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
99960         REPLACE_FTELL.
99962 2007-05-28  Eric Blake  <ebb9@byu.net>
99964         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
99966 2007-05-28  Bruno Haible  <bruno@clisp.org>
99968         * modules/fseek-tests: New file.
99969         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
99970         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
99972         * lib/fseek.c: New file.
99973         * modules/fseek: New file.
99974         * m4/fseek.m4: New file.
99975         * doc/functions/fseek.texi: Update.
99976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
99977         REPLACE_FSEEK.
99978         * lib/stdio_.h (rpl_fseek): New declaration.
99979         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
99980         REPLACE_FSEEK.
99982 2007-05-28  Bruno Haible  <bruno@clisp.org>
99984         * lib/stdio_.h (fflush): More comments.
99986 2007-05-28  Bruno Haible  <bruno@clisp.org>
99988         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
99989         runtime test.
99991 2007-05-28  Eric Blake  <ebb9@byu.net>
99993         Improve lseek module.
99994         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
99995         * lib/unistd_.h (lseek): Scale back link warning message.
99996         * tests/test-lseek.c: Beef up test.
99997         * tests/test-lseek.sh: Exercise more facets of lseek.
99998         Reported by Bruno Haible.
100000 2007-05-28  Bruno Haible  <bruno@clisp.org>
100002         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
100003         to define.
100005 2007-05-27  Bruno Haible  <bruno@clisp.org>
100007         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
100009 2007-05-27  Bruno Haible  <bruno@clisp.org>
100011         * modules/openmp: New file.
100012         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
100013         Noah Misch.
100015 2007-05-26  Bruno Haible  <bruno@clisp.org>
100017         * modules/chdir-long (Depends-on): Add fchdir.
100018         * modules/chdir-safer (Depends-on): Likewise.
100019         * modules/fts (Depends-on): Likewise.
100020         * modules/fts-lgpl (Depends-on): Likewise.
100021         * modules/openat (Depends-on): Likewise.
100022         * modules/savewd (Depends-on): Likewise.
100024 2007-05-24  Eric Blake  <ebb9@byu.net>
100026         Fix lseek on mingw.
100027         * modules/lseek: New module.
100028         * m4/lseek.m4: New file.
100029         * lib/lseek.c: New file.
100030         * modules/lseek-tests: New file.
100031         * tests/test-lseek.c: New file.
100032         * tests/test-lseek.sh: New file.
100033         * MODULES.html.sh: Document lseek module.
100034         * modules/fflush (Depends-on): Add lseek, fseeko.
100035         * modules/fseeko (Depends-on): Likewise.
100036         * modules/ftello (Depends-on): Likewise.
100037         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
100038         broken.
100039         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
100040         broken.
100041         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
100042         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
100043         * lib/ftello.c (rpl_ftello): Likewise.
100044         * tests/test-fseeko.c (main): Test this.
100045         * tests/test-fseeko.sh: Likewise.
100046         * tests/test-ftello.c (main): Likewise.
100047         * tests/test-ftello.sh: Likewise.
100048         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
100049         implies replacing fseek.
100050         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
100051         HAVE_FTELLO.
100052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
100053         * modules/unistd (Makefile.am): Likewise.
100054         * lib/unistd_.h (lseek): Declare a replacement.
100055         * doc/functions/lseek.texi (lseek): Document this fix.
100056         * doc/functions/fseek.texi (fseek): Likewise.
100057         * doc/functions/ftell.texi (ftell): Likewise.
100059 2007-05-24  Bruno Haible  <bruno@clisp.org>
100061         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
100062         in the printed representation of a NaN.
100063         * tests/test-vasprintf-posix.c (test_function): Likewise.
100064         * tests/test-snprintf-posix.h (test_function): Likewise.
100065         * tests/test-sprintf-posix.h (test_function): Likewise.
100066         Reported by Eric Blake.
100068 2007-05-23  Eric Blake  <ebb9@byu.net>
100070         Fix fseeko/ftello on cygwin 1.5.24.
100071         * doc/functions/fseeko.texi (fseeko): Document the fix.
100072         * doc/functions/ftello.texi (ftello): Document the fix.
100073         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
100074         * doc/functions/stdout.text (stdout): New file.
100075         * doc/functions/stderr.text (stderr): New file.
100076         * doc/gnulib.texi (Function Substitutes): Use new files.
100077         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
100078         prior to 1.7.0.
100079         * tests/test-ftello.c (main): Likewise for ftello.
100080         * tests/test-fseeko.sh: New file.
100081         * tests/test-ftello.sh: New file.
100082         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
100083         with seekable stdin.
100084         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
100085         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
100086         (gl_REPLACE_FSEEKO): New macro.
100087         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
100088         * modules/fseeko (Files): Distribute fseeko.c.
100089         * modules/ftello (Files): Distribute ftello.c.
100090         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
100091         mode.
100092         * lib/ftello.c (rpl_ftello): New file.
100093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
100094         fseeko, ftello.
100095         (gl_STDIN_LARGE_OFFSET): New macro.
100096         * modules/stdio (Makefile.am): Perform the replacement.
100097         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
100099 2007-05-23  Bruno Haible  <bruno@clisp.org>
100101         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
100102         GNULIB_POSIXCHECK is defined.
100104 2007-05-21  Bruno Haible  <bruno@clisp.org>
100106         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
100107         Check also the output for NaN arguments. When cross-compiling, guess
100108         no on IRIX.
100109         * lib/vasnprintf.c: Update comments.
100110         * tests/test-vasnprintf-posix.c (strisnan): New function.
100111         (test_function): Use it.
100112         * tests/test-vasprintf-posix.c (strisnan): New function.
100113         (test_function): Use it.
100114         * tests/test-snprintf-posix.h (strisnan): New function.
100115         (test_function): Use it.
100116         * tests/test-sprintf-posix.h (strisnan): New function.
100117         (test_function): Use it.
100118         Reported by Eric Blake.
100120 2007-05-20  Bruno Haible  <bruno@clisp.org>
100122         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
100123         numbers that fails on BeOS.
100124         * doc/functions/frexpl.texi: Update.
100126 2007-05-20  Jim Meyering  <jim@meyering.net>
100128         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
100129         forced upon us by glibc-2.6.
100131 2007-05-20  Bruno Haible  <bruno@clisp.org>
100133         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
100134         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
100135         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
100136         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
100137         NEED_PRINTF_INFINITE.
100138         (is_infinitel): New function.
100139         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
100140         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
100141         gl_PREREQ_VASNPRINTF_INFINITE.
100142         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
100143         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100144         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
100145         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
100146         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
100147         gl_PREREQ_VASNPRINTF_INFINITE.
100148         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100149         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100150         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100151         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100152         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100153         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100154         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100155         * doc/functions/fprintf.texi: Update.
100156         * doc/functions/printf.texi: Update.
100157         * doc/functions/snprintf.texi: Update.
100158         * doc/functions/sprintf.texi: Update.
100159         * doc/functions/vfprintf.texi: Update.
100160         * doc/functions/vprintf.texi: Update.
100161         * doc/functions/vsnprintf.texi: Update.
100162         * doc/functions/vsprintf.texi: Update.
100164 2007-05-20  Bruno Haible  <bruno@clisp.org>
100166         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
100167         was not found in libc.
100168         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
100170 2007-05-20  Bruno Haible  <bruno@clisp.org>
100172         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
100173         printed as "-nan" instead of "nan".
100174         * tests/test-vasprintf-posix.c (test_function): Likewise.
100175         * tests/test-snprintf-posix.h (test_function): Likewise.
100176         * tests/test-sprintf-posix.h (test_function): Likewise.
100177         Needed for HP-UX 11.
100179 2007-05-20  Jim Meyering  <jim@meyering.net>
100181         Fix buggy test for the fchownat-deref bug.
100182         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
100183         symlink required for the run-test.  Without it, this test would
100184         always declare that fchownat doesn't work, and client code would
100185         unnecessarily use the replacement function with fixed libc.
100186         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
100187         Reported by Greg Schafer.
100189 2007-05-19  Bruno Haible  <bruno@clisp.org>
100191         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
100192         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
100193         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
100194         Needed for IRIX 6.5 and Solaris 2.5.1.
100196 2007-05-19  Bruno Haible  <bruno@clisp.org>
100198         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
100199         (test_function): Skip tests involving -0.0 on platforms where
100200         -0.0 = 0.0.
100201         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
100202         (test_function): Skip tests involving -0.0 on platforms where
100203         -0.0 = 0.0.
100204         * tests/test-snprintf-posix.h (have_minus_zero): New function.
100205         (test_function): Skip tests involving -0.0 on platforms where
100206         -0.0 = 0.0.
100207         * tests/test-sprintf-posix.h (have_minus_zero): New function.
100208         (test_function): Skip tests involving -0.0 on platforms where
100209         -0.0 = 0.0.
100210         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
100211         tests.
100212         * tests/test-printf-posix.h (test_function): Likewise.
100213         * tests/test-printf-posix.output: Remove all -0.0 related results.
100214         Needed for IRIX 6.5.
100216 2007-05-19  Bruno Haible  <bruno@clisp.org>
100218         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
100219         printed as "nan0x7fffffff" instead of "nan".
100220         * tests/test-vasprintf-posix.c (test_function): Likewise.
100221         * tests/test-snprintf-posix.h (test_function): Likewise.
100222         * tests/test-sprintf-posix.h (test_function): Likewise.
100223         * tests/test-fprintf-posix.h (NaN): Remove macro.
100224         (test_function): Remove all NaN related tests.
100225         * tests/test-printf-posix.h (NaN): Remove macro.
100226         (test_function): Remove all NaN related tests.
100227         * tests/test-printf-posix.output: Remove all NaN related results.
100228         Needed for IRIX 6.5.
100230 2007-05-19  Bruno Haible  <bruno@clisp.org>
100232         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
100233         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
100235 2007-05-19  Bruno Haible  <bruno@clisp.org>
100237         * lib/float_.h: New file.
100238         * m4/float_h.m4: New file.
100239         * modules/float: New file.
100240         * modules/isnanl (Dependencies): Add float.
100241         * modules/isnanl-nolibm (Dependencies): Likewise.
100242         * modules/mathl (Dependencies): Likewise.
100243         * modules/printf-frexpl (Dependencies): Likewise.
100244         * modules/signbit (Dependencies): Likewise.
100245         * modules/vasnprintf (Dependencies): Likewise.
100246         * doc/headers/float.texi: Update.
100248 2007-05-19  Jim Meyering  <jim@meyering.net>
100250         * lib/utimens.c (gl_futimens): Rename from futimens,
100251         now that glibc-2.6 declares futimens.
100252         * lib/utimens.h: Likewise.
100254 2007-05-19  Bruno Haible  <bruno@clisp.org>
100256         Avoid test failures on mingw.
100257         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
100258         * tests/test-printf-posix.sh: Likewise.
100259         * tests/test-vfprintf-posix.sh: Likewise.
100260         * tests/test-vprintf-posix.sh: Likewise.
100262 2007-05-19  Bruno Haible  <bruno@clisp.org>
100264         Fix *printf result for NaN, Inf, -0.0 on mingw.
100265         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
100266         * lib/vasnprintf.c: Include math.h and isnan.h.
100267         (is_infinite_or_zero): New function.
100268         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
100269         values in the %f, %F, %e, %E, %g, %G directives.
100270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
100271         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100272         gl_PRINTF_INFINITE and test its result. Invoke
100273         gl_PREREQ_VASNPRINTF_INFINITE.
100274         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100275         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100276         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100277         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100278         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100279         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100280         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100281         * doc/functions/fprintf.texi: Update.
100282         * doc/functions/printf.texi: Update.
100283         * doc/functions/snprintf.texi: Update.
100284         * doc/functions/sprintf.texi: Update.
100285         * doc/functions/vfprintf.texi: Update.
100286         * doc/functions/vprintf.texi: Update.
100287         * doc/functions/vsnprintf.texi: Update.
100288         * doc/functions/vsprintf.texi: Update.
100290 2007-05-19  Bruno Haible  <bruno@clisp.org>
100292         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
100293         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
100294         Instead of multiplying with 10^k, set extra_zeroes to k.
100295         (scale10_round_long_double): Remove function.
100297 2007-05-18  Bruno Haible  <bruno@clisp.org>
100299         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
100300         introduced on 2007-05-06.
100302 2007-05-18  Bruno Haible  <bruno@clisp.org>
100304         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
100305         %g directives.
100306         * tests/test-vasprintf-posix.c (test_function): Likewise.
100307         * tests/test-snprintf-posix.h (test_function): Likewise.
100308         * tests/test-sprintf-posix.h (test_function): Likewise.
100310 2007-05-18  Bruno Haible  <bruno@clisp.org>
100312         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
100313         (strmatch): New function.
100314         (test_function): Test the %f directive on numbers of various exponents.
100315         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
100316         (strmatch): New function.
100317         (test_function): Test the %f directive on numbers of various exponents.
100318         * tests/test-snprintf-posix.h (strmatch): New function.
100319         (test_function): Test the %f directive on numbers of various exponents.
100320         * tests/test-sprintf-posix.h (strmatch): New function.
100321         (test_function): Test the %f directive on numbers of various exponents.
100322         * tests/test-snprintf-posix.c (SIZEOF): New macro.
100323         * tests/test-sprintf-posix.c (SIZEOF): New macro.
100324         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
100325         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
100327 2007-05-18  Bruno Haible  <bruno@clisp.org>
100329         Add support for 'long double' number output.
100330         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
100331         * lib/vasnprintf.c: Include math.h and float+.h.
100332         (mp_limb_t): New type.
100333         (GMP_LIMB_BITS): New macro.
100334         (mp_twolimb_t): New type.
100335         (GMP_TWOLIMB_BITS): New macro.
100336         (mpn_t): New type.
100337         (multiply, divide, convert_to_decimal, decode_long_double,
100338         scale10_round_long_double, scale10_round_decimal_long_double,
100339         floorlog10l): New functions.
100340         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
100341         for the %f, %F, %e, %E, %g, %G directives.
100342         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
100343         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100344         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
100345         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
100346         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100347         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100348         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100349         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100350         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100351         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100352         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100353         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
100354         * modules/snprintf-posix (Depends-on): Likewise.
100355         * modules/sprintf-posix (Depends-on): Likewise.
100356         * modules/vasnprintf-posix (Depends-on): Likewise.
100357         * modules/vasprintf-posix (Depends-on): Likewise.
100358         * modules/vfprintf-posix (Depends-on): Likewise.
100359         * modules/vsnprintf-posix (Depends-on): Likewise.
100360         * modules/vsprintf-posix (Depends-on): Likewise.
100361         * modules/vasnprintf (Files): Add lib/float+.h.
100362         * doc/functions/fprintf.texi: Update.
100363         * doc/functions/printf.texi: Update.
100364         * doc/functions/snprintf.texi: Update.
100365         * doc/functions/sprintf.texi: Update.
100366         * doc/functions/vfprintf.texi: Update.
100367         * doc/functions/vprintf.texi: Update.
100368         * doc/functions/vsnprintf.texi: Update.
100369         * doc/functions/vsprintf.texi: Update.
100371 2007-05-18  Bruno Haible  <bruno@clisp.org>
100373         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
100375 2007-05-18  Bruno Haible  <bruno@clisp.org>
100377         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
100378         for printing 64-bit integers. Needed for mingw.
100380 2007-05-18  Bruno Haible  <bruno@clisp.org>
100382         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
100383         gl_FUNC_FREXPL_WORKS.
100384         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
100386 2007-05-18  Bruno Haible  <bruno@clisp.org>
100388         * modules/frexpl-nolibm-tests: New file.
100390         * modules/frexpl-nolibm: New file.
100391         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
100393 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
100395         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
100396         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100397         GCC 4.2, which otherwise issues a lot of warnings.
100398         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
100399         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
100400         Likewise.
100401         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
100402         * modules/iconv_open (iconv.h): Likewise.
100403         * modules/locale (locale.h): Likewise.
100404         * modules/netinet_in (netinet/in.h): Likewise.
100405         * modules/sys_select (sys_select.h): Likewise.
100406         * modules/sys_socket (sys/socket.h): Likewise.
100407         * modules/sys_stat (sys/stat.h): Likewise.
100408         * modules/sysexits (sysexits.h): Likewise.
100409         * modules/unistd (unistd.h): Likewise.
100411 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100413         * modules/closein-tests (Makefile.am): Distribute
100414         `test-closein.sh'.
100416 2007-05-17  Bruno Haible  <bruno@clisp.org>
100418         * tests/test-printf-posix.output: Renamed from
100419         tests/test-fprintf-posix.out.
100420         * modules/fprintf-posix-tests: Update.
100421         * modules/printf-posix-tests: Update.
100422         * modules/vfprintf-posix-tests: Update.
100423         * modules/vprintf-posix-tests: Update.
100424         * tests/test-fprintf-posix.sh: Update.
100425         * tests/test-printf-posix.sh: Update.
100426         * tests/test-vfprintf-posix.sh: Update.
100427         * tests/test-vprintf-posix.sh: Update.
100428         Reported by Ralf Wildenhues.
100430 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
100432         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
100433         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100434         GCC 4.2, which otherwise issues a lot of warnings.
100435         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
100436         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
100437         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
100438         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
100439         it should no longer be needed.
100440         * lib/string_.h: Likewise.
100441         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
100442         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
100443         * modules/inttypes (inttypes.h): Likewise.
100444         * modules/math (math.h): Likewise.
100445         * modules/search (search.h): Likewise.
100446         * modules/signal (signal.h): Likewise.
100447         * modules/stdint (stdint.h): Likewise.
100448         * modules/stdio (stdio.h): Likewise.
100449         * modules/stdlib (stdlib.h): Likewise.
100450         * modules/string (string.h): Likewise.
100451         * modules/sys_time (sys/time.h): Likewise.
100452         * modules/time (time.h): Likewise.
100453         * modules/wchar (wchar.h): Likewise.
100454         * modules/wctype (wtype.h): Likewise.
100456 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
100458         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
100460 2007-05-13  Bruno Haible  <bruno@clisp.org>
100462         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
100463         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
100464         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
100465         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
100466         (gl_PREREQ_STRTOK_R): Don't require it here.
100468 2007-05-13  Bruno Haible  <bruno@clisp.org>
100470         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
100471         when used in C++ mode.
100473 2007-05-12  Bruno Haible  <bruno@clisp.org>
100475         * lib/linebuffer.h: Tweak doc.
100476         * lib/linebuffer.c: Likewise.
100478 2007-05-12  James Youngman  <jay@gnu.org>
100480         * lib/linebuffer.c (readlinebuffer_delim): New function,
100481         like readlinebuffer, but use a caller-specified delimiter.
100482         (readlinebuffer): Just call readlinebuffer_delim with '\n'
100483         as the delimiter.
100484         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
100486 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
100488         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
100489         * modules/openat (Files): Remove openat-die.c.
100490         (Depends-on): Add openat-die.
100491         * modules/openat-die: New module.
100493 2007-05-06  Bruno Haible  <bruno@clisp.org>
100495         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
100496         Update with info about Cygwin.
100497         * doc/functions/fprintf.texi: Update.
100498         * doc/functions/printf.texi: Update.
100499         * doc/functions/snprintf.texi: Update.
100500         * doc/functions/sprintf.texi: Update.
100501         * doc/functions/vfprintf.texi: Update.
100502         * doc/functions/vprintf.texi: Update.
100503         * doc/functions/vsnprintf.texi: Update.
100504         * doc/functions/vsprintf.texi: Update.
100505         Reported by Eric Blake.
100507 2007-05-06  Bruno Haible  <bruno@clisp.org>
100509         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
100510         padding ourselves for the floating-point directives.
100511         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
100512         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
100513         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100514         gl_PRINTF_FLAG_ZERO and test its result. Invoke
100515         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
100516         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100517         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
100518         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100519         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100520         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100521         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100522         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100523         * tests/test-snprintf-posix.h (test_function): Also check the width
100524         and some flags in the %f directive.
100525         * tests/test-sprintf-posix.h (test_function): Likewise.
100526         * tests/test-vasnprintf-posix.c (test_function): Likewise.
100527         * tests/test-vasprintf-posix.c (test_function): Likewise.
100528         * doc/functions/fprintf.texi: Update.
100529         * doc/functions/printf.texi: Update.
100530         * doc/functions/snprintf.texi: Update.
100531         * doc/functions/sprintf.texi: Update.
100532         * doc/functions/vfprintf.texi: Update.
100533         * doc/functions/vprintf.texi: Update.
100534         * doc/functions/vsnprintf.texi: Update.
100535         * doc/functions/vsprintf.texi: Update.
100537 2007-05-06  Bruno Haible  <bruno@clisp.org>
100539         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
100540         pass the ' flag character to sprintf or snprintf.
100541         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
100542         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
100543         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100544         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
100545         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
100546         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100547         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
100548         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100549         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100550         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100551         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100552         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100553         * tests/test-snprintf-posix.h (test_function): Also check the grouping
100554         flag.
100555         * tests/test-sprintf-posix.h (test_function): Likewise.
100556         * tests/test-vasnprintf-posix.c (test_function): Likewise.
100557         * tests/test-vasprintf-posix.c (test_function): Likewise.
100558         * doc/functions/fprintf.texi: Update.
100559         * doc/functions/printf.texi: Update.
100560         * doc/functions/snprintf.texi: Update.
100561         * doc/functions/sprintf.texi: Update.
100562         * doc/functions/vfprintf.texi: Update.
100563         * doc/functions/vprintf.texi: Update.
100564         * doc/functions/vsnprintf.texi: Update.
100565         * doc/functions/vsprintf.texi: Update.
100567 2007-05-01  Bruno Haible  <bruno@clisp.org>
100569         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
100571 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
100573         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
100574         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
100576 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100578         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
100579         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
100580         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
100582 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
100584         * lib/argp-help.c (struct hol_entry): New member `ord'.
100585         (HOL_ENTRY_PTRCMP): Use ord for comparison
100586         (hol_sort): Initialize ord.
100588 2007-05-01  Bruno Haible  <bruno@clisp.org>
100590         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
100591         Reported by Eric Blake.
100592         * doc/gnulib.texi (Function Substitutes): Update.
100594 2007-05-01  Bruno Haible  <bruno@clisp.org>
100596         * doc/functions.texi: Remove file, now redundant through
100597         doc/functions/*.texi.
100599 2007-05-01  Bruno Haible  <bruno@clisp.org>
100601         * modules/argp (Depends-on): Add sleep.
100603 2007-05-01  Bruno Haible  <bruno@clisp.org>
100605         * modules/sleep-tests: New file.
100606         * tests/test-sleep.c: New file.
100608         * modules/sleep: New file.
100609         * lib/sleep.c: New file.
100610         * m4/sleep.m4: New file.
100611         * lib/unistd_.h (sleep): New declaration.
100612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
100613         HAVE_SLEEP.
100614         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
100615         * doc/functions/sleep.texi: Document the sleep module.
100617 2007-05-01  Bruno Haible  <bruno@clisp.org>
100619         * lib/sigprocmask.h: Remove file.
100620         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
100621         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
100622         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
100623         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
100624         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
100625         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
100626         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
100627         HAVE_SIGSET_T as a shell variable.
100628         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
100629         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
100630         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
100631         (Depends-on): Add signal. Remove verify.
100632         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
100633         (Include): Mention <signal.h> instead of sigprocmask.h.
100634         * NEWS: Mention the change.
100635         * lib/fatal-signal.c: Don't include sigprocmask.h.
100637 2007-05-01  Bruno Haible  <bruno@clisp.org>
100639         * modules/signal: New file.
100640         * lib/signal_.h: New file.
100641         * m4/signal_h.m4: New file.
100643 2007-05-01  Bruno Haible  <bruno@clisp.org>
100645         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
100646         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
100647         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
100648         HAVE_WCTYPE_CTMP_BUG into wctype.h.
100650 2007-05-01  Bruno Haible  <bruno@clisp.org>
100652         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
100653         configure time.
100654         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
100655         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
100656         * modules/sys_stat (Makefile.am): Substitute their values into
100657         sys/stat.h.
100659 2007-05-01  Bruno Haible  <bruno@clisp.org>
100661         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
100662         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
100663         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
100665 2007-05-01  Bruno Haible  <bruno@clisp.org>
100667         * doc/header/assert.texi: Undo last change: don't mention the gnulib
100668         'assert' module here.
100670 2007-05-01  Bruno Haible  <bruno@clisp.org>
100672         * doc/functions/*.texi: New files.
100673         * doc/functions/google-ranking.txt: New file.
100674         * doc/gnulib.texi (Function Substitutes): New chapter.
100675         (ctime, inet_ntoa): Remove sections.
100676         * doc/ctime.texi: Remove file.
100677         * doc/inet_ntoa.texi: Remove file.
100678         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
100679         dependencies.
100680         (%.info): New rule, specifying a --reference-limit.
100682 2007-05-01  Bruno Haible  <bruno@clisp.org>
100684         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
100686 2007-05-01  Bruno Haible  <bruno@clisp.org>
100688         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
100689         the portability of 'mkdir' to mingw systems.
100691 2007-05-01  Bruno Haible  <bruno@clisp.org>
100693         * doc/headers/google-ranking.txt: New file.
100695 2007-04-30  Eric Blake  <ebb9@byu.net>
100697         Prefer fseeko to fseek.
100698         * modules/getpass (Depends-on): Add fseeko.
100699         * lib/getpass.c (getpass): Use fseeko, not fseek.
100701 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
100703         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
100704         assumes the sorting is stable, while most qsort implementations
100705         are not.  Use argument addresses to ensure they never compare as
100706         equal.
100708         * tests/test-argp-2.sh (usage-indent test): Fix output
100709         (func_compare): Restore diff options
100710         * tests/test-argp.c: Restore #include "progname.h"
100712 2007-04-29  Bruno Haible  <bruno@clisp.org>
100714         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
100715         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100716         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
100717         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100718         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
100719         (configure.ac): Define CHECK_SNPRINTF_POSIX.
100720         (TESTS, check_PROGRAMS): Add test-snprintf.
100721         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
100722         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
100723         (TESTS, check_PROGRAMS): Add test-vsnprintf.
100724         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
100725         assertions that fail on HP-UX, OSF/1, or IRIX.
100726         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
100728 2007-04-29  Bruno Haible  <bruno@clisp.org>
100730         * MODULES.html.sh (posix_functions): Remove 'contents'.
100732 2007-04-29  Karl Berry  <karl@gnu.org>
100734         * config/srclist.txt (gendocs_template_min): new entry.
100736 2007-04-29  Bruno Haible  <bruno@clisp.org>
100738         Work around fpurge bug on BSD systems.
100739         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
100740         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
100741         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
100742         fpurge to rpl_fpurge if the system already has this function.
100743         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
100744         the case where the system already has this function. Correct invariants
100745         on BSD systems.
100746         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
100747         BSD systems.
100749 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
100751         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
100752         proposed by Sven Verdoolaege.
100754         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
100755         options.
100756         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
100757         (usage and help tests): Update
100759 2007-04-29  Bruno Haible  <bruno@clisp.org>
100761         * tests/test-fflush.c (main): Use a file of size 17, not 10.
100762         Print more information in case of failure. Disable a test on BeOS.
100764 2007-04-29  Bruno Haible  <bruno@clisp.org>
100766         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
100767         This helps debugging on systems on which no gdb is available.
100769 2007-04-29  Bruno Haible  <bruno@clisp.org>
100771         * lib/freading.h: Improve comments.
100772         * lib/fwriting.h: Likewise.
100773         * tests/test-freading.c (main): Don't check freading immediately after
100774         repositioning. Needed for glibc.
100776 2007-04-29  Bruno Haible  <bruno@clisp.org>
100778         * lib/freading.c (freading): Trivial simplification.
100780 2007-04-28  Bruno Haible  <bruno@clisp.org>
100782         * tests/test-fwriting.c (main): Also test the interaction between
100783         fflush and fwriting.
100784         * modules/fwriting-tests (Depends-on): Add fflush.
100786         * tests/test-freading.c (main): Also test the interaction between
100787         fflush and freading.
100788         * modules/freading-tests (Depends-on): Add fflush.
100790 2007-04-28  Bruno Haible  <bruno@clisp.org>
100792         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
100793         fseeko and ftello.
100794         Suggested by Eric Blake.
100796 2007-04-28  Jim Meyering  <jim@meyering.net>
100798         Avoid false-negative in gl_STDINT_H's C99 conformance test.
100799         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
100800         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
100802 2007-04-27  Eric Blake  <ebb9@byu.net>
100804         * doc/headers/assert.texi (assert.h): Document assert module use.
100806 2007-04-27  Bruno Haible  <bruno@clisp.org>
100808         * doc/headers/*.texi: New files.
100809         * doc/gnulib.texi (Header File Substitutes): New chapter.
100810         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
100811         dependencies.
100812         (standards.info ,standards.html, standards.dvi): Update dependencies.
100813         (mostlyclean, clean): New targets.
100815 2007-04-27  Bruno Haible  <bruno@clisp.org>
100817         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
100818         * modules/sysexits (Files, Makefile.am): Update.
100820         * lib/sys_socket_.h: Renamed from lib/socket_.h.
100821         * modules/sys_socket (Files, Makefile.am): Update.
100823         * lib/sys_stat_.h: Renamed from lib/stat_.h.
100824         * modules/sys_stat (Files, Makefile.am): Update.
100826 2007-04-27  Eric Blake  <ebb9@byu.net>
100828         * lib/freading.h: Improve comments.
100829         * lib/fwriting.h: Likewise.
100830         * lib/fflush.c: Likewise.
100832         Fix closein for mingw.
100833         * modules/closein-tests: Add tests for closein.
100834         * tests/test-closein.c: New file.
100835         * tests/test-closein.sh: Likewise.
100836         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
100837         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
100839 2007-04-27  Bruno Haible  <bruno@clisp.org>
100841         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
100842         version is < 6.
100843         * lib/math_.h [__DECC]: Likewise.
100844         * lib/stdio_.h [__DECC]: Likewise.
100845         * lib/stdlib_.h [__DECC]: Likewise.
100846         * lib/string_.h [__DECC]: Likewise.
100847         * lib/time_.h [__DECC]: Likewise.
100848         * lib/wchar_.h [__DECC]: Likewise.
100849         * lib/wctype_.h [__DECC]: Likewise.
100851 2007-04-27  Bruno Haible  <bruno@clisp.org>
100853         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
100855 2007-04-27  Bruno Haible  <bruno@clisp.org>
100857         * lib/fflush.c: Add comments.
100858         * modules/fpurge-tests (Depends-on): Add fflush.
100859         * modules/freadable-tests (Depends-on): Likewise.
100860         * modules/fwritable-tests (Depends-on): Likewise.
100862 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
100864         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
100865         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
100866         Report by Bruno Haible <bruno@clisp.org>.
100868 2007-04-26  Eric Blake  <ebb9@byu.net>
100870         Fix fflush on mingw.
100871         * modules/fflush (Depends-on): Add freading.
100872         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
100873         but unread data.
100875 2007-04-26  Eric Blake  <ebb9@byu.net>
100876         and Bruno Haible  <bruno@clisp.org>
100878         Implement freading and fwriting.
100879         * lib/freading.c: New file.
100880         * lib/freading.h: Likewise.
100881         * m4/freading.m4: Likewise.
100882         * modules/freading: Likewise.
100883         * modules/freading-tests: Likewise.
100884         * tests/test-freading.c: Likewise.
100885         * lib/fwriting.c: New file.
100886         * lib/fwriting.h: Likewise.
100887         * m4/fwriting.m4: Likewise.
100888         * modules/fwriting: Likewise.
100889         * modules/fwriting-tests: Likewise.
100890         * tests/test-fwriting.c: Likewise.
100891         * MODULES.html.sh (File stream based Input/Output): Mention them.
100893 2007-04-26  Bruno Haible  <bruno@clisp.org>
100895         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
100896         'long' when we assume it.
100897         Suggested by Eric Blake.
100899 2007-04-26  Bruno Haible  <bruno@clisp.org>
100901         Ensure fseeko, ftello are declared on glibc systems.
100902         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
100903         * modules/fseeko (configure.ac-early): Likewise.
100904         * modules/ftello (configure.ac-early): Likewise.
100905         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
100906         AC_FUNC_FSEEKO for this.
100907         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
100908         (gl_CHECK_FSEEKO): Remove macro.
100910 2007-04-26  Bruno Haible  <bruno@clisp.org>
100912         * tests/test-fflush.c (main): Also check the ftell result after
100913         fflush and fseek/fseeko.
100914         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
100915         file descriptor position cache in the stream.
100916         * lib/fseeko.c (rpl_fseeko): Likewise.
100918 2007-04-26  Bruno Haible  <bruno@clisp.org>
100920         * modules/fflush-tests (Depends-on): Add fseeko.
100922 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
100923             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100925         * lib/argz_.h: ensure error_t definition is obtained in same
100926         mechanism system argz.h would have.
100927         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
100928         argz facilities are known bad.  Err on the side of caution if
100929         cross-compiling.
100931 2007-04-25  Eric Blake  <ebb9@byu.net>
100933         * lib/fpurge.c (includes): Use stdlib.h for free.
100934         * tests/test-fflush.c (main): Also test fflush-fseeko.
100936 2007-04-25  Bruno Haible  <bruno@clisp.org>
100938         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
100939         * lib/fseeko.c: New file.
100940         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
100941         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
100942         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
100943         gl_FUNC_FSEEKO.
100944         (gl_FUNC_FSEEKO): Invoke it.
100945         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
100946         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
100947         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
100949 2007-04-25  Bruno Haible  <bruno@clisp.org>
100951         * modules/fflush (Depends-on): Add ftello.
100953 2007-04-25  Bruno Haible  <bruno@clisp.org>
100955         * modules/ftello-tests: New file.
100956         * tests/test-ftello.c: New file.
100958         * modules/ftello: New file.
100959         * m4/ftello.m4: New file.
100960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
100961         HAVE_FTELLO.
100962         * lib/stdio_.h (ftello): New declaration.
100963         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
100964         HAVE_FTELLO.
100966 2007-04-25  Bruno Haible  <bruno@clisp.org>
100968         * modules/fseeko-tests: New file.
100969         * tests/test-fseeko.c: New file.
100971         * modules/fseeko: New file.
100972         * m4/fseeko.m4: New file.
100973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
100974         HAVE_FSEEKO.
100975         * lib/stdio_.h (fseeko): New declaration.
100976         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
100977         HAVE_FSEEKO.
100979 2007-04-25  Bruno Haible  <bruno@clisp.org>
100981         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
100983 2007-04-25  Bruno Haible  <bruno@clisp.org>
100985         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
100986         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
100987         * tests/test-unistd.c: Likewise.
100988         * tests/test-fcntl.c: Likewise.
100990 2007-04-23  Eric Blake  <ebb9@byu.net>
100992         * lib/fflush.c: Fix missing include.
100993         Reported by Bruno Haible.
100995 2007-04-23  Bruno Haible  <bruno@clisp.org>
100997         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
100998         Reported by Eric Blake.
101000 2007-04-23  Bruno Haible  <bruno@clisp.org>
101002         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
101004 2007-04-23  Bruno Haible  <bruno@clisp.org>
101006         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
101008 2007-04-23  Bruno Haible  <bruno@clisp.org>
101010         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
101011         Needed on HP-UX 11.
101013 2007-04-16  Eric Blake  <ebb9@byu.net>
101015         Make fflush rely on fpurge.
101016         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
101017         open coding all variants.
101018         * modules/fflush (Depends-on): Add fpurge and unistd.
101019         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
101020         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
101022         Fix --with-tests compilation on cygwin.
101023         * modules/argmatch-tests (Makefile.am): List gnulib library first
101024         in LDADD.
101025         * modules/argp-tests (Makefile.am): Likewise.
101026         * modules/array-list-tests (Makefile.am): Likewise.
101027         * modules/array-oset-tests (Makefile.am): Likewise.
101028         * modules/avltree-list-tests (Makefile.am): Likewise.
101029         * modules/avltree-oset-tests (Makefile.am): Likewise.
101030         * modules/avltreehash-list-tests (Makefile.am): Likewise.
101031         * modules/carray-list-tests (Makefile.am): Likewise.
101032         * modules/dirname-tests (Makefile.am): Likewise.
101033         * modules/frexp-tests (Makefile.am): Likewise.
101034         * modules/isnanl-tests (Makefile.am): Likewise.
101035         * modules/linked-list-tests (Makefile.am): Likewise.
101036         * modules/linkedhash-list-tests (Makefile.am): Likewise.
101037         * modules/lock-tests (Makefile.am): Likewise.
101038         * modules/rbtree-list-tests (Makefile.am): Likewise.
101039         * modules/rbtree-oset-tests (Makefile.am): Likewise.
101040         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
101041         * modules/tls-tests (Makefile.am): Likewise.
101042         * modules/tsearch-tests (Makefile.am): Likewise.
101043         * modules/xvasprintf-tests (Makefile.am): Likewise.
101045         Fix fpurge for cygwin.
101046         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
101047         value.
101048         * modules/fpurge-tests (Depends-on): Clean up trash.
101050 2007-04-16  Simon Josefsson  <simon@josefsson.org>
101052         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
101054         * m4/autobuild.m4: Re-indent.
101056 2007-04-13  Bruno Haible  <bruno@clisp.org>
101058         * modules/fpurge-tests: New file.
101059         * tests/test-fpurge.c: New file.
101061         * modules/fpurge: New file.
101062         * lib/fpurge.h: New file.
101063         * lib/fpurge.c: New file.
101064         * m4/fpurge.m4: New file.
101066 2007-04-13  Bruno Haible  <bruno@clisp.org>
101068         * modules/fbufmode-tests: New file.
101069         * tests/test-fbufmode.c: New file.
101071         * modules/fbufmode: New file.
101072         * lib/fbufmode.h: New file.
101073         * lib/fbufmode.c: New file.
101074         * m4/fbufmode.m4: New file.
101076 2007-04-13  Bruno Haible  <bruno@clisp.org>
101078         * modules/fwritable-tests: New file.
101079         * tests/test-fwritable.c: New file.
101081         * modules/fwritable: New file.
101082         * lib/fwritable.h: New file.
101083         * lib/fwritable.c: New file.
101084         * m4/fwritable.m4: New file.
101086 2007-04-13  Bruno Haible  <bruno@clisp.org>
101088         * modules/freadable-tests: New file.
101089         * tests/test-freadable.c: New file.
101091         * modules/freadable: New file.
101092         * lib/freadable.h: New file.
101093         * lib/freadable.c: New file.
101094         * m4/freadable.m4: New file.
101096 2007-04-13  Bruno Haible  <bruno@clisp.org>
101098         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
101099         MOSTLYCLEANFILES.
101101 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
101103         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
101104         gzip bootstrap.conf to avoid dragging in i18n machinery.
101105         (gnulib_tool_option): Use it.
101107 2007-04-13  Bruno Haible  <bruno@clisp.org>
101109         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
101110         %F directives.
101111         * tests/test-vasprintf-posix.c (test_function): Likewise.
101112         * tests/test-snprintf-posix.h (test_function): Likewise.
101113         * tests/test-sprintf-posix.h (test_function): Likewise.
101114         * tests/test-fprintf-posix.h (test_function): Likewise.
101115         * tests/test-printf-posix.h (test_function): Likewise.
101116         * tests/test-fprintf-posix.out: Likewise.
101118 2007-04-13  Bruno Haible  <bruno@clisp.org>
101120         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
101121         * modules/tls-tests (configure.ac): Likewise.
101122         Reported by Arto C. Nirkko <anirkko@insel.ch>.
101124 2007-04-13  Bruno Haible  <bruno@clisp.org>
101126         * lib/tls.c (glthread_tls_get): Fix return type.
101127         Patch by Arto C. Nirkko <anirkko@insel.ch>.
101129 2007-04-12  Eric Blake  <ebb9@byu.net>
101131         * modules/gettime (Depends-on): Remove gettime.
101132         Reported by Dmitry V. Levin.
101134 2007-04-12  Bruno Haible  <bruno@clisp.org>
101136         * modules/fflush (Include): Mention <stdio.h>.
101137         * modules/strtoimax (Include): Mention <inttypes.h>.
101138         * modules/strtoumax (Include): Likewise.
101140 2007-04-12  Eric Blake  <ebb9@byu.net>
101142         * .cvsignore: New file.
101143         * .gitignore: Likewise.
101145 2007-04-12  Bruno Haible  <bruno@clisp.org>
101147         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
101148         not before, since $(LDADD) often contains libgnu.a.
101149         * modules/striconv-tests (test_striconv_LDADD): Likewise.
101150         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
101151         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
101152         Needed on Cygwin.
101154 2007-04-12  Eric Blake  <ebb9@byu.net>
101156         Work around glibc's failure to flush stdin on fclose.
101157         * lib/closein.c (close_stdin): Flush stdin before closing.
101159         Work around glibc's failure to reset seekable stdin on exit.
101160         * modules/closein: New module.
101161         * lib/closein.c: New file.
101162         * lib/closein.h: Likewise.
101163         * m4/closein.m4: Likewise.
101164         * MODULES.html.sh (File stream based Input/Output): Document it.
101166 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101168         * gnulib-tool: Rename generated 'autobuild' script to
101169         'do-autobuild' in --create-megatestdir output.
101171         * doc/gnulib.texi (Build robot for gnulib): Fix.
101173 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101175         * modules/sysexits (Depends-on): Add absolute-header.
101177 2007-04-12  Eric Blake  <ebb9@byu.net>
101179         No need to preserve errno on success.
101180         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
101181         Reported by Bruno Haible.
101183 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101185         * MODULES.html.sh (Support for maintaining and releasing
101186         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
101188 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101190         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
101192 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101194         * modules/autobuild: New module.
101196         * m4/autobuild.m4: New file.
101198 2007-04-11  Bruno Haible  <bruno@clisp.org>
101200         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
101201         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
101202         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
101203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
101204         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
101217         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101218         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101219         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
101220         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101221         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101222         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
101223         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101224         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101225         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
101226         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101227         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101228         Reported by Eric Blake.
101230 2007-04-11  Bruno Haible  <bruno@clisp.org>
101232         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
101234 2007-04-10  Bruno Haible  <bruno@clisp.org>
101236         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
101237         for NaN and Infinity. Needed on FreeBSD 6.1.
101238         * tests/test-vasnprintf-posix.c (test_function): Undo last change
101239         regarding results for "%010a" of Infinity and NaN.
101240         * tests/test-vasprintf-posix.c (test_function): Likewise.
101241         * tests/test-snprintf-posix.h (test_function): Likewise.
101242         * tests/test-sprintf-posix.h (test_function): Likewise.
101243         * tests/test-fprintf-posix.h (test_function): Likewise.
101244         * tests/test-printf-posix.h (test_function): Likewise.
101245         * tests/test-fprintf-posix.out: Likewise.
101247 2007-04-10  Bruno Haible  <bruno@clisp.org>
101249         * modules/locale-tests: New file.
101250         * tests/test-locale.c: New file.
101252         * modules/locale: New file.
101253         * lib/locale_.h: New file.
101254         * m4/locale_h.m4: New file.
101256 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
101257             Bruno Haible  <bruno@clisp.org>
101259         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
101260         be determined, test for availability of the copysignf, copysign,
101261         copysignl functions.
101262         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
101263         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
101264         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
101266 2007-04-09  Eric Blake  <ebb9@byu.net>
101268         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
101269         * modules/stdio (Makefile.am): Support fflush.
101270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
101271         * modules/fflush: New file.
101272         * lib/fflush.c: Likewise.
101273         * m4/fflush.m4: Likewise.
101274         * modules/fflush-tests: New test.
101275         * tests/test-fflush.c: Likewise.
101276         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
101278 2007-04-06  Bruno Haible  <bruno@clisp.org>
101280         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
101281         (VASNPRINTF): Use signbit for faster determination whether to print a
101282         minus sign.
101283         * modules/vasnprintf (Files): Remove lib/float+.h.
101284         * modules/fprintf-posix (Depends-on): Add signbit.
101285         * modules/snprintf-posix (Depends-on): Likewise.
101286         * modules/sprintf-posix (Depends-on): Likewise.
101287         * modules/vasnprintf-posix (Depends-on): Likewise.
101288         * modules/vasprintf-posix (Depends-on): Likewise.
101289         * modules/vfprintf-posix (Depends-on): Likewise.
101290         * modules/vsnprintf-posix (Depends-on): Likewise.
101291         * modules/vsprintf-posix (Depends-on): Likewise.
101293 2007-04-06  Bruno Haible  <bruno@clisp.org>
101295         * tests/test-frexp.c (main): Test also the sign bit of zero results.
101296         * tests/test-frexpl.c (main): Likewise.
101297         * tests/test-ldexpl.c (main): Likewise.
101298         * modules/frexp-tests (Depends-on): Add signbit.
101299         * modules/frexpl-tests (Depdends-on): Likewise.
101300         * modules/ldexpl-tests (Depdends-on): Likewise.
101302 2007-04-06  Bruno Haible  <bruno@clisp.org>
101304         * modules/signbit-tests: New file.
101305         * tests/test-signbit.c: New file.
101307         * modules/signbit: New file.
101308         * lib/signbitf.c: New file.
101309         * lib/signbitd.c: New file.
101310         * lib/signbitl.c: New file.
101311         * m4/signbit.m4: New file.
101312         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
101313         (signbit): New macro.
101314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
101315         REPLACE_SIGNBIT.
101316         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
101317         REPLACE_FREXPL into math.h.
101319 2007-04-06  Bruno Haible  <bruno@clisp.org>
101321         * modules/isnanf-nolibm-tests: New file.
101322         * tests/test-isnanf.c: New file.
101324         * modules/isnanf-nolibm: New file.
101325         * lib/isnanf.h: New file.
101326         * lib/isnanf.c: New file.
101327         * lib/isnan.c: Consider the USE_FLOAT macro.
101328         * m4/isnanf.m4: New file.
101330 2007-04-06  Bruno Haible  <bruno@clisp.org>
101332         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
101333         (Link): New section.
101335         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
101337 2007-04-06  Bruno Haible  <bruno@clisp.org>
101339         Assume the 'long double' type.
101340         * m4/longdouble.m4: Remove file.
101341         * config/srclist.txt: Don't mention longdouble.m4.
101342         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
101343         * lib/float+.h: Likewise.
101344         * lib/frexp.c: Likewise.
101345         * lib/printf-args.h: Likewise.
101346         * lib/printf-args.c: Likewise.
101347         * lib/printf-frexp.c: Likewise.
101348         * lib/printf-parse.c: Likewise.
101349         * lib/vasnprintf.c: Likewise.
101350         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
101351         * m4/intl.m4: Likewise.
101352         * m4/isnanl.m4: Likewise.
101353         * m4/printf.m4: Likewise.
101354         * m4/printf-frexpl.m4: Likewise.
101355         * m4/vasnprintf.m4: Likewise.
101356         * modules/allocsa (Files): Remove m4/longdouble.m4.
101357         * modules/gettext (Files): Likewise.
101358         * modules/relocatable-prog-wrapper (Files): Likewise.
101359         * modules/vasnprintf (Files): Likewise.
101360         * modules/isnanl (Files): Likewise.
101361         (Include): Simplify.
101362         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
101363         (Include): Simplify.
101364         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
101365         (Include): Simplify.
101366         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
101367         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101368         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
101369         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101370         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
101371         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101372         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
101373         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101374         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
101375         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101376         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
101377         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101378         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
101379         * tests/test-isnanl.c: Likewise.
101380         * tests/test-snprintf-posix.h: Likewise.
101381         * tests/test-sprintf-posix.h: Likewise.
101382         * tests/test-vasnprintf-posix.c: Likewise.
101383         * tests/test-vasnprintf-posix2.c: Likewise.
101384         * tests/test-vasprintf-posix.c: Likewise.
101386 2007-04-06  Bruno Haible  <bruno@clisp.org>
101388         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
101389         * lib/math_.h [__DECC]: Include the overridden include file through
101390         #include_next, outside the double-inclusion guard.
101391         * lib/stdio_.h [__DECC]: Likewise.
101392         * lib/stdlib_.h [__DECC]: Likewise.
101393         * lib/string_.h [__DECC]: Likewise.
101394         * lib/time_.h [__DECC]: Likewise.
101395         * lib/wchar_.h [__DECC]: Likewise.
101396         * lib/wctype_.h [__DECC]: Likewise.
101397         * lib/inttypes_.h [__DECC]: Likewise.
101398         Reported by Albert Chin <china@thewrittenword.com> in
101399         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
101401 2007-04-04  Eric Blake  <ebb9@byu.net>
101403         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
101404         1.5.x.
101406 2007-04-04  Bruno Haible  <bruno@clisp.org>
101408         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
101409         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
101411 2007-04-04  Bruno Haible  <bruno@clisp.org>
101413         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
101414         results for "%010a" of Infinity and NaN.
101415         * tests/test-vasprintf-posix.c (test_function): Likewise.
101416         * tests/test-snprintf-posix.h (test_function): Likewise.
101417         * tests/test-sprintf-posix.h (test_function): Likewise.
101418         * tests/test-fprintf-posix.h (test_function): Remove these tests.
101419         * tests/test-printf-posix.h (test_function): Likewise.
101420         * tests/test-fprintf-posix.out: Update.
101421         Needed for FreeBSD 6.1.
101423 2007-04-04  Bruno Haible  <bruno@clisp.org>
101425         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
101426         directly used by the gnulib modules nor by gnulib-tool.
101428 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
101430         * DEPENDENCIES: Give overall description of version dependency
101431         desirability.  Use more-typical names for apps.
101432         Add shell, coreutils, diffutils, grep, tar, gzip.
101434 2007-04-04  Simon Josefsson  <simon@josefsson.org>
101436         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
101438 2007-04-04  Karl Berry  <karl@gnu.org>
101440         * MODULES.html.sh (func_module): missing '.
101442 2007-04-03  Bruno Haible  <bruno@clisp.org>
101444         * modules/argmatch-tests (Makefile.am): New variable
101445         test_argmatch_LDADD.
101446         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
101447         * modules/array-list-tests (Makefile.am): New variable
101448         test_array_list_LDADD.
101449         * modules/array-oset-tests (Makefile.am): New variable
101450         test_array_oset_LDADD.
101451         * modules/avltree-list-tests (Makefile.am): New variable
101452         test_avltree_list_LDADD.
101453         * modules/avltree-oset-tests (Makefile.am): New variable
101454         test_avltree_oset_LDADD.
101455         * modules/avltreehash-list-tests (Makefile.am): New variable
101456         test_avltreehash_list_LDADD.
101457         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
101458         test_canonicalize_lgpl_LDADD.
101459         * modules/carray-list-tests (Makefile.am): New variable
101460         test_carray_list_LDADD.
101461         * modules/dirname-tests (Makefile.am): New variable
101462         test_dirname_LDADD.
101463         * modules/linked-list-tests (Makefile.am): New variable
101464         test_linked_list_LDADD.
101465         * modules/linkedhash-list-tests (Makefile.am): New variable
101466         test_linkedhash_list_LDADD.
101467         * modules/rbtree-list-tests (Makefile.am): New variable
101468         test_rbtree_list_LDADD.
101469         * modules/rbtree-oset-tests (Makefile.am): New variable
101470         test_rbtree_oset_LDADD.
101471         * modules/rbtreehash-list-tests (Makefile.am): New variable
101472         test_rbtreehash_list_LDADD.
101473         * modules/xvasprintf-tests (Makefile.am): New variable
101474         test_xvasprintf_LDADD.
101475         Reported by Eric Blake.
101477 2007-04-03  Eric Blake  <ebb9@byu.net>
101479         * DEPENDENCIES: Weaken m4 requirements.
101481 2007-04-03  Bruno Haible  <bruno@clisp.org>
101483         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
101484         * modules/isnanl-tests (configure.ac): Likewise.
101486 2007-04-03  Ben Pfaff  <blp@gnu.org>
101488         * modules/iconv_open: Add $(srcdir)/ to source directory
101489         references in Makefile fragments that call gperf, to fix VPATH
101490         builds.
101492 2007-04-03  Bruno Haible  <bruno@clisp.org>
101494         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
101495         * lib/ldexpl.c: Undo last change.
101497 2007-04-03  Bruno Haible  <bruno@clisp.org>
101499         * modules/printf-frexpl (Depends-on): Undo last change.
101500         (Files): Add m4/ldexpl.m4.
101502 2007-04-03  Bruno Haible  <bruno@clisp.org>
101504         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
101505         * modules/isnanl (Link): New section.
101507         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
101508         * modules/frexp (Link): New section.
101510         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
101511         * modules/frexpl (Link): New section.
101513         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
101514         * modules/ldexpl (Link): New section.
101516 2007-04-03  Bruno Haible  <bruno@clisp.org>
101518         * modules/TEMPLATE-EXTENDED: New file.
101519         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
101521 2007-04-03  Bruno Haible  <bruno@clisp.org>
101523         * DEPENDENCIES: New file.
101524         Suggested by Simon Josefsson.
101526 2007-04-03  Bruno Haible  <bruno@clisp.org>
101528         * doc/gnulib.texi: Escape @.
101530 2007-04-03  James Youngman  <jay@gnu.org>
101531         and Paul Eggert  <eggert@cs.ucla.edu>
101533         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
101534         birthtime on all systems that have birthtime, not just those which
101535         use st_birthtimensec rather than st_birthtim.  Putting zero in
101536         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
101537         that the birth time is not available for files on an NFS mount.
101539 2007-04-03  Simon Josefsson  <simon@josefsson.org>
101541         * modules/memxor: Move back from crypto/, suggested by Bruno.
101542         * modules/crypto/hmac-sha1: Fix memxor dependency.
101544         * modules/crypto/gc: Moved from ../.
101546 2007-04-02  Eric Blake  <ebb9@byu.net>
101548         * lib/ldexpl.c (includes): Avoid libm.
101550         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
101552 2007-04-02  Bruno Haible  <bruno@clisp.org>
101554         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
101555         on IRIX.
101557 2007-04-02  Bruno Haible  <bruno@clisp.org>
101559         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
101560         x86 or x86_64 platforms running MacOS X.
101561         Reported by Ryan Schmidt <@ryandesign.com>.
101563 2007-04-02  Bruno Haible  <bruno@clisp.org>
101565         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
101566         i386.
101568 2007-04-01  Simon Josefsson  <simon@josefsson.org>
101570         * modules/crypto/arcfour: Moved from ../.
101571         * modules/crypto/arcfour-tests: Moved from ../.
101572         * modules/crypto/arctwo: Moved from ../.
101573         * modules/crypto/arctwo-tests: Moved from ../.
101574         * modules/crypto/des: Moved from ../.
101575         * modules/crypto/des-tests: Moved from ../.
101576         * modules/crypto/gc-arcfour: Moved from ../.
101577         * modules/crypto/gc-arcfour-tests: Moved from ../.
101578         * modules/crypto/gc-arctwo: Moved from ../.
101579         * modules/crypto/gc-arctwo-tests: Moved from ../.
101580         * modules/crypto/gc-des: Moved from ../.
101581         * modules/crypto/gc-des-tests: Moved from ../.
101582         * modules/crypto/gc-hmac-md5: Moved from ../.
101583         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
101584         * modules/crypto/gc-hmac-sha1: Moved from ../.
101585         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
101586         * modules/crypto/gc-md2: Moved from ../.
101587         * modules/crypto/gc-md2-tests: Moved from ../.
101588         * modules/crypto/gc-md4: Moved from ../.
101589         * modules/crypto/gc-md4-tests: Moved from ../.
101590         * modules/crypto/gc-md5: Moved from ../.
101591         * modules/crypto/gc-md5-tests: Moved from ../.
101592         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
101593         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
101594         * modules/crypto/gc-random: Moved from ../.
101595         * modules/crypto/gc-rijndael: Moved from ../.
101596         * modules/crypto/gc-rijndael-tests: Moved from ../.
101597         * modules/crypto/gc-sha1: Moved from ../.
101598         * modules/crypto/gc-sha1-tests: Moved from ../.
101599         * modules/crypto/gc-tests: Moved from ../.
101600         * modules/crypto/hmac-md5: Moved from ../.
101601         * modules/crypto/hmac-md5-tests: Moved from ../.
101602         * modules/crypto/hmac-sha1: Moved from ../.
101603         * modules/crypto/hmac-sha1-tests: Moved from ../.
101604         * modules/crypto/md2: Moved from ../.
101605         * modules/crypto/md2-tests: Moved from ../.
101606         * modules/crypto/md4: Moved from ../.
101607         * modules/crypto/md4-tests: Moved from ../.
101608         * modules/crypto/md5: Moved from ../.
101609         * modules/crypto/md5-tests: Moved from ../.
101610         * modules/crypto/memxor: Moved from ../.
101611         * modules/crypto/rijndael: Moved from ../.
101612         * modules/crypto/rijndael-tests: Moved from ../.
101613         * modules/crypto/sha1: Moved from ../.
101615 2007-03-30  James Youngman  <jay@gnu.org>
101617         * tests/test-stat-time.c (prepare_test): use chmod() rather than
101618         rename() to change the ctime of a file (because ctime is unaffected
101619         by rename on jfs2 on AIX 5.1).
101620         (main): Start by doing cleanup, in case a previous run failed leaving
101621         test files behind.
101623 2007-03-31  Bruno Haible  <bruno@clisp.org>
101625         Support old proprietary implementations of iconv.
101626         * modules/iconv_open: New file.
101627         * lib/iconv_.h: New file.
101628         * m4/iconv_h.m4: New file.
101629         * lib/iconv_open.c: New file.
101630         * lib/iconv_open-aix.gperf: New file.
101631         * lib/iconv_open-hpux.gperf: New file.
101632         * lib/iconv_open-irix.gperf: New file.
101633         * lib/iconv_open-osf.gperf: New file.
101634         * m4/iconv_open.m4: New file.
101635         * modules/linebreak (Depends-on): Add iconv_open.
101636         * modules/striconv (Depends-on): Likewise.
101637         * modules/striconveh (Depends-on): Likewise.
101638         * modules/unicodeio (Depends-on): Likewise.
101639         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
101640         (iconv_t)(-1).
101641         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
101642         conversion if cd is (iconv_t)(-1).
101643         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
101644         is not possible.
101646 2007-03-31  Bruno Haible  <bruno@clisp.org>
101648         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
101649         work on Solaris either. Protect also second use of "autodetect_jp".
101651 2007-03-31  Bruno Haible  <bruno@clisp.org>
101653         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
101654         the function is not present.
101656 2007-03-31  Bruno Haible  <bruno@clisp.org>
101658         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
101659         the function is not present.
101661 2007-03-31  Bruno Haible  <bruno@clisp.org>
101663         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
101664         a bug in HP-UX iconv_open().
101666 2007-03-31  Bruno Haible  <bruno@clisp.org>
101668         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
101669         (Mathematics <math.h>): New section, add fpieee.
101670         (Input/output <stdio.h>): Add fseterr.
101671         (Mathematics <math.h>): New section, add printf-frexp.
101672         (Container data structures): Add sublist.
101673         (Core language properties): Add fpucw, inline.
101674         (Functions for greatest-width integer types <inttypes.h>): Add
101675         imaxabs, imaxdiv, inttypes.
101676         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
101677         isnanl-nolibm, ldexp.
101678         (Mathematics <math.h>): New section, add printf-frexpl.
101679         (Support for systems lacking POSIX:2001): Add fprintf-posix,
101680         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
101681         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
101682         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
101683         (Unicode string functions): Add unistr/u*-mbtoucr.
101684         (Java): Add javacomp-script, javaexec-script.
101685         (C#): Add csharpcomp-script, csharpexec-script.
101686         (Support for building libraries and executables): Add havelib,
101687         relocatable-*.
101688         (Support for maintaining and releasing projects): Renamed from
101689         'Support for maintaining and release projects'. Add announce-gen.
101691 2007-03-31  Bruno Haible  <bruno@clisp.org>
101693         * README: Talk primarily about git.
101694         (git and CVS): Renamed from CVS.
101695         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
101696         gnulib is available through git.
101697         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
101699 2007-03-30  Bruno Haible  <bruno@clisp.org>
101701         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
101702         * lib/poll_.h: Likewise.
101703         * lib/stat_.h: Likewise.
101704         * lib/sys_time_.h: Likewise.
101705         * lib/sysexit_.h: Likewise.
101706         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
101707         * lib/stdbool_.h: Likewise.
101708         * lib/byteswap_.h: Add double-inclusion guard.
101710 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
101712         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
101714 2007-03-30  Karl Berry  <karl@gnu.org>
101716         * config/srclist-update: double space after USA in the license
101717         substitution, since that's how it's usually (?) written.
101719 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
101721         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
101722         reported by Bruno Haible.
101724 2007-03-29  Bruno Haible  <bruno@clisp.org>
101726         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
101727         a bug in AIX iconv().
101729 2007-03-29  Bruno Haible  <bruno@clisp.org>
101731         * modules/ldexpl-tests: New file.
101732         * tests/test-ldexpl.c: New file.
101734 2007-03-29  Bruno Haible  <bruno@clisp.org>
101736         * lib/ldexpl.c: Include fpucw.h.
101737         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
101738         multiplication.
101739         * modules/ldexpl (Depends-on): Add fpucw.
101741 2007-03-29  Bruno Haible  <bruno@clisp.org>
101743         * modules/ldexpl: New file.
101744         * m4/ldexpl.m4: New file.
101745         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
101746         set.
101747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
101748         REPLACE_LDEXPL.
101749         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
101750         REPLACE_LDEXPL.
101751         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
101752         gl_FUNC_LDEXPL_WORKS.
101753         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
101754         * modules/mathl (Files): Remove lib/ldexpl.c.
101755         (Depends-on): Add ldexpl.
101757 2007-03-29  Bruno Haible  <bruno@clisp.org>
101759         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
101761 2007-03-29  Bruno Haible  <bruno@clisp.org>
101763         * tests/test-striconveh.c (main): Don't assume that a direct conversion
101764         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
101765         and possibly also HP-UX.
101766         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
101767         work on AIX, IRIX, HP-UX, OSF/1.
101768         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
101769         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
101770         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
101771         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
101772         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
101773         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
101775 2007-03-29  Bruno Haible  <bruno@clisp.org>
101777         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
101779 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
101781         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
101782         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
101784 2007-03-29  Eric Blake  <ebb9@byu.net>
101786         * lib/acl-internal.h: Remove redundant include.
101787         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
101788         Cygwin when a file is locked.
101790 2007-03-29  Bruno Haible  <bruno@clisp.org>
101792         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
101793         file.
101794         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
101796 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
101798         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
101799         try to remove a parent directory if the child couldn't be removed
101800         (except for the first rmdir, which could fail because the child
101801         doesn't exist).  Problem reported by Jeff Blaine in
101802         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
101804 2007-03-28  Bruno Haible  <bruno@clisp.org>
101806         * lib/striconveh.c (utf8conv_carefully): New function.
101807         (mem_cd_iconveh_internal): Invoke it.
101809 2007-03-28  Bruno Haible  <bruno@clisp.org>
101811         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
101812         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
101813         input.
101814         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
101815         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
101816         unistr/u8-uctomb.
101818 2007-03-28  Bruno Haible  <bruno@clisp.org>
101820         * modules/unistr/u8-mbtoucr: New file.
101821         * lib/unistr/u8-mbtoucr.c: New file.
101822         * modules/unistr/u16-mbtoucr: New file.
101823         * lib/unistr/u16-mbtoucr.c: New file.
101824         * modules/unistr/u16-mbtoucr: New file.
101825         * lib/unistr/u16-mbtoucr.c: New file.
101826         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
101828 2007-03-27  Simon Josefsson  <simon@josefsson.org>
101829             Bruno Haible  <bruno@clisp.org>
101831         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
101832         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
101833         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
101835         * m4/stdio_h.m4: Add stubs for vasprintf too.
101837         * modules/stdio: Support vasprintf in sed command.
101839         * modules/vasprintf: Depend on stdio for prototypes.  Remove
101840         vasprintf.h.  Add stdio module indicator.
101842         * lib/stdio_.h: Declare asprintf and vasprintf, based on
101843         vasprintf.h.
101845         * lib/vasprintf.h: File removed.
101847         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
101848         * lib/vasprintf.c: Ditto.
101849         * lib/xvasprintf.c: Ditto.
101850         * tests/test-vasprintf-posix.c: Ditto.
101851         * tests/test-vasprintf.c: Ditto.
101853 2007-03-27  Bruno Haible  <bruno@clisp.org>
101855         Make vasnprintf multithread-safe.
101856         * lib/vasnprintf.c (decimal_point_char): New function.
101857         (VASNPRINTF): Use it.
101858         Suggested by Simon Josefsson.
101860 2007-03-27  Eric Blake  <ebb9@byu.net>
101862         Support sub-second birthtime on cygwin.
101863         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
101864         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
101865         (get_stat_birthtime): Also work with st_birthtim.
101867 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
101869         * lib/stat-time.h (USE_BIRTHTIME): Remove.
101870         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
101871         (get_stat_birthtime_ns): Do not try to use "spare" fields.
101872         (get_stat_birthtime_ns): Simplify compile-time tests.
101873         (get_stat_birthtime): Change the API to look like
101874         get_stat_mtime etc., except return a negative tv_nsec on error.
101875         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
101876         Don't check for "spare" fields.
101877         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
101878         or for struct stat.st_birthtime, as these tests aren't used.
101879         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
101881 2007-03-27  Bruno Haible  <bruno@clisp.org>
101883         * lib/stat-time.h: Include <sys/stat.h>.
101885 2007-03-27  James Youngman  <jay@gnu.org>
101887         * lib/stat-time.h (get_stat_birthtime): New function for
101888           retrieving st_birthtime as provided by UFS2 (hence *BSD).
101889         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
101890           and its variants.
101891         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
101892         * modules/stat-time-test: New file.
101893         * tests/test-stat-time.c: New test, devised by Bruno Haible.
101895 2007-03-26  Bruno Haible  <bruno@clisp.org>
101897         Better support of signalling NaNs.
101898         * lib/atanl.c: Include isnanl.h.
101899         (atanl): Perform test for NaN at the beginning of the function and
101900         through a call to isnanl.
101901         * lib/cosl.c: Include isnanl.h.
101902         (cosl): Perform test for NaN at the beginning of the function and
101903         through a call to isnanl.
101904         * lib/ldexpl.c: Include isnanl.h.
101905         (ldexpl): Perform test for NaN through a call to isnanl.
101906         * lib/logl.c: Include isnanl.h.
101907         (logl): Perform test for NaN at the beginning of the function and
101908         through a call to isnanl.
101909         * lib/sinl.c: Include isnanl.h.
101910         (sinl): Perform test for NaN at the beginning of the function and
101911         through a call to isnanl.
101912         * lib/sqrtl.c: Include isnanl.h.
101913         (sqrtl): Perform test for NaN at the beginning of the function and
101914         through a call to isnanl.
101915         * lib/tanl.c: Include isnanl.h.
101916         (tanl): Perform test for NaN at the beginning of the function and
101917         through a call to isnanl.
101918         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
101919         * modules/mathl (Depends-on): Add isnanl.
101921 2007-03-26  Eric Blake  <ebb9@byu.net>
101923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
101924         regression in logic sense of previous patch.
101926 2007-03-26  Bruno Haible  <bruno@clisp.org>
101928         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
101929         unportable shell command "if ! ...".
101930         Reported by Ralf Wildenhues.
101932 2007-03-25  Bruno Haible  <bruno@clisp.org>
101934         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
101935         <sysexits.h> file, and only add EX_CONFIG.
101936         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
101937         absolute file name and whether it is sufficient. Substitute also
101938         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
101939         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
101940         ABSOLUTE_SYSEXITS_H into sysexits.h.
101942 2007-03-25  Bruno Haible  <bruno@clisp.org>
101944         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
101945         hints is NULL.
101947 2007-03-25  Bruno Haible  <bruno@clisp.org>
101949         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
101950         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
101952 2007-03-25  Bruno Haible  <bruno@clisp.org>
101954         * lib/vasnprintf.c: Include langinfo.h.
101955         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
101956         multithread-safe.
101957         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
101958         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
101959         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101960         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101961         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101962         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101963         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101964         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
101965         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101966         Reported by Simon Josefsson.
101968 2007-03-25  Bruno Haible  <bruno@clisp.org>
101970         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
101971         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
101972         * modules/vasnprintf (Depends-on): Add stdint.
101974 2007-03-25  Bruno Haible  <bruno@clisp.org>
101976         * modules/fpieee: New file.
101977         * m4/fpieee.m4: New file.
101978         * modules/isnan-nolibm (Depends-on): Add fpieee.
101979         * modules/isnanl-nolibm (Depends-on): Add fpieee.
101980         * modules/isnanl (Depends-on): Add fpieee.
101982 2007-03-25  Bruno Haible  <bruno@clisp.org>
101984         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
101986 2007-03-25  Bruno Haible  <bruno@clisp.org>
101988         Avoid test failures on IRIX 6.5.
101989         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
101990         (main): Use it.
101991         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
101992         macros.
101993         (main): Use them.
101995 2007-03-25  Bruno Haible  <bruno@clisp.org>
101997         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
101998         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
101999         exists but doesn't work.
102000         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
102001         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
102002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
102003         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
102004         math.h.
102006 2007-03-25  Bruno Haible  <bruno@clisp.org>
102008         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
102009         returns inf. Needed on IRIX 6.5.
102011 2007-03-25  Bruno Haible  <bruno@clisp.org>
102013         * tests/test-frexpl.c: Include isnanl-nolibm.h.
102014         (main): Use isnanl instead of x != x idiom.
102015         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
102017         * tests/test-frexp.c: Include isnan.h.
102018         (main): Use isnan instead of x != x idiom.
102019         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
102021 2007-03-25  Bruno Haible  <bruno@clisp.org>
102023         * tests/test-frexp.c (NaN): New function/macro.
102024         (main): Use it instead of 0.0 / 0.0.
102025         * tests/test-isnan.c (NaN): New function/macro.
102026         (main): Use it instead of 0.0 / 0.0.
102027         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
102028         (test_function): Use it instead of 0.0 / 0.0.
102029         * tests/test-vasprintf-posix.c (NaN): New function/macro.
102030         (test_function): Use it instead of 0.0 / 0.0.
102031         * tests/test-snprintf-posix.h (NaN): New function/macro.
102032         (test_function): Use it instead of 0.0 / 0.0.
102033         * tests/test-sprintf-posix.h (NaN): New function/macro.
102034         (test_function): Use it instead of 0.0 / 0.0.
102035         * tests/test-fprintf-posix.h (NaN): New function/macro.
102036         (test_function): Use it instead of 0.0 / 0.0.
102037         * tests/test-printf-posix.h (NaN): New function/macro.
102038         (test_function): Use it instead of 0.0 / 0.0.
102040         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
102042 2007-03-25  Bruno Haible  <bruno@clisp.org>
102044         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
102046 2007-03-25  Bruno Haible  <bruno@clisp.org>
102048         * lib/regexec.c (merge_state_with_log): Make static.
102050 2007-03-25  Bruno Haible  <bruno@clisp.org>
102052         * lib/trigl.c (kernel_rem_pio2): Make static.
102054 2007-03-25  Bruno Haible  <bruno@clisp.org>
102056         * lib/sincosl.c (sincosl_table): Make static.
102058 2007-03-25  Bruno Haible  <bruno@clisp.org>
102060         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
102061         if the compiler does not support C99.
102063 2007-03-25  Bruno Haible  <bruno@clisp.org>
102065         * modules/time (Makefile.am): Ensure all rule action lines start with a
102066         tab.
102068 2007-03-24  Bruno Haible  <bruno@clisp.org>
102070         * modules/tsearch-tests: New file.
102071         * tests/test-tsearch.sh: New file.
102072         * tests/test-tsearch.c: New file, mostly copied from glibc.
102074         * modules/search-tests: New file.
102075         * tests/test-search.c: New file.
102077         * modules/search: New file.
102078         * lib/search_.h: New file, incorporating lib/tsearch.h.
102079         * m4/search_h.m4: New file.
102080         * lib/tsearch.h: Remove file.
102081         * lib/tsearch.c: Include search.h instead of tsearch.h.
102082         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
102083         HAVE_TSEARCH.
102084         * modules/tsearch (Files): Remove lib/tsearch.h.
102085         (Depends-on): Add search.
102086         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
102087         (Include): Change tsearch.h into search.h.
102089 2007-03-24  Bruno Haible  <bruno@clisp.org>
102091         * modules/fpucw: New file.
102092         * lib/fpucw.h: New file.
102093         * lib/frexp.c: Include fpucw.h.
102094         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
102095         (FUNC): Use them.
102096         * lib/printf-frexp.c: Include fpucw.h.
102097         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
102098         (FUNC): Use them.
102099         * lib/vasnprintf.c: Include fpucw.h.
102100         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
102101         'long double' calculations.
102102         * tests/test-frexpl.c: Include fpucw.h.
102103         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
102104         * tests/test-printf-frexpl.c: Include fpucw.h.
102105         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
102106         * modules/frexpl (Depends-on): Add fpucw.
102107         * modules/printf-frexpl (Depends-on): Likewise.
102108         * modules/fprintf-posix (Depends-on): Likewise.
102109         * modules/snprintf-posix (Depends-on): Likewise.
102110         * modules/sprintf-posix (Depends-on): Likewise.
102111         * modules/vasnprintf-posix (Depends-on): Likewise.
102112         * modules/vasprintf-posix (Depends-on): Likewise.
102113         * modules/vfprintf-posix (Depends-on): Likewise.
102114         * modules/vsnprintf-posix (Depends-on): Likewise.
102115         * modules/vsprintf-posix (Depends-on): Likewise.
102116         * modules/frexpl-tests (Depends-on): Likewise.
102117         * modules/printf-frexpl-tests (Depends-on): Likewise.
102119 2007-03-24  Bruno Haible  <bruno@clisp.org>
102121         * lib/float+.h: New file.
102122         * lib/isnan.c: Include float+.h.
102123         (SIZE): New macro.
102124         (FUNC): Compare only SIZE bytes of the value.
102125         * lib/vasnprintf.c: Include float+.h.
102126         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
102127         SIZEOF_LDBL or SIZEOF_DBL bytes.
102128         * modules/isnan-nolibm (Files): Add lib/float+.h.
102129         * modules/isnanl-nolibm (Files): Add lib/float+.h.
102130         * modules/isnanl (Files): Add lib/float+.h.
102131         * modules/vasnprintf (Files): Add lib/float+.h.
102133 2007-03-24  Bruno Haible  <bruno@clisp.org>
102135         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
102136         include isnanl-nolibm.h.
102138 2007-03-24  Bruno Haible  <bruno@clisp.org>
102140         * tests/test-read-file.c (main): Don't produce spurious output for
102141         expected situations. Make the test fail if it encountered unexpected
102142         results.
102144 2007-03-24  Bruno Haible  <bruno@clisp.org>
102146         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
102147         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
102149 2007-03-24  Bruno Haible  <bruno@clisp.org>
102151         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
102153 2007-03-24  Bruno Haible  <bruno@clisp.org>
102155         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
102156         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
102158         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
102159         * modules/utf8-ucs4: Turn into a symbolic link to module
102160         unistr/u8-mbtouc.
102162         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
102163         utf8-ucs4-unsafe.
102164         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
102165         unistr/u8-mbtouc-unsafe.
102167         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
102168         * modules/utf16-ucs4: Turn into a symbolic link to module
102169         unistr/u16-mbtouc.
102171         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
102172         utf16-ucs4-unsafe.
102173         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
102174         unistr/u16-mbtouc-unsafe.
102176         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
102177         * modules/ucs4-utf8: Turn into a symbolic link to module
102178         unistr/u8-ubtomb.
102180         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
102181         * modules/ucs4-utf16: Turn into a symbolic link to module
102182         unistr/u16-ubtomb.
102184 2007-03-24  Bruno Haible  <bruno@clisp.org>
102186         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
102187         Enable the function only if HAVE_INLINE.
102188         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
102189         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
102190         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
102191         Enable the function only if HAVE_INLINE.
102192         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
102193         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
102194         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
102195         Enable the function only if HAVE_INLINE.
102196         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
102197         Enable the function only if HAVE_INLINE.
102198         * modules/utf8-ucs4: Update.
102199         * modules/utf8-ucs4-unsafe: Update.
102200         * modules/utf16-ucs4: Update.
102201         * modules/utf16-ucs4-unsafe: Update.
102202         * modules/ucs4-utf8: Update.
102203         * modules/ucs4-utf16: Update.
102205 2007-03-24  Bruno Haible  <bruno@clisp.org>
102207         * lib/utf8-ucs4.h: Remove file.
102208         * lib/utf8-ucs4-unsafe.h: Remove file.
102209         * lib/utf16-ucs4.h: Remove file.
102210         * lib/utf16-ucs4-unsafe.h: Remove file.
102211         * lib/ucs4-utf8.h: Remove file.
102212         * lib/ucs4-utf16.h: Remove file.
102213         * lib/unistr.h: Include their previous contents.
102214         * m4/utf-ucs4.m4: Remove file.
102215         * m4/ucs4-utf.m4: Remove file.
102216         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
102217         (Depends-on): Add unistr/base.
102218         (configure.ac): Remove gl_UTF_UCS4.
102219         (Makefile.am): Update.
102220         (Include): Change to unistr.h.
102221         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
102222         (Depends-on): Add unistr/base.
102223         (configure.ac): Remove gl_UTF_UCS4.
102224         (Makefile.am): Update.
102225         (Include): Change to unistr.h.
102226         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
102227         (Depends-on): Add unistr/base.
102228         (configure.ac): Remove gl_UTF_UCS4.
102229         (Makefile.am): Update.
102230         (Include): Change to unistr.h.
102231         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
102232         (Depends-on): Add unistr/base.
102233         (configure.ac): Remove gl_UTF_UCS4.
102234         (Makefile.am): Update.
102235         (Include): Change to unistr.h.
102236         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
102237         (Depends-on): Add unistr/base.
102238         (configure.ac): Remove gl_UCS4_UTF.
102239         (Makefile.am): Update.
102240         (Include): Change to unistr.h.
102241         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
102242         (Depends-on): Add unistr/base.
102243         (configure.ac): Remove gl_UCS4_UTF.
102244         (Makefile.am): Update.
102245         (Include): Change to unistr.h.
102246         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
102247         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
102248         utf8-ucs4-unsafe.h.
102249         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
102250         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
102251         utf16-ucs4-unsafe.h.
102252         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
102253         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
102254         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
102255         * lib/unistr/u8-strchr.c: Likewise.
102256         * lib/unistr/u8-strrchr.c: Likewise.
102257         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
102258         * lib/unistr/u16-strchr.c: Likewise.
102259         * lib/unistr/u16-strrchr.c: Likewise.
102260         * lib/striconveh.c: Update.
102261         * lib/linebreak.c: Update.
102263 2007-03-24  Bruno Haible  <bruno@clisp.org>
102265         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
102266         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
102268 2007-03-22  Bruno Haible  <bruno@clisp.org>
102270         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
102272 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
102274         * MODULES.html.sh (File system functions): New module write-any-file.
102275         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
102276         * m4/write-any-file.m4: New files.
102278 2007-03-23  Eric Blake  <ebb9@byu.net>
102280         * gnulib-tool: Rearrange space-tab sequences, since some editors
102281         like to eat them.
102283 2007-03-23  Eric Blake  <ebb9@byu.net>
102285         * lib/version-etc.c (version_etc_va): Update license wording to
102286         be more concise.  Recommended by Richard Stallman.
102288 2007-03-22  Bruno Haible  <bruno@clisp.org>
102290         * lib/poll.c (MSG_PEEK): New fallback definition.
102292 2007-03-22  Bruno Haible  <bruno@clisp.org>
102294         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
102295         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
102296         (main): Update.
102297         Fixes a compilation error on BeOS.
102299 2007-03-22  Bruno Haible  <bruno@clisp.org>
102301         * modules/frexpl-tests: New file.
102302         * tests/test-frexpl.c: New file.
102304         * modules/frexpl: New file.
102305         * m4/frexpl.m4: New file.
102306         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
102307         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
102308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
102309         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
102310         (Depends-on): Add frexpl. Remove isnanl-nolibm.
102311         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
102313 2007-03-22  Bruno Haible  <bruno@clisp.org>
102315         * lib/frexpl.c: Share code with lib/frexp.c.
102316         * modules/mathl (Files): Add lib/frexp.c.
102317         (Depends-on): Add isnanl-nolibm.
102319 2007-03-22  Bruno Haible  <bruno@clisp.org>
102321         * modules/printf-frexp (Files): Add m4/frexp.m4.
102322         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
102323         only if the found frexp function actually works.
102325 2007-03-22  Bruno Haible  <bruno@clisp.org>
102327         * lib/frexp.c: Remove older implementation that uses divisions.
102329 2007-03-21  Bruno Haible  <bruno@clisp.org>
102331         * modules/frexp-tests: New file.
102332         * tests/test-frexp.c: New file.
102334         * modules/frexp: New file.
102335         * lib/frexp.c: New file.
102336         * m4/frexp.m4: New file.
102337         * lib/math_.h (frexp): New declaration.
102338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
102339         REPLACE_FREXP.
102340         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
102342 2007-03-21  Bruno Haible  <bruno@clisp.org>
102344         * modules/isnanl-tests: New file.
102345         * tests/test-isnanl.c: New file.
102347         * modules/isnanl: New file.
102348         * lib/isnanl.h: New file.
102349         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
102350         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
102351         gl_FUNC_ISNANL_WORKS.
102352         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
102353         New macros.
102355 2007-03-21  Bruno Haible  <bruno@clisp.org>
102357         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
102358         lib/isnanl.h.
102359         (Include): Update.
102360         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
102361         * lib/vasnprintf.c: Update.
102362         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
102363         tests/test-isnanl.h, remove tests/test-isnanl.c.
102364         (Makefile.am): Update.
102365         * tests/test-isnanl-nolibm.c: New file.
102366         * tests/test-isnanl.h: New file.
102367         * tests/test-isnanl.c: Remove file.
102369 2007-03-21  Jim Meyering  <jim@meyering.net>
102371         When trying to open ".", treat ESTALE like EACCES.
102372         * lib/savewd.c (savewd_save): Resort to forking not just upon
102373         failure with EACCES, but also when errno is ESTALE.
102375 2007-03-20  Bruno Haible  <bruno@clisp.org>
102377         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
102378         Needed on AIX 5.1. Reported by Matthew Woehlke.
102380 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102382         Suggestions by Bruno Haible:
102383         * lib/acl-internal.h: Include "gettext.h" rather than rolling
102384         our own.
102385         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
102386         * modules/acl (Depends-on): Add gettext.
102388 2007-03-19  Bruno Haible  <bruno@clisp.org>
102390         * modules/iconvme: Remove file.
102391         * lib/iconvme.h: Remove file.
102392         * lib/iconvme.c: Remove file.
102393         * m4/iconvme.m4: Remove file.
102395 2007-03-19  Bruno Haible  <bruno@clisp.org>
102397         * doc/relocatable-maint.texi: Break long shell script line.
102398         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102400 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102402         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
102403         handle file_has_acl.
102404         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
102405         * lib/acl.c: Move header inclusions and related macro defns into
102406         lib/acl-internal.h.
102407         (S_ISLNK): Remove defn, since that's now done for us.
102408         (file_has_acl): Move to lib/file-has-acl.c.
102409         Call acl_trivial if available.  This is the crucial part of the fix.
102410         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
102411         shared within the library.  Rewrite a bit, partly to make it compatible
102412         with the GNU coding style.
102413         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
102414         Remove unnecessary double-quotes.
102415         Don't test for acl_to_text; the build will catch that.
102416         Replace acl_entries if it doesn't exist and it is needed.
102417         Check for -lsec and acl_trivial (as used on Solaris 10).
102418         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
102419         lib/file-has-acl.c.
102420         (Depends-on): Add sys_stat, for S_ISLNK.
102422 2007-03-19  Ben Pfaff  <blp@gnu.org>
102424         * doc/gnulib.texi: Fix typos.
102425         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102427 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102429         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
102430         If size is zero here, buf must be zero.
102432 2007-03-19  Simon Josefsson  <simon@josefsson.org>
102434         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
102435         <bruno@clisp.org>.
102437 2007-03-18  Bruno Haible  <bruno@clisp.org>
102439         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
102440         Suggested by Eric Blake.
102442 2007-03-18  Ben Pfaff  <blp@gnu.org>
102444         * doc/relocatable.texi: Recommend using as prefix a directory
102445         that does not exist and will never be created.  Based on
102446         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
102447         and others.
102449 2007-03-17  Bruno Haible  <bruno@clisp.org>
102451         * lib/fchownat.c: Include lchown.h.
102453 2007-03-17  Bruno Haible  <bruno@clisp.org>
102455         Fix endless loop when the given allocated size was > INT_MAX.
102456         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
102457         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
102458         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
102459         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
102460         * lib/sprintf.c (sprintf): Likewise.
102462 2007-03-17  Bruno Haible  <bruno@clisp.org>
102464         * tests/test-argp-2.sh (func_compare): Output a context diff.
102466 2007-03-17  Bruno Haible  <bruno@clisp.org>
102468         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
102469         locale's decimal-point character.
102471 2007-03-17  Bruno Haible  <bruno@clisp.org>
102473         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
102474         before comparing it. Needed because on some platforms (e.g. x86) a
102475         'long double' occupies less bytes than sizeof (long double).
102477 2007-03-17  Bruno Haible  <bruno@clisp.org>
102479         * tests/test-crc.c (main): Make printf statements 64-bit clean.
102480         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
102481         * tests/test-getaddrinfo.c (simple): Likewise.
102482         * tests/test-read-file.c (main): Likewise.
102484 2007-03-17  Bruno Haible  <bruno@clisp.org>
102486         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
102488 2007-03-17  Bruno Haible  <bruno@clisp.org>
102490         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
102491         unused variable.
102493 2007-03-17  Bruno Haible  <bruno@clisp.org>
102495         * tests/test-c-strcasecmp.c: Include c-strcase.h.
102496         * tests/test-c-strncasecmp.c: Likewise.
102498 2007-03-17  Bruno Haible  <bruno@clisp.org>
102500         * modules/stdlib (Depends-on): Add unistd.
102501         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
102502         Needed for MacOS X 10.3.
102504 2007-03-17  Bruno Haible  <bruno@clisp.org>
102506         * lib/unistr/u-strdup.h: Include <stdlib.h>.
102508 2007-03-17  Bruno Haible  <bruno@clisp.org>
102510         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
102512 2007-03-17  Bruno Haible  <bruno@clisp.org>
102514         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
102515         to reflect files copied from gnulib (with or without modifications).
102516         Suggested by Jim Meyering.
102518 2007-03-17  Eric Blake  <ebb9@byu.net>
102520         * NEWS: Document stdlib change from 2007-02-18.
102522 2007-03-17  Jim Meyering  <jim@meyering.net>
102524         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
102525         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
102526         someone uses a name containing shell meta-characters.
102527         Reported by Alfred M. Szmidt.
102529         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
102531 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
102533         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
102534         and copy gettext configuration files only if configure.ac contains
102535         a use of AM_GNU_GETTEXT_VERSION.
102537 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
102539         * build-aux/bootstrap (gnulib_name): New variable.
102540         (gnulib_tool_options): Use it.
102542 2007-03-13  Simon Josefsson  <simon@josefsson.org>
102544         * tests/test-des.c: Use new namespace.
102546 2007-03-15  Bruno Haible  <bruno@clisp.org>
102548         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
102549         Reported by James Youngman <jay@gnu.org>.
102551 2007-03-15  Bruno Haible  <bruno@clisp.org>
102553         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
102554         declared prototype. Needed with cc on OSF/1 5.1.
102556 2007-03-15  Bruno Haible  <bruno@clisp.org>
102558         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
102559         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
102560         (struct gl_list_implementation): Add dispose_fn argument to the
102561         'create_empty', 'create' methods.
102562         (struct gl_list_impl_base): Add field 'dispose_fn'.
102563         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
102564         argument.
102565         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
102566         dispose_fn argument.
102567         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
102568         dispose_fn on the dropped values.
102569         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
102570         dispose_fn argument.
102571         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
102572         dropped values.
102573         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
102574         (gl_tree_remove_node): Call dispose_fn on the dropped value.
102575         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
102576         (gl_tree_remove_node): Call dispose_fn on the dropped value.
102577         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
102578         argument.
102579         (gl_tree_list_free): Call dispose_fn on the dropped values.
102580         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
102581         the dropped values.
102582         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
102583         Add dispose_fn argument.
102584         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
102585         Call dispose_fn on the dropped values.
102586         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
102587         Add dispose_fn argument.
102588         (gl_sublist_create): Initialize the 'dispose_fn' field.
102589         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
102590         * tests/test-array_list.c (main): Update.
102591         * tests/test-carray_list.c (main): Update.
102592         * tests/test-avltree_list.c (main): Update.
102593         * tests/test-rbtree_list.c (main): Update.
102594         * tests/test-avltreehash_list.c (main): Update.
102595         * tests/test-rbtreehash_list.c (main): Update.
102596         * tests/test-linked_list.c (main): Update.
102597         * tests/test-linkedhash_list.c (main): Update.
102598         * tests/test-array_oset.c (main): Update.
102600 2007-03-15  Bruno Haible  <bruno@clisp.org>
102602         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
102603         (gl_oset_create_empty): Add dispose_fn argument.
102604         (struct gl_oset_implementation): Add dispose_fn argument to
102605         'create_empty' method.
102606         (struct gl_oset_impl_base): Add dispose_fn field.
102607         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
102608         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
102609         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
102610         values.
102611         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
102612         (gl_tree_oset_free): Call dispose_fn on the dropped values.
102613         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
102614         dropped value.
102615         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
102616         dropped value.
102617         * tests/test-array_oset.c (main): Update.
102618         * tests/test-avltree_oset.c (main): Update.
102619         * tests/test-rbtree_oset.c (main): Update.
102620         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
102622 2007-03-13  Bruno Haible  <bruno@clisp.org>
102624         * tests/test-stdbool.c (i): Update after last patch.
102626 2007-03-12  Bruno Haible  <bruno@clisp.org>
102628         * lib/quotearg.c: Include <wctype.h> early, before the definition of
102629         the iswprint macro. Needed on Solaris 2.5.1.
102631 2007-03-12  Bruno Haible  <bruno@clisp.org>
102633         * tests/test-printf-frexp.c (main): Declare x as volatile.
102635 2007-03-12  Simon Josefsson  <simon@josefsson.org>
102637         * doc/gnulib.texi (Build robot for gnulib): New section.
102639 2007-03-12  Jim Meyering  <jim@meyering.net>
102641         * build-aux/bootstrap: New file.
102642         * build-aux/bootstrap.conf: New file, from coreutils.
102644 2007-03-11  Bruno Haible  <bruno@clisp.org>
102646         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
102648 2007-03-12  Simon Josefsson  <simon@josefsson.org>
102650         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
102651         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
102652         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
102654 2007-03-11  Bruno Haible  <bruno@clisp.org>
102656         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
102657         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
102659 2007-03-11  Bruno Haible  <bruno@clisp.org>
102661         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
102662         formula. Needed for SunPRO C 5.0.
102664 2007-03-11  Bruno Haible  <bruno@clisp.org>
102666         * modules/long-options (Depends-on): Add getopt.
102668 2007-03-11  Bruno Haible  <bruno@clisp.org>
102670         * modules/modechange (Depends-on): Add stdbool.
102672 2007-03-11  Bruno Haible  <bruno@clisp.org>
102674         * modules/i-ring (Depends-on): Add stdbool.
102676 2007-03-11  Bruno Haible  <bruno@clisp.org>
102678         * modules/gc-des (Depends-on): Add stdbool.
102680 2007-03-11  Bruno Haible  <bruno@clisp.org>
102682         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
102684 2007-03-11  Bruno Haible  <bruno@clisp.org>
102686         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
102688 2007-03-11  Bruno Haible  <bruno@clisp.org>
102690         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
102692 2007-03-11  Bruno Haible  <bruno@clisp.org>
102694         * lib/vasnprintf.c (sprintf): Undefine.
102696 2007-03-11  Bruno Haible  <bruno@clisp.org>
102698         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
102699         initializers in SunPRO C and Compaq C compilers.
102701 2007-03-11  Bruno Haible  <bruno@clisp.org>
102703         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
102704         decrementing code ANSI C compliant.
102706 2007-03-11  Bruno Haible  <bruno@clisp.org>
102708         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
102709         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
102711 2007-03-11  Bruno Haible  <bruno@clisp.org>
102713         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
102714         <stdbool.h> substitute doesn't pass.
102716 2007-03-11  Bruno Haible  <bruno@clisp.org>
102718         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
102720 2007-03-11  Bruno Haible  <bruno@clisp.org>
102722         * gnulib-tool (func_create_megatestdir): Create also an autobuild
102723         script, for submission to autobuild.josefsson.org.
102725 2007-03-10  Bruno Haible  <bruno@clisp.org>
102727         * modules/canonicalize-lgpl-tests: New file.
102728         * tests/test-canonicalize-lgpl.sh: New file.
102729         * tests/test-canonicalize-lgpl.c: New file.
102731         * modules/c-strcase-tests: New file.
102732         * tests/test-c-strcase.sh: New file.
102733         * tests/test-c-strcasecmp.c: New file.
102734         * tests/test-c-strncasecmp.c: New file.
102736         * modules/atexit-tests: New file.
102737         * tests/test-atexit.sh: New file.
102738         * tests/test-atexit.c: New file.
102740 2007-03-10  Bruno Haible  <bruno@clisp.org>
102742         * tests/test-binary-io.sh: Use temporary filenames that are not so
102743         likely to clash with those of other tests (in a parallel make).
102744         * tests/test-binary-io.c: Likewise.
102746 2007-03-10  Bruno Haible  <bruno@clisp.org>
102748         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
102749         fallback; use #error instead.
102750         Suggested by Simon Josefsson.
102752 2007-03-10  Bruno Haible  <bruno@clisp.org>
102754         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
102755         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
102756         first and the last.
102758 2007-03-10  Bruno Haible  <bruno@clisp.org>
102760         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
102762 2007-03-10  Bruno Haible  <bruno@clisp.org>
102764         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
102765         "make distcheck".
102766         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
102767         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
102768         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
102770 2007-03-10  Bruno Haible  <bruno@clisp.org>
102772         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
102773         variable.
102774         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
102775         variable.
102777 2007-03-09  Eric Blake  <ebb9@byu.net>
102778         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
102780         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
102781         types are not being provided by gnulib.
102782         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
102783         types are supported.
102785 2007-03-10  Bruno Haible  <bruno@clisp.org>
102787         * lib/stdio_.h (__attribute__): New macro.
102788         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
102789         vsprintf): Specify __attribute__ __format__ for GCC.
102790         Suggested by Eric Blake.
102792 2007-03-09  Bruno Haible  <bruno@clisp.org>
102794         * modules/printf-posix-tests: New file.
102795         * tests/test-printf-posix.sh: New file.
102796         * tests/test-printf-posix.c: New file.
102798         * modules/printf-posix: New file.
102799         * lib/printf.c: New file.
102800         * m4/printf-posix-rpl.m4: New file.
102801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
102802         REPLACE_PRINTF.
102803         * lib/stdio_.h (printf): New declaration.
102804         (format, __format__, ____printf____, ____scanf____, ____strftime____,
102805         ____strfmon____): New macros.
102806         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
102807         REPLACE_PRINTF.
102809 2007-03-09  Bruno Haible  <bruno@clisp.org>
102811         * tests/test-vasnprintf-posix2.sh: New file.
102812         * tests/test-vasnprintf-posix2.c: New file.
102813         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
102814         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
102815         (Makefile.am): Activate test-vasnprintf-posix2.sh.
102817         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
102818         a locale dependent decimal point, rather than always '.'.
102820 2007-03-09  Eric Blake  <ebb9@byu.net>
102822         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
102823         spite of platforms like Tandem/NSK that define it to -1.
102825 2007-03-08  Bruno Haible  <bruno@clisp.org>
102827         * modules/vprintf-posix-tests: New file.
102828         * tests/test-vprintf-posix.sh: New file.
102829         * tests/test-vprintf-posix.c: New file.
102830         * tests/test-printf-posix.h: New file.
102832         * modules/vprintf-posix: New file.
102833         * lib/vprintf.c: New file.
102834         * m4/vprintf-posix.m4: New file.
102835         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
102836         REPLACE_VPRINTF.
102837         * lib/stdio_.h (vprintf): New declaration.
102838         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
102839         REPLACE_VPRINTF.
102841 2007-03-08  Bruno Haible  <bruno@clisp.org>
102843         * modules/fprintf-posix-tests: New file.
102844         * tests/test-fprintf-posix.sh: New file.
102845         * tests/test-fprintf-posix.c: New file.
102847         * modules/fprintf-posix: New file.
102848         * lib/fprintf.c: New file.
102849         * m4/fprintf-posix.m4: New file.
102850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
102851         REPLACE_FPRINTF.
102852         * lib/stdio_.h (fprintf): New declaration.
102853         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
102854         REPLACE_FPRINTF.
102856 2007-03-08  Bruno Haible  <bruno@clisp.org>
102858         * modules/vfprintf-posix-tests: New file.
102859         * tests/test-vfprintf-posix.sh: New file.
102860         * tests/test-vfprintf-posix.c: New file.
102861         * tests/test-fprintf-posix.h: New file.
102862         * tests/test-fprintf-posix.out: New file.
102864         * modules/vfprintf-posix: New file.
102865         * lib/vfprintf.c: New file.
102866         * m4/vfprintf-posix.m4: New file.
102867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
102868         REPLACE_VFPRINTF.
102869         * lib/stdio_.h (vfprintf): New declaration.
102870         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
102871         REPLACE_VFPRINTF.
102873 2007-03-08  Bruno Haible  <bruno@clisp.org>
102875         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
102877 2007-03-08  Bruno Haible  <bruno@clisp.org>
102879         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
102880         instead of 'expr' invocations.
102881         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102882         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102883         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102884         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102885         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102886         Suggested by Paul Eggert.
102888 2007-03-08  Bruno Haible  <bruno@clisp.org>
102890         * modules/fseterr-tests: New file.
102891         * tests/test-fseterr.c: New file.
102893         * modules/fseterr: New file.
102894         * lib/fseterr.h: New file.
102895         * lib/fseterr.c: New file.
102897 2007-03-08  Bruno Haible  <bruno@clisp.org>
102899         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
102900         * lib/getopt_.h: Likewise.
102901         * lib/mbswidth.h: Likewise.
102902         * lib/setenv.h: Likewise.
102903         * lib/vasnprintf.h: Likewise.
102904         * lib/vasprintf.h: Likewise.
102905         * lib/verror.h: Likewise.
102906         * lib/xsetenv.h: Likewise.
102907         * lib/xvasprintf.h: Likewise.
102909 2007-03-08  Jim Meyering  <jim@meyering.net>
102911         * users.txt: Add parted.
102913         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
102915 2007-03-07  Bruno Haible  <bruno@clisp.org>
102917         * m4/printf.m4: Make the shell script snippets copy&pastable.
102919 2007-03-02  Bruno Haible  <bruno@clisp.org>
102921         * lib/netinet_in_.h: New file.
102922         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
102923         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
102924         * modules/netinet_in (Files): Add lib/netinet_in_.h.
102925         (Depends-on): Add absolute-header.
102926         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
102927         into netinet/in.h.
102929 2007-03-03  Bruno Haible  <bruno@clisp.org>
102931         * lib/sys_select_.h: New file.
102932         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
102933         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
102934         * modules/sys_select (Files): Add lib/sys_select_.h.
102935         (Depends-on): Add absolute-header.
102936         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
102937         into sys/select.h.
102939 2007-03-02  Bruno Haible  <bruno@clisp.org>
102941         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
102942         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
102943         values.
102944         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
102945         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
102946         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
102947         * modules/sys_socket (Depends-on): Add absolute-header.
102948         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
102949         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
102950         (Include): Remove requirement of inclusion of <sys/types.h>.
102952 2007-03-02  Bruno Haible  <bruno@clisp.org>
102954         * lib/byteswap_.h (bswap_32): Fix formula.
102956 2007-03-06  Bruno Haible  <bruno@clisp.org>
102958         * modules/sprintf-posix-tests: New file.
102959         * tests/test-sprintf-posix.c: New file.
102961         * modules/sprintf-posix: New file.
102962         * lib/sprintf.c: New file.
102963         * m4/sprintf-posix.m4: New file.
102964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
102965         REPLACE_SPRINTF.
102966         * lib/stdio_.h (sprintf): New declaration.
102967         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
102968         REPLACE_SPRINTF.
102970 2007-03-06  Bruno Haible  <bruno@clisp.org>
102972         * modules/vsprintf-posix-tests: New file.
102973         * tests/test-vsprintf-posix.c: New file.
102974         * tests/test-sprintf-posix.h: New file.
102976         * modules/vsprintf-posix: New file.
102977         * lib/vsprintf.c: New file.
102978         * m4/vsprintf-posix.m4: New file.
102979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
102980         REPLACE_VSPRINTF.
102981         * lib/stdio_.h (vsprintf): New declaration.
102982         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
102983         REPLACE_VSPRINTF.
102985 2007-03-06  Bruno Haible  <bruno@clisp.org>
102987         * modules/vsnprintf (Depend-on): Remove minmax.
102989 2007-03-06  Bruno Haible  <bruno@clisp.org>
102991         * modules/snprintf-posix-tests: New file.
102992         * tests/test-snprintf-posix.c: New file.
102994         * modules/snprintf-posix: New file.
102995         * m4/snprintf-posix.m4: New file.
102996         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
102997         gl_FUNC_SNPRINTF.
102998         (gl_FUNC_SNPRINTF): Invoke it.
102999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
103000         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
103001         is set.
103002         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
103004 2007-03-06  Bruno Haible  <bruno@clisp.org>
103006         * modules/vsnprintf-posix-tests: New file.
103007         * tests/test-vsnprintf-posix.c: New file.
103008         * tests/test-snprintf-posix.h: New file.
103010         * modules/vsnprintf-posix: New file.
103011         * m4/vsnprintf-posix.m4: New file.
103012         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
103013         gl_FUNC_VSNPRINTF.
103014         (gl_FUNC_VSNPRINTF): Invoke it.
103015         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
103016         * lib/stdio_.h (vsnprintf): Define as a replacement if
103017         REPLACE_VSNPRINTF is set.
103018         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
103020 2007-03-06  Bruno Haible  <bruno@clisp.org>
103022         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
103023         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
103025 2007-03-06  Bruno Haible  <bruno@clisp.org>
103027         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
103028         (asinl): Declare also if HAVE_DECL_ASINL is set.
103029         (atanl): Declare also if HAVE_DECL_ATANL is set.
103030         (ceill): Declare also if HAVE_DECL_CEILL is set.
103031         (cosl): Declare also if HAVE_DECL_COSL is set.
103032         (expl): Declare also if HAVE_DECL_EXPL is set.
103033         (floorl): Declare also if HAVE_DECL_FLOORL is set.
103034         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
103035         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
103036         (logl): Declare also if HAVE_DECL_LOGL is set.
103037         (sinl): Declare also if HAVE_DECL_SINL is set.
103038         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
103039         (tanl): Declare also if HAVE_DECL_TANL is set.
103040         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
103041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
103042         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
103043         declaration of frexpl, ldexpl.
103044         * modules/printf-frexpl (Depends-on): Add math.
103045         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
103047 2007-03-05  Bruno Haible  <bruno@clisp.org>
103049         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
103050         frexpl and ldexpl are declared.
103051         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
103053 2007-03-05  Bruno Haible  <bruno@clisp.org>
103055         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
103056         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
103058 2007-03-05  Bruno Haible  <bruno@clisp.org>
103060         * lib/stdio_.h: Include <stddef.h>.
103062 2007-03-05  Bruno Haible  <bruno@clisp.org>
103064         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
103066 2007-03-05  Bruno Haible  <bruno@clisp.org>
103068         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
103069         NetBSD 4, from Ralf Wildenhues.
103071 2007-03-04  Bruno Haible  <bruno@clisp.org>
103073         * lib/vasprintf.h: Update #if logic for the case when the functions
103074         exist but are overridden.
103076 2007-03-04  Bruno Haible  <bruno@clisp.org>
103078         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
103079         implementations: glibc-2.4 and MacOS X 10.3.
103080         * tests/test-vasnprintf-posix.c (test_function): Test also the case
103081         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
103082         * tests/test-vasprintf-posix.c (test_function): Likewise.
103084 2007-03-04  Bruno Haible  <bruno@clisp.org>
103086         * modules/vasprintf-posix-tests: New file.
103087         * tests/test-vasprintf-posix.c: New file.
103089         * modules/vasprintf-posix: New file.
103090         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
103091         defined.
103092         * m4/vasprintf-posix.m4: New file.
103093         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
103094         gl_FUNC_VASPRINTF.
103095         (gl_FUNC_VASPRINTF): Invoke it.
103096         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
103097         here.
103098         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
103100 2007-03-04  Bruno Haible  <bruno@clisp.org>
103102         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
103103         REPLACE_GETTIMEOFDAY.
103104         * modules/sys_time (Makefile.am): Likewise.
103105         * m4/sys_time_h.m4: Likewise.
103106         * m4/gettimeofday.m4: Likewise.
103108 2007-03-04  Bruno Haible  <bruno@clisp.org>
103110         * modules/vasnprintf-posix-tests: New file.
103111         * tests/test-vasnprintf-posix.c: New file.
103113         * modules/vasnprintf-posix: New file.
103114         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
103115         printf-frexpl.h.
103116         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
103117         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
103118         REPLACE_VASNPRINTF is defined.
103119         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
103120         gl_FUNC_VASNPRINTF.
103121         (gl_FUNC_VASNPRINTF): Invoke it.
103122         * m4/vasnprintf-posix.m4: New file.
103123         * m4/printf.m4: New file.
103125 2007-03-04  Bruno Haible  <bruno@clisp.org>
103127         Compile progreloc.c only if --enable-relocatable is specified.
103128         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
103129         if --enable-relocatable was specified.
103130         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
103131         lib_SOURCES.
103133 2007-03-04  Jim Meyering  <jim@meyering.net>
103135         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
103136         Use it consistently, rather than enumerating errno constants.
103138 2007-03-04  Bruno Haible  <bruno@clisp.org>
103140         * modules/xvasprintf-tests: New file.
103141         * tests/test-xvasprintf.c: New file.
103143         * modules/vasprintf-tests: New file.
103144         * tests/test-vasprintf.c: New file.
103146         * modules/vasnprintf-tests: New file.
103147         * tests/test-vasnprintf.c: New file.
103149         * modules/vsnprintf-tests: New file.
103150         * tests/test-vsnprintf.c: New file.
103152         * modules/snprintf-tests: New file.
103153         * tests/test-snprintf.c: New file.
103155 2007-03-04  Bruno Haible  <bruno@clisp.org>
103157         Compile relocatable.c only if --enable-relocatable is specified.
103158         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
103159         gl_RELOCATABLE_LIBRARY.
103160         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
103161         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
103162         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
103163         gl_RELOCATABLE_LIBRARY.
103164         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
103165         (Makefile.am): Remove lib_SOURCES.
103166         * modules/relocatable-lib-lgpl (configure.ac): Invoke
103167         gl_RELOCATABLE_LIBRARY.
103168         (Makefile.am): Remove lib_SOURCES.
103169         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
103170         always.
103171         * modules/relocatable-prog-wrapper (configure.ac): Invoke
103172         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
103174 2007-03-04  Bruno Haible  <bruno@clisp.org>
103176         * modules/argmatch-tests: New file.
103177         * tests/test-argmatch.c: New file.
103179         * tests/test-allocsa.c (main): Halve the number of loop runs.
103181         * modules/alloca-opt-tests: New file.
103182         * tests/test-alloca-opt.c: New file.
103184 2007-03-04  Jim Meyering  <jim@meyering.net>
103186         Work around difference between Linux ACLs and Solaris 10 ZFS.
103187         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
103188         for EINVAL.
103190 2007-03-03  Bruno Haible  <bruno@clisp.org>
103192         * modules/relocatable-prog (Depends-on): Add back progreloc's
103193         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
103195 2007-03-03  Bruno Haible  <bruno@clisp.org>
103197         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
103198         * modules/relocatable-lib: New file.
103200 2007-03-03  Bruno Haible  <bruno@clisp.org>
103202         * modules/relocatable-prog: Renamed from modules/relocatable.
103203         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
103205 2007-03-03  Bruno Haible  <bruno@clisp.org>
103207         * modules/relocatable-script (Files): Add doc/relocatable.texi,
103208         m4/relocatable-lib.m4.
103209         (Depends-on): Remove 'relocatable'.
103210         (configure.ac): Add gl_RELOCATABLE_NOP.
103212 2007-03-03  Bruno Haible  <bruno@clisp.org>
103214         * modules/relocatable-prog-wrapper: New file.
103215         * modules/relocatable (Depends-on): Add it. Remove all other
103216         dependencies except progname.
103217         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
103219         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
103220         (gl_FUNC_STRERROR): Nop.
103221         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
103223         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
103224         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
103226         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
103227         (gl_FUNC_READLINK): Update.
103229         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
103231 2007-03-03  Bruno Haible  <bruno@clisp.org>
103233         * lib/xreadlink.c: Include <unistd.h> unconditionally.
103234         * modules/xreadlink (Depends-on): Add unistd.
103235         * modules/xreadlink-with-size (Depends-on): Likewise.
103237 2007-03-03  Bruno Haible  <bruno@clisp.org>
103239         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
103240         extracted from gt_FUNC_SETENV.
103241         (gt_FUNC_SETENV): Remove macro.
103242         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
103243         remove gt_FUNC_SETENV.
103245 2007-03-03  Bruno Haible  <bruno@clisp.org>
103247         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
103248         ENABLE_RELOCATABLE here.
103249         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
103251 2007-03-03  Bruno Haible  <bruno@clisp.org>
103253         * modules/rbtreehash-list-tests (Depends-on): Add progname.
103254         * tests/test-rbtreehash_list.c: Include progname.h.
103255         (main): Call set_program_name.
103257         * modules/rbtree-oset-tests (Depends-on): Add progname.
103258         * tests/test-rbtree_oset.c: Include progname.h.
103259         (main): Call set_program_name.
103261         * modules/rbtree-list-tests (Depends-on): Add progname.
103262         * tests/test-rbtree_list.c: Include progname.h.
103263         (main): Call set_program_name.
103265         * modules/linked-list-tests (Depends-on): Add progname.
103266         * tests/test-linked_list.c: Include progname.h.
103267         (main): Call set_program_name.
103269 2007-03-03  Bruno Haible  <bruno@clisp.org>
103271         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
103272         All uses of __restrict changed to _Restrict_.
103273         * lib/glob_.h (__restrict): Remove macro.
103275 2007-03-02  Bruno Haible  <bruno@clisp.org>
103277         * modules/gettext (configure.ac): Require gettext infrastructure
103278         from version 0.16.1.
103280 2007-03-02  Bruno Haible  <bruno@clisp.org>
103282         * modules/linkedhash-list-tests (Depends-on): Add progname.
103283         * tests/test-linkedhash_list.c: Include progname.h.
103284         (main): Call set_program_name.
103286         * modules/carray-list-tests (Depends-on): Add progname.
103287         * tests/test-carray_list.c: Include progname.h.
103288         (main): Call set_program_name.
103290         * modules/avltreehash-list-tests (Depends-on): Add progname.
103291         * tests/test-avltreehash_list.c: Include progname.h.
103292         (main): Call set_program_name.
103294         * modules/avltree-oset-tests (Depends-on): Add progname.
103295         * tests/test-avltree_oset.c: Include progname.h.
103296         (main): Call set_program_name.
103298         * modules/avltree-list-tests (Depends-on): Add progname.
103299         * tests/test-avltree_list.c: Include progname.h.
103300         (main): Call set_program_name.
103302         * modules/array-oset-tests (Depends-on): Add progname.
103303         * tests/test-array_oset.c: Include progname.h.
103304         (main): Call set_program_name.
103306         * modules/array-list-tests (Depends-on): Add progname.
103307         * tests/test-array_list.c: Include progname.h.
103308         (main): Call set_program_name.
103310         * modules/argp-tests (Depends-on): Add progname.
103311         * tests/test-argp.c: Include argp.h first. Include progname.h.
103312         (main): Call set_program_name.
103314 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
103316         * doc/gnulib-tool.texi (Initial import): Reword description of
103317         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
103318         limited effect even if defined after the first system include.
103320 2007-03-01  Bruno Haible  <bruno@clisp.org>
103322         * build-aux/config.libpath: Update to libtool-1.5.22.
103323         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
103325 2007-03-01  Bruno Haible  <bruno@clisp.org>
103327         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
103328         foo_CFLAGS.
103329         Reported by Ralf Wildenhues.
103331 2007-03-01  Bruno Haible  <bruno@clisp.org>
103333         * build-aux/install-reloc: Remove object files left over by some
103334         compilers.
103335         Reported by Ralf Wildenhues.
103337 2007-03-01  Bruno Haible  <bruno@clisp.org>
103339         * build-aux/install-reloc: Break long lines.
103341 2007-03-01  Bruno Haible  <bruno@clisp.org>
103343         * doc/relocatable.texi: Document that it may not work on OpenBSD.
103344         Reported by Ralf Wildenhues.
103346 2007-03-01  Bruno Haible  <bruno@clisp.org>
103348         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
103349         include ordering constraints.
103351 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103353         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
103354         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
103355         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
103356         as another example.
103357         * lib/time_.h: Fix misspelling.
103358         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
103359         Require gl_HEADER_TIME_H_DEFAULTS.
103360         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
103361         * m4/time_r.m4 (gl_TIME_R): Likewise.
103362         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
103364 2007-03-01  Bruno Haible  <bruno@clisp.org>
103366         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
103367         * m4/utimens.m4 (gl_UTIMENS): Likewise.
103369 2007-03-01  Jim Meyering  <jim@meyering.net>
103371         * modules/xreadlink (Maintainer): Add my name.
103372         * modules/xreadlink-with-size (Depends-on): Alphabetize.
103374 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
103375             Bruno Haible  <bruno@clisp.org>
103377         * build-aux/install-reloc: Compile also c-ctype.c.
103378         * build-aux/relocatable.sh.in: New file.
103379         * doc/relocatable.texi: New file.
103380         * doc/relocatable-maint.texi: New file.
103381         * doc/gnulib.texi: Include relocatable-maint.texi.
103382         * lib/progreloc.c: Include unistd.h unconditionally.
103383         * lib/relocwrapper.c: Include unistd.h unconditionally.
103384         Include c-ctype.h.
103385         (add_dotbin): Use c_tolower.
103386         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
103387         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
103388         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
103389         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
103390         to m4/relocatable-lib.m4.
103391         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
103392         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
103393         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
103394         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
103395         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
103396         * modules/relocatable: New file.
103397         * modules/relocatable-lib: New file.
103398         * modules/relocatable-script: New file.
103400 2007-02-28  Bruno Haible  <bruno@clisp.org>
103402         Import --enable-relocatable infrastructure.
103403         * build-aux/config.libpath: New file, from GNU gettext.
103404         * build-aux/install-reloc: New file, from GNU gettext.
103405         * build-aux/reloc-ldflags: New file, from GNU gettext.
103406         * lib/relocatable.h: New file, from GNU gettext.
103407         * lib/relocatable.c: New file, from GNU gettext.
103408         * lib/relocwrapper.c: New file, from GNU gettext.
103409         * m4/relocatable.m4: New file, from GNU gettext.
103411 2007-02-28  Bruno Haible  <bruno@clisp.org>
103413         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
103415         * modules/xreadlink: New file, from GNU gettext with modifications.
103416         * lib/xreadlink.c: New file, from GNU gettext.
103417         * lib/xreadlink.h: Add comments.
103418         (xreadlink): New declaration.
103420         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
103421         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
103422         lib/xreadlink-with-size.c.
103423         (configure.ac): Remove gl_XREADLINK invocation.
103424         (Makefile.am): Augment lib_SOURCES.
103425         * m4/xreadlink.m4: Remove file.
103426         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
103427         (xreadlink_with_size): Renamed from xreadink.
103428         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
103429         * modules/canonicalize (Depends-on): Replace xreadlink with
103430         xreadlink-with-size.
103431         * lib/canonicalize.c (canonicalize_filename_mode): Update.
103433 2007-02-25  Jim Meyering  <jim@meyering.net>
103435         * build-aux/announce-gen: When complaining about excess arguments,
103436         list them.
103438 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
103440         * README: Document signed integer overflow situation more
103441         accurately.
103443 2007-02-25  Bruno Haible  <bruno@clisp.org>
103445         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
103446         'a' or 'A' conversion.
103448 2007-02-25  Bruno Haible  <bruno@clisp.org>
103450         * modules/filename: Renamed from modules/pathname.
103451         (Files): Replace lib/pathname.h with lib/filename.h. Replace
103452         lib/concatpath.c with lib/concat-filename.c.
103453         (Makefile.am): Update.
103454         (Include): Replace pathname.h with filename.h.
103455         * lib/filename.h: Renamed from lib/pathname.h.
103456         (concatenated_filename): Renamed from concatenated_pathname.
103457         * lib/concat-filename.c: Renamed from lib/concatpath.c.
103458         (concatenated_filename): Renamed from concatenated_pathname.
103459         * lib/findprog.c: Include filename.h instead of pathname.h.
103460         (find_in_path): Update.
103461         * lib/javacomp.c: Include filename.h instead of pathname.h.
103462         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
103463         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
103464         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
103465         is_oldgcj_14_13_usable, is_javac_usable): Update.
103466         * lib/javaexec.c: Include filename.h instead of pathname.h.
103467         (execute_java_class): Update.
103468         * modules/findprog: Update.
103469         * modules/javacomp: Update.
103470         * modules/javaexec: Update.
103471         * MODULES.html.sh (File system functions): Add 'filename', remove
103472         'pathname'.
103474 2007-02-25  Bruno Haible  <bruno@clisp.org>
103476         * modules/printf-frexpl-tests: New file.
103477         * tests/test-printf-frexpl.c: New file.
103479         * modules/printf-frexpl: New file.
103480         * lib/printf-frexpl.h: New file.
103481         * lib/printf-frexpl.c: New file.
103482         * m4/printf-frexpl.m4: New file.
103484 2007-02-25  Bruno Haible  <bruno@clisp.org>
103486         * modules/printf-frexp-tests: New file.
103487         * tests/test-printf-frexp.c: New file.
103489         * modules/printf-frexp: New file.
103490         * lib/printf-frexp.h: New file.
103491         * lib/printf-frexp.c: New file.
103492         * m4/printf-frexp.m4: New file.
103494 2007-02-25  Bruno Haible  <bruno@clisp.org>
103496         Assume automake >= 1.10 for the tests.
103497         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
103498         * modules/arctwo-tests: Likewise.
103499         * modules/argp-tests: Likewise.
103500         * modules/avltree-list-tests: Likewise.
103501         * modules/avltree-oset-tests: Likewise.
103502         * modules/avltreehash-list-tests: Likewise.
103503         * modules/carray-list-tests: Likewise.
103504         * modules/crc-tests: Likewise.
103505         * modules/des-tests: Likewise.
103506         * modules/gc-arcfour-tests: Likewise.
103507         * modules/gc-arctwo-tests: Likewise.
103508         * modules/gc-des-tests: Likewise.
103509         * modules/gc-hmac-md5-tests: Likewise.
103510         * modules/gc-hmac-sha1-tests: Likewise.
103511         * modules/gc-md2-tests: Likewise.
103512         * modules/gc-md4-tests: Likewise.
103513         * modules/gc-md5-tests: Likewise.
103514         * modules/gc-pbkdf2-sha1-tests: Likewise.
103515         * modules/gc-rijndael-tests: Likewise.
103516         * modules/gc-sha1-tests: Likewise.
103517         * modules/gc-tests: Likewise.
103518         * modules/getaddrinfo-tests: Likewise.
103519         * modules/hmac-md5-tests: Likewise.
103520         * modules/hmac-sha1-tests: Likewise.
103521         * modules/linked-list-tests: Likewise.
103522         * modules/linkedhash-list-tests: Likewise.
103523         * modules/lock-tests: Likewise.
103524         * modules/md2-tests: Likewise.
103525         * modules/md4-tests: Likewise.
103526         * modules/md5-tests: Likewise.
103527         * modules/rbtree-list-tests: Likewise.
103528         * modules/rbtree-oset-tests: Likewise.
103529         * modules/rbtreehash-list-tests: Likewise.
103530         * modules/read-file-tests: Likewise.
103531         * modules/rijndael-tests: Likewise.
103532         * modules/stdint-tests: Likewise.
103533         * modules/tls-tests: Likewise.
103535 2007-02-24  Bruno Haible  <bruno@clisp.org>
103537         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
103538         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
103539         function; instead check whether isnan with a double argument links.
103540         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
103541         function; instead check whether isnan with a 'long double' argument
103542         links.
103543         Reported by Eric Blake <ebb9@byu.net>.
103545 2007-02-24  Bruno Haible  <bruno@clisp.org>
103547         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
103548         defined.
103549         * lib/isnanl.c: Remove all code. Just include isnan.c.
103550         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
103552 2007-02-25  Jim Meyering  <jim@meyering.net>
103554         Avoid conflicting types for 'unsetenv' on FreeBSD.
103555         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
103556         conflicting with FreeBSD's (5.0 and 6.1) function declaration
103557         in stdlib.h.
103559 2007-02-24  Bruno Haible  <bruno@clisp.org>
103561         * modules/isnanl-nolibm-tests: New file.
103562         * tests/test-isnanl.c: New file.
103564         * modules/isnanl-nolibm: New file.
103565         * lib/isnanl.h: New file.
103566         * lib/isnanl.c: New file.
103567         * m4/isnanl.m4: New file.
103569 2007-02-24  Bruno Haible  <bruno@clisp.org>
103571         * modules/isnan-nolibm-tests: New file.
103572         * tests/test-isnan.c: New file.
103574         * modules/isnan-nolibm: New file.
103575         * lib/isnan.h: New file.
103576         * lib/isnan.c: New file.
103577         * m4/isnan.m4: New file.
103579 2007-02-24  Bruno Haible  <bruno@clisp.org>
103581         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
103582         assume that an exponent fits in 20 bits.
103584 2007-02-24  Jim Meyering  <jim@meyering.net>
103586         * m4/regex.m4: Update the description of the configure-time option,
103587         --without-included-regex, to state accurately what the defaults are,
103588         and perhaps to give people an idea why using this option is risky.
103590 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
103592         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
103593         loops on small arguments.  This attempts to avoid the problem
103594         Bruno Haible reported for AIX 4.3.2 in
103595         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
103597 2007-02-23  Bruno Haible  <bruno@clisp.org>
103599         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
103600         Needed for help2man.
103602 2007-02-23  Karl Berry  <karl@gnu.org>
103604         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
103605         exists, foo.h should be cvs-ignored, not committed.
103607 2007-02-23  Eric Blake  <ebb9@byu.net>
103609         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
103610         * lib/stat-time.h (includes): Likewise.
103611         * lib/utimecmp.c (includes): Likewise.
103612         * lib/utimens.h (includes): Likewise.
103613         * lib/getdate.y (includes): Also include "timespec.h" for use
103614         internal to the module.
103615         * modules/utimens (Depends-on): Revert yesterday's patch.
103616         * modules/nanosleep (Depends-on): Add missing dependency.
103618 2007-02-22  Bruno Haible  <bruno@clisp.org>
103620         * lib/glob.c: Don't include getlogin_r.h.
103622 2007-02-22  Jim Meyering  <jim@meyering.net>
103624         * modules/utimens (Depends-on): Add timespec, required for
103625         utimens.h's inclusion of timespec.h.
103627 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
103629         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
103630         long unreadable paths in GNU/Linux.  Problem reported by Andreas
103631         Schwab in
103632         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
103633         I'll try to think of a better way to fix the Solaris problem.
103635         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
103636         like glibc; on Solaris 10, it fails with errno == EINVAL.
103637         POSIX says the behavior is unspecified if the first argument is NULL,
103638         so play it safe and never pass NULL to the system getcwd.
103640 2007-02-21  Jim Meyering  <jim@meyering.net>
103642         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
103643         of gettimeofday.  It would conflict with the one now always
103644         provided via sys_time_.h.  Reported by Matthew Woehlke, as
103645         an IRIX 6.5 build failure.
103647 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
103649         Minor fixups to port to Solaris 10 with Sun C 5.8.
103650         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
103651         * modules/getcwd (Depends-on): Add dirfd.
103652         * lib/putenv.c (putenv): #undef it.
103653         (rpl_putenv): New decl.
103654         (malloc, free): Include <stdlib.h> rather than prototyping separately.
103656 2007-02-20  Bruno Haible  <bruno@clisp.org>
103658         * modules/stdio-tests: New file.
103659         * tests/test-stdio.c: New file.
103661         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
103662         (Depends-on): Add stdio.
103663         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
103664         (Include): Use <stdio.h> instead of vsnprintf.h.
103665         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
103666         HAVE_DECL_VSNPRINTF.
103667         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
103669         * modules/snprintf (Files): Remove lib/snprintf.h.
103670         (Depends-on): Add stdio.
103671         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
103672         (Include): Use <stdio.h> instead of snprintf.h.
103673         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
103674         HAVE_DECL_SNPRINTF.
103675         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
103676         * lib/getaddrinfo.c: Likewise.
103678         * modules/stdio: New file.
103679         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
103680         * lib/snprintf.h: Remove file.
103681         * lib/vsnprintf.h: Remove file.
103682         * lib/.cppi-disable: Remove snprintf.h.
103683         * m4/stdio_h.m4: New file.
103684         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
103686 2007-02-20  Jim Meyering  <jim@meyering.net>
103688         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
103689         used by e.g., mingw.  From Bruno Haible.
103691 2007-02-19  Bruno Haible  <bruno@clisp.org>
103693         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
103694         warnings.
103695         Reported by Ben Pfaff <blp@cs.stanford.edu>.
103697 2007-02-19  Bruno Haible  <bruno@clisp.org>
103699         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
103700         from mingw users.
103702 2007-02-19  Bruno Haible  <bruno@clisp.org>
103704         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
103705         warnings.
103706         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
103708 2007-02-19  Jim Meyering  <jim@meyering.net>
103710         Don't use FD after a successful "fdopendir (fd)".
103711         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
103712         Reset it by calling dirfd on the just-obtained DIR*.
103714         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
103715         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
103717 2007-02-18  Bruno Haible  <bruno@clisp.org>
103719         * lib/readlink.c: Include <unistd.h>.
103720         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
103721         HAVE_READLINK.
103722         * modules/readlink (Depends-on): Add unistd.
103723         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103724         (Include): Add <unistd.h>.
103726         * lib/getlogin_r.h: Remove file.
103727         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
103728         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
103729         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
103730         HAVE_DECL_GETLOGIN_R.
103731         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
103732         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103733         (Include): Use <unistd.h> instead of getlogin_r.h.
103735         * lib/getcwd.h: Remove file.
103736         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
103737         * lib/xgetcwd.c: Likewise.
103738         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
103739         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
103740         * modules/getcwd (Files): Remove lib/getcwd.h.
103741         (Depends-on): Add unistd.
103742         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103743         (Include): Use <unistd.h> instad of getcwd.h.
103745         * lib/ftruncate.c: Include <unistd.h> first.
103746         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
103747         Set HAVE_FTRUNCATE.
103748         * modules/ftruncate (Depends-on): Add unistd.
103749         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103751         * lib/fchdir.c: Include <unistd.h> first.
103752         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
103753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
103754         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
103755         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103756         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
103758         * lib/dup2.c: Include <unistd.h> first.
103759         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
103760         HAVE_DUP2.
103761         * modules/dup2 (Depends-on): Add unistd.
103762         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103764         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
103765         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
103766         REPLACE_CHOWN. Don't define chown as a macro here.
103767         * modules/chown (Depends-on): Add unistd.
103768         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103770         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
103771         Add definition for GL_LINK_WARNING.
103772         (chown, dup2): New declarations.
103773         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
103774         link warning.
103775         (ftruncate): New declaration.
103776         (getcwd): New declaration, taken from old getcwd.h.
103777         (getlogin_r): New declaration, taken from old getlogin_r.h.
103778         (readlink): New declaration.
103779         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
103780         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
103781         (gl_PREREQ_UNISTD): Remove macro.
103782         (gl_UNISTD_MODULE_INDICATOR): New macro.
103783         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
103784         many new variables. Don't set UNISTD_H.
103785         * modules/unistd (Description): Change.
103786         (Depends-on): Add link-warning.
103787         (configure.ac): Update.
103788         (Makefile.am): Create unistd.h always. Substitute many new variables
103789         into it.
103791 2007-02-18  Bruno Haible  <bruno@clisp.org>
103793         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
103794         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
103795         HAVE_GETSUBOPT.
103796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
103797         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
103798         * lib/getsubopt.h: Remove file.
103799         * modules/getsubopt (Files): Remove lib/getsubopt.h.
103800         (Depends-on): Add stdlib.
103801         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103802         (Includes): Use <stdlib.h> instead of getsubopt.h.
103803         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
103804         Set HAVE_GETSUBOPT.
103805         * lib/getsubopt.c: Don't include getsubopt.h.
103807 2007-02-18  Bruno Haible  <bruno@clisp.org>
103809         * modules/fchdir (Depends-on): Add dup2.
103811 2007-02-18  Bruno Haible  <bruno@clisp.org>
103813         * lib/stdlib_.h: Handle glibc's special invocation convention
103814         specially.
103816 2007-02-18  Bruno Haible  <bruno@clisp.org>
103818         * modules/stdlib-tests: New file.
103819         * tests/test-stdlib.c: New file.
103821         * modules/mkstemp (Files): Remove lib/mkstemp.h.
103822         (Depends-on): Add stdlib.
103823         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103824         (Includes): Use <stdlib.h> instead of mkstemp.h.
103825         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
103826         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
103827         * lib/mkstemp.c: Don't include mkstemp.h.
103828         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
103829         * lib/stdlib--.h: Don't include mkstemp.h.
103831         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
103832         (Depends-on): Add stdlib.
103833         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103834         (Includes): Use <stdlib.h> instead of mkdtemp.h.
103835         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
103836         HAVE_MKDTEMP.
103837         * lib/mkdtemp.c: Don't include mkdtemp.h.
103838         * lib/clean-temp.c: Don't include mkdtemp.h.
103840         * modules/exit (Files): Remove lib/exit.h.
103841         (Depends-on): Add stdlib.
103842         (Makefile.am): Remove lib_SOURCES.
103843         (Include): Use <stdlib.h> instead of exit.h.
103844         * lib/argmatch.c: Don't include exit.h.
103845         * lib/execute.c: Likewise.
103846         * lib/pagealign_alloc.c: Likewise.
103847         * lib/pipe.c: Likewise.
103848         * lib/wait-process.c: Likewise.
103849         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
103850         * lib/exitfail.c: Likewise.
103851         * lib/savewd.c: Likewise.
103852         * lib/xsetenv.c: Likewise.
103854         * modules/stdlib: New file.
103855         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
103856         and extra comments about mkstemp().
103857         * lib/exit.h: Remove file.
103858         * lib/mkdtemp.h: Remove file.
103859         * lib/mkstemp.h: Remove file.
103860         * m4/stdlib_h.m4: New file.
103861         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
103863 2007-02-18  Bruno Haible  <bruno@clisp.org>
103865         * modules/math-tests: New file.
103866         * tests/test-math.c: New file.
103868         * modules/math: New file.
103869         * modules/mathl (Files): Remove lib/mathl.h.
103870         (Depends-on): Add math.
103871         (Makefile.am): Don't mention mathl.h.
103872         (Include): Use <math.h> instead of mathl.h.
103873         * lib/math_.h: New file.
103874         * lib/mathl.h: Remove file.
103875         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
103876         mathl.h.
103877         * lib/asinl.c: Likewise.
103878         * lib/atanl.c: Likewise.
103879         * lib/ceill.c: Likewise.
103880         * lib/cosl.c: Likewise.
103881         * lib/expl.c: Likewise.
103882         * lib/floorl.c: Likewise.
103883         * lib/frexpl.c: Likewise.
103884         * lib/ldexpl.c: Likewise.
103885         * lib/logl.c: Likewise.
103886         * lib/sincosl.c: Likewise.
103887         * lib/sinl.c: Likewise.
103888         * lib/sqrtl.c: Likewise.
103889         * lib/tanl.c: Likewise.
103890         * lib/trigl.c: Likewise.
103891         * m4/math_h.m4: New file.
103892         * MODULES.html.sh (Mathematics): Add math.
103894 2007-02-17  Bruno Haible  <bruno@clisp.org>
103896         * modules/wctype-tests: New file.
103897         * tests/test-wctype.c: New file.
103899         * modules/wchar-tests: New file.
103900         * tests/test-wchar.c: New file.
103902         * modules/unistd-tests: New file.
103903         * tests/test-unistd.c: New file.
103905         * modules/time-tests: New file.
103906         * tests/test-time.c: New file.
103908         * modules/sysexits-tests: New file.
103909         * tests/test-sysexits.c: New file.
103911         * modules/sys_time-tests: New file.
103912         * tests/test-sys_time.c: New file.
103914         * modules/sys_stat-tests: New file.
103915         * tests/test-sys_stat.c: New file.
103917         * modules/sys_socket-tests: New file.
103918         * tests/test-sys_socket.c: New file.
103920         * modules/sys_select-tests: New file.
103921         * tests/test-sys_select.c: New file.
103923         * modules/string-tests: New file.
103924         * tests/test-string.c: New file.
103926         * modules/stdbool-tests: New file.
103927         * tests/test-stdbool.c: New file.
103929         * modules/netinet_in-tests: New file.
103930         * tests/test-netinet_in.c: New file.
103932         * modules/inttypes-tests: New file.
103933         * tests/test-inttypes.c: New file.
103935         * modules/fcntl-tests: New file.
103936         * tests/test-fcntl.c: New file.
103938         * modules/byteswap-tests: New file.
103939         * tests/test-byteswap.c: New file.
103941         * modules/arpa_inet-tests: New file.
103942         * tests/test-arpa_inet.c: New file.
103944 2007-02-17  Bruno Haible  <bruno@clisp.org>
103946         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
103947         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
103948         if the corresponding module is not enabled. Emit link warnings if
103949         the function is used nevertheless.
103950         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
103951         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
103952         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
103953         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
103954         * modules/inttypes (Depends-on): Add link-warning.
103955         (Makefile.am): Copy the contents of build-aux/link-warning.h into
103956         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
103957         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
103958         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
103959         * modules/imaxdiv (configure.ac): Likewise.
103960         * modules/strtoimax (configure.ac): Likewise.
103961         * modules/strtoumax (configure.ac): Likewise.
103963 2007-02-17  Bruno Haible  <bruno@clisp.org>
103965         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
103966         gl_STRING_MODULE_INDICATOR_DEFAULTS.
103967         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
103968         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
103970 2007-02-17  Bruno Haible  <bruno@clisp.org>
103972         * modules/link-warning: New file.
103973         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
103974         * lib/string_.h (GL_LINK_WARNING): Remove definition.
103975         * modules/string (Depends-on): Add link-warning.
103976         (Makefile.am): Copy the contents of build-aux/link-warning.h into
103977         string.h.
103978         * MODULES.html.sh (Support for building libraries and executables): Add
103979         link-warning.
103981 2007-02-17  Bruno Haible  <bruno@clisp.org>
103983         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
103984         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
103985         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
103986         long lines.
103988 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
103989             Bruno Haible  <bruno@clisp.org>
103991         * modules/tmpfile: New file.
103992         * lib/tmpfile.c: New file.
103993         * m4/tmpfile.m4: New file.
103994         * MODULES.html.sh (func_all_modules): New section "Input/output".
103996 2007-02-15  Bruno Haible  <bruno@clisp.org>
103998         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
103999         (supports_delete_on_close): New function.
104000         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
104002 2007-02-14  Bruno Haible  <bruno@clisp.org>
104004         * modules/mbspcasecmp-tests: New file.
104005         * tests/test-mbspcasecmp.sh: New file.
104006         * tests/test-mbspcasecmp.c: New file.
104008         New module mbspcasecmp.
104009         * modules/mbspcasecmp: New file.
104010         * lib/mbspcasecmp.c: New file.
104011         * lib/string_.h (strncasecmp): Change warning message.
104012         (mbspcasecmp): New declaration.
104013         * m4/mbspcasecmp.m4: New file.
104014         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104015         GNULIB_MBSPCASECMP.
104016         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
104017         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
104019 2007-02-14  Bruno Haible  <bruno@clisp.org>
104021         * modules/mbsncasecmp-tests: New file.
104022         * tests/test-mbsncasecmp.sh: New file.
104023         * tests/test-mbsncasecmp.c: New file.
104025         New module mbsncasecmp.
104026         * modules/mbsncasecmp: New file.
104027         * lib/mbsncasecmp.c: New file.
104028         * lib/string_.h (mbsncasecmp): New declaration.
104029         * m4/mbsncasecmp.m4: New file.
104030         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104031         GNULIB_MBSNCASECMP.
104032         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
104033         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
104035 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
104037         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
104038         Verify that it doesn't overlap with our flags.
104039         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
104040         do not have the desired effect in multibyte locales; instead, use
104041         mbscasecmp.
104042         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
104043         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
104044         we don't require GNU fnmatch ourselves (if our users require it, they
104045         should do so explicitly).
104047         Fix regex code so it doesn't rely on strcasecmp.
104048         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
104049         Otherwise, include gnulib's langinfo.h.
104050         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
104051         undesirable behavior in non-C locales.  Instead, rely on localecharset.
104052         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
104053         * modules/regex (FILES): Remove m4/codeset.m4.
104054         (Depends-on): Add localcharset.  Remove strcase.
104056 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104058         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
104059         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
104061 2007-02-13  Bruno Haible  <bruno@clisp.org>
104063         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
104064         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
104066 2007-02-12  Bruno Haible  <bruno@clisp.org>
104068         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
104069         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
104070         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
104071         time warning rather than a link error.
104073 2007-02-12  Bruno Haible  <bruno@clisp.org>
104075         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
104076         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
104077         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
104079 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
104081         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
104082         args, not 2.
104084 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
104086         New module 'time', so that apps can include <time.h> as per
104087         POSIX and GNU instead of separate include files like time_r.h
104088         and timegm.h.  This implementation tries out a simpler approach
104089         for replacing decls in standard include files (as compared to
104090         the string module), somewhat as an experiment.
104092         * config/srclist.txt: Comment out mktime.c for now.
104093         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
104094         since it doesn't apply any more.  Use generic wording instead.
104095         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
104096         'time'.
104097         * lib/time_.h, m4/time_h.m4, modules/time: New files.
104098         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
104099         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
104100         Don't include <sys/types.h>; no longer needed since we assume C89.
104101         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
104102         * lib/strftime.c: Likewise.
104103         * lib/time_r.c: Likewise.
104104         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
104105         * lib/nanosleep.c: Include <time.h> first, to check interface.
104106         * lib/strptime.c: Likewise.
104107         * lib/time_r.c: Likewise.
104108         * lib/timegm.c: Likewise.
104109         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
104110         needed.
104111         * lib/timegm.c: Don't include timegm.h; no longer needed.
104112         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
104113         time.h now handles any problems in that area.
104114         (struct timespec, nanosleep): Remove; time.h now arranges for these.
104115         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
104116         that time.h defines struct timespec.
104117         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
104118         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
104119         handles that.
104120         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
104121         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
104122         needed.  Set REPLACE_LOCALTIME.
104123         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
104124         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
104125         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
104126         nanosleep; time_h.m4 now does that.  Don't require
104127         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
104128         module handles this now.
104129         * modules/getdate (Depends-on): Remove timespec.  Add time.
104130         * modules/nanosleep (Depends-on): Likewise.
104131         * modules/stat-time (Depends-on): Likewise.
104132         * modules/nanosleep (Include): Include time.h, not timespec.h.
104133         * modules/strptime (Files): Remove lib/strptime.h.
104134         (Depends-on): Add extensions, time.
104135         (Include): Include time.h, not strptime.h.
104136         * modules/time_r (Files): Remove lib/time_r.h.
104137         (Depends-on): Add time.
104138         (Include): Include time.h, not time_r.h.
104139         * modules/timegm: Likewise.
104140         * modules/timespec (Description): Now does timespec-related decls
104141         of our own, instead of struct timespec itself.
104142         (Depends-on): Add time; remove extensions.
104143         (Maintainer): Add self.
104144         * modules/utimecmp (Depends-on): Add time; remove timespec.
104145         * modules/utimens (Depends-on): Likewise.
104146         * modules/xnanosleep (Depends-on): Likewise.
104148 2007-02-11  Bruno Haible  <bruno@clisp.org>
104150         * lib/c-strstr.c: Include allocsa.h.
104151         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104152         * lib/c-strcasestr.c: Include allocsa.h.
104153         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104154         * lib/strcasestr.c: Include allocsa.h.
104155         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104156         * lib/mbsstr.c: Include allocsa.h.
104157         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
104158         allocsa/freesa instead of malloc/free.
104159         * lib/mbscasestr.c: Include allocsa.h.
104160         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
104161         allocsa/freesa instead of malloc/free.
104162         * modules/c-strstr (Depends-on): Add allocsa.
104163         * modules/c-strcasestr (Depends-on): Likewise.
104164         * modules/strcasestr (Depends-on): Likewise.
104165         * modules/mbsstr (Depends-on): Likewise.
104166         * modules/mbscasestr (Depends-on): Likewise.
104168 2007-02-11  Bruno Haible  <bruno@clisp.org>
104170         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
104172         * modules/mbsspn-tests: New file.
104173         * tests/test-mbsspn.sh: New file.
104174         * tests/test-mbsspn.c: New file.
104176 2007-02-11  Bruno Haible  <bruno@clisp.org>
104178         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
104180         * modules/mbspbrk-tests: New file.
104181         * tests/test-mbspbrk.sh: New file.
104182         * tests/test-mbspbrk.c: New file.
104184 2007-02-11  Bruno Haible  <bruno@clisp.org>
104186         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
104187         unneeded cast.
104189         * modules/mbscspn-tests: New file.
104190         * tests/test-mbscspn.sh: New file.
104191         * tests/test-mbscspn.c: New file.
104193 2007-02-11  Bruno Haible  <bruno@clisp.org>
104195         * modules/mbscasecmp-tests: New file.
104196         * tests/test-mbscasecmp.sh: New file.
104197         * tests/test-mbscasecmp.c: New file.
104199 2007-02-11  Bruno Haible  <bruno@clisp.org>
104201         Ensure O(n) worst-case complexity of mbscasestr.
104202         * lib/mbscasestr.c: Include stdbool.h.
104203         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
104204         functions.
104205         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
104206         the bookkeeping indicates that it's worth it.
104207         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
104209         * modules/mbscasestr-tests: New file.
104210         * tests/test-mbscasestr1.c: New file.
104211         * tests/test-mbscasestr2.sh: New file.
104212         * tests/test-mbscasestr2.c: New file.
104213         * tests/test-mbscasestr3.sh: New file.
104214         * tests/test-mbscasestr3.c: New file.
104215         * tests/test-mbscasestr4.sh: New file.
104216         * tests/test-mbscasestr4.c: New file.
104217         * m4/locale-tr.m4: New file.
104219 2007-02-11  Bruno Haible  <bruno@clisp.org>
104221         Ensure O(n) worst-case complexity of mbsstr.
104222         * lib/mbsstr.c: Include stdbool.h.
104223         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
104224         functions.
104225         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
104226         bookkeeping indicates that it's worth it.
104227         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
104229         * modules/mbsstr-tests: New file.
104230         * tests/test-mbsstr1.c: New file.
104231         * tests/test-mbsstr2.sh: New file.
104232         * tests/test-mbsstr2.c: New file.
104233         * tests/test-mbsstr3.sh: New file.
104234         * tests/test-mbsstr3.c: New file.
104235         * m4/locale-fr.m4: New file.
104237 2007-02-11  Bruno Haible  <bruno@clisp.org>
104239         * lib/mbsrchr.c (mbsrchr): Fix bug.
104241         * modules/mbsrchr-tests: New file.
104242         * tests/test-mbsrchr.sh: New file.
104243         * tests/test-mbsrchr.c: New file.
104245 2007-02-11  Bruno Haible  <bruno@clisp.org>
104247         * lib/mbschr.c (mbschr): Fix bug.
104249         * modules/mbschr-tests: New file.
104250         * tests/test-mbschr.sh: New file.
104251         * tests/test-mbschr.c: New file.
104252         * m4/locale-zh.m4: New file.
104254 2007-02-11  Bruno Haible  <bruno@clisp.org>
104256         Support for copying multibyte string iterators.
104257         * lib/mbiter.h: Include <string.h>.
104258         (mbiter_multi_copy): New function.
104259         (mbi_copy): New macro.
104260         * lib/mbuiter.h: Include <string.h>.
104261         (mbuiter_multi_copy): New function.
104262         (mbui_copy): New macro.
104264 2007-02-11  Bruno Haible  <bruno@clisp.org>
104266         New module mbslen.
104267         * modules/mbslen: New file.
104268         * lib/mbslen.c: New file.
104269         * lib/string_.h (mbslen): New declaration.
104270         * m4/mbslen.m4: New file.
104271         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104272         GNULIB_MBSLEN.
104273         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
104274         * MODULES.html.sh (Internationalization functions): Add mbslen.
104276 2007-02-11  Bruno Haible  <bruno@clisp.org>
104278         Ensure O(n) worst-case complexity of strcasestr substitute.
104279         * lib/strcasestr.c: Include stdbool.h.
104280         (knuth_morris_pratt): New function.
104281         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
104282         bookkeeping indicates that it's worth it.
104283         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
104285         * modules/strcasestr-tests: New file.
104286         * tests/test-strcasestr.c: New file.
104288 2007-02-11  Bruno Haible  <bruno@clisp.org>
104290         Ensure O(n) worst-case complexity of c_strcasestr.
104291         * lib/c-strcasestr.c: Include stdbool.h, string.h.
104292         (knuth_morris_pratt): New function.
104293         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
104294         the bookkeeping indicates that it's worth it.
104295         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
104297         * modules/c-strcasestr-tests: New file.
104298         * tests/test-c-strcasestr.c: New file.
104300 2007-02-11  Bruno Haible  <bruno@clisp.org>
104302         Ensure O(n) worst-case complexity of c_strstr.
104303         * lib/c-strstr.c: Include stdbool.h, string.h.
104304         (knuth_morris_pratt): New function.
104305         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
104306         bookkeeping indicates that it's worth it.
104307         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
104309         * lib/c-strstr.c: Complete rewrite for maintainability.
104311         * modules/c-strstr-tests: New file.
104312         * tests/test-c-strstr.c: New file.
104314 2007-02-11  Bruno Haible  <bruno@clisp.org>
104316         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
104317         5.2.1 and earlier, whereby \055 was treated just like the range
104318         delimiter '-'.
104319         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
104321 2007-02-08  Bruno Haible  <bruno@clisp.org>
104323         * modules/regex (Depends-on): Add stdbool.
104324         Reported by Dalibor Topic <robilad@kaffe.org>.
104326 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
104328         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
104329         Prefer returning from main to exiting from it.
104330         Remove unnecessary parens after sizeof.
104332 2007-02-05  Bruno Haible  <bruno@clisp.org>
104334         New module mbssep.
104335         * modules/mbssep: New file.
104336         * lib/mbssep.c: New file.
104337         * lib/string_.h (strsep): Add a conditional link warning.
104338         (mbssep): New declaration.
104339         * m4/mbssep.m4: New file.
104340         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104341         GNULIB_MBSSEP.
104342         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
104343         * MODULES.html.sh (Internationalization functions): Add mbssep.
104345 2007-02-05  Bruno Haible  <bruno@clisp.org>
104347         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
104348         Optimize search in case of 1 delimiter.
104350 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
104352         * lib/acl.h: Include sys/types.h before sys/acl.h.
104354 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
104356         Merge upstream fix for glibc bugzilla #3957:
104358         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
104360         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
104361         bit for RE_HAT_LISTS_NOT_NEWLINE.
104362         (build_charclass_op): Remove bogus comment.
104364 2007-02-05  Simon Josefsson  <simon@josefsson.org>
104366         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
104368 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
104370         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
104371         * lib/memmem.c [!defined _LIBC]: Include config.h.
104373 2007-02-04  Bruno Haible  <bruno@clisp.org>
104375         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
104376         warning message.
104378 2007-02-04  Bruno Haible  <bruno@clisp.org>
104380         New module mbstok_r.
104381         * modules/mbstok_r: New file.
104382         * lib/mbstok_r.c: New file.
104383         * lib/string_.h (strtok_r): Change argument names to match the
104384         comments. Add a conditional link warning.
104385         (mbstok_r): New declaration.
104386         * m4/mbstok_r.m4: New file.
104387         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104388         GNULIB_MBSTOK_R.
104389         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
104390         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
104392 2007-02-04  Bruno Haible  <bruno@clisp.org>
104394         New module mbsspn.
104395         * modules/mbsspn: New file.
104396         * lib/mbsspn.c: New file.
104397         * lib/string_.h (strspn): Add a conditional link warning.
104398         (mbsspn): New declaration.
104399         * m4/mbsspn.m4: New file.
104400         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104401         GNULIB_MBSSPN.
104402         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
104403         * MODULES.html.sh (Internationalization functions): Add mbsspn.
104405 2007-02-04  Bruno Haible  <bruno@clisp.org>
104407         New module mbspbrk.
104408         * modules/mbspbrk: New file.
104409         * lib/mbspbrk.c: New file.
104410         * lib/string_.h (strpbrk): Add a conditional link warning.
104411         (mbspbrk): New declaration.
104412         * m4/mbspbrk.m4: New file.
104413         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104414         GNULIB_MBSPBRK.
104415         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
104416         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
104418 2007-02-04  Bruno Haible  <bruno@clisp.org>
104420         New module mbscspn.
104421         * modules/mbscspn: New file.
104422         * lib/mbscspn.c: New file.
104423         * lib/string_.h (strcspn): Add a conditional link warning.
104424         (mbscspn): New declaration.
104425         * m4/mbscspn.m4: New file.
104426         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104427         GNULIB_MBSCSPN.
104428         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
104429         * MODULES.html.sh (Internationalization functions): Add mbscspn.
104431 2007-02-04  Bruno Haible  <bruno@clisp.org>
104433         New module mbscasestr, reduced goal of strcasestr.
104434         * modules/mbscasestr: New file.
104435         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
104436         (mbscasestr): Renamed from strcasestr.
104437         * lib/strcasestr.c: Don't include mbuiter.h.
104438         (strcasestr): Remove support for multibyte locales.
104439         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
104440         Change the conditional link warning.
104441         (mbscasestr): New declaration.
104442         * m4/mbscasestr.m4: New file.
104443         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
104444         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
104445         REPLACE_STRCASESTR.
104446         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
104447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
104448         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
104449         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
104450         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
104451         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
104452         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
104453         (Depends-on): Remove mbuiter.
104454         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
104456 2007-02-04  Bruno Haible  <bruno@clisp.org>
104458         Simplify handling of strncasecmp.
104459         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
104460         the conditional link warning.
104461         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
104462         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
104463         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
104464         * modules/strcase (configure.ac): Don't invoke
104465         gl_STRING_MODULE_INDICATOR.
104466         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
104468 2007-02-04  Bruno Haible  <bruno@clisp.org>
104470         New module mbscasecmp, reduced goal of strcasecmp.
104471         * modules/mbscasecmp: New file.
104472         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
104473         (mbscasecmp): Renamed from strcasecmp.
104474         * lib/strcasecmp.c: Don't include mbuiter.h.
104475         (strcasecmp): Remove support for multibyte locales.
104476         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
104477         Change the conditional link warning.
104478         (mbscasecmp): New declaration.
104479         * m4/mbscasecmp.m4: New file.
104480         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
104481         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
104482         REPLACE_STRCASECMP.
104483         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
104484         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104485         GNULIB_MBSCASECMP.
104486         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
104487         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
104488         * modules/strcase (Files): Remove m4/mbrtowc.m4.
104489         (Depends-on): Remove mbuiter.
104490         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
104492 2007-02-04  Bruno Haible  <bruno@clisp.org>
104494         New module mbsstr. Remove module strstr.
104495         * modules/mbsstr: New file.
104496         * modules/strstr: Remove file.
104497         * lib/mbsstr.c: Renamed from lib/strstr.c.
104498         (mbsstr): Renamed from strstr.
104499         * lib/string_.h (strstr): Remove declaration. Change the conditional
104500         link warning.
104501         (mbsstr): New declaration.
104502         * m4/mbsstr.m4: New file.
104503         * m4/strstr.m4: Remove file.
104504         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
104505         REPLACE_STRSTR.
104506         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
104507         Don't initialize GNULIB_STRSTR.
104508         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
104509         substitute GNULIB_STRSTR and REPLACE_STRSTR.
104510         * MODULES.html.sh (Internationalization functions): Add mbsstr.
104511         (Support for systems lacking ANSI C 89): Remove strstr.
104513 2007-02-04  Bruno Haible  <bruno@clisp.org>
104515         New module mbsrchr.
104516         * modules/mbsrchr: New file.
104517         * lib/mbsrchr.c: New file.
104518         * lib/string_.h (strrchr): Add a conditional link warning.
104519         (mbsrchr): New declaration.
104520         * m4/mbsrchr.m4: New file.
104521         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104522         GNULIB_MBSRCHR.
104523         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
104524         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
104526 2007-02-04  Bruno Haible  <bruno@clisp.org>
104528         New module mbschr.
104529         * modules/mbschr: New file.
104530         * lib/mbschr.c: New file.
104531         * lib/string_.h (strchr): Add a conditional link warning.
104532         (mbschr): New declaration.
104533         * m4/mbschr.m4: New file.
104534         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104535         GNULIB_MBSCHR.
104536         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
104537         * MODULES.html.sh (Internationalization functions): Add mbschr.
104539 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
104541         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
104543         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
104545 2007-02-04  Bruno Haible  <bruno@clisp.org>
104547         New module description section 'configure.ac-early'.
104548         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
104549         (func_get_autoconf_early_snippet): New function.
104550         (func_import, func_create_testdir): Use it. Remove special cases for
104551         modules 'extensions' and 'lock'.
104552         * modules/extensions (configure.ac-early): Require
104553         gl_USE_SYSTEM_EXTENSIONS.
104554         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
104556 2007-02-04  Bruno Haible  <bruno@clisp.org>
104558         Make use of gcj-4.3's -fsource and -ftarget option.
104559         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
104560         and if so try the options -fsource and -ftarget.
104561         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
104562         source_version, ftarget_option, target_version arguments.
104563         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
104564         (is_envjavac_oldgcj_14_14_usable): Renamed from
104565         is_envjavac_gcj_14_14_usable.
104566         (is_envjavac_oldgcj_14_13_usable): Renamed from
104567         is_envjavac_gcj_14_13_usable.
104568         (is_gcj_present): Update.
104569         (is_gcj_43, is_gcj43_usable): New functions.
104570         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
104571         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
104572         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
104573         try the options -fsource and -ftarget.
104575 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104577         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
104578         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
104579         larger value.
104581 2007-02-03  Jim Meyering  <jim@meyering.net>
104583         Give tools a better chance to allocate space for very large buffers.
104584         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
104586         Make pwd and readlink work also when run with an unreadable parent dir
104587         on systems with openat support.
104588         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
104589         provided getcwd function, even when we have openat support.
104590         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
104592 2007-02-02  Bruno Haible  <bruno@clisp.org>
104594         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
104595         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
104596         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
104597         portability problems if one of these functions is only used on specific
104598         platforms.
104599         Reported by Paul Eggert.
104601 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
104603         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
104604         is causing more trouble than it's curing.
104605         * lib/regex_internal.h (__mempcpy): Remove.
104606         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
104607         (and make the code a tad smaller to boot).
104608         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
104610 2007-02-02  Jim Meyering  <jim@meyering.net>
104612         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
104613         section, not in the Makefile.am: one.
104615 2007-02-02  Eric Blake  <ebb9@byu.net>
104617         * lib/strchrnul.c: Always include config.h first.
104619         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
104620         gnulib strstr is not necessary here.
104622 2007-02-02  Simon Josefsson  <simon@josefsson.org>
104624         * m4/socklen.m4: Fix typo.
104626 2007-02-02  Eric Blake  <ebb9@byu.net>
104628         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
104629         * modules/netinet_in (Makefile.am): Likewise.
104631 2007-02-01  Bruno Haible  <bruno@clisp.org>
104633         * lib/string_.h (GL_LINK_WARNING): New macro.
104634         (strcasecmp, strstr, strcasestr): If provided by the system,
104635         conditionally define as a macro that leads to a warning instead of to
104636         an error.
104637         (strncasecmp): Conditionally define as a macro that leads to a warning.
104639 2007-02-01  Karl Berry  <karl@gnu.org>
104641         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
104643 2007-02-01  Bruno Haible  <bruno@clisp.org>
104645         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
104646         renamings.
104648 2007-02-01  Eric Blake  <ebb9@byu.net>
104650         * modules/regex (Depends-on): Revert dependence on mempcpy.
104651         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
104652         module's definition of mempcpy.
104653         Reported by Paul Eggert.
104655 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
104657         * lib/string_.h: If the gnulib module XYZ is not present, undefine
104658         the symbol XYZ before redefining it.  This fixes a problem with
104659         programs that don't use XYZ, when compiled on systems that define
104660         XYZ to something else.
104662 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
104664         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
104665         occurs when "mkdir -m foo" creates a setgid directory that is (1)
104666         writeable to group or other and (2) is intended to have a special
104667         mode bit that is set or cleared.  In such a case, the directory
104668         should be neither group- nor other-writeable until the special
104669         mode bits are right.
104671 2007-01-31  Eric Blake  <ebb9@byu.net>
104673         * modules/mountlist (Depends-on): Add strstr.
104675         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
104676         bug.
104677         * modules/string (Makefile.am): Remove redundant replacement.
104678         * modules/regex (Depends-on): Add mempcpy.
104680 2007-01-31  Bruno Haible  <bruno@clisp.org>
104682         New module description field 'Link'.
104683         * gnulib-tool (func_usage): Document --extract-link-directive.
104684         (sed_extract_prog): Recognize 'Link' directive.
104685         (func_get_link_directive): New function.
104686         (func_import): Show summary of link directives.
104687         Handle --extract-link-directive option.
104688         * modules/acl (Link): New section.
104689         * modules/clock-time (Link): New section.
104690         * modules/euidaccess (Link): New section.
104691         * modules/gettext (Link): New section.
104692         * modules/iconv (Link): New section.
104693         * modules/lock (Link): New section.
104694         * modules/nanosleep (Link): New section.
104695         * modules/readline (Link): New section.
104697 2007-01-27  Bruno Haible  <bruno@clisp.org>
104699         Enforce the use of gnulib modules for unportable <string.h> functions.
104700         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
104701         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
104702         (gl_HEADER_STRING_H_BODY): Require it.
104703         * lib/string_.h: If the gnulib module XYZ is not present, redefine
104704         the symbol XYZ to one that gives a link error.
104705         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
104706         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
104707         * modules/mempcpy (configure.ac): Likewise.
104708         * modules/memrchr (configure.ac): Likewise.
104709         * modules/stpcpy (configure.ac): Likewise.
104710         * modules/stpncpy (configure.ac): Likewise.
104711         * modules/strcase (configure.ac): Likewise.
104712         * modules/strcasestr (configure.ac): Likewise.
104713         * modules/strchrnul (configure.ac): Likewise.
104714         * modules/strdup (configure.ac): Likewise.
104715         * modules/strndup (configure.ac): Likewise.
104716         * modules/strnlen (configure.ac): Likewise.
104717         * modules/strpbrk (configure.ac): Likewise.
104718         * modules/strsep (configure.ac): Likewise.
104719         * modules/strstr (configure.ac): Likewise.
104720         * modules/strtok_r (configure.ac): Likewise.
104722 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
104724         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
104726 2007-01-30  Jim Meyering  <jim@meyering.net>
104728         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
104730 2007-01-29  Bruno Haible  <bruno@clisp.org>
104732         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
104733         * lib/execute.c: Likewise.
104734         * lib/pipe.c: Likewise.
104735         * lib/printf-args.h: Likewise.
104736         * lib/printf-args.c: Likewise.
104737         * lib/printf-parse.c: Likewise.
104738         * lib/vasnprintf.c: Likewise.
104740 2007-01-29  Eric Blake  <ebb9@byu.net>
104742         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
104743         declaration.
104745 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
104747         * lib/strptime.h (strptime): Use 'restrict' for args where
104748         POSIX requires this.
104749         * lib/strptime.c (strptime): Likewise.
104750         Change license notice from LGPL to GPL, since gnulib-tool will
104751         change this as needed.
104752         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
104753         defined.
104754         Include "strptime.h" first, to check interface.
104755         Do not #undef _LIBC and _NL_CURRENT.
104756         Do not include <stdlib.h>; no longer needed.
104757         Include "time_r.h" and declare ptime_locale_status
104758         only if _LIBC is not defined.
104759         (__P): Remove unused macro.
104760         (match_string): Bring back glibc version, but use it only if _LIBC
104761         is defined.
104762         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
104763         Remove unnecessary assertion and abort() call.
104764         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
104765         * m4/strptime.m4: Fix serial number comment.
104766         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
104767         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
104768         (Depends-on): Add time_r.
104770 2007-01-29  Bruno Haible  <bruno@clisp.org>
104772         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104773         strptime.
104774         * modules/strptime (Depends-on): Add stdbool.
104775         * lib/strptime.h: Include <time.h> always. Add comments.
104777 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104779         * modules/strptime: New file.
104780         * lib/strptime.h: New file.
104781         * lib/strptime.c: New file.
104782         * m4/strptime.m4: New file.
104784 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104786         * MODULES.html.sh: New module mpsort.
104787         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
104789         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
104790         a circularity problem with HP-UX ia64 reported by Bob Proulx in
104791         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
104792         All uses changed.
104793         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
104794         All uses changed.
104795         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
104796         to _Restrict_.
104797         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
104798         the parameter matches the prototype.
104800 2007-01-28  Jim Meyering  <jim@meyering.net>
104802         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
104803         sys/time.h here, reverting that part of the previous patch:
104804         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
104806 2007-01-28  Bruno Haible  <bruno@clisp.org>
104808         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
104809         value of $(SYS_TIME_H).
104810         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
104811         remove it conditionally, too. [added by Jim Meyering]
104812         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
104813         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
104814         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
104815         GETTIMEOFDAY_REPLACEMENT to 1.
104817 2007-01-28  Bruno Haible  <bruno@clisp.org>
104819         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
104820         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
104821         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
104822         Set UNISTD_H instead of UNISTD_H2.
104823         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
104825 2007-01-28  Bruno Haible  <bruno@clisp.org>
104827         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
104828         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
104830 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104832         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
104833         (func_create_testdir): Ensure C locale for `grep' and `tr'
104834         character ranges.
104835         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
104836         ACLOCAL_AMFLAGS parsing state machine.
104838 2007-01-27  Bruno Haible  <bruno@clisp.org>
104840         * modules/unistr/base: Update.
104842 2007-01-27  Bruno Haible  <bruno@clisp.org>
104844         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
104845         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
104846         * modules/unistr/u32-mbtouc-unsafe: Renamed from
104847         modules/unistr/u32-mbtouc.
104848         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
104849         * lib/unistr.h: Update.
104850         * lib/linebreak.c: Update.
104851         * modules/unistr/u32-mbtouc: Renamed from
104852         modules/unistr/u32-mbtouc-safe.
104853         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
104854         * lib/unistr.h: Update.
104855         * lib/unistr/u32-to-u8.c: Update.
104856         * lib/unistr/u32-to-u16.c: Update.
104858 2007-01-27  Bruno Haible  <bruno@clisp.org>
104860         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
104861         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
104862         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
104863         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
104864         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
104865         * modules/unistr/u16-mbtouc-unsafe: Renamed from
104866         modules/unistr/u16-mbtouc.
104867         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
104868         * lib/unistr.h: Update.
104869         * lib/linebreak.c: Update.
104870         * modules/linebreak: Update.
104871         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
104872         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
104873         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
104874         * modules/unistr/u16-mbtouc: Renamed from
104875         modules/unistr/u16-mbtouc-safe.
104876         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
104877         * lib/unistr.h: Update.
104878         * lib/unistr/u16-to-u8.c: Update.
104879         * modules/unistr/u16-to-u8: Update.
104880         * lib/unistr/u16-to-u32.c: Update.
104881         * modules/unistr/u16-to-u32: Update.
104883 2007-01-27  Bruno Haible  <bruno@clisp.org>
104885         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
104886         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
104887         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
104888         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
104889         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
104890         * modules/unistr/u8-mbtouc-unsafe: Renamed from
104891         modules/unistr/u8-mbtouc.
104892         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
104893         * lib/unistr.h: Update.
104894         * lib/striconveh.c: Update.
104895         * modules/striconveh: Update.
104896         * lib/linebreak.c: Update.
104897         * modules/linebreak: Update.
104898         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
104899         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
104900         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
104901         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
104902         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
104903         * lib/unistr.h: Update.
104904         * lib/striconveh.c: Update.
104905         * modules/striconveh: Update.
104906         * lib/unistr/u8-to-u16.c: Update.
104907         * modules/unistr/u8-to-u16: Update.
104908         * lib/unistr/u8-to-u32.c: Update.
104909         * modules/unistr/u8-to-u32: Update.
104911 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104913         Sync from Libtool.
104914         * lib/argz.c: Do not include strings.h nor memory.h, include
104915         string.h unconditionally.  Patch by Simon Josefsson.
104917 2007-01-27  Bruno Haible  <bruno@clisp.org>
104919         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
104920         from gl_HEADER_STRING_H_BODY.
104921         (gl_HEADER_STRING_H_BODY): Require it.
104922         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
104923         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
104924         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
104925         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
104926         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
104927         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
104928         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
104929         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
104930         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
104931         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
104932         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
104933         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
104934         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
104935         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
104936         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
104938 2007-01-27  Bruno Haible  <bruno@clisp.org>
104940         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
104941         check_PROGRAMS into noinst_PROGRAMS.
104942         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
104943         check_PROGRAMS in this case.
104944         (func_import): Set for_test to false.
104945         (func_create_testdir): Set for_test to true.
104947 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104948             Bruno Haible  <bruno@clisp.org>
104950         * modules/strcasestr (Files): Remove lib/strcasestr.h.
104951         (Depends-on): Add string.
104952         (Includes): Use <string.h> instead of strcasestr.h.
104953         * modules/string (Makefile.am): Also substitute the value of
104954         REPLACE_STRCASESTR.
104955         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
104956         assume strcasestr is declared in <string.h> not <strings.h>. Also
104957         set REPLACE_STRCASESTR.
104958         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
104959         REPLACE_STRCASESTR.
104960         * lib/strcasestr.h: Remove file.
104961         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
104962         * lib/string_.h (strcasestr): New declaration.
104964 2007-01-27  Bruno Haible  <bruno@clisp.org>
104966         * lib/string_.h: Use 'extern'.
104968 2007-01-27  Jim Meyering  <jim@meyering.net>
104970         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
104971         of set-but-not-used local, "q".
104973         * lib/mempcpy.c: Include <config.h> before <string.h>.
104974         This fixes a compilation error on HP-UX, due to the system's
104975         "restrict"-using mempcpy prototype.
104977 2007-01-26  Bruno Haible  <bruno@clisp.org>
104979         Small optimization.
104980         * lib/javacomp.c: Include c-strstr.h.
104981          (is_envjavac_gcj): Use c_strstr instead of strstr.
104982         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
104984 2007-01-26  Bruno Haible  <bruno@clisp.org>
104986         * MODULES.html.sh (Unicode string functions): Add the new modules.
104988         * modules/uniconv/u32-strconv-to-locale: New file.
104989         * lib/uniconv/u32-strconv-to-locale.c: New file.
104991         * modules/uniconv/u16-strconv-to-locale: New file.
104992         * lib/uniconv/u16-strconv-to-locale.c: New file.
104994         * modules/uniconv/u8-strconv-to-locale: New file.
104995         * lib/uniconv/u8-strconv-to-locale.c: New file.
104997         * modules/uniconv/u32-strconv-from-locale: New file.
104998         * lib/uniconv/u32-strconv-from-locale.c: New file.
105000         * modules/uniconv/u16-strconv-from-locale: New file.
105001         * lib/uniconv/u16-strconv-from-locale.c: New file.
105003         * modules/uniconv/u8-strconv-from-locale: New file.
105004         * lib/uniconv/u8-strconv-from-locale.c: New file.
105006         * modules/uniconv/u32-strconv-to-enc: New file.
105007         * lib/uniconv/u32-strconv-to-enc.c: New file.
105008         * modules/uniconv/u32-strconv-to-enc-tests: New file.
105009         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
105011         * modules/uniconv/u16-strconv-to-enc: New file.
105012         * lib/uniconv/u16-strconv-to-enc.c: New file.
105013         * lib/uniconv/u-strconv-to-enc.h: New file.
105014         * modules/uniconv/u16-strconv-to-enc-tests: New file.
105015         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
105017         * modules/uniconv/u8-strconv-to-enc: New file.
105018         * lib/uniconv/u8-strconv-to-enc.c: New file.
105019         * modules/uniconv/u8-strconv-to-enc-tests: New file.
105020         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
105022         * modules/uniconv/u32-strconv-from-enc: New file.
105023         * lib/uniconv/u32-strconv-from-enc.c: New file.
105024         * modules/uniconv/u32-strconv-from-enc-tests: New file.
105025         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
105027         * modules/uniconv/u16-strconv-from-enc: New file.
105028         * lib/uniconv/u16-strconv-from-enc.c: New file.
105029         * modules/uniconv/u16-strconv-from-enc-tests: New file.
105030         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
105032         * modules/uniconv/u8-strconv-from-enc: New file.
105033         * lib/uniconv/u8-strconv-from-enc.c: New file.
105034         * lib/uniconv/u-strconv-from-enc.h: New file.
105035         * modules/uniconv/u8-strconv-from-enc-tests: New file.
105036         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
105038         * modules/uniconv/u32-conv-from-enc: New file.
105039         * lib/uniconv/u32-conv-from-enc.c: New file.
105040         * modules/uniconv/u32-conv-from-enc-tests: New file.
105041         * tests/uniconv/test-u32-conv-from-enc.c: New file.
105043         * modules/uniconv/u16-conv-from-enc: New file.
105044         * lib/uniconv/u16-conv-from-enc.c: New file.
105045         * lib/uniconv/u-conv-from-enc.h: New file.
105046         * modules/uniconv/u16-conv-from-enc-tests: New file.
105047         * tests/uniconv/test-u16-conv-from-enc.c: New file.
105049         * modules/uniconv/u8-conv-from-enc: New file.
105050         * lib/uniconv/u8-conv-from-enc.c: New file.
105051         * modules/uniconv/u8-conv-from-enc-tests: New file.
105052         * tests/uniconv/test-u8-conv-from-enc.c: New file.
105054         * modules/uniconv/base: New file.
105055         * lib/uniconv.h: New file.
105057 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
105059         * doc/gnulib-tool.texi (Initial import): Update to match current
105060         behavior with strdup module.
105061         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
105062         * lib/memmem.h: Remove; all uses removed.  This is now done
105063         by <string.h>.
105064         * lib/mempcpy.h: Likewise.
105065         * lib/memrchr.h: Likewise.
105066         * lib/stpcpy.h: Likewise.
105067         * lib/stpncpy.h: Likewise.
105068         * lib/strcase.h: Likewise.
105069         * lib/strchrnul.h: Likewise.
105070         * lib/strdup.h: Likewise.
105071         * lib/strndup.h: Likewise.
105072         * lib/strnlen.h: Likewise.
105073         * lib/strpbrk.h: Likewise.
105074         * lib/strsep.h: Likewise.
105075         * lib/strstr.h: Likewise.
105076         * lib/strtok_r.h: Likewise.
105077         * lib/string_.h: New file.
105078         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
105079         Rely on <string.h> instead.
105080         * lib/canon-host.c: Likewise.
105081         * lib/chdir-long.c: Likewise.
105082         * lib/concatpath.c: Likewise.
105083         * lib/exclude.c: Likewise.
105084         * lib/fchdir.c: Likewise.
105085         * lib/getaddrinfo.c: Likewise.
105086         * lib/getcwd.c: Likewise.
105087         * lib/getsubopt.c: Likewise.
105088         * lib/glob.c: Likewise.
105089         * lib/hard-locale.c: Likewise.
105090         * lib/iconvme.c: Likewise.
105091         * lib/javacomp.c: Likewise.
105092         * lib/mempcpy.c: Likewise.
105093         * lib/memrchr.c: Likewise.
105094         * lib/regex_internal.h: Likewise.
105095         * lib/stpncpy.c: Likewise.
105096         * lib/strcasecmp.c: Likewise.
105097         * lib/strchrnul.c: Likewise.
105098         * lib/strdup.c: Likewise.
105099         * lib/striconv.c: Likewise.
105100         * lib/striconveh.c: Likewise.
105101         * lib/striconveha.c: Likewise.
105102         * lib/strncasecmp.c: Likewise.
105103         * lib/strndup.c: Likewise.
105104         * lib/strnlen.c: Likewise.
105105         * lib/strsep.c: Likewise.
105106         * lib/strstr.c: Likewise.
105107         * lib/strtok_r.c: Likewise.
105108         * lib/userspec.c: Likewise.
105109         * lib/w32spawn.h: Likewise.
105110         * lib/xstrndup.c: Likewise.
105111         * lib/mountlist.c (strstr): Remove decl.
105112         * m4/string_h.m4: New file.
105113         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
105114         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
105115         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
105116         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
105117         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
105118         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
105119         Set REPLACE_STRCASECMP if necessary.
105120         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
105121         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
105122         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
105123         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
105124         HAVE_DECL_STRDUP if necessary.
105125         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
105126         since gl_FUNC_STRNDUP does that now.
105127         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
105128         Check for decl here...
105129         (gl_PREREQ_STRNLEN): ... not here.
105130         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
105131         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
105132         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
105133         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
105134         necessary.
105135         * modules/string: New file.
105136         * modules/memmem (Files): Remove special-purpose include file.
105137         (Depends-on): Add string.
105138         (Include): Include <string.h>, not the removed file.
105139         * modules/mempcpy: Likewise.
105140         * modules/memrchr: Likewise.
105141         * modules/stpcpy: Likewise.
105142         * modules/stpncpy: Likewise.
105143         * modules/strcase: Likewise.
105144         * modules/strchrnul: Likewise.
105145         * modules/strdup: Likewise.
105146         * modules/strndup: Likewise.
105147         * modules/strnlen: Likewise.
105148         * modules/strpbrk: Likewise.
105149         * modules/strsep: Likewise.
105150         * modules/strstr: Likewise.
105151         * modules/strtok_r: Likewise.
105152         * tests/test-dirname.c: Don't include "strdup.h", since
105153         <string.h> now suffices.
105154         * tests/test-memmem.c: Don't include "memmem.h", since
105155         <string.h> now suffices.
105157 2007-01-25  Bruno Haible  <bruno@clisp.org>
105159         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
105160         *resultp is 0.
105162         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
105163         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
105164         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
105165         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
105167         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
105168         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
105169         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
105170         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
105171         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
105172         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
105174 2007-01-24  Bruno Haible  <bruno@clisp.org>
105176         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
105177         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
105178         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
105179         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
105180         gl_FUNC_FTS_CORE.
105181         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
105182         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
105183         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105184         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
105185         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
105186         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
105187         gl_FUNC_FCHOWNAT.
105188         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
105189         gl_FUNC_STRFTIME.
105190         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
105191         Reported by Ralf Wildenhues.
105193 2007-01-24  Bruno Haible  <bruno@clisp.org>
105195         Drop AC_REQUIRE calls that are redundant with the module dependencies.
105196         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
105197         gl_GETADDRINFO.
105198         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
105199         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
105200         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
105202 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
105204         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
105205         Don't use 'exit'; just return from 'main'.
105206         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
105208         * lib/fnmatch_.h: Readjust white space and comments to match
105209         glibc, to avoid spurious diffs.
105211 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105213         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
105214         2004-12-01 change by Jakub Jelinek, since this code won't compile
105215         if !LIBC.  Problem reported by Bob Proulx.
105217 2007-01-23  Bruno Haible  <bruno@clisp.org>
105219         * lib/striconveh.c: Include c-strcaseeq.h.
105220         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
105221         * modules/striconveh (Depends-on): Add c-strcaseeq.
105223 2007-01-23  Bruno Haible  <bruno@clisp.org>
105225         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
105227         * modules/c-strcaseeq: New file.
105228         * lib/c-strcaseeq.h: New file.
105230         * modules/streq: New file.
105231         * lib/streq.h: New file.
105233 2007-01-23  Bruno Haible  <bruno@clisp.org>
105235         * modules/striconveha-tests: New file.
105236         * tests/test-striconveha.c: New file.
105238         * lib/striconveha.h: Include <stdbool.h>.
105239         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
105240         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
105241         (mem_iconveha_notranslit): Renamed from mem_iconveha.
105242         (mem_iconveha): New function.
105243         (str_iconveha_notranslit): Renamed from str_iconveha.
105244         (str_iconveha): New function.
105245         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
105246         c-strcase.
105248 2007-01-23  Bruno Haible  <bruno@clisp.org>
105250         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
105251         encodings without forgiving before trying any encoding with handler.
105252         (str_iconveha): Try all encodings without forgiving before trying any
105253         encoding with handler.
105255 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105257         Import the following changes from libc.
105259         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
105261         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
105263         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
105265         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
105266         normal_bracket label.
105268         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
105270         [BZ #361]
105271         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
105272         to normal_bracket after fetching the next character.
105274 2007-01-22  Bruno Haible  <bruno@clisp.org>
105276         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
105277         argument.
105278         * lib/striconveh.c (iconv_carefully_1): New function.
105279         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
105280         argument.
105281         (str_cd_iconveh): Update.
105282         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
105283         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
105284         * tests/test-striconveh.c (MAGIC): New macro.
105285         (new_offsets): New function.
105286         (main): Test call with and without offsets.
105288 2007-01-22  Bruno Haible  <bruno@clisp.org>
105290         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
105291         * modules/sys_select (Makefile.am): Likewise.
105292         * modules/sys_socket (Makefile.am): Likewise.
105293         * modules/sys_time (Makefile.am): Likewise.
105295 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
105297         * modules/gettimeofday (License): Change from GPL to LGPL, since
105298         gettimeofday is a library function.
105300 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105302         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
105304 2007-01-21  Bruno Haible  <bruno@clisp.org>
105306         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
105308 2007-01-21  Bruno Haible  <bruno@clisp.org>
105310         * modules/striconveha: New file.
105311         * lib/striconveha.h: New file.
105312         * lib/striconveha.c: New file.
105313         * MODULES.html.sh (Internationalization functions): Add striconveha.
105314         * lib/striconv.c (str_iconv): Optimize the case of an empty input
105315         string.
105316         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
105318 2007-01-21  Bruno Haible  <bruno@clisp.org>
105320         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
105321         * lib/striconveh.c (str_iconveh): Likewise.
105323 2007-01-21  Bruno Haible  <bruno@clisp.org>
105325         * lib/striconveh.h (mem_iconveh): New declaration.
105326         * lib/striconveh.c (mem_iconveh): New function.
105327         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
105329 2007-01-21  Bruno Haible  <bruno@clisp.org>
105331         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
105333         * lib/striconveh.h (mem_cd_iconveh): Change specification.
105334         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
105335         original result buffer.
105336         (str_cd_iconveh): Update.
105337         * tests/test-striconveh.c (main): Update.
105339         * lib/striconv.h (mem_cd_iconv): Change specification.
105340         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
105341         result buffer.
105342         (str_cd_iconv): Update.
105343         * tests/test-striconv.c (main): Update.
105345 2007-01-21  Bruno Haible  <bruno@clisp.org>
105347         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
105349 2007-01-20  Jim Meyering  <jim@meyering.net>
105351         * lib/userspec.c (parse_with_separator): If a user or group string
105352         starts with "+", skip the corresponding name-to-ID look-up, since
105353         such a look-up must fail: user and group names may not include "+".
105355 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
105357         * lib/poll.c: Include sys/time.h and time.h unconditionally,
105358         since we now assume the sys_time module.
105359         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
105360         check for sys/time.h; no longer needed.
105361         * modules/poll (Depends-on): Depend on sys_time.
105363 2007-01-18  Bruno Haible  <bruno@clisp.org>
105365         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
105366         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
105368         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
105369         gettimeofday.
105371         * tests/test-gettimeofday.c: Include <time.h>.
105372         (dummy): Remove variable.
105374         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
105375         gl_HEADER_SYS_TIME_H.
105376         (gl_HEADER_SYS_TIME_H): New macro.
105378         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
105379         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105380         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
105381         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
105382         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105383         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
105384         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
105385         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105386         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
105387         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
105388         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105390         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
105391         last change; it caused a compilation error when cross-compiling to
105392         Cygwin.
105394 2007-01-18  Jim Meyering  <jim@meyering.net>
105396         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
105397         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
105398         than the race-prone "test -d sys || mkdir sys".
105399         (configure.ac): Use AC_PROG_MKDIR_P.
105400         * modules/sys_select: Likewise.
105401         * modules/sys_socket: Likewise.
105402         * modules/sys_time: Likewise.
105404 2007-01-18  Eric Blake  <ebb9@byu.net>
105406         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
105407         replace gettimeofday.
105408         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
105409         name, to avoid infinite recursion.
105411 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
105413         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
105414         module sys_time.
105415         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
105416         assume timespec.h defines struct timeval.
105417         * lib/settime.c: Likewise.
105418         * lib/utimens.c: Likewise.
105419         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
105420         since we now assume the gettimeofday module.
105421         * lib/tempname.c (__gen_tempname): Likewise.
105422         * lib/gettimeofday.h: Remove.
105423         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
105424         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
105425         Include <time.h>, for 'time()'.
105426         (localtime_buffer_addr): Also use this workaround if
105427         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
105428         to simplify the uses.  All uses changed.
105429         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
105430         that #undef is inside {}, and 'const' follows type name consistently.
105431         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
105432         (gettimeofday): Do not use the maximum possible value for
105433         tv->tv_usec, since that might break usages other than ls.c.
105434         Instead, we'll leave ls.c alone.  This undoes today's patch
105435         by Bruno.  Add a compile-time warning for 1s-clock resolution;
105436         we've never observed the problem but might as well keep the
105437         canary.
105438         * lib/nanosleep.c: Include timespec.h first, for interface check.
105439         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
105440         now assume the sys_time module.
105441         * lib/tempname.c: Likewise.
105442         * lib/timespec.h: Likewise.
105443         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
105444         needed.
105445         * lib/strftime.c: Likewise.
105446         * lib/timespec.h: Likewise.
105447         * lib/posixtm.c: Include posixtm.h first, for interface check.
105448         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
105449         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
105450         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
105451         * lib/sys_time_.h: New file.
105452         * lib/timespec.h (struct timespec): Use long int, not long.
105453         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
105454         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
105455         Remove obsolescent call to AC_HEADER_TIME.
105456         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
105457         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
105458         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
105459         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
105460         Likewise.
105461         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
105462         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
105463         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
105464         into the sys_time module.  Check for gettimeofday just once.
105465         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
105466         for gettimeofday signature to just check the signature.  Merely
105467         compile it, since linking doesn't test signature.  Improve test for
105468         whether gettimeofday.o is actually needed.
105469         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
105470         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
105471         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
105472         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105473         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
105474         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
105475         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
105476         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
105477         than worrying about sys/time.h.
105478         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
105479         Don't bother worrying about TIME_WITH_SYS_TIME.
105480         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
105481         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
105482         * m4/sys_time_h.m4: New file.
105483         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
105484         Don't include sys/time.h.  Return from main rather than exiting.
105485         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
105486         all uses changed.
105487         * modules/gethrxtime (Depends-on): Add sys_time.
105488         * modules/gettime (Depends-on): Likewise.
105489         * modules/gettimeofday (Depends-on): Likewise.
105490         * modules/nanosleep (Depends-on): Likewise.
105491         * modules/settime (Depends-on): Likewise.
105492         * modules/tempname (Depends-on): Likewise.
105493         * modules/utimens (Depends-on): Likewise.
105494         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
105495         (Include): Change back to <sys/time.h>.
105496         (Maintainer): Add self.
105497         * modules/sys_time: New file.
105498         * modules/tempname (Depends-on): Add gettimeofday.
105499         * tests/test-gettimeofday.c: Include <sys/time.h>
105500         rather than gettimeofday.h.
105502 2007-01-17  Bruno Haible  <bruno@clisp.org>
105504         * gnulib-tool (func_get_license): Revert last patch. Instead, let
105505         the license default to GPL.
105506         (func_create_testdir): Don't complain if a module is LGPL and its
105507         tests module depends on GPLed modules.
105509 2007-01-17  Bruno Haible  <bruno@clisp.org>
105511         * lib/gettimeofday.c (gettimeofday): Add code for the case
105512         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
105513         maximum possible value for tv->tv_usec, rather than the minimum one.
105515 2005-10-08  Martin Lambers  <marlam@marlam.de>
105516 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
105517 2007-01-16  Bruno Haible  <bruno@clisp.org>
105519         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
105520         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
105521         gl_FUNC_GETTIMEOFDAY.
105522         (Include): Add gettimeofday.h.
105523         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
105524         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
105525         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
105526         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
105527         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
105528         * lib/gettimeofday.h: New file.
105529         * lib/gettimeofday.c: Include <sys/timeb.h>.
105530         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
105531         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105532         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
105533         fall back on time().
105535         * tests/test-gettimeofday.c: New file.
105536         * modules/gettimeofday-tests: New file.
105538 2007-01-16  Eric Blake  <ebb9@byu.net>
105540         * modules/fnmatch (Depends-on): Depend on wchar.
105541         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
105542         * m4/fnmatch.m4: Likewise.
105543         * modules/mbchar (Makefile.am): Assume <wchar.h>.
105544         * m4/mbchar.m4: Likewise.
105545         * modules/mbswidth (Depends-on): Depend on wchar.
105546         * lib/mbswidth.c: Assume <wchar.h>.
105547         * m4/mbswidth.m4: Likewise.
105548         * modules/quotearg (Depends-on): Depend on wchar.
105549         * lib/quotearg.c: Assume <wchar.h>.
105550         * m4/quotearg.m4: Likewise.
105551         * modules/regex (Depends-on): Depend on wchar.
105552         * lib/regex_internal.h: Assume <wchar.h>.
105553         * m4/regex.m4: Likewise.
105554         * modules/stdint (Depends-on): Depend on wchar.
105555         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
105556         * m4/stdint.m4: Likewise.
105557         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
105558         * modules/strftime (Depends-on): Depend on wchar.
105559         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
105560         * modules/strtol (Depends-on): Depend on wchar.
105561         * lib/strtol.c: Assume <wchar.h>.
105562         * modules/wcwidth (Depends-on): Depend on wchar.
105563         * lib/wcwidth.h: Assume <wchar.h>.
105564         * m4/wcwidth.m4: Likewise.
105566 2007-01-16  Bruno Haible  <bruno@clisp.org>
105568         * modules/csharpexec-script: New, created from...
105569         * modules/csharpexec: ... this.
105571 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
105573         * modules/javaexec-script: New, created from...
105574         * modules/javaexec: ... this.
105576 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105578         * modules/poll (Dependencies): Add sys_select.
105580 2007-01-15  Jim Meyering  <jim@meyering.net>
105582         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
105583         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
105584         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
105585         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
105587 2007-01-15  Bruno Haible  <bruno@clisp.org>
105589         * modules/striconveh: New file.
105590         * lib/striconveh.h: New file.
105591         * lib/striconveh.c: New file.
105592         * MODULES.html.sh (Internationalization functions): Add striconveh.
105594         * modules/striconveh-tests: New file.
105595         * tests/test-striconveh.c: New file.
105597 2007-01-15  Bruno Haible  <bruno@clisp.org>
105599         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
105600         not from GNU libiconv or GNU libc.
105602 2007-01-15  Bruno Haible  <bruno@clisp.org>
105604         * doc/gnulib-intro.texi (Copyright): Explain the different license
105605         terms for module descriptions, autoconf macros, tests, documentation.
105607 2007-01-14  Bruno Haible  <bruno@clisp.org>
105609         * modules/striconv-tests: New file.
105610         * tests/test-striconv.c: New file.
105612 2007-01-14  Bruno Haible  <bruno@clisp.org>
105614         * modules/iconv-tests: New file.
105615         * tests/test-iconv.c: New file.
105617 2007-01-14  Bruno Haible  <bruno@clisp.org>
105619         * gnulib-tool (func_get_license): For test modules, use the license of
105620         the main module.
105622 2007-01-14  Bruno Haible  <bruno@clisp.org>
105624         * modules/iconv (Include): Clarify that <iconv.h> can only be included
105625         if iconv is found to exist.
105627 2007-01-14  Bruno Haible  <bruno@clisp.org>
105629         * modules/c-ctype-tests: New file.
105630         * tests/test-c-ctype.c: New file.
105632 2007-01-14  Bruno Haible  <bruno@clisp.org>
105634         * modules/binary-io-tests: New file.
105635         * tests/test-binary-io.sh: New file.
105636         * tests/test-binary-io.c: New file.
105638 2007-01-14  Bruno Haible  <bruno@clisp.org>
105640         * modules/array-oset-tests: New file.
105641         * tests/test-array_oset.c: New file.
105643 2007-01-14  Bruno Haible  <bruno@clisp.org>
105645         * modules/array-list-tests: New file.
105646         * tests/test-array_list.c: New file.
105648 2007-01-14  Bruno Haible  <bruno@clisp.org>
105650         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
105651         and make.
105652         Reported by Simon Josefsson in
105653         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
105655 2007-01-14  Bruno Haible  <bruno@clisp.org>
105657         * modules/allocsa-tests: New file.
105658         * tests/test-allocsa.c: New file.
105660 2007-01-14  Bruno Haible  <bruno@clisp.org>
105662         * modules/fchdir (Depends-on): Add absolute-header.
105663         * modules/unistd (Depends-on): Likewise.
105665 2006-12-30  Bruno Haible  <bruno@clisp.org>
105667         * modules/fchdir: New file.
105668         * modules/unistd (Files): Add lib/unistd_.h.
105669         (Makefile.am): Generate unistd.h from unistd_.h.
105670         * lib/fchdir.c: New file.
105671         * lib/dirent_.h: New file.
105672         * lib/unistd_.h: New file.
105673         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
105674         * m4/fchdir.m4: New file.
105675         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
105676         (gl_HEADER_UNISTD): Invoke it.
105677         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
105678         function.
105679         * lib/backupfile.c (opendir, closedir): Undefine.
105680         * lib/chown.c (open, close): Undefine.
105681         * lib/clean-temp.c (open, close): Undefine.
105682         * lib/copy-file.c (open, close): Undefine.
105683         * lib/execute.c (open, close): Undefine.
105684         * lib/fsusage.c (open, close): Undefine.
105685         * lib/gc-gnulib.c (open, close): Undefine.
105686         * lib/getcwd.c (opendir, closedir): Undefine.
105687         * lib/glob.c (opendir, closedir): Undefine.
105688         * lib/javacomp.c (open, close): Undefine.
105689         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
105690         * lib/openat-proc.c (open, close): Undefine.
105691         * lib/pagealign_alloc.c (open, close): Undefine.
105692         * lib/pipe.c (open, close): Undefine.
105693         * lib/progreloc.c (open, close): Undefine.
105694         * lib/savedir.c (opendir, closedir): Undefine.
105695         * lib/utime.c (open, close): Undefine.
105696         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
105698 2007-01-10  Bruno Haible  <bruno@clisp.org>
105700         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
105702 2007-01-12  Eric Blake  <ebb9@byu.net>
105704         Provide a robust <wchar.h>.  Further simplifications are now
105705         possible in other modules, but not included here.
105706         * modules/wchar: New module.
105707         * m4/wchar.m4: New file.
105708         * lib/wchar_.h: Likewise.
105709         * modules/mbchar (Depends-on): Depend on wchar, as the first use
105710         of the new module.
105711         * MODULES.html.sh (Extended multibyte and wide character utilities):
105712         New section.
105714 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
105716         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
105717         to a reasonable default for memory allocation.
105718         (xreadlink): Don't allocate a huge buffer, to work around a buggy
105719         file system that reports garbage st_size values for symlinks.
105720         Problem reported by Liyang Hu.
105722 2007-01-11  Simon Josefsson  <simon@josefsson.org>
105724         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
105725         Emacs .#* auto-save files).
105727 2007-01-11  Bruno Haible  <bruno@clisp.org>
105729         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
105730         directory.
105732 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
105734         Use @...@ consistently in lib/wctype_.h.
105735         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
105736         on it being set to 1 or 0.
105737         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
105738         go back to AC_SUBSTing it.
105739         * modules/wctype (Makefile.am): Undo previous change.
105741 2007-01-10  Eric Blake  <ebb9@byu.net>
105743         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
105744         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
105745         * modules/wctype (Makefile.am): Likewise.
105746         Reported by Chris McGuire.
105748 2007-01-10  Jim Meyering  <jim@meyering.net>
105750         fts.c: a small readability/maintainability improvement
105751         * lib/fts.c (fts_read): Make this code slightly more readable and
105752         maintainable by hoisting the "sp->fts_cur = p" assignments to
105753         immediately follow the statements that set P.  Derived from
105754         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
105756 2007-01-10  Eric Blake  <ebb9@byu.net>
105758         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
105759         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
105760         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
105761         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
105762         Reported by Chris McGuire.
105764 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105766         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
105767         in sed script.
105769 2007-01-09  Bruno Haible  <bruno@clisp.org>
105771         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
105772         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
105773         variables.
105774         (func_module): Use them.
105776 2007-01-09  Bruno Haible  <bruno@clisp.org>
105778         * modules/unistr/base: New file.
105779         * lib/unistr.h: New file.
105781         * modules/unistr/u8-to-u16: New file.
105782         * lib/unistr/u8-to-u16.c: New file.
105784         * modules/unistr/u8-to-u32: New file.
105785         * lib/unistr/u8-to-u32.c: New file.
105787         * modules/unistr/u16-to-u8: New file.
105788         * lib/unistr/u16-to-u8.c: New file.
105790         * modules/unistr/u16-to-u32: New file.
105791         * lib/unistr/u16-to-u32.c: New file.
105793         * modules/unistr/u32-to-u8: New file.
105794         * lib/unistr/u32-to-u8.c: New file.
105796         * modules/unistr/u32-to-u16: New file.
105797         * lib/unistr/u32-to-u16.c: New file.
105799         * modules/unistr/u8-check: New file.
105800         * modules/unistr/u16-check: New file.
105801         * modules/unistr/u32-check: New file.
105802         * lib/unistr/u8-check.c: New file.
105803         * lib/unistr/u16-check.c: New file.
105804         * lib/unistr/u32-check.c: New file.
105806         * modules/unistr/u8-chr: New file.
105807         * modules/unistr/u16-chr: New file.
105808         * modules/unistr/u32-chr: New file.
105809         * lib/unistr/u8-chr.c: New file.
105810         * lib/unistr/u16-chr.c: New file.
105811         * lib/unistr/u32-chr.c: New file.
105813         * modules/unistr/u8-cmp: New file.
105814         * modules/unistr/u16-cmp: New file.
105815         * modules/unistr/u32-cmp: New file.
105816         * lib/unistr/u8-cmp.c: New file.
105817         * lib/unistr/u16-cmp.c: New file.
105818         * lib/unistr/u32-cmp.c: New file.
105820         * modules/unistr/u8-cpy: New file.
105821         * modules/unistr/u16-cpy: New file.
105822         * modules/unistr/u32-cpy: New file.
105823         * lib/unistr/u8-cpy.c: New file.
105824         * lib/unistr/u16-cpy.c: New file.
105825         * lib/unistr/u32-cpy.c: New file.
105826         * lib/unistr/u-cpy.h: New file.
105828         * modules/unistr/u8-cpy-alloc: New file.
105829         * modules/unistr/u16-cpy-alloc: New file.
105830         * modules/unistr/u32-cpy-alloc: New file.
105831         * lib/unistr/u8-cpy-alloc.c: New file.
105832         * lib/unistr/u16-cpy-alloc.c: New file.
105833         * lib/unistr/u32-cpy-alloc.c: New file.
105834         * lib/unistr/u-cpy-alloc.h: New file.
105836         * modules/unistr/u8-endswith: New file.
105837         * modules/unistr/u16-endswith: New file.
105838         * modules/unistr/u32-endswith: New file.
105839         * lib/unistr/u8-endswith.c: New file.
105840         * lib/unistr/u16-endswith.c: New file.
105841         * lib/unistr/u32-endswith.c: New file.
105842         * lib/unistr/u-endswith.h: New file.
105844         * modules/unistr/u8-mblen: New file.
105845         * modules/unistr/u16-mblen: New file.
105846         * modules/unistr/u32-mblen: New file.
105847         * lib/unistr/u8-mblen.c: New file.
105848         * lib/unistr/u16-mblen.c: New file.
105849         * lib/unistr/u32-mblen.c: New file.
105851         * modules/unistr/u8-mbtouc: New file.
105852         * modules/unistr/u16-mbtouc: New file.
105853         * modules/unistr/u32-mbtouc: New file.
105854         * lib/unistr/u8-mbtouc.c: New file.
105855         * lib/unistr/u16-mbtouc.c: New file.
105856         * lib/unistr/u32-mbtouc.c: New file.
105858         * modules/unistr/u8-mbtouc-safe: New file.
105859         * modules/unistr/u16-mbtouc-safe: New file.
105860         * modules/unistr/u32-mbtouc-safe: New file.
105861         * lib/unistr/u8-mbtouc-safe.c: New file.
105862         * lib/unistr/u16-mbtouc-safe.c: New file.
105863         * lib/unistr/u32-mbtouc-safe.c: New file.
105865         * modules/unistr/u8-move: New file.
105866         * modules/unistr/u16-move: New file.
105867         * modules/unistr/u32-move: New file.
105868         * lib/unistr/u8-move.c: New file.
105869         * lib/unistr/u16-move.c: New file.
105870         * lib/unistr/u32-move.c: New file.
105871         * lib/unistr/u-move.h: New file.
105873         * modules/unistr/u8-next: New file.
105874         * modules/unistr/u16-next: New file.
105875         * modules/unistr/u32-next: New file.
105876         * lib/unistr/u8-next.c: New file.
105877         * lib/unistr/u16-next.c: New file.
105878         * lib/unistr/u32-next.c: New file.
105880         * modules/unistr/u8-prev: New file.
105881         * modules/unistr/u16-prev: New file.
105882         * modules/unistr/u32-prev: New file.
105883         * lib/unistr/u8-prev.c: New file.
105884         * lib/unistr/u16-prev.c: New file.
105885         * lib/unistr/u32-prev.c: New file.
105887         * modules/unistr/u8-set: New file.
105888         * modules/unistr/u16-set: New file.
105889         * modules/unistr/u32-set: New file.
105890         * lib/unistr/u8-set.c: New file.
105891         * lib/unistr/u16-set.c: New file.
105892         * lib/unistr/u32-set.c: New file.
105893         * lib/unistr/u-set.h: New file.
105895         * modules/unistr/u8-startswith: New file.
105896         * modules/unistr/u16-startswith: New file.
105897         * modules/unistr/u32-startswith: New file.
105898         * lib/unistr/u8-startswith.c: New file.
105899         * lib/unistr/u16-startswith.c: New file.
105900         * lib/unistr/u32-startswith.c: New file.
105901         * lib/unistr/u-startswith.h: New file.
105903         * modules/unistr/u8-stpcpy: New file.
105904         * modules/unistr/u16-stpcpy: New file.
105905         * modules/unistr/u32-stpcpy: New file.
105906         * lib/unistr/u8-stpcpy.c: New file.
105907         * lib/unistr/u16-stpcpy.c: New file.
105908         * lib/unistr/u32-stpcpy.c: New file.
105909         * lib/unistr/u-stpcpy.h: New file.
105911         * modules/unistr/u8-stpncpy: New file.
105912         * modules/unistr/u16-stpncpy: New file.
105913         * modules/unistr/u32-stpncpy: New file.
105914         * lib/unistr/u8-stpncpy.c: New file.
105915         * lib/unistr/u16-stpncpy.c: New file.
105916         * lib/unistr/u32-stpncpy.c: New file.
105917         * lib/unistr/u-stpncpy.h: New file.
105919         * modules/unistr/u8-strcat: New file.
105920         * modules/unistr/u16-strcat: New file.
105921         * modules/unistr/u32-strcat: New file.
105922         * lib/unistr/u8-strcat.c: New file.
105923         * lib/unistr/u16-strcat.c: New file.
105924         * lib/unistr/u32-strcat.c: New file.
105925         * lib/unistr/u-strcat.h: New file.
105927         * modules/unistr/u8-strchr: New file.
105928         * modules/unistr/u16-strchr: New file.
105929         * modules/unistr/u32-strchr: New file.
105930         * lib/unistr/u8-strchr.c: New file.
105931         * lib/unistr/u16-strchr.c: New file.
105932         * lib/unistr/u32-strchr.c: New file.
105934         * modules/unistr/u8-strcmp: New file.
105935         * modules/unistr/u16-strcmp: New file.
105936         * modules/unistr/u32-strcmp: New file.
105937         * lib/unistr/u8-strcmp.c: New file.
105938         * lib/unistr/u16-strcmp.c: New file.
105939         * lib/unistr/u32-strcmp.c: New file.
105941         * modules/unistr/u8-strcpy: New file.
105942         * modules/unistr/u16-strcpy: New file.
105943         * modules/unistr/u32-strcpy: New file.
105944         * lib/unistr/u8-strcpy.c: New file.
105945         * lib/unistr/u16-strcpy.c: New file.
105946         * lib/unistr/u32-strcpy.c: New file.
105947         * lib/unistr/u-strcpy.h: New file.
105949         * modules/unistr/u8-strcspn: New file.
105950         * modules/unistr/u16-strcspn: New file.
105951         * modules/unistr/u32-strcspn: New file.
105952         * lib/unistr/u8-strcspn.c: New file.
105953         * lib/unistr/u16-strcspn.c: New file.
105954         * lib/unistr/u32-strcspn.c: New file.
105955         * lib/unistr/u-strcspn.h: New file.
105957         * modules/unistr/u8-strdup: New file.
105958         * modules/unistr/u16-strdup: New file.
105959         * modules/unistr/u32-strdup: New file.
105960         * lib/unistr/u8-strdup.c: New file.
105961         * lib/unistr/u16-strdup.c: New file.
105962         * lib/unistr/u32-strdup.c: New file.
105963         * lib/unistr/u-strdup.h: New file.
105965         * modules/unistr/u8-strlen: New file.
105966         * modules/unistr/u16-strlen: New file.
105967         * modules/unistr/u32-strlen: New file.
105968         * lib/unistr/u8-strlen.c: New file.
105969         * lib/unistr/u16-strlen.c: New file.
105970         * lib/unistr/u32-strlen.c: New file.
105971         * lib/unistr/u-strlen.h: New file.
105973         * modules/unistr/u8-strmblen: New file.
105974         * modules/unistr/u16-strmblen: New file.
105975         * modules/unistr/u32-strmblen: New file.
105976         * lib/unistr/u8-strmblen.c: New file.
105977         * lib/unistr/u16-strmblen.c: New file.
105978         * lib/unistr/u32-strmblen.c: New file.
105980         * modules/unistr/u8-strmbtouc: New file.
105981         * modules/unistr/u16-strmbtouc: New file.
105982         * modules/unistr/u32-strmbtouc: New file.
105983         * lib/unistr/u8-strmbtouc.c: New file.
105984         * lib/unistr/u16-strmbtouc.c: New file.
105985         * lib/unistr/u32-strmbtouc.c: New file.
105987         * modules/unistr/u8-strncat: New file.
105988         * modules/unistr/u16-strncat: New file.
105989         * modules/unistr/u32-strncat: New file.
105990         * lib/unistr/u8-strncat.c: New file.
105991         * lib/unistr/u16-strncat.c: New file.
105992         * lib/unistr/u32-strncat.c: New file.
105993         * lib/unistr/u-strncat.h: New file.
105995         * modules/unistr/u8-strncmp: New file.
105996         * modules/unistr/u16-strncmp: New file.
105997         * modules/unistr/u32-strncmp: New file.
105998         * lib/unistr/u8-strncmp.c: New file.
105999         * lib/unistr/u16-strncmp.c: New file.
106000         * lib/unistr/u32-strncmp.c: New file.
106002         * modules/unistr/u8-strncpy: New file.
106003         * modules/unistr/u16-strncpy: New file.
106004         * modules/unistr/u32-strncpy: New file.
106005         * lib/unistr/u8-strncpy.c: New file.
106006         * lib/unistr/u16-strncpy.c: New file.
106007         * lib/unistr/u32-strncpy.c: New file.
106008         * lib/unistr/u-strncpy.h: New file.
106010         * modules/unistr/u8-strnlen: New file.
106011         * modules/unistr/u16-strnlen: New file.
106012         * modules/unistr/u32-strnlen: New file.
106013         * lib/unistr/u8-strnlen.c: New file.
106014         * lib/unistr/u16-strnlen.c: New file.
106015         * lib/unistr/u32-strnlen.c: New file.
106016         * lib/unistr/u-strnlen.h: New file.
106018         * modules/unistr/u8-strpbrk: New file.
106019         * modules/unistr/u16-strpbrk: New file.
106020         * modules/unistr/u32-strpbrk: New file.
106021         * lib/unistr/u8-strpbrk.c: New file.
106022         * lib/unistr/u16-strpbrk.c: New file.
106023         * lib/unistr/u32-strpbrk.c: New file.
106024         * lib/unistr/u-strpbrk.h: New file.
106026         * modules/unistr/u8-strrchr: New file.
106027         * modules/unistr/u16-strrchr: New file.
106028         * modules/unistr/u32-strrchr: New file.
106029         * lib/unistr/u8-strrchr.c: New file.
106030         * lib/unistr/u16-strrchr.c: New file.
106031         * lib/unistr/u32-strrchr.c: New file.
106033         * modules/unistr/u8-strspn: New file.
106034         * modules/unistr/u16-strspn: New file.
106035         * modules/unistr/u32-strspn: New file.
106036         * lib/unistr/u8-strspn.c: New file.
106037         * lib/unistr/u16-strspn.c: New file.
106038         * lib/unistr/u32-strspn.c: New file.
106039         * lib/unistr/u-strspn.h: New file.
106041         * modules/unistr/u8-strstr: New file.
106042         * modules/unistr/u16-strstr: New file.
106043         * modules/unistr/u32-strstr: New file.
106044         * lib/unistr/u8-strstr.c: New file.
106045         * lib/unistr/u16-strstr.c: New file.
106046         * lib/unistr/u32-strstr.c: New file.
106047         * lib/unistr/u-strstr.h: New file.
106049         * modules/unistr/u8-strtok: New file.
106050         * modules/unistr/u16-strtok: New file.
106051         * modules/unistr/u32-strtok: New file.
106052         * lib/unistr/u8-strtok.c: New file.
106053         * lib/unistr/u16-strtok.c: New file.
106054         * lib/unistr/u32-strtok.c: New file.
106055         * lib/unistr/u-strtok.h: New file.
106057         * modules/unistr/u8-uctomb: New file.
106058         * modules/unistr/u16-uctomb: New file.
106059         * modules/unistr/u32-uctomb: New file.
106060         * lib/unistr/u8-uctomb.c: New file.
106061         * lib/unistr/u16-uctomb.c: New file.
106062         * lib/unistr/u32-uctomb.c: New file.
106064         * MODULES.html.sh (Unicode string functions): Add the new modules.
106066 2007-01-08  Bruno Haible  <bruno@clisp.org>
106068         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
106069         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
106070         subdirectories.
106072 2007-01-08  Karl Berry  <karl@gnu.org>
106074         * doc/error.texi: mention that main() fns must set program_name
106075         when progname is used.
106077 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
106079         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
106080         WCTYPE_H is empty, for the benefit of builds from non-distclean
106081         directories.  Problem reported by Eric Blake in
106082         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
106084 2007-01-08  Bruno Haible  <bruno@clisp.org>
106086         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
106087         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
106088         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
106089         PROVIDE_CANONICALIZE_FILENAME_MODE.
106090         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
106092 2007-01-08  Bruno Haible  <bruno@clisp.org>
106094         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
106095         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
106096         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
106097         * lib/fts.c: Likewise.
106098         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
106100 2006-12-25  Bruno Haible  <bruno@clisp.org>
106102         * modules/utf8-ucs4-safe: New file.
106103         * lib/utf8-ucs4-safe.h: New file.
106104         * lib/unistr/utf8-ucs4-safe.c: New file.
106106         * modules/utf16-ucs4-safe: New file.
106107         * lib/utf16-ucs4-safe.h: New file.
106108         * lib/unistr/utf16-ucs4-safe.c: New file.
106110         * MODULES.html.sh (Unicode string functions): Add the new modules.
106112 2007-01-08  Bruno Haible  <bruno@clisp.org>
106114         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
106115         (Depends-on): Add unitypes.
106116         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
106117         (u8_mbtouc_aux): Move out to separate file.
106118         (u8_mbtouc): Use ucs4_t, uint8_t types.
106119         * lib/unistr/utf8-ucs4.c: New file.
106121         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
106122         (Depends-on): Add unitypes.
106123         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
106124         (u16_mbtouc_aux): Move out to separate file.
106125         (u16_mbtouc): Use ucs4_t, uint16_t types.
106126         * lib/unistr/utf16-ucs4.c: New file.
106128         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
106129         (Depends-on): Add unitypes.
106130         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
106131         (u8_uctomb_aux): Move out to separate file.
106132         (u8_uctomb): Use ucs4_t, uint8_t types.
106133         * lib/unistr/ucs4-utf8.c: New file.
106135         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
106136         (Depends-on): Add unitypes.
106137         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
106138         (u16_uctomb_aux): Move out to separate file.
106139         (u16_uctomb): Use ucs4_t, uint16_t types.
106140         * lib/unistr/ucs4-utf16.c: New file.
106142 2006-12-25  Bruno Haible  <bruno@clisp.org>
106144         * modules/unitypes: New file.
106145         * lib/unitypes.h: New file.
106146         * MODULES.html.sh (func_all_modules): New section "Unicode string
106147         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
106148         this section. Add unitypes.
106150 2007-01-08  Bruno Haible  <bruno@clisp.org>
106152         Avoid variable names that conflict with those from libtool.
106153         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
106154         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
106155         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
106156         library_names_spec to acl_library_names_spec, hardcode_* to
106157         acl_hardcode_*.
106158         Reported by Ralf Wildenhues.
106160 2007-01-08  Bruno Haible  <bruno@clisp.org>
106162         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
106163         definition.
106164         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
106165         definition.
106166         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
106167         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
106168         definition.
106169         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
106170         definition.
106171         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
106172         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
106173         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
106174         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
106175         definition.
106176         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
106177         definition.
106178         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
106179         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
106180         GC_USE_<algorithm>.
106181         * lib/gc-libgcrypt.c: Likewise.
106182         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
106183         * modules/gc-arctwo (configure.ac): Likewise.
106184         * modules/gc-des (configure.ac): Likewise.
106185         * modules/gc-hmac-md5 (configure.ac): Likewise.
106186         * modules/gc-hmac-sha1 (configure.ac): Likewise.
106187         * modules/gc-md2 (configure.ac): Likewise.
106188         * modules/gc-md4 (configure.ac): Likewise.
106189         * modules/gc-md5 (configure.ac): Likewise.
106190         * modules/gc-random (configure.ac): Likewise.
106191         * modules/gc-rijndael (configure.ac): Likewise.
106192         * modules/gc-sha1 (configure.ac): Likewise.
106194 2007-01-08  Bruno Haible  <bruno@clisp.org>
106196         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
106197         macro definition.
106198         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
106199         definition.
106200         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
106201         definition.
106202         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
106203         * modules/fcntl-safer (configure.ac): Likewise.
106204         * modules/fopen-safer (configure.ac): Likewise.
106205         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
106206         GNULIB_FWRITEERROR macro definition.
106208 2007-01-08  Bruno Haible  <bruno@clisp.org>
106210         * m4/gnulib-common.m4: New file.
106211         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
106212         (func_get_filelist): Add m4/gnulib-common.m4.
106214 2007-01-08  Bruno Haible  <bruno@clisp.org>
106216         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
106217         command.
106219 2007-01-08  Jim Meyering  <jim@meyering.net>
106221         Use a more robust test for a "can't happen" condition.
106222         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
106223         narrowed the st_size value.  Presuming the "can't happen" condition
106224         is true, that narrowing could conceivably convert an invalid st_size
106225         value into a valid one.  Instead, use a change based on Matthew
106226         Woehlke's original patch.
106228         Slight readability improvement: use an assert-like macro
106229         in place of literal "abort ()" uses.
106230         * lib/fts.c (fts_assert): Define.
106231         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
106232         Use this macro instead of a bare 'abort'.
106234 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
106236         Don't worry about using IRIX 5.3's wctype.h broken definitions;
106237         simply work around them.
106238         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
106239         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
106240         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
106241         declaring.
106242         Don't bother to define as macros, since the standard doesn't require it.
106243         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
106244         longer worry about IRIX 5.3.
106245         (HAVE_WCTYPE_CTMP_BUG): Remove.
106247 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
106249         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
106250         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
106251         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
106252         Problems reported by Georg Schwarz for IRIX 5.3.
106254         * gnulib-tool (autoconf_minversion): Take the maximum version number
106255         found, not the minimum.  Problem reported by James Youngman.
106257 2007-01-03  Karl Berry  <karl@gnu.org>
106259         * doc/error.texi: new file, explaining interaction with progname.
106260         * doc/gnulib.texi: include it.  Update copyright.
106262 2007-01-03  Simon Josefsson  <simon@josefsson.org>
106264         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
106265         AC_CANONICAL_HOST, to improve autobuild outputs.
106267 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
106268             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
106270         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
106271         sockets, server sockets, and other file descriptors.  Count errors
106272         to compute the return value.  Reorder the code a bit to be easier
106273         to follow.  Don't set event bits that were not requested (except
106274         POLLERR and POLLHUP).
106276 2007-01-01  Bruno Haible  <bruno@clisp.org>
106278         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
106280 2007-01-03  Jim Meyering  <jim@meyering.net>
106282         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
106284 2007-01-02  Bruno Haible  <bruno@clisp.org>
106286         * modules/settime (Include): Require timespec.h.
106287         * modules/nanosleep (Include): Likewise.
106289 2007-01-01  Bruno Haible  <bruno@clisp.org>
106291         * gnulib-tool (func_emit_copyright_notice): Bump year.
106292         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
106294 2007-01-01  Bruno Haible  <bruno@clisp.org>
106296         Improve support for OpenBSD.
106297         * build-aux/config.rpath (libname_spec): Export.
106298         (library_names_spec): New variable. Export.
106299         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
106300         library_names_spec from the config.rpath output. Locate shared library
106301         through the name pattern in library_names_spec.
106303 2007-01-01  Eric Blake  <ebb9@byu.net>
106305         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
106307 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
106309         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
106310         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
106311         assume the C locale, and avoid an "eval" that could cause trouble.
106312         Problem with SORT reported by Bob Proulx.
106314         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
106315         Define.  Trivial patch from Henning Nielsen Lund, originally
106316         sent to bug-grep@gnu.org today.
106318 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
106320         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
106321         struct stat.  Problem reported by Henning Nielsen Lund.
106322         * lib/acl.c: Include acl.h first, to check interface.  Don't
106323         bother to include sys/types.h and sys/stat.h again.
106325 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
106327         Import the following change from libc; problem reported by
106328         Sven Verdoolaege.
106330         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
106332         [BZ #1373]
106333         * lib/argp.h: Remove __NTH for __argp_usage inline function.
106335 2006-12-28  Jim Meyering  <jim@meyering.net>
106337         * build-aux/announce-gen: Do not assume that the package
106338         builds any of tar.gz, tar.bz2, and .xdelta files.
106339         Suggestion from Simon Josefsson.
106341 2006-12-28  Simon Josefsson  <simon@josefsson.org>
106343         * modules/announce-gen: New file.
106345 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
106347         * lib/mbchar.h: Just include <wctype.h>; the wctype module
106348         handles its gotchas now.
106349         * lib/mbswidth.c: Likewise.
106350         * lib/wcwidth.h: Likewise.
106351         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
106352         and iswcntrl; the wctype module does this stuff now.
106353         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
106354         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
106355         * modules/mbchar (Depends-on): Add wctype.
106356         * modules/mbswidth (Depends-on): Likewise.
106357         * modules/wcwidth (Depends-on): Likewise.
106359 2006-12-27  Eric Blake  <ebb9@byu.net>
106361         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
106362         module uses more than what <wctype.h> is required to provide.
106364 2006-12-26  Eric Blake  <ebb9@byu.net>
106366         * gnulib-tool (sed_extract_prog): Avoid space-tab.
106368 2006-12-26  Eric Blake  <ebb9@byu.net>
106370         * modules/absolute-header: New module.
106371         * modules/fcntl (Depends-on): Depend on it.
106372         * modules/inttypes (Depends-on): Likewise.
106373         * modules/stdint (Depends-on): Likewise.
106374         * modules/sys_stat (Depends-on): Likewise.
106375         * modules/wctype (Depends-on): Likewise.
106376         * MODULES.html.sh (Support for building libraries and
106377         executables): Document it.
106379 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
106381         * gnulib-tool (SED): Remove, undoing previous change.
106382         The problem was that it broke coreutils on Solaris, because
106383         "sed --posix" leaked into a makefile.
106384         (sed): New alias, if 'alias' and GNU sed.
106386 2006-12-24  Jim Meyering  <jim@meyering.net>
106388         Work around an fchownat bug in glibc-2.4:
106389         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
106390         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
106391         in spite of the -P option.
106392         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
106393         New macros.
106394         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
106395         * modules/openat (Files): Add lib/fchownat.c.
106396         * lib/openat.c (fchownat): Don't define here.  Move to...
106397         * lib/fchownat.c: ...this new file.
106399 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
106401         Fix bug reported by Bruno Haible in
106402         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
106403         where quotearg.c didn't compile on Mac OS X 10.2 because it
106404         lacks <wchar.h> and wint_t.
106405         * lib/wctype_.h (__wctype_wint_t): New type.
106406         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
106407         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
106408         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
106409         Arg is now of type __wctype_wint_t, not wint_t.
106410         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
106411         substitute HAVE_WINT_T.
106412         * modules/wctype (Files): Add m4/wint_t.m4.
106413         (wctype.h): Substitute HAVE_WINT_T.
106415 2006-12-23  Bruno Haible  <bruno@clisp.org>
106417         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
106419 2006-12-23  Bruno Haible  <bruno@clisp.org>
106421         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
106422         S_ISLNK.
106423         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
106424         mingw.
106426 2006-12-22  Bruno Haible  <bruno@clisp.org>
106428         * lib/copy-file.c: Include acl.h.
106429         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
106430         Close the file descriptors only after being done with copy_acl.
106431         * modules/copy-file (Depends-on): Add acl.
106433 2006-12-22  Bruno Haible  <bruno@clisp.org>
106435         * gnulib-tool (SED): New variable.
106436         Use $SED instead of sed everywhere.
106438 2006-12-22  Bruno Haible  <bruno@clisp.org>
106440         * modules/no-c++: New file.
106441         * m4/no-c++.m4: New file.
106442         * MODULES.html.sh (Support for building libraries and executables):
106443         Add no-c++.
106445 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
106447         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
106448         Include <limits.h>, and use its INT_MAX to rewrite the
106449         j loop so that it does not overflow 'int'.  Problem reported by
106450         Ralf Wildenhues in
106451         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
106452         Play it safe by shifting left by 1 rather than multiplying by 2,
106453         as GCC is less likely to optimize this away when the value
106454         is signed (when it assumes overflow leads to undefined behavior).
106455         Also, don't assume time_t uses two's complement.
106457 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
106459         * MODULES.html.sh: New module wctype.
106460         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
106461         * lib/fnmatch.c: Don't bother to include <wchar.h> before
106462         <wctype.h>, since the new wctype module should fix this.
106463         * lib/quotearg.c: Include <wctype.h> unconditionally, since
106464         the wctype module should arrange for it.
106465         * lib/regex_internal.h: Likewise.
106466         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
106467         since the wctype module should handle this now.
106468         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
106469         * modules/fnmatch (Depends-on): Add wctype.
106470         * modules/quotearg (Depends-on): Likewise.
106471         * modules/regex (Depends-on): Likewise.
106473 2006-12-19  Bruno Haible  <bruno@clisp.org>
106475         * lib/strdup.h [C++]: Wrap definitions in extern "C".
106476         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
106478 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106480         * modules/savewd (Depends-on): Fix dependency on fcntl.
106482 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
106484         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
106485         conforms to C99, rather than relying on the user's environment
106486         setting of STDINT_H.
106488 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
106489         and Eric Blake  <ebb9@byu.net>
106491         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
106492         This is more consistent with the other defines here.
106493         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
106494         Port to z/OS.  Problem reported by Paul Gilmartin.
106495         Change local vars to use gl_ prefix rather than ac_.
106496         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
106497         with other defines.
106498         * modules/double-slash-root: New module.
106499         * modules/dirname (Files): Remove m4/double-slash-root.m4.
106500         (Depends-on): Add double-slash-root.
106501         * MODULES.html.sh (File system functions): Mention new module.
106503 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
106505         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
106506         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
106507         This is for the benefit of gzip, which doesn't do i18n.
106509 2006-12-12  Jim Meyering  <jim@meyering.net>
106511         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
106512         Reported by Andreas Schwab <schwab@suse.de>.
106514 2006-12-12  Bruno Haible  <bruno@clisp.org>
106516         Merge these changes.
106517         2006-09-05  Bruno Haible  <bruno@clisp.org>
106518         * lib/iconvme.c (iconv_string): No need to save and restore errno when
106519         iconv_alloc succeeded.
106520         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
106521         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
106522         test for " && dest " at the end - dest is always != NULL there. Call
106523         iconv with 4xNULL arguments initially, to reset the state. Call iconv
106524         with 2xNULL arguments, also to flush the state storage. Handle the
106525         IRIX iconv behaviour. Realloc the final result, to throw away unused
106526         memory.
106528 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
106530         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
106531         and fchmodat unconditionally, since glibc 2.4 has them.
106532         Problem reported by Arkadiusz Miskiewicz.
106534 2006-12-10  Bruno Haible  <bruno@clisp.org>
106536         * gnulib-tool (func_import): Show the include files only for those
106537         modules that are copied and specified.
106538         Reported by Karl Berry.
106540 2006-12-08  Jim Meyering  <jim@meyering.net>
106542         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
106543         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
106545         * build-aux/announce-gen: Add two new options, both optional:
106546         --bootstrap-tools=TOOL_LIST
106547               a comma-separated list of tools, e.g.,
106548               autoconf,automake,bison,gnulib
106549         --gnulib-snapshot-date=DATE
106550               if gnulib is in the bootstrap tool list,
106551               then report this as the snapshot date.
106552               If not specified, use the current date/time.
106553               If you specify a date here, be sure it's UTC.
106555 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106557         * tests/test-argp-2.sh: Fix test to match actual output.
106558         (func_compare): Fix sed script to be portable.
106560 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
106562         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
106563         workaround for this case.  It is not autoconfigured now; offhand
106564         it's hard to see how to autoconfigure it.
106566 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
106568         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
106569         a directory that is about to be chowned.  Such a directory's
106570         initial file permissions should permit the owner only and this
106571         should not be changed until after the chown, since the group and
106572         other bits would be incorrect if they granted permission before
106573         the chown.
106575         Fix porting problem for iswctype reported by Georg Schwarz in:
106576         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
106577         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
106578         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
106579         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
106580         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
106582 2006-12-03  Jim Meyering  <jim@meyering.net>
106584         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
106585         p->fts_statp may not yet be defined.
106586         (fts_read): Instead, set it in the caller, once p->fts_statp is
106587         sure to be defined, and corresponds to a top-level directory.
106588         This bug made du -x fail.  Here's the coreutils test case:
106589         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
106590         Reported by Mike Frysinger.
106592 2006-12-01  Jim Meyering  <jim@meyering.net>
106594         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
106595         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
106596         Reported by Simon Josefsson.
106598 2006-11-30  Jim Meyering  <jim@meyering.net>
106600         * m4/warning.m4: Use the all-permissive copyright notice
106601         recommended by RMS (rather than LGPL).
106602         * m4/vararrays.m4: Likewise.
106603         * m4/flexmember.m4: Likewise.
106605 2006-11-29  Bruno Haible  <bruno@clisp.org>
106607         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
106608         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
106609         using +=.
106610         Reported by Simon Josefsson <simon@josefsson.org>.
106612 2006-11-28  James Youngman  <jay@gnu.org>
106614         * README: Advise users that they might find the bug-gnulib@gnu.org
106615         and autotools-announce@gnu.org mailing lists useful.
106617 2006-11-28  Bruno Haible  <bruno@clisp.org>
106619         * m4/ptrdiff_max.m4: Remove file.
106621 2006-11-21  Bruno Haible  <bruno@clisp.org>
106623         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
106624         _AC_COMPUTE_INT.
106625         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106626         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
106627         _AC_COMPUTE_INT.
106628         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106629         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
106630         _AC_COMPUTE_INT.
106631         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106633 2006-11-28  Jim Meyering  <jim@meyering.net>
106635         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
106636         warning from "gcc -Wshadow" about shadowing the builtin.
106638 2006-11-27  Bruno Haible  <bruno@clisp.org>
106640         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
106641         _AC_COMPUTE_INT.
106642         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106644 2006-11-27  Bruno Haible  <bruno@clisp.org>
106645             Paul Eggert  <eggert@cs.ucla.edu>
106647         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
106649 2006-11-26  Bruno Haible  <bruno@clisp.org>
106651         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
106652         noinst_LTLIBRARIES.
106654 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
106655             Bruno Haible  <bruno@clisp.org>
106657         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
106658         if compiling with "gcc -ansi".
106660 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
106662         Fix some incompatibilities with gcc -ansi -pedantic.
106663         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
106664         if compiling pedantically with GCC, unless it's C99 or later.
106665         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
106666         it mishandles gcc -ansi -pedantic as well.
106667         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
106668         if gcc -pedantic.
106669         * lib/regexec.c (check_node_accept_bytes): Don't use auto
106670         initializers for struct if -pedantic, unless it's C99 or later.
106672 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
106674         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
106675         Don't close an fd more than once. Identical atimes indicate
106676         success, not failure.
106678 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
106680         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
106682 2006-11-23  Jim Meyering  <jim@meyering.net>
106684         * build-aux/announce-gen: New file.  From coreutils.
106686 2006-11-22  Jim Meyering  <jim@meyering.net>
106688         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
106689         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
106690         (fts_read): Use a temporary to narrow the overused st_size member
106691         before using it in a switch statement.  Reported by Matthew Woehlke.
106693         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
106694         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
106696 2006-11-20  Bruno Haible  <bruno@clisp.org>
106698         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
106699         changequote instead of pairs of brackets.
106700         Reported by Andreas Schwab <schwab@suse.de>.
106702 2006-11-21  Jim Meyering  <jim@meyering.net>
106704         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
106705         so as to remain compatible with older compilers.
106706         Patch from Michael Deutschmann.
106708 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
106710         * MODULES.html.sh (File system functions): Add openat.
106712         * lib/openat.h (rpl_fstatat): New macro, if
106713         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
106714         (fstatat): Define to rpl_fstatat under the same conditions,
106715         unless COMPILING_FSTATAT.
106716         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
106717         seems to have the bug.
106718         * lib/fstatat.c: New file.
106719         * modules/openat (Files): Add it.
106721 2006-11-20  Bruno Haible  <bruno@clisp.org>
106723         * Makefile: New file.
106725 2006-11-20  Jim Meyering  <jim@meyering.net>
106727         The beginnings of syntax-related checks for gnulib.
106728         * lib/Makefile: New file.
106729         * lib/t-idcache: New script.  Ensure that the two halves of
106730         idcache.c stay in sync.
106732         * lib/idcache.c: Adjust comments in user- and group- portions to
106733         be more accurate, and to be consistent with one another.
106735 2006-11-20  Jim Meyering  <jim@meyering.net>
106737         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
106738         continue using the flexible array member (thus, this module performs
106739         half as many malloc calls), with the addition that...
106740         (getgroup, getuser): Consistently record a non-match via an empty
106741         "name" string, and map an empty string match to a NULL return value.
106742         * modules/idcache (Depends-on): Re-add flexmember.
106744         * lib/idcache.c (getuser): Remove all uses of the register keyword.
106745         (getuidbyname, getgroup, getgidbyname): Likewise.
106747         Use cleaner syntax: NULL rather than 0.
106748         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
106750 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
106752         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
106753         It mishandled the case where the group was missing.
106754         Problem reported by Greg Schafer.
106755         * modules/idcache: Likewise.
106757 2006-11-18  Jim Meyering  <jim@meyering.net>
106759         * check-module (%exempt_header): Add exception for some
106760         conditionally-included headers.
106762         * modules/i-ring (Depends-on): Add verify.
106763         (License): Change to LGPL.
106765 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
106767         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
106768         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
106769         and inttostr.h.  Use snprintf rather than uinttostr, so that
106770         LGPLed code doesn't depend on GPLed.
106772 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
106774         * modules/inline (License): Change from GPL to LGPL.
106776 2006-11-17  Jim Meyering  <jim@meyering.net>
106778         * modules/d-type (License): Switch to LGPL.
106780 2006-11-15  Bruno Haible  <bruno@clisp.org>
106782         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
106784 2006-11-15  Eric Blake  <ebb9@byu.net>
106786         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
106787         the module dependency.
106789 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106790             Bruno Haible  <bruno@clisp.org>
106792         * gnulib-tool (func_create_testdir): Add license consistency check.
106794 2006-11-15  Eric Blake  <ebb9@byu.net>
106796         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
106797         random "(cached)" in configure output.
106799 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106801         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
106802         test for conforming inttypes.h is both announced and cached.
106804         * MODULES.html.sh (seen_modules, seen_files): New variables.
106805         (func_module): Rewrite to use a few less gnulib-tool and sed
106806         invocations.  Avoid a couple of quadratic algorithms for ...
106807         (missed_modules, missed_files): ... these, with ...
106808         (func_append, func_tmpdir): ... these new functions, from
106809         gnulib-tool.  Analogously, install traps for cleanup.
106811         * tests/test-gc.c (main): Remove unused variables.
106812         * tests/test-read-file.c: Include stdlib.h, for 'free'.
106814 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
106816         * modules/inttostr (License): Change to LGPL.
106818 2006-11-14  Eric Blake  <ebb9@byu.net>
106820         * modules/tempname (License): Change to LGPL.
106822 2006-11-14  Eric Blake  <ebb9@byu.net>
106824         * doc/functions.texi (Function Portability): *printf functions on
106825         Cygwin now understand all POSIX size specifiers.
106827 2006-11-14  Bruno Haible  <bruno@clisp.org>
106829         * modules/c-ctype (License): Change to LGPL.
106831 2006-11-12  Bruno Haible  <bruno@clisp.org>
106833         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
106834         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
106835         for GNOME libraries, for which the include files are installed in
106836         subdirectories of $prefix/include.
106838 2006-11-12  Bruno Haible  <bruno@clisp.org>
106840         * m4/lib-link.m4: Require at least autoconf-2.54.
106841         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
106842         name to underscores for the --with option.
106844 2006-11-13  Bruno Haible  <bruno@clisp.org>
106846         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
106847         the tests directory.
106848         Reported by Ralf Wildenhues.
106850 2006-11-13  Bruno Haible  <bruno@clisp.org>
106852         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
106853         (func_emit_initmacro_end): Undo the override here.
106854         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
106855         Works around the famous automake error in coreutils.
106857 2006-11-13  Eric Blake  <ebb9@byu.net>
106859         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
106860         element, not its node.
106862 2006-11-12  Bruno Haible  <bruno@clisp.org>
106864         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
106865         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
106867 2006-11-12  Bruno Haible  <bruno@clisp.org>
106869         * gnulib-tool: New option --local-symlink.
106870         (func_usage): Document it.
106871         (lsymbolic): New variable.
106872         (func_import, func_create_testdir): If --symlink was not specified,
106873         test whether --local-symlink was specified and the file comes from
106874         the local_gnulib_dir.
106876 2006-11-12  Bruno Haible  <bruno@clisp.org>
106878         * gnulib-tool (func_ln): New function.
106879         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
106881 2006-11-12  Bruno Haible  <bruno@clisp.org>
106883         Finish support for source files in subdirectories.
106884         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
106885         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
106886         AUTOMAKE_OPTIONS.
106887         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
106889 2006-11-12  Bruno Haible  <bruno@clisp.org>
106891         * gnulib-tool (func_get_automake_snippet): Synthesize also an
106892         EXTRA_lib_SOURCES augmentation.
106893         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
106895 2006-11-12  Jim Meyering  <jim@meyering.net>
106897         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
106898         file descriptors.  This also averts a failure on systems with
106899         native openat support when a traversed directory lacks "x" access.
106900         * lib/fts_.h: Include "i-ring.h"
106901         (struct FTS) [fts_fd_ring]: New member.
106902         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
106903         (FCHDIR): Add parentheses.
106904         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
106905         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
106906         When descending, rather than simply closing the previous
106907         fts_cwd_fd value, push that file descriptor onto the ring.
106908         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
106909         (fts_open): Initialize the new fd_ring member.
106910         (fts_close): Clear the ring.
106911         (fts_safe_changedir): When possible, use our new fd_ring to skip
106912         the diropen and fstat and dev/ino comparison that would normally
106913         accompany a virtual `chdir ("..")'.
106915         * modules/fts (Depends-on): Add i-ring.
106916         * modules/i-ring: New module.
106917         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
106918         * m4/i-ring.m4: New file.
106920 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106922         * gnulib-tool (func_create_testdir): Fix replacement of
106923         `build-aux' in configure.ac.  Run autotools in gltests
106924         subdirectory.
106925         (func_create_testdir, func_create_megatestdir, test): There is
106926         no need for '--force' in most autotool invocations in a new
106927         tree.  Actually fail the whole test if any of the tools, or the
106928         configure or make stages fail.
106930         Sync from Automake.
106931         * build-aux/gnupload: Revert last change.  Add pointer to upload
106932         instructions of the GNU Maintenance Instructions.
106933         Suggestion by Karl Berry.
106935 2006-11-10  Jim Meyering  <jim@meyering.net>
106937         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
106939 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
106941         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
106942         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
106943         (bind_textdomain_codeset) [! ENABLE_NLS]:
106944         Evaluate all the arguments.  That way, callers get compatible behavior
106945         if the arguments have side effects.  Also, it avoids some GCC
106946         diagnostics in some cases; Joel E. Denny reported problems when Bison
106947         was configured with --enable-gcc-warnigs.
106949 2006-11-10  Jim Meyering  <jim@meyering.net>
106951         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
106952         relevant options in CFLAGS (like -O, -fno-inline) are taken into
106953         account.
106955 2006-11-10  Jim Meyering  <jim@meyering.net>
106957         * modules/inline: New file/module.
106958         * modules/xalloc (Files): Remove m4/inline.m4.
106959         (Depends-on): Add inline, instead.
106960         * modules/oset: Likewise.
106961         * modules/list: Likewise.
106963 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
106965         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
106966         Problem reported by Matthew Woehlke.
106968 2006-11-09  Bruno Haible  <bruno@clisp.org>
106970         * lib/tempname.c (gen_tempname): Remove variant that invokes
106971         __gen_tempname.
106972         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
106973         __gen_tempname.
106975 2006-11-08  Bruno Haible  <bruno@clisp.org>
106977         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
106978         to 'yes' instead of 'cross-compiling'.
106980 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
106982         * lib/quotearg.h (quotearg_free): New decl.
106983         * lib/quotearg.c (quotearg_free): New function.
106984         (slot0, nslots, slotvec0, slotvec):
106985         Now file-scope so that quotearg_free can get at them.
106987 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106989         Sync from Automake.
106990         * build-aux/gnupload: Add missing 'gnu' to example URL.
106991         Report by Karl Berry.
106993 2006-11-08  Bruno Haible  <bruno@clisp.org>
106995         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
106996         Suggested by Paul Eggert.
106998 2006-11-08  Jim Meyering  <jim@meyering.net>
107000         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
107001         It's already included if !_LIBC.
107002         (fts_safe_changedir): Add a comment.
107004 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
107006         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
107007         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
107008         Matthew Woehlke.
107010         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
107011         definitions up, to avoid colliding with change below.
107012         (static_inline) [HAVE_INLINE]: New macro.
107013         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
107014         Provide extern decls when !HAVE_INLINE.  Do not define unless
107015         static_inline is defined, either by us or by xmalloc.c.  Use
107016         static_inline rather than static inline.
107017         (XCALLOC): Optimize sizeof(T) = 1 case.
107018         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
107020 2006-11-07  Bruno Haible  <bruno@clisp.org>
107022         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
107023         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
107024         AC_C_INLINE.
107025         * modules/xalloc (Files): Add m4/inline.m4.
107027 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107029         * README: Fix typo.
107030         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
107031         (Miscellanous Notes): ...from this.
107033 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
107035         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
107036         Mention that offsetof should be used instead of sizeof.
107037         From Bruno Haible.
107039 2006-11-07  Bruno Haible  <bruno@clisp.org>
107041         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
107043 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
107045         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
107046         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
107047         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
107048         (gl_tree_add_before, gl_tree_add_after):
107049         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
107050         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
107051         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
107052         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
107053         (gl_linked_add_after, gl_linked_add_at): Likewise.
107054         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
107055         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
107056         (gl_tree_add_before, gl_tree_add_after): Likewise.
107057         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
107058         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
107059         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
107061 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107063         * lib/gl_oset.h: Use C comment style, not C++ comment style.
107065 2006-11-06  Bruno Haible  <bruno@clisp.org>
107067         * m4/inline.m4: New file.
107068         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
107069         * modules/list (Files): Add m4/inline.m4.
107070         * modules/oset (Files): Likewise.
107072 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
107074         * lib/idcache.c: Include <stddef.h>, for offsetof.
107075         (struct userid.name): Change from char * to a flexible array member.
107076         All uses changed.
107077         * modules/idcache (Depends-on): Add flexmember.
107079         * MODULES.html.sh (Core language properties): New module flexmember.
107080         * modules/flexmember, m4/flexmember.m4: New files.
107082         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
107083         inline functions that are identical with the old xnmalloc_inline,
107084         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
107085         that we can avoid some unnecessary integer multiplications and
107086         divisions in the common case where the element size is known at
107087         compile time.
107088         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
107089         needed.
107090         (xnboundedmalloc): Remove.
107091         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
107092         arguments, for consistency with rest of this header.
107093         (xcharalloc): Rewrite using XNMALLOC.
107094         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
107095         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
107096         versions have been moved to lib/xalloc.h and renamed to be the
107097         non-*_inline versions.
107098         (xmalloc, xrealloc): Implement without reference to the xnmalloc
107099         and xnrealloc functions, since those functions are now inline and
107100         now call us.
107101         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
107102         renaming described above.
107103         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
107104         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
107105         captures the dependency in AC_C_INLINE.
107107         New module canonicalize-lgpl, proposed by Charles Wilson in
107108         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
107109         with a few small changes afterwards.
107110         * MODULES.html.sh (File system functions): New module
107111         canonicalize-lgpl.
107112         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
107113         and canonicalize_file_name.
107114         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
107115         * modules/canonicalize-lgpl: New files.
107117 2006-11-05  Bruno Haible  <bruno@clisp.org>
107119         * gnulib-tool (func_import, func_create_testdir): Create directories
107120         also for files in subdirectories of lib/.
107122 2006-11-05  Bruno Haible  <bruno@clisp.org>
107124         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
107125         ANSI C compliant.
107127 2006-11-03  Bruno Haible  <bruno@clisp.org>
107129         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
107130         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
107131         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
107132         (xnboundedmalloc): New inline function.
107133         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
107134         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
107135         xmalloc.
107136         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
107137         xmalloc.
107138         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
107139         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
107140         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
107141         xmalloc.
107142         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
107143         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
107144         xmalloc.
107145         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
107146         gl_tree_add_after): Use XMALLOC instead of xmalloc.
107147         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
107148         xmalloc.
107149         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
107150         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
107151         gl_tree_add_after): Use XMALLOC instead of xmalloc.
107152         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
107153         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
107154         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
107155         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
107157 2006-11-03  Bruno Haible  <bruno@clisp.org>
107159         * lib/c-ctype.h [C++]: Define functions without name mangling.
107160         * lib/fwriteerror.h [C++]: Likewise.
107161         * lib/gcd.h [C++]: Likewise.
107162         * lib/linebreak.h [C++]: Likewise.
107164 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
107166         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
107167         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
107168         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
107169         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
107170         Check for functions and headers just once.
107171         Check for declaration of canonicalize_file_name.
107172         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
107174 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107176         * gnulib-tool (func_import): Fix typo in actioncmd.
107178 2006-11-02  Bruno Haible  <bruno@clisp.org>
107180         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
107181         newline sequence in the Makefile.am snippet as a space, like "make"
107182         does.
107183         Reported by Roger Persson <perrog@gmail.com>.
107185 2006-11-01  Bruno Haible  <bruno@clisp.org>
107187         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
107188         already declared in <string.h>.
107189         * lib/strcase.h (strncasecmp): Don't declare it if yes.
107191 2006-11-01  Bruno Haible  <bruno@clisp.org>
107193         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
107194         * lib/strcase.h: Include <string.h>.
107195         (strcasecmp): Define to rpl_strcasecmp here.
107197 2006-11-01  Bruno Haible  <bruno@clisp.org>
107199         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
107201 2006-11-01  Eric Blake  <ebb9@byu.net>
107203         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
107205         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
107207 2006-10-29  Bruno Haible  <bruno@clisp.org>
107209         Make it compile in C++ mode.
107210         * lib/full-write.c (full_rw): Add a cast.
107212 2006-11-01  Bruno Haible  <bruno@clisp.org>
107214         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
107215         be POSIX compliant.
107216         Reported by Roger Persson <perrog@gmail.com>.
107218 2006-11-01  Eric Blake  <ebb9@byu.net>
107220         * lib/getopt_.h: Fix comments.
107222 2006-10-31  Eric Blake  <ebb9@byu.net>
107224         * modules/tmpdir (Depends-on): Add sys_stat.
107225         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
107226         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
107227         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
107228         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
107229         tempname.
107231 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
107233         Avoid some C++ diagnostics reported by Bruno Haible.
107234         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
107235         xmalloc.
107236         (quotearg_alloc): Use xcharalloc rather than xmalloc.
107237         (struct slotvec): Move to top level.
107238         (quotearg_n_options): Rewrite to avoid xmalloc.
107239         * lib/xalloc.h (xcharalloc): New function.
107240         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
107241         [defined __cplusplus]: Add function template that provides result
107242         type propagation.  This part of the change is from Bruno Haible.
107244 2006-10-29  Bruno Haible  <bruno@clisp.org>
107246         Make it compile in C++ mode.
107247         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
107248         * lib/strnlen1.c (strnlen1): Cast memchr result.
107249         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
107250         * lib/clean-temp.c (string_equals, string_hash): Add casts.
107251         (create_temp_dir): Rename local variable 'template'.
107252         (compile_csharp_using_sscli): Add cast.
107253         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
107254         * lib/findprog.c (find_in_path): Likewise.
107255         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
107256         * lib/wait-process.c (register_slave_subprocess): Likewise.
107258 2006-10-22  Bruno Haible  <bruno@clisp.org>
107260         * modules/tsearch: New file.
107261         * lib/tsearch.h: New file.
107262         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
107263         * m4/tsearch.m4: New file.
107264         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
107266 2006-10-29  Eric Blake  <ebb9@byu.net>
107268         * lib/arcfour.c: Assume config.h.
107269         * lib/arctwo.c: Likewise.
107270         * lib/base64.c: Likewise.
107271         * lib/check-version.c: Likewise.
107272         * lib/crc.c: Likewise.
107273         * lib/des.c: Likewise.
107274         * lib/gc-gnulib.c: Likewise.
107275         * lib/gc-libgcrypt.c: Likewise.
107276         * lib/gc-pbkdf2-sha1.c: Likewise.
107277         * lib/getaddrinfo.c: Likewise.
107278         * lib/getdelim.c: Likewise.
107279         * lib/getline.c: Likewise.
107280         * lib/hmac-md5.c: Likewise.
107281         * lib/hmac-sha1.c: Likewise.
107282         * lib/iconvme.c: Likewise.
107283         * lib/md2.c: Likewise.
107284         * lib/md4.c: Likewise.
107285         * lib/memxor.c: Likewise.
107286         * lib/read-file.c: Likewise.
107287         * lib/readline.c: Likewise.
107288         * lib/rijndael-alg-fst.c: Likewise.
107289         * lib/rijndael-api-fst.c: Likewise.
107290         * lib/xgetdomainname.c: Likewise.
107292 2006-10-28  Eric Blake  <ebb9@byu.net>
107294         * lib/xstrndup.c: Assume config.h.
107296 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
107298         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
107299         stat-macros.h is now for our own macros, whereas stat_h is for
107300         macros in the <sys/stat.h> name space.
107301         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
107302         (STAT_MACROS_H): Remove.
107303         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
107304         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
107305         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
107306         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
107307         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
107308         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
107309         Move these macros to ...
107310         * lib/stat_.h: here.  Don't include stat-macros.h.
107311         * lib/canonicalize.c: Don't include stat-macros.h.
107312         * lib/chown.c: Likewise.
107313         * lib/euidaccess.c: Likewise.
107314         * lib/file-type.c: Likewise.
107315         * lib/filemode.c: Likewise.
107316         * lib/glob.c: Likewise.
107317         * lib/isapipe.c: Likewise.
107318         * lib/lchown.c: Likewise.
107319         * lib/lstat.c: Likewise.
107320         * lib/mkdir-p.c: Likewise.
107321         * lib/rmdir.c: Likewise.
107322         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
107323         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
107324         unless mkdir isn't declared, to speed up 'configure'.
107325         Always create sys/stat.h, since it's unlikely any real sys/stat.h
107326         would define all the S_* symbols.
107327         * modules/canonicalize (Depends-on):
107328         Depend on sys_stat, not stat-macros.
107329         * modules/chown: Likewise.
107330         * modules/euidaccess: Likewise.
107331         * modules/filemode: Likewise.
107332         * modules/file-type: Likewise.
107333         * modules/glob: Likewise.
107334         * modules/isapipe: Likewise.
107335         * modules/lchown: Likewise.
107336         * modules/lstat: Likewise.
107337         * modules/mkancesdirs: Likewise.
107338         * modules/rmdir: Likewise.
107339         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
107340         * modules/modechange: Likewise.
107341         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
107342         (configure.ac): Remove gl_STAT_MACROS.
107343         * modules/sys_stat (Depends-on): Remove stat-macros.
107345 2006-10-27  Bruno Haible  <bruno@clisp.org>
107347         * m4/signed.m4: Remove file.
107348         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
107349         invocation.
107350         * modules/vasnprintf (Files): Remove m4/signed.m4.
107352 2006-10-27  Bruno Haible  <bruno@clisp.org>
107354         Update to GNU gettext 0.16.
107355         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
107356         m4/inttypes-h.m4, m4/signed.m4.
107357         * m4/gettext.m4: Update to GNU gettext 0.16.
107358         * m4/intl.m4: New file, from GNU gettext.
107359         * m4/intldir.m4: New file, from GNU gettext.
107360         * config/srclist.txt: Update
107362 2006-10-27  Eric Blake  <ebb9@byu.net>
107364         * MODULES.html.sh: Document tempname.
107365         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
107366         dependencies.
107367         (Files): Move lib/tempname.c...
107368         * modules/tempname: ...to this new module.
107369         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
107370         (gl_PREREQ_TEMPNAME): Move...
107371         * m4/tempname.m4: ...to this new file.
107372         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
107373         * modules/sys_stat (Depends-on): Add stat-macros.
107374         * lib/stat_.h (includes): Pick up stat macros.
107375         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
107376         if stat macros are broken.
107377         * lib/tempname.c (includes): No need to include "stat-macros.h".
107378         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
107379         (direxists, __path_search) [!_LIBC]: Don't compile these in
107380         gnulib; the tmpdir module covers that.
107381         * lib/tempname.h: New file.
107383 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
107385         * COPYING: Explain how gnulib-tool converts licence headers.
107386         Almost all wording by Eric Blake.
107388 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
107390         * lib/mbchar.h (is_basic_table): Make read-only.
107391         * lib/mbchar.c (is_basic_table): Likewise.
107392         Reported by John Darrington.
107394 2006-10-25  Bruno Haible  <bruno@clisp.org>
107396         * lib/progname.h (set_program_name): Undefine before defining.
107398 2006-10-25  Bruno Haible  <bruno@clisp.org>
107400         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
107401         false for non-gcc C++ compilers.
107402         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
107404 2006-10-24  Bruno Haible  <bruno@clisp.org>
107406         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
107407         iconv implementations like Irix iconv.
107409 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107411         * modules/vararrays: New file.
107412         * m4/vararrays.m4: New file, taken from diffutils.
107413         * MODULES.html.sh: New module vararrays.
107415 2006-10-24  Karl Berry  <karl@gnu.org>
107417         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
107418         Don't call GNU Unix.
107420 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107422         * users.txt: Add Libtool.
107424         Sync from Libtool:
107426         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107428         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
107429         to gnulib's policy of including config.h unconditionally.
107431 2006-10-24  Bruno Haible  <bruno@clisp.org>
107433         * modules/wcwidth (Files): Add m4/wint_t.m4.
107434         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
107435         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
107437 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107439         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
107440         to pacify GCC with some -W flags enabled.  Problem reported by
107441         Bruno Haible.
107443 2006-10-24  Jim Meyering  <jim@meyering.net>
107445         * MODULES.html.sh: Remove uinttostr.  It's not a module.
107446         Reported by Karl Berry.
107448 2006-10-23  Bruno Haible  <bruno@clisp.org>
107450         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
107452 2006-10-24  Bruno Haible  <bruno@clisp.org>
107454         * lib/gl_list.h: Use C comment style, not C++ comment style.
107456 2006-10-23  Eric Blake  <ebb9@byu.net>
107458         * lib/getaddrinfo.c (includes): Add missing include.
107460 2006-10-23  Bruno Haible  <bruno@clisp.org>
107461             Paul Eggert  <eggert@cs.ucla.edu>
107463         Ability to rename obstack_free.
107464         * lib/obstack.h (__obstack_free): New macro. Declare instead of
107465         obstack_free.
107466         (obstack_free): Invoke the __obstack_free macro.
107467         * lib/obstack.c (obstack_free): Use __obstack_free macro.
107469 2006-10-23  Bruno Haible  <bruno@clisp.org>
107470             Paul Eggert  <eggert@cs.ucla.edu>
107472         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
107473         __argc, __argv from the declaration. (They are defined as macros on
107474         mingw.)
107476 2006-10-22  Bruno Haible  <bruno@clisp.org>
107478         * doc/gnulib-intro.texi: New file.
107479         * doc/gnulib.texi: Include it.
107481 2006-10-21  Bruno Haible  <bruno@clisp.org>
107483         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
107484         "Introduction", "Miscellanous Notes", "Particular Modules".
107486 2006-10-21  Bruno Haible  <bruno@clisp.org>
107488         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
107489         Change mostlyclean-local rule to avoid sh syntax error from bash
107490         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
107492 2006-10-23  Jim Meyering  <jim@meyering.net>
107494         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
107495         in place of snprintf.
107497         * modules/inttostr (Files): Add lib/uinttostr.c.
107498         * lib/uinttostr.c (inttostr): New file/function.
107499         * lib/inttostr.h (uinttostr): Declare.
107500         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
107501         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
107502         Add uinttostr.
107503         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
107505 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
107507         * lib/canonicalize.c (ELOOP): Define if not already defined.
107508         Problem reported by Bruno Haible in
107509         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
107511 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
107513         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
107514         Problem reported by Perry Smith and Ville Laurikari.
107516         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
107517         uses.
107519 2006-10-19  Bruno Haible  <bruno@clisp.org>
107521         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
107522         for mingw.
107524 2006-10-19  Bruno Haible  <bruno@clisp.org>
107526         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
107527         Needed for mingw.
107529 2006-10-19  Bruno Haible  <bruno@clisp.org>
107531         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
107533 2006-10-19  Bruno Haible  <bruno@clisp.org>
107535         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
107536         it.
107538 2006-10-19  Bruno Haible  <bruno@clisp.org>
107540         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
107541         invocation.
107543 2006-10-19  Bruno Haible  <bruno@clisp.org>
107545         * gnulib-tool (func_create_testdir): Don't include ftruncate and
107546         mountlist by default.
107548 2006-10-16  Bruno Haible  <bruno@clisp.org>
107550         * lib/c-strstr.c: Include c-strstr.h.
107552 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107554         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
107555         in a slash.
107557 2006-10-18  Bruno Haible  <bruno@clisp.org>
107559         * lib/lock.h [C++]: Wrap definitions in extern "C".
107561 2006-10-18  Bruno Haible  <bruno@clisp.org>
107563         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
107564         gl_LIBOBJS list.
107566 2006-10-18  Bruno Haible  <bruno@clisp.org>
107568         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
107570 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
107572         * lib/xstrtol.h: Include gettext.h.
107573         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
107574         Problem reported by Eric Blake.
107575         * modules/xstrtol (Depends-on): Add gettext-h.
107577 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
107579         * lib/strftime.c (advance): New macro.
107580         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
107581         incomplete type, so you can't add 0 to it.  Problem and patch
107582         reported by Eelco Dolstra for dietlibc.
107584 2006-10-18  Jim Meyering  <jim@meyering.net>
107586         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
107587         type for a local, and rename it: s/up/user_proc/.
107589 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
107591         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
107592         READ_UTMP_USER_PROCESS.
107593         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
107595 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
107597         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
107598         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
107600 2006-10-17  Eric Blake  <ebb9@byu.net>
107602         * lib/sigprocmask.c (sigprocmask): Fix typo.
107604         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
107606         * modules/clean-temp (Makefile.am): Don't add to make output...
107607         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
107608         config.h.
107610 2006-10-17  Bruno Haible  <bruno@clisp.org>
107612         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
107613         differently if DEFAULT_TEXT_DOMAIN is set.
107615 2006-10-16  Bruno Haible  <bruno@clisp.org>
107617         * lib/clean-temp.c: Include fwriteerror.h.
107619 2006-10-16  Bruno Haible  <bruno@clisp.org>
107621         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
107623 2006-10-16  Bruno Haible  <bruno@clisp.org>
107625         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
107626         * lib/sigprocmask.h: Include <sys/types.h>.
107627         (sigset_t): Use the system's definition if present.
107629 2006-10-17  Eric Blake  <ebb9@byu.net>
107631         * lib/xvasprintf.c (includes): Assume config.h.
107632         * lib/xasprintf.c (includes): Likewise.
107634 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
107636         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
107637         at least as wide as intmax_t.
107639 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
107641         (Imported from Automake.)
107642         * build-aux/gnupload: Update to version 1.1 of directive file.
107644 2006-10-16  Eric Blake  <ebb9@byu.net>
107646         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
107647         match Automake 1.10a.
107649 2006-10-14  Bruno Haible  <bruno@clisp.org>
107651         * modules/sigprocmask: New file.
107652         * lib/sigprocmask.h: New file.
107653         * lib/sigprocmask.c: New file.
107654         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
107655         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
107656         request sigprocmask.o.
107657         (gl_PREREQ_SIGPROCMASK): New macro.
107658         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
107659         (Depends-on): Add sigprocmask.
107660         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
107661         gt_SIGNALBLOCKING. Test for 'raise' only once.
107662         * lib/fatal-signal.c: Include sigprocmask.h.
107663         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
107664         unblock_fatal_signals): Define always.
107665         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107666         sigprocmask.
107668 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
107670         Sync from Automake.
107671         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
107672         which incorrectly sets the mode of an existing destination
107673         directory.  In some cases the unpatched install-sh could do the
107674         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
107675         system.  We hope this is rare in practice, but it's clearly worth
107676         fixing.  Problem reported by Alex Unleashed in
107677         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
107678         Also, don't bother to check for -m bugs unless we're using -m;
107679         suggested by Stepan Kasal.
107681 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107683         Sync from Automake.
107684         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
107685         `-c' flag, so they appear at the same position as in %FASTDEP%
107686         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
107687         which ignores unknown options only after the first non-option.
107688         Bug report against M4 by Nelson H. F. Beebe.
107690 2006-10-13  Jim Meyering  <jim@meyering.net>
107692         Fix a bug in yesterday's change.
107693         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
107694         p->fts_statp->st_dev would be used uninitialized.
107695         Ensures that we always call fts_stat on the very first entry.
107696         Miklos Szeredi reported that find -xdev stopped working.
107698 2006-10-12  Bruno Haible  <bruno@clisp.org>
107700         * gnulib-tool (func_get_automake_snippet): Append an automatically
107701         computed EXTRA_DIST augmentation.
107702         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
107703         * modules/alloca-opt (Makefile.am): Likewise.
107704         * modules/allocsa (Makefile.am): Likewise.
107705         * modules/arcfour (Makefile.am): Likewise.
107706         * modules/arctwo (Makefile.am): Likewise.
107707         * modules/argmatch (Makefile.am): Likewise.
107708         * modules/argz (Makefile.am): Likewise.
107709         * modules/atexit (Makefile.am): Likewise.
107710         * modules/backupfile (Makefile.am): Likewise.
107711         * modules/byteswap (Makefile.am): Likewise.
107712         * modules/c-strtod (Makefile.am): Likewise.
107713         * modules/c-strtold (Makefile.am): Likewise.
107714         * modules/calloc (Makefile.am): Likewise.
107715         * modules/canon-host (Makefile.am): Likewise.
107716         * modules/canonicalize (Makefile.am): Likewise.
107717         * modules/chdir-long (Makefile.am): Likewise.
107718         * modules/chdir-safer (Makefile.am): Likewise.
107719         * modules/check-version (Makefile.am): Likewise.
107720         * modules/chown (Makefile.am): Likewise.
107721         * modules/cloexec (Makefile.am): Likewise.
107722         * modules/close-stream (Makefile.am): Likewise.
107723         * modules/closeout (Makefile.am): Likewise.
107724         * modules/crc (Makefile.am): Likewise.
107725         * modules/csharpexec (Makefile.am): Likewise.
107726         * modules/cycle-check (Makefile.am): Likewise.
107727         * modules/des (Makefile.am): Likewise.
107728         * modules/dev-ino (Makefile.am): Likewise.
107729         * modules/dirfd (Makefile.am): Likewise.
107730         * modules/dirname (Makefile.am): Likewise.
107731         * modules/dup2 (Makefile.am): Likewise.
107732         * modules/eealloc (Makefile.am): Likewise.
107733         * modules/error (Makefile.am): Likewise.
107734         * modules/euidaccess (Makefile.am): Likewise.
107735         * modules/exclude (Makefile.am): Likewise.
107736         * modules/exitfail (Makefile.am): Likewise.
107737         * modules/fcntl-safer (Makefile.am): Likewise.
107738         * modules/fcntl (Makefile.am): Likewise.
107739         * modules/file-type (Makefile.am): Likewise.
107740         * modules/fileblocks (Makefile.am): Likewise.
107741         * modules/filemode (Makefile.am): Likewise.
107742         * modules/filenamecat (Makefile.am): Likewise.
107743         * modules/fnmatch (Makefile.am): Likewise.
107744         * modules/fopen-safer (Makefile.am): Likewise.
107745         * modules/fpending (Makefile.am): Likewise.
107746         * modules/fprintftime (Makefile.am): Likewise.
107747         * modules/free (Makefile.am): Likewise.
107748         * modules/fsusage (Makefile.am): Likewise.
107749         * modules/ftruncate (Makefile.am): Likewise.
107750         * modules/fts (Makefile.am): Likewise.
107751         * modules/gc-arcfour (Makefile.am): Likewise.
107752         * modules/gc-des (Makefile.am): Likewise.
107753         * modules/gc-hmac-md5 (Makefile.am): Likewise.
107754         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
107755         * modules/gc-md4 (Makefile.am): Likewise.
107756         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
107757         * modules/gc-sha1 (Makefile.am): Likewise.
107758         * modules/gc (Makefile.am): Likewise.
107759         * modules/getaddrinfo (Makefile.am): Likewise.
107760         * modules/getcwd (Makefile.am): Likewise.
107761         * modules/getdelim (Makefile.am): Likewise.
107762         * modules/getdomainname (Makefile.am): Likewise.
107763         * modules/getgroups (Makefile.am): Likewise.
107764         * modules/gethostname (Makefile.am): Likewise.
107765         * modules/gethrxtime (Makefile.am): Likewise.
107766         * modules/getline (Makefile.am): Likewise.
107767         * modules/getloadavg (Makefile.am): Likewise.
107768         * modules/getlogin_r (Makefile.am): Likewise.
107769         * modules/getndelim2 (Makefile.am): Likewise.
107770         * modules/getopt (Makefile.am): Likewise.
107771         * modules/getpagesize (Makefile.am): Likewise.
107772         * modules/getpass-gnu (Makefile.am): Likewise.
107773         * modules/getpass (Makefile.am): Likewise.
107774         * modules/getsubopt (Makefile.am): Likewise.
107775         * modules/gettime (Makefile.am): Likewise.
107776         * modules/gettimeofday (Makefile.am): Likewise.
107777         * modules/getugroups (Makefile.am): Likewise.
107778         * modules/getusershell (Makefile.am): Likewise.
107779         * modules/glob (Makefile.am): Likewise.
107780         * modules/group-member (Makefile.am): Likewise.
107781         * modules/hard-locale (Makefile.am): Likewise.
107782         * modules/hash (Makefile.am): Likewise.
107783         * modules/hmac-md5 (Makefile.am): Likewise.
107784         * modules/hmac-sha1 (Makefile.am): Likewise.
107785         * modules/human (Makefile.am): Likewise.
107786         * modules/idcache (Makefile.am): Likewise.
107787         * modules/imaxabs (Makefile.am): Likewise.
107788         * modules/imaxdiv (Makefile.am): Likewise.
107789         * modules/inet_ntop (Makefile.am): Likewise.
107790         * modules/inet_pton (Makefile.am): Likewise.
107791         * modules/intprops (Makefile.am): Likewise.
107792         * modules/inttostr (Makefile.am): Likewise.
107793         * modules/inttypes (Makefile.am): Likewise.
107794         * modules/isapipe (Makefile.am): Likewise.
107795         * modules/javaversion (Makefile.am): Likewise.
107796         * modules/lchmod (Makefile.am): Likewise.
107797         * modules/lchown (Makefile.am): Likewise.
107798         * modules/localcharset (Makefile.am): Likewise.
107799         * modules/long-options (Makefile.am): Likewise.
107800         * modules/lstat (Makefile.am): Likewise.
107801         * modules/malloc (Makefile.am): Likewise.
107802         * modules/mathl (Makefile.am): Likewise.
107803         * modules/mbchar (Makefile.am): Likewise.
107804         * modules/md2 (Makefile.am): Likewise.
107805         * modules/md4 (Makefile.am): Likewise.
107806         * modules/md5 (Makefile.am): Likewise.
107807         * modules/memcasecmp (Makefile.am): Likewise.
107808         * modules/memchr (Makefile.am): Likewise.
107809         * modules/memcmp (Makefile.am): Likewise.
107810         * modules/memcoll (Makefile.am): Likewise.
107811         * modules/memcpy (Makefile.am): Likewise.
107812         * modules/memmem (Makefile.am): Likewise.
107813         * modules/memmove (Makefile.am): Likewise.
107814         * modules/mempcpy (Makefile.am): Likewise.
107815         * modules/memrchr (Makefile.am): Likewise.
107816         * modules/memset (Makefile.am): Likewise.
107817         * modules/memxor (Makefile.am): Likewise.
107818         * modules/mkancesdirs (Makefile.am): Likewise.
107819         * modules/mkdir-p (Makefile.am): Likewise.
107820         * modules/mkdir (Makefile.am): Likewise.
107821         * modules/mkdtemp (Makefile.am): Likewise.
107822         * modules/mkstemp (Makefile.am): Likewise.
107823         * modules/mktime (Makefile.am): Likewise.
107824         * modules/modechange (Makefile.am): Likewise.
107825         * modules/mountlist (Makefile.am): Likewise.
107826         * modules/nanosleep (Makefile.am): Likewise.
107827         * modules/obstack (Makefile.am): Likewise.
107828         * modules/openat (Makefile.am): Likewise.
107829         * modules/pagealign_alloc (Makefile.am): Likewise.
107830         * modules/pathmax (Makefile.am): Likewise.
107831         * modules/physmem (Makefile.am): Likewise.
107832         * modules/poll (Makefile.am): Likewise.
107833         * modules/posixtm (Makefile.am): Likewise.
107834         * modules/posixver (Makefile.am): Likewise.
107835         * modules/putenv (Makefile.am): Likewise.
107836         * modules/quote (Makefile.am): Likewise.
107837         * modules/quotearg (Makefile.am): Likewise.
107838         * modules/raise (Makefile.am): Likewise.
107839         * modules/read-file (Makefile.am): Likewise.
107840         * modules/readline (Makefile.am): Likewise.
107841         * modules/readlink (Makefile.am): Likewise.
107842         * modules/readtokens (Makefile.am): Likewise.
107843         * modules/readutmp (Makefile.am): Likewise.
107844         * modules/realloc (Makefile.am): Likewise.
107845         * modules/regex (Makefile.am): Likewise.
107846         * modules/rename-dest-slash (Makefile.am): Likewise.
107847         * modules/rename (Makefile.am): Likewise.
107848         * modules/rijndael (Makefile.am): Likewise.
107849         * modules/rmdir (Makefile.am): Likewise.
107850         * modules/rpmatch (Makefile.am): Likewise.
107851         * modules/safe-read (Makefile.am): Likewise.
107852         * modules/safe-write (Makefile.am): Likewise.
107853         * modules/same-inode (Makefile.am): Likewise.
107854         * modules/same (Makefile.am): Likewise.
107855         * modules/save-cwd (Makefile.am): Likewise.
107856         * modules/savedir (Makefile.am): Likewise.
107857         * modules/setenv (Makefile.am): Likewise.
107858         * modules/settime (Makefile.am): Likewise.
107859         * modules/sha1 (Makefile.am): Likewise.
107860         * modules/sig2str (Makefile.am): Likewise.
107861         * modules/snprintf (Makefile.am): Likewise.
107862         * modules/stat-macros (Makefile.am): Likewise.
107863         * modules/stat-time (Makefile.am): Likewise.
107864         * modules/stdbool (Makefile.am): Likewise.
107865         * modules/stdint (Makefile.am): Likewise.
107866         * modules/stdlib-safer (Makefile.am): Likewise.
107867         * modules/stpcpy (Makefile.am): Likewise.
107868         * modules/stpncpy (Makefile.am): Likewise.
107869         * modules/strcase (Makefile.am): Likewise.
107870         * modules/strcasestr (Makefile.am): Likewise.
107871         * modules/strchrnul (Makefile.am): Likewise.
107872         * modules/strcspn (Makefile.am): Likewise.
107873         * modules/strdup (Makefile.am): Likewise.
107874         * modules/strerror (Makefile.am): Likewise.
107875         * modules/strftime (Makefile.am): Likewise.
107876         * modules/strndup (Makefile.am): Likewise.
107877         * modules/strnlen (Makefile.am): Likewise.
107878         * modules/strpbrk (Makefile.am): Likewise.
107879         * modules/strsep (Makefile.am): Likewise.
107880         * modules/strstr (Makefile.am): Likewise.
107881         * modules/strtod (Makefile.am): Likewise.
107882         * modules/strtoimax (Makefile.am): Likewise.
107883         * modules/strtok_r (Makefile.am): Likewise.
107884         * modules/strtol (Makefile.am): Likewise.
107885         * modules/strtoll (Makefile.am): Likewise.
107886         * modules/strtoul (Makefile.am): Likewise.
107887         * modules/strtoull (Makefile.am): Likewise.
107888         * modules/strtoumax (Makefile.am): Likewise.
107889         * modules/strverscmp (Makefile.am): Likewise.
107890         * modules/sys_socket (Makefile.am): Likewise.
107891         * modules/sys_stat (Makefile.am): Likewise.
107892         * modules/sysexits (Makefile.am): Likewise.
107893         * modules/time_r (Makefile.am): Likewise.
107894         * modules/timegm (Makefile.am): Likewise.
107895         * modules/timespec (Makefile.am): Likewise.
107896         * modules/tmpfile-safer (Makefile.am): Likewise.
107897         * modules/trim (Makefile.am): Likewise.
107898         * modules/unistd-safer (Makefile.am): Likewise.
107899         * modules/unlinkdir (Makefile.am): Likewise.
107900         * modules/unlocked-io (Makefile.am): Likewise.
107901         * modules/userspec (Makefile.am): Likewise.
107902         * modules/utime (Makefile.am): Likewise.
107903         * modules/utimecmp (Makefile.am): Likewise.
107904         * modules/utimens (Makefile.am): Likewise.
107905         * modules/vasnprintf (Makefile.am): Likewise.
107906         * modules/vasprintf (Makefile.am): Likewise.
107907         * modules/vsnprintf (Makefile.am): Likewise.
107908         * modules/xalloc (Makefile.am): Likewise.
107909         * modules/xgetcwd (Makefile.am): Likewise.
107910         * modules/xnanosleep (Makefile.am): Likewise.
107911         * modules/xreadlink (Makefile.am): Likewise.
107912         * modules/xstrtod (Makefile.am): Likewise.
107913         * modules/xstrtol (Makefile.am): Likewise.
107914         * modules/xstrtold (Makefile.am): Likewise.
107915         * modules/yesno (Makefile.am): Likewise.
107916         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
107918 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
107920         * modules/error (Makefile.am): Distribute files through
107921         EXTRA_DIST, not lib_SOURCES.
107923 2006-10-12  Eric Blake  <ebb9@byu.net>
107925         * modules/error (Makefile.am): Distribute files in /lib.
107926         * modules/obstack (Makefile.am): Likewise.
107928 2006-10-12  Bruno Haible  <bruno@clisp.org>
107930         * modules/acl (Makefile.am): Distribute all files in lib/ through
107931         EXTRA_DIST.
107932         * modules/arcfour (Makefile.am): Likewise.
107933         * modules/arctwo (Makefile.am): Likewise.
107934         * modules/argmatch (Makefile.am): Likewise.
107935         * modules/argz (Makefile.am): Likewise.
107936         * modules/atexit (Makefile.am): Likewise.
107937         * modules/backupfile (Makefile.am): Likewise.
107938         * modules/c-strtod (Makefile.am): Likewise.
107939         * modules/c-strtold (Makefile.am): Likewise.
107940         * modules/calloc (Makefile.am): Likewise.
107941         * modules/canon-host (Makefile.am): Likewise.
107942         * modules/canonicalize (Makefile.am): Likewise.
107943         * modules/chdir-long (Makefile.am): Likewise.
107944         * modules/chdir-safer (Makefile.am): Likewise.
107945         * modules/check-version (Makefile.am): Likewise.
107946         * modules/chown (Makefile.am): Likewise.
107947         * modules/cloexec (Makefile.am): Likewise.
107948         * modules/close-stream (Makefile.am): Likewise.
107949         * modules/closeout (Makefile.am): Likewise.
107950         * modules/crc (Makefile.am): Likewise.
107951         * modules/cycle-check (Makefile.am): Likewise.
107952         * modules/des (Makefile.am): Likewise.
107953         * modules/dirfd (Makefile.am): Likewise.
107954         * modules/dirname (Makefile.am): Likewise.
107955         * modules/dup2 (Makefile.am): Likewise.
107956         * modules/euidaccess (Makefile.am): Likewise.
107957         * modules/exclude (Makefile.am): Likewise.
107958         * modules/exitfail (Makefile.am): Likewise.
107959         * modules/fcntl-safer (Makefile.am): Likewise.
107960         * modules/file-type (Makefile.am): Likewise.
107961         * modules/fileblocks (Makefile.am): Likewise.
107962         * modules/filemode (Makefile.am): Likewise.
107963         * modules/filenamecat (Makefile.am): Likewise.
107964         * modules/fnmatch (Makefile.am): Likewise.
107965         * modules/fopen-safer (Makefile.am): Likewise.
107966         * modules/fpending (Makefile.am): Likewise.
107967         * modules/fprintftime (Makefile.am): Likewise.
107968         * modules/free (Makefile.am): Likewise.
107969         * modules/fsusage (Makefile.am): Likewise.
107970         * modules/ftruncate (Makefile.am): Likewise.
107971         * modules/fts (Makefile.am): Likewise.
107972         * modules/gc (Makefile.am): Likewise.
107973         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
107974         * modules/getaddrinfo (Makefile.am): Likewise.
107975         * modules/getcwd (Makefile.am): Likewise.
107976         * modules/getdelim (Makefile.am): Likewise.
107977         * modules/getdomainname (Makefile.am): Likewise.
107978         * modules/getgroups (Makefile.am): Likewise.
107979         * modules/gethostname (Makefile.am): Likewise.
107980         * modules/gethrxtime (Makefile.am): Likewise.
107981         * modules/getline (Makefile.am): Likewise.
107982         * modules/getloadavg (Makefile.am): Likewise.
107983         * modules/getlogin_r (Makefile.am): Likewise.
107984         * modules/getopt (Makefile.am): Likewise.
107985         * modules/getpass (Makefile.am): Likewise.
107986         * modules/getpass-gnu (Makefile.am): Likewise.
107987         * modules/getsubopt (Makefile.am): Likewise.
107988         * modules/gettime (Makefile.am): Likewise.
107989         * modules/gettimeofday (Makefile.am): Likewise.
107990         * modules/getugroups (Makefile.am): Likewise.
107991         * modules/getusershell (Makefile.am): Likewise.
107992         * modules/glob (Makefile.am): Likewise.
107993         * modules/group-member (Makefile.am): Likewise.
107994         * modules/hard-locale (Makefile.am): Likewise.
107995         * modules/hash (Makefile.am): Likewise.
107996         * modules/hmac-md5 (Makefile.am): Likewise.
107997         * modules/hmac-sha1 (Makefile.am): Likewise.
107998         * modules/human (Makefile.am): Likewise.
107999         * modules/idcache (Makefile.am): Likewise.
108000         * modules/imaxabs (Makefile.am): Likewise.
108001         * modules/imaxdiv (Makefile.am): Likewise.
108002         * modules/inet_ntop (Makefile.am): Likewise.
108003         * modules/inet_pton (Makefile.am): Likewise.
108004         * modules/inttostr (Makefile.am): Likewise.
108005         * modules/isapipe (Makefile.am): Likewise.
108006         * modules/lchown (Makefile.am): Likewise.
108007         * modules/long-options (Makefile.am): Likewise.
108008         * modules/lstat (Makefile.am): Likewise.
108009         * modules/malloc (Makefile.am): Likewise.
108010         * modules/mathl (Makefile.am): Likewise.
108011         * modules/mbchar (Makefile.am): Likewise.
108012         * modules/md2 (Makefile.am): Likewise.
108013         * modules/md4 (Makefile.am): Likewise.
108014         * modules/md5 (Makefile.am): Likewise.
108015         * modules/memcasecmp (Makefile.am): Likewise.
108016         * modules/memchr (Makefile.am): Likewise.
108017         * modules/memcmp (Makefile.am): Likewise.
108018         * modules/memcoll (Makefile.am): Likewise.
108019         * modules/memcpy (Makefile.am): Likewise.
108020         * modules/memmem (Makefile.am): Likewise.
108021         * modules/memmove (Makefile.am): Likewise.
108022         * modules/mempcpy (Makefile.am): Likewise.
108023         * modules/memrchr (Makefile.am): Likewise.
108024         * modules/memset (Makefile.am): Likewise.
108025         * modules/memxor (Makefile.am): Likewise.
108026         * modules/mkancesdirs (Makefile.am): Likewise.
108027         * modules/mkdir (Makefile.am): Likewise.
108028         * modules/mkdir-p (Makefile.am): Likewise.
108029         * modules/mkdtemp (Makefile.am): Likewise.
108030         * modules/mkstemp (Makefile.am): Likewise.
108031         * modules/mktime (Makefile.am): Likewise.
108032         * modules/modechange (Makefile.am): Likewise.
108033         * modules/mountlist (Makefile.am): Likewise.
108034         * modules/nanosleep (Makefile.am): Likewise.
108035         * modules/openat (Makefile.am): Likewise.
108036         * modules/pagealign_alloc (Makefile.am): Likewise.
108037         * modules/physmem (Makefile.am): Likewise.
108038         * modules/poll (Makefile.am): Likewise.
108039         * modules/posixtm (Makefile.am): Likewise.
108040         * modules/posixver (Makefile.am): Likewise.
108041         * modules/putenv (Makefile.am): Likewise.
108042         * modules/quote (Makefile.am): Likewise.
108043         * modules/quotearg (Makefile.am): Likewise.
108044         * modules/raise (Makefile.am): Likewise.
108045         * modules/read-file (Makefile.am): Likewise.
108046         * modules/readline (Makefile.am): Likewise.
108047         * modules/readlink (Makefile.am): Likewise.
108048         * modules/readtokens (Makefile.am): Likewise.
108049         * modules/readutmp (Makefile.am): Likewise.
108050         * modules/realloc (Makefile.am): Likewise.
108051         * modules/regex (Makefile.am): Likewise.
108052         * modules/rename (Makefile.am): Likewise.
108053         * modules/rename-dest-slash (Makefile.am): Likewise.
108054         * modules/rijndael (Makefile.am): Likewise.
108055         * modules/rmdir (Makefile.am): Likewise.
108056         * modules/rpmatch (Makefile.am): Likewise.
108057         * modules/safe-read (Makefile.am): Likewise.
108058         * modules/safe-write (Makefile.am): Likewise.
108059         * modules/same (Makefile.am): Likewise.
108060         * modules/save-cwd (Makefile.am): Likewise.
108061         * modules/savedir (Makefile.am): Likewise.
108062         * modules/setenv (Makefile.am): Likewise.
108063         * modules/settime (Makefile.am): Likewise.
108064         * modules/sha1 (Makefile.am): Likewise.
108065         * modules/sig2str (Makefile.am): Likewise.
108066         * modules/snprintf (Makefile.am): Likewise.
108067         * modules/stdlib-safer (Makefile.am): Likewise.
108068         * modules/stpcpy (Makefile.am): Likewise.
108069         * modules/stpncpy (Makefile.am): Likewise.
108070         * modules/strcase (Makefile.am): Likewise.
108071         * modules/strcasestr (Makefile.am): Likewise.
108072         * modules/strchrnul (Makefile.am): Likewise.
108073         * modules/strcspn (Makefile.am): Likewise.
108074         * modules/strdup (Makefile.am): Likewise.
108075         * modules/strerror (Makefile.am): Likewise.
108076         * modules/strftime (Makefile.am): Likewise.
108077         * modules/strndup (Makefile.am): Likewise.
108078         * modules/strnlen (Makefile.am): Likewise.
108079         * modules/strpbrk (Makefile.am): Likewise.
108080         * modules/strsep (Makefile.am): Likewise.
108081         * modules/strstr (Makefile.am): Likewise.
108082         * modules/strtod (Makefile.am): Likewise.
108083         * modules/strtoimax (Makefile.am): Likewise.
108084         * modules/strtok_r (Makefile.am): Likewise.
108085         * modules/strtol (Makefile.am): Likewise.
108086         * modules/strtoll (Makefile.am): Likewise.
108087         * modules/strtoul (Makefile.am): Likewise.
108088         * modules/strtoull (Makefile.am): Likewise.
108089         * modules/strtoumax (Makefile.am): Likewise.
108090         * modules/strverscmp (Makefile.am): Likewise.
108091         * modules/time_r (Makefile.am): Likewise.
108092         * modules/timegm (Makefile.am): Likewise.
108093         * modules/tmpfile-safer (Makefile.am): Likewise.
108094         * modules/unistd-safer (Makefile.am): Likewise.
108095         * modules/unlinkdir (Makefile.am): Likewise.
108096         * modules/userspec (Makefile.am): Likewise.
108097         * modules/utime (Makefile.am): Likewise.
108098         * modules/utimecmp (Makefile.am): Likewise.
108099         * modules/utimens (Makefile.am): Likewise.
108100         * modules/vasnprintf (Makefile.am): Likewise.
108101         * modules/vasprintf (Makefile.am): Likewise.
108102         * modules/vsnprintf (Makefile.am): Likewise.
108103         * modules/xalloc (Makefile.am): Likewise.
108104         * modules/xgetcwd (Makefile.am): Likewise.
108105         * modules/xnanosleep (Makefile.am): Likewise.
108106         * modules/xreadlink (Makefile.am): Likewise.
108107         * modules/xstrtod (Makefile.am): Likewise.
108108         * modules/xstrtol (Makefile.am): Likewise.
108109         * modules/xstrtold (Makefile.am): Likewise.
108110         * modules/yesno (Makefile.am): Likewise.
108112 2006-10-12  Jim Meyering  <jim@meyering.net>
108114         * m4/getloadavg.m4: Revert the change below.
108116         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
108117         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
108118         fail with a symlink, which is what coreutils' ./bootstrap now
108119         creates by default.
108121 2006-10-12  Bruno Haible  <bruno@clisp.org>
108123         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
108124         mingw.
108125         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
108126         MSVC and mingw explicitly.
108128 2006-10-11  Simon Josefsson  <jas@extundo.com>
108129             Bruno Haible  <bruno@clisp.org>
108131         Add support for multiple gnulib-tool invocations in the scope of a
108132         single configure.ac file.
108133         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
108134         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
108135         with the same contents as the _LIBADD variable.
108136         (func_emit_initmacro_start, func_emit_initmacro_end,
108137         func_emit_initmacro_done): New functions.
108138         (func_import, func_create_testdir): Invoke them. Allow the identifiers
108139         gl_LIBOBJS and gl_LTLIBOBJS.
108141 2006-10-11  Bruno Haible  <bruno@clisp.org>
108143         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
108144         (func_create_testdir): Don't create po/Makefile.am, don't invoke
108145         autoreconf. Instead, invoke autopoint explicitly but move back the
108146         *.m4 files from gnulib.
108148 2006-10-11  Bruno Haible  <bruno@clisp.org>
108150         * gnulib-tool (func_usage): Make module names after --create-testdir
108151         optional.
108152         (func_create_testdir): If no module was specified, use nearly all
108153         modules.
108155 2006-10-12  Jim Meyering  <jim@meyering.net>
108157         Big performance improvement for fts-based tools that use FTS_NOSTAT.
108158         Avoid spurious inode-mismatch problems on non-POSIX file systems.
108159         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
108160         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
108161         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
108162         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
108163         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
108164         (fts_set_stat_required): New function.
108165         (fts_open): Defer the calls to fts_stat, if possible or requested.
108166         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
108167         into fts_stat itself.
108168         (fts_read): Perform any required (deferred) fts_stat call.
108169         (fts_build): Likewise, for the directory we're about to open and read.
108170         In the readdir loop, carefully decide whether each entry will require
108171         an eventual call to fts_stat, using dirent.d_type info if available.
108172         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
108173         a command line argument into this function.  Update all callers.
108174         Map a return value of FTS_DOT to FTS_D for a command line argument.
108175         * modules/fts (Depends-on): Add d-type.  Alphabetize.
108176         Thanks to Miklos Szeredi for his tenacity and for the initial
108177         bug report about "find" failing on a FUSE-based file system.
108179         * lib/fts.c (fts_open): Use consistent indentation.
108181 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
108183         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
108184         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
108185         reported by Jim Meyering.  All uses of cache variables renamed
108186         to match Autoconf's.
108187         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
108188         the other one.
108190         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
108191         Fix misspelling in diagnostic.
108193 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
108195         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
108196         defined.  Problem reported by Matthew Woehlke.
108198         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
108199         Add support for Tandem NonStop R series.
108200         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
108201         Use new macro.
108203         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
108204         (has_trailing_slash): Omit size arg; all callers changed.
108205         Omit 'inline', since it doesn't help performance and we'd
108206         need to configure it.
108207         Don't count //, ///, etc. as having a trailing slash.
108208         As a side effect, this removes a C99ism reported by Matthew Woehlke.
108209         (rpl_rename_dest_slash): On failure, use rename's errno rather
108210         than (in some cases) an incorrect or junk errno.
108211         Simplify code by removing need to compute length; this does
108212         cause it to make two passes instead of one over the file name,
108213         but it's worth it.
108215         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
108216         change, since Autoconf's version may no longer be appropriate now
108217         that we are using CVS Autoconf's version.  Add support for Tandem.
108219 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
108220             Bruno Haible  <bruno@clisp.org>
108222         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
108223         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
108224         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
108225         gl_AC_TYPE_LONG_LONG.
108227         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
108228         instead of HAVE_LONG_LONG.
108229         * lib/printf-args.c (printf_fetchargs): Likewise.
108230         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
108231         * lib/vasnprintf.c (VASNPRINTF): Likewise.
108232         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
108233         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
108234         gl_AC_TYPE_LONG_LONG.
108236 2006-10-11  Bruno Haible  <bruno@clisp.org>
108238         * m4/longlong.m4: Add comments.
108239         * m4/ulonglong.m4: Likewise.
108241 2006-10-10  Bruno Haible  <bruno@clisp.org>
108243         Make it possible to #define stpcpy, strdup to aliases.
108244         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
108245         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
108247 2006-10-10  Bruno Haible  <bruno@clisp.org>
108249         Make it possible to #define gcd to an alias.
108250         * lib/gcd.c: Include config.h.
108252 2006-10-10  Bruno Haible  <bruno@clisp.org>
108254         Make it possible to #define c_isascii to an alias.
108255         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
108256         defined. Undefine the macros before defining them, to avoid gcc
108257         warnings.
108258         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
108259         define NO_C_CTYPE_MACROS early.
108261 2006-10-10  Bruno Haible  <bruno@clisp.org>
108263         Make it possible to #define set_program_name to an alias.
108264         * lib/progname.c: Don't undefine set_program_name; instead, undefine
108265         ENABLE_RELOCATABLE early.
108267 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108269         Port to Tandem NSK OSS, which has 64-bit signed int but at most
108270         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
108271         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
108272         More generally, don't assume that 64-bit signed int is available
108273         if unsigned int is, and vice versa.
108274         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
108275         unsigned symbols, not on their signed counterparts.
108276         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
108277         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
108278         (UINT64_C, UINTMAX_C):
108279         Likewise.
108280         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
108281         unsigned counterparts.
108282         (Have_long_long, Unsigned): New macros.
108283         (Int): Renamed from INT.
108284         (strtoimax): Use the new macros.
108285         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
108286         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
108287         * modules/inttypes (inttypes.h): Substitute
108288         HAVE_UNSIGNED_LONG_LONG_INT.
108289         * modules/stdint (stdint.h): Likewise.
108290         (Files): Add m4/ulonglong.m4.
108292 2006-10-10  Bruno Haible  <bruno@clisp.org>
108294         Fix a gcc -Wshadow warning.
108295         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
108296         to 'bucket'.
108297         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
108298         gl_linked_indexof_from_to): Likewise.
108299         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
108300         Likewise.
108301         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
108302         Likewise.
108303         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
108304         Reported by Eric Blake.
108306 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
108308         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
108309         for NetBSD.  Problem reported by Bruno Haible.
108311 2006-10-09  Jim Meyering  <jim@meyering.net>
108313         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
108314         Patch from Bruno Haible.
108316 2006-10-09  Jim Meyering  <jim@meyering.net>
108318         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
108319         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
108320         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
108322 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
108324         Don't include <config.h> twice; this doesn't work in some cases,
108325         e.g., when config.h has "#define intmax_t long long int" and
108326         we include <config.h>, <inttypes.h>, <config.h> in that order.
108327         Problem reported by Matthew Woehlke in:
108328         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
108329         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
108330         * lib/fts-cycle.c: Don't include config.h.
108331         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
108332         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
108333         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
108334         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
108335         inttypes.h.
108336         * lib/xstrtoumax.c: Likewise.
108337         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
108338         __strtol and the like, so that this module is more like its siblings.
108339         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
108340         Remove; no longer needed now that we assume gnulib inttypes.h.
108342 2006-10-08  Bruno Haible  <bruno@clisp.org>
108344         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
108345         option.
108347 2006-10-07  Jim Meyering  <jim@meyering.net>
108349         * modules/inttypes (inttypes.h): Revert what seems to have been
108350         an inadvertent part of today's change: use "|", not "/" in the
108351         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
108353 2006-10-07  Bruno Haible  <bruno@clisp.org>
108355         * modules/sublist: New file.
108357 2006-10-07  Bruno Haible  <bruno@clisp.org>
108359         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
108360         * modules/argz (argz.h): Likewise.
108361         * modules/arpa_inet (arpa/inet.h): Likewise.
108362         * modules/byteswap (byteswap.h): Likewise.
108363         * modules/configmake (configmake.h): Likewise.
108364         * modules/fcntl (fcntl.h): Likewise.
108365         * modules/fnmatch (fnmatch.h): Likewise.
108366         * modules/getopt (getopt.h): Likewise.
108367         * modules/glob (glob.h): Likewise.
108368         * modules/inttypes (inttypes.h): Likewise.
108369         * modules/netinet_in (netinet/in.h): Likewise.
108370         * modules/poll (poll.h): Likewise.
108371         * modules/stdbool (stdbool.h): Likewise.
108372         * modules/stdint (stdint.h): Likewise.
108373         * modules/sys_select (sys/select.h): Likewise.
108374         * modules/sys_socket (sys/socket.h): Likewise.
108375         * modules/sys_stat (sys/stat.h): Likewise.
108376         * modules/sysexits (sysexits.h): Likewise.
108377         * modules/unistd (unistd.h): Likewise.
108378         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108379         Add a "DO NOT EDIT" comment to the generated file.
108380         (func_import): Likewise for gnulib-comp.m4.
108382 2006-10-07  Bruno Haible  <bruno@clisp.org>
108384         * lib/gl_sublist.h: New file.
108385         * lib/gl_sublist.c: New file.
108387 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108389         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
108390         name (relative to the original working directory) and the file
108391         name component (relative to the temporary working directory).  All
108392         callers changed.
108393         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
108394         * lib/mkdir-p.c (make_dir_parents): Likewise.
108395         * lib/mkdir-p.h (make_dir_parents): Likewise.
108397 2006-10-06  Eric Blake  <ebb9@byu.net>
108399         Define several macros for use by the clean-temp module.
108400         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
108401         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
108402         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
108404         * lib/clean-temp.h (close_stream_temp): New declaration.
108405         * lib/clean-temp.c (includes): Pull in headers according to what
108406         other modules are in use.
108407         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
108409 2006-10-06  Bruno Haible  <bruno@clisp.org>
108411         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
108412         instead of fopen, fwriteerror.
108414 2006-10-06  Bruno Haible  <bruno@clisp.org>
108416         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
108417         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
108418         int.
108419         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
108420         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
108421         Return an error indicator.
108422         Suggested by Eric Blake.
108424 2006-10-06  Bruno Haible  <bruno@clisp.org>
108426         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
108427         Reported by Eric Blake.
108429 2006-10-06  Bruno Haible  <bruno@clisp.org>
108431         * modules/closeout (Description): Mention stderr too.
108433 2006-10-06  Bruno Haible  <bruno@clisp.org>
108434         and Paul Eggert  <eggert@cs.ucla.edu>
108436         * lib/closeout.c (close_stdout): Also close stderr.
108437         * lib/closeout.h: Update comment.
108439 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
108441         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
108442         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
108443         * lib/dirchownmod.c: Include lchown.h.
108444         * lib/lchown.c: Don't include files that lchown.h now includes.
108445         Don't declare chown, since lchown.h now does that.
108446         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
108447         (lchown): Define to rpl_chown if lchown is declared but
108448         does not exist.  Declare using a prototype if lchown is not
108449         declared.  Add a copyright notice.
108450         * lib/mkstemp.h: Include <unistd.h>.
108451         * lib/openat.c: Include lchown.h.
108453         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
108454         we now test for that separately.
108455         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
108456         rather than O_NOFOLLOW, when testing whether it's possible to
108457         avoid a race condition reliably.
108458         * lib/savewd.c (savewd_chdir): Likewise.
108460         Remove macros that are no longer needed now that stdint.h is
108461         reliable.
108462         * lib/fsusage.c (UINTMAX_MAX): Remove.
108463         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
108464         * lib/utimecmp.c (SIZE_MAX): Remove.
108466         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
108468         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
108469         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
108470         O_NOATIME works.
108472 2006-10-05  Bruno Haible  <bruno@clisp.org>
108474         * lib/gl_list.h (gl_sortedlist_search_from_to,
108475         gl_sortedlist_indexof_from_to): New declarations.
108476         (gl_list_implementation): New fields sortedlist_search_from_to,
108477         sortedlist_indexof_from_to.
108478         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
108479         inline functions.
108480         * lib/gl_list.c (gl_sortedlist_search_from_to,
108481         gl_sortedlist_indexof_from_to): New functions.
108482         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
108483         function.
108484         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
108485         (gl_array_sortedlist_search_from_to): New function.
108486         (gl_array_list_implementation): Update.
108487         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
108488         function.
108489         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
108490         (gl_carray_sortedlist_search_from_to): New function.
108491         (gl_carray_list_implementation): Update.
108492         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
108493         gl_linked_sortedlist_indexof_from_to): New functions.
108494         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
108495         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
108496         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
108497         gl_tree_sortedlist_indexof_from_to): New functions.
108498         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
108499         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
108500         Update.
108501         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
108502         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
108503         Update.
108505 2006-10-05  Bruno Haible  <bruno@clisp.org>
108507         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
108508         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
108509         (struct gl_list_implementation): Add fields search_from_to,
108510         indexof_from_to. Remove fields search, indexof.
108511         (gl_list_search): Use the search_from_to method.
108512         (gl_list_search_from, gl_list_search_from_to): New functions.
108513         (gl_list_indexof): Use the indexof_from_to method.
108514         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
108515         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
108516         (gl_list_search_from, gl_list_search_from_to): New functions.
108517         (gl_list_indexof): Use the indexof_from_to method.
108518         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
108519         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
108520         gl_array_indexof. Add start_index, end_index arguments.
108521         (gl_array_search_from_to): Renamed from gl_array_search. Add
108522         start_index, end_index arguments.
108523         (gl_array_remove, gl_array_list_implementation): Update.
108524         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
108525         gl_carray_indexof. Add start_index, end_index arguments.
108526         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
108527         start_index, end_index arguments.
108528         (gl_carray_remove, gl_carray_list_implementation): Update.
108529         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
108530         gl_linked_search. Add start_index, end_index arguments.
108531         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
108532         start_index, end_index arguments.
108533         (gl_linked_remove): Update.
108534         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
108535         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
108536         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
108537         field to 'size_t'.
108538         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
108539         gl_tree_search. Add start_index, end_index arguments.
108540         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
108541         start_index, end_index arguments.
108542         (gl_tree_remove): Update.
108543         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
108544         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
108545         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
108546         function.
108547         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
108548         gl_tree_search. Add start_index, end_index arguments.
108549         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
108550         start_index, end_index arguments.
108551         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
108552         Update.
108553         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
108555 2006-10-05  Bruno Haible  <bruno@clisp.org>
108557         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
108559         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
108560         fwriteerror_temp): New declarations.
108561         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
108562         (descriptors): New variable.
108563         (cleanup): First, close the descriptors.
108564         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
108565         fclose_temp, fwriteerror_temp): New functions.
108567 2006-10-04  Jim Meyering  <jim@meyering.net>
108569         * lib/fts.c (fts_open): Tiny comment change.
108571 2006-10-04  Bruno Haible  <bruno@clisp.org>
108573         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
108574         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
108575         gl_LOCK_BODY.
108576         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
108577         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
108578         gl_LOCK_EARLY_BODY.
108579         (gl_LOCK): Require gl_LOCK_BODY.
108581 2006-10-04  Bruno Haible  <bruno@clisp.org>
108583         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
108584         (gl_oset_search_atleast): New declaration.
108585         (struct gl_oset_implementation): Add field 'search_atleast'.
108586         (gl_oset_search_atleast): New inline function.
108587         * lib/gl_oset.c (gl_oset_search_atleast): New function.
108588         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
108589         (gl_array_oset_implementation): Update.
108590         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
108591         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
108592         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
108594 2006-10-04  Bruno Haible  <bruno@clisp.org>
108596         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
108598 2006-10-03  Bruno Haible  <bruno@clisp.org>
108600         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
108601         from gl_avltreehash_list_implementation.
108603 2006-10-03  Bruno Haible  <bruno@clisp.org>
108605         * lib/gl_oset.c (gl_oset_add): Fix return type.
108607 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
108609         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
108611 2006-10-02  Eric Blake  <ebb9@byu.net>
108613         * modules/strnlen (Depends-on): Add extensions.
108615 2006-10-02  Eric Blake  <ebb9@byu.net>
108617         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
108618         definition in 2.60+.
108620 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
108622         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
108623         checks.
108625 2006-10-02  Bruno Haible  <bruno@clisp.org>
108627         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
108628         to the AUTOMAKE_OPTIONS.
108629         Reported by Jim Meyering.
108631 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
108633         Work around bug in Solaris 10 /proc file system:
108634         /proc/self/fd/NNN/.. isn't the parent directory of
108635         the directory whose file descriptor is NNN.  This needs to
108636         be worked around at run time, not compile time, since a
108637         program might be built on Solaris 8, where things work, and
108638         run on Solaris 10.
108639         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
108640         to use the following interface instead:
108641         (OPENAT_BUFFER_SIZE): New macro.
108642         (openat_proc_name): New function.
108643         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
108644         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
108645         Likewise.
108646         * lib/openat-proc.c: New file.
108647         * modules/openat (Files): Add lib/openat-proc.c.
108648         (Depends-on): Add same-inode, stdbool.
108649         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
108651 2006-09-29  Bruno Haible  <bruno@clisp.org>
108653         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
108654         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
108655         argument. Set stdout_closed before testing for ferror, not after.
108656         (fwriteerror, fwriteerror_no_ebadf): New functions.
108658 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108660         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
108662 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
108664         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
108665         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
108667 2006-09-28  Jim Meyering  <jim@meyering.net>
108669         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
108670         Include <unistd.h>.
108672 2006-09-28  Bruno Haible  <bruno@clisp.org>
108674         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
108675         * modules/linkedhash-list (Depends-on): Likewise.
108676         * modules/rbtreehash-list (Depends-on): Likewise.
108678 2006-09-28  Bruno Haible  <bruno@clisp.org>
108680         * lib/strndup.h: Simplify the redefinition of strndup.
108681         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
108682         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
108684 2006-09-28  Bruno Haible  <bruno@clisp.org>
108686         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
108687         * lib/gl_linkedhash_list.c: Likewise.
108688         * lib/gl_rbtreehash_list.c: Likewise.
108690 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
108692         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
108693         getaddrinfo.
108695         * lib/__fpending.h: Don't include <stdio_ext.h> unless
108696         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
108697         it causes <stdio_ext.h> to cause a compile-time error.
108698         Problem reported by Nelson H. F. Beebe.
108699         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
108700         of HAVE_DECL___PENDING.
108702         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
108703         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
108704         declaration.
108706 2006-09-27  Jim Meyering  <jim@meyering.net>
108708         This file could end up with a definition for a function
108709         named __strndup, rather than rpl_strndup on a system with
108710         incomplete weak_alias support.
108711         * lib/strndup.c (strndup): Rename from __strndup.
108712         Remove #defines that used to map __strndup to strndup.
108713         Don't use K&R prototypes.
108714         Remove LIBC-related code, since this file is not sync'd with glibc.
108715         * lib/strndup.h: Revamp, accordingly.
108716         * m4/strndup.m4: Modernize.
108718 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
108720         * modules/savewd (Depends-on): Add 'raise'.
108721         * lib/savewd.c: Include <signal.h>, for 'raise'.
108723 2006-09-26  Jim Meyering  <jim@meyering.net>
108725         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
108726         when we detect Darwin 8.7.0's acl_get_file bug.
108727         Rearrange to perform the new (below) run-test while $LIBS
108728         contains any acl-related library.  Set USE_ACL at the end.
108729         (gl_ACL_GET_FILE): New function.
108731 2006-09-26  Eric Blake  <ebb9@byu.net>
108733         * lib/verror.c: Include <config.h> unconditionally.
108735 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
108737         * modules/clock-time (Maintainer): Add self.
108738         * modules/getlogin_r (Depends-on): Add extensions.
108740 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108742         * modules/clock-time: New module.
108743         * modules/nanosleep (Depends-on): Add clock-time.
108744         * modules/gethrxtime (Depends-on): Likewise.
108745         * modules/gettime (Depends-on): Likewise.
108746         * modules/settime (Depends-on): Likewise.
108748         * modules/fts-lgpl: Depend on openat.
108749         * modules/mkancesdirs: Depend on savewd.
108750         * modules/mkdir-p: Likewise.
108752 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108754         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
108756         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
108757         `gl_have_arbitrary_file_name_length_limit' to
108758         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
108759         actually works between configure runs.
108761 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108762             Bruno Haible  <bruno@clisp.org>
108764         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
108766 2006-09-25  Jim Meyering  <jim@meyering.net>
108768         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
108769         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
108771 2006-09-25  Eric Blake  <ebb9@byu.net>
108773         * gnulib-tool (func_import, func_create_testdir): Fix typos in
108774         exec's in 2006-09-18 patch when shuffling fds.
108776 2006-09-25  Bruno Haible  <bruno@clisp.org>
108778         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
108779         Reported by Jim Meyering.
108781 2006-09-24  Jim Meyering  <jim@meyering.net>
108783         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
108784         compare a pointer against a literal "0".  That caused failures with
108785         at least HP-UX's hpcc.
108787 2006-09-22  Simon Josefsson  <jas@extundo.com>
108789         * modules/gc-sha1:
108790         * modules/gc-md4:
108791         * modules/gc-hmac-sha1:
108792         * modules/gc-hmac-md5:
108793         * modules/gc-des:
108794         * modules/gc-arcfour: Distribute more files.
108796 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108798         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
108799         (gl_linked_iterator_from_to): Initialize struct completely.
108800         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
108801         (gl_tree_iterator_from_to): Likewise
108802         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
108803         * lib/gl_array_list.c [lint] (gl_array_iterator)
108804         (gl_array_iterator_from_to): Likewise.
108805         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
108806         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
108807         (gl_carray_iterator_from_to): Likewise.
108809         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
108810         * lib/md4.c (md4_process_block): Remove unused variable.
108811         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
108812         parentheses for clarity.
108814 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108816         * modules/bison-i18n (Depends-on): Add gettext.
108818 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108820         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
108821         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
108822         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
108823         also add missing comma that caused broken test.
108824         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
108825         stdlib.h, for `abort'.
108826         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
108827         variables.
108828         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
108829         include unistd.h if present, for `rmdir'.
108830         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
108831         variables.
108832         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
108833         in the process include standard headers for prototypes.
108834         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
108835         gets declared on GNU/Linux.
108836         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
108837         unistd.h, for `rmdir'.
108838         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
108840         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
108841         always true.
108842         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
108844         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
108846 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108848         * gnulib-tool (func_version): Create output all at once.  This
108849         may help avoid triggering unnecessary SIGPIPEs, and at any
108850         rate it doesn't hurt.
108852 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108853             Bruno Haible  <bruno@clisp.org>
108855         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
108856         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
108857         * m4/signed.m4 (bh_C_SIGNED): Likewise.
108859         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
108860         (gl_FUNC_VASPRINTF): Invoke it.
108862 2006-09-22  Bruno Haible  <bruno@clisp.org>
108864         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
108865         getloadavg.c as first argument.
108867 2006-09-22  Bruno Haible  <bruno@clisp.org>
108869         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
108870         at the beginning of the gl_INIT macro.
108871         * modules/getloadavg (configure.ac): Pass $gl_source_base to
108872         gl_GETLOADAVG.
108874 2006-09-22  Bruno Haible  <bruno@clisp.org>
108876         * gnulib-tool (func_create_megatestdir): Don't include the config-h
108877         module.
108878         Suggested by Ralf Wildenhues.
108880 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108882         Import this patch from libc:
108884         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
108886         * lib/regex_internal.c (re_string_reconstruct): Handle
108887         offset < pstr->valid_raw_len && pstr->offsets_needed case.
108888         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
108889         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
108890         re_string_context_at.
108892         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
108893         now requires it.
108894         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
108895         gl_REGEX now does it for us.
108896         (gl_REGEX): Add test taken from
108897         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
108899         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
108900         Check that large offsets work.  Modernize Autoconf usages.
108901         Prefer "yes" to mean a good thing rather than a bad.
108902         Don't put "#define mkstemp" in config.h, as this might interfere
108903         with standard system headers that "#define mkstemp mkstemp64".
108905         * modules/mkstemp (Depends-on): Add extensions, so that
108906         mkstemp is visible on some platforms.
108907         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
108908         (Include): Change to "mkstemp.h" from <stdlib.h>.
108909         (Files): Add mkstemp.h.
108911         * lib/mkstemp.h: New file, since some standard headers
108912         #define mkstemp.
108913         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
108914         Include "mkstemp.h".
108915         Make the _LIBC code resemble glibc original more,
108916         e.g., use K&R style.
108917         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
108918         (mkstemp): Remove, since mkstemp.h does this for us.
108919         * lib/stdlib--.h: Include mkstemp.h.
108921         Import this patch from libc:
108923         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
108925         * lib/tempname.c (__gen_tempname): Change attempts_min
108926         into a macro.  Use preprocessor to decide how to initialize
108927         attempts [Coverity CID 67].
108929 2006-09-20  Bruno Haible  <bruno@clisp.org>
108931         * lib/mkdtemp.c: Import from libc.
108932         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
108933                 * sysdeps/posix/tempname.c (__gen_tempname): Change
108934                 attempts_min into a macro.  Use preprocessor to decide how to
108935                 initialize attempts [Coverity CID 67].
108936         2001-11-27  Paul Eggert  <eggert@twinsun.com>
108937                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
108938                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
108940 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108942         * gnulib-tool (func_exit): New function, to allow to pass the
108943         exit status portably through the trap.  Use everywhere.
108944         (--help, --version): Signal a write error.
108945         (trap): catch SIGPIPE, for write errors.
108946         Exit at the end of the trap, with the correct exit status.
108948 2006-09-19  Karl Berry  <karl@gnu.org>
108950         * doc/gnulib.texi: note about the license texinfo files.
108952 2006-09-19  Eric Blake  <ebb9@byu.net>
108954         * gnulib-tool: Avoid space-tab.
108956 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
108958         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
108959         that prevented coreutils 6.1 from building.  Problem reported
108960         by Petter Reinholdtsen.
108962 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
108964         * gnulib-tool (avoidlist): Fix typo that broke options like
108965         --avoid=lock that are used by coreutils bootstrap.
108967 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
108969         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
108970         more systematically.
108972 2006-09-18  Jim Meyering  <jim@meyering.net>
108974         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
108976 2006-09-18  Bruno Haible  <bruno@clisp.org>
108978         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
108980 2006-09-18  Bruno Haible  <bruno@clisp.org>
108982         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
108983         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
108984         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
108985         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
108986         * m4/gettext.m4: Require autoconf >= 2.52.
108987         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
108988         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
108989         of gl_cv_header_inttypes_h.
108991 2006-09-18  Bruno Haible  <bruno@clisp.org>
108993         * lib/javaversion.c: Include configmake.h.
108995 2006-09-18  Bruno Haible  <bruno@clisp.org>
108997         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
108998         avoid that the while loops be executed in a subshell.
109000 2006-09-18  Bruno Haible  <bruno@clisp.org>
109002         * MODULES.html.sh (func_module): Break long lines.
109003         Suggested by Bruce Korb <bkorb@gnu.org>.
109005 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109007         Speed up by a factor of 1.12.
109008         * gnulib-tool (nl): New variable.
109009         (func_import): Rewrite include directive extraction to only read each
109010         directive once.
109012 2006-09-17  Bruno Haible  <bruno@clisp.org>
109014         * modules/javaversion (Makefile.am): Remove DEFS setting.
109015         (Depends-on): Add configmake, for PKGDATADIR definition.
109017 2006-09-17  Bruno Haible  <bruno@clisp.org>
109019         * gnulib-tool (func_create_testdir): Rewrite all files at once.
109021 2006-09-17  Bruno Haible  <bruno@clisp.org>
109023         * gnulib-tool (func_append): New function, stolen from libtool.m4.
109024         (func_modules_transitive_closure, func_modules_add_dummy,
109025         func_modules_to_filelist, func_import, func_create_testdir,
109026         func_create_megatestdir, ...): Use it wherever possible.
109027         Suggested by Ralf Wildenhues.
109029 2006-09-16  Karl Berry  <karl@gnu.org>
109031         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
109032         to avoid sectioning errors.
109033         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
109034         [ifinfo]: blank line after @center-ed titles.
109035         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
109036         Spell FSF address consistently with others.
109037         (These changes approved by rms.)
109039 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109041         Speed up by a factor of 1.61.
109042         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
109043         already checked module names again.
109045 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109047         Speed up by a factor of 1.13.
109048         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
109049         for new_files, and the input to func_add_or_update.
109051 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109053         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
109054         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
109056 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109058         * modules/mkancesdirs (Depends-on): Add fcntl.
109059         * modules/savewd: New file.
109060         * MODULES.html.sh (File system functions): Add savewd.
109062         * modules/configmake (Makefile.am): Add support for the
109063         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
109065 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109067         * m4/savewd.m4: New file.
109069 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109071         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
109072         (dirchownmod): New arg FD.  All callers changed.
109073         Use FD rather than opening the directory ourself, as opening is
109074         now the caller's responsibility.
109075         * lib/dirchownmod.h: Likewise.
109076         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
109077         hosts that require <sys/types.h> before <sys/stat.h>.  Include
109078         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
109079         (test_dir): Remove.
109080         (mkancesdirs): Return length of prefix of FILE that has already
109081         been made, or -2 if there is a child doing the work.  Redo
109082         algorithm so that it is O(N) rather than O(N**2).  Optimize away
109083         ".", and treat ".." specially since it might stray back into
109084         already-created areas.  Use a subprocess if necessary.  New arg
109085         WD; all users changed.  MAKE_DIR function should now return 1
109086         if it creates a directory that is not readable.  Return -2 if
109087         a child process is spun off.
109088         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
109089         Adjust signature to match code.
109090         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
109091         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
109092         all users changed.
109093         * lib/savewd.c, lib/savewd.h: New files.
109095 2006-09-15  Jim Meyering  <jim@meyering.net>
109097         * modules/rename-dest-slash: New module.
109098         * MODULES.html.sh (posix_compat): Add it here.
109100         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
109102 2006-09-15  Jim Meyering  <jim@meyering.net>
109104         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
109105         file.
109107         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
109109 2006-09-15  Jim Meyering  <jim@meyering.net>
109111         * lib/rename-dest-slash.c (has_trailing_slash): Use
109112         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
109113         (rpl_rename_dest_slash): Perform the cheaper trailing slash
109114         test before testing whether SRC is a directory.
109115         Suggestions from Bruno Haible.
109117         Avoid a warning about an unused variable.
109118         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
109119         into the #ifdef block where it's used.
109121         * lib/rename-dest-slash.c: New file.
109123 2006-09-14  Bruno Haible  <bruno@clisp.org>
109125         * lib/allocsa.c: Include <config.h> unconditionally.
109126         * lib/asnprintf.c: Likewise.
109127         * lib/asprintf.c: Likewise.
109128         * lib/c-strcasecmp.c: Likewise.
109129         * lib/c-strcasestr.c: Likewise.
109130         * lib/c-strncasecmp.c: Likewise.
109131         * lib/c-strstr.c: Likewise.
109132         * lib/classpath.c: Likewise.
109133         * lib/clean-temp.c: Likewise.
109134         * lib/concatpath.c: Likewise.
109135         * lib/copy-file.c: Likewise.
109136         * lib/csharpcomp.c: Likewise.
109137         * lib/csharpexec.c: Likewise.
109138         * lib/execute.c: Likewise.
109139         * lib/fatal-signal.c: Likewise.
109140         * lib/findprog.c: Likewise.
109141         * lib/fwriteerror.c: Likewise.
109142         * lib/gl_array_list.c: Likewise.
109143         * lib/gl_array_oset.c: Likewise.
109144         * lib/gl_avltree_list.c: Likewise.
109145         * lib/gl_avltree_oset.c: Likewise.
109146         * lib/gl_avltreehash_list.c: Likewise.
109147         * lib/gl_carray_list.c: Likewise.
109148         * lib/gl_linked_list.c: Likewise.
109149         * lib/gl_linkedhash_list.c: Likewise.
109150         * lib/gl_list.c: Likewise.
109151         * lib/gl_oset.c: Likewise.
109152         * lib/gl_rbtree_list.c: Likewise.
109153         * lib/gl_rbtree_oset.c: Likewise.
109154         * lib/gl_rbtreehash_list.c: Likewise.
109155         * lib/imaxabs.c: Likewise.
109156         * lib/imaxdiv.c: Likewise.
109157         * lib/javacomp.c: Likewise.
109158         * lib/javaexec.c: Likewise.
109159         * lib/javaversion.c: Likewise.
109160         * lib/linebreak.c: Likewise.
109161         * lib/localcharset.c: Likewise.
109162         * lib/lock.c: Likewise.
109163         * lib/mbchar.c: Likewise.
109164         * lib/mbswidth.c: Likewise.
109165         * lib/mkdtemp.c: Likewise.
109166         * lib/pipe.c: Likewise.
109167         * lib/printf-args.c: Likewise.
109168         * lib/printf-parse.c: Likewise.
109169         * lib/progname.c: Likewise.
109170         * lib/progreloc.c: Likewise.
109171         * lib/readlink.c: Likewise.
109172         * lib/sh-quote.c: Likewise.
109173         * lib/stpcpy.c: Likewise.
109174         * lib/stpncpy.c: Likewise.
109175         * lib/strcasecmp.c: Likewise.
109176         * lib/strcasestr.c: Likewise.
109177         * lib/strcspn.c: Likewise.
109178         * lib/striconv.c: Likewise.
109179         * lib/strncasecmp.c: Likewise.
109180         * lib/strnlen1.c: Likewise.
109181         * lib/strstr.c: Likewise.
109182         * lib/strtok_r.c: Likewise.
109183         * lib/tls.c: Likewise.
109184         * lib/tmpdir.c: Likewise.
109185         * lib/unicodeio.c: Likewise.
109186         * lib/unsetenv.c: Likewise.
109187         * lib/vasnprintf.c: Likewise.
109188         * lib/vasprintf.c: Likewise.
109189         * lib/wait-process.c: Likewise.
109190         * lib/xallocsa.c: Likewise.
109191         * lib/xsetenv.c: Likewise.
109192         * lib/xstriconv.c: Likewise.
109194 2006-09-13  Simon Josefsson  <jas@extundo.com>
109196         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
109197         that internally, suggested by Ralf Wildenhues
109198         <Ralf.Wildenhues@gmx.de>.
109200 2006-09-13  Simon Josefsson  <jas@extundo.com>
109202         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
109203         @LIBOBJS@.
109204         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109206 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
109208         * lib/_fpending.c: Include <config.h> unconditionally, since we no
109209         longer worry about uses that don't define HAVE_CONFIG_H.
109210         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
109211         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
109212         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
109213         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
109214         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
109215         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
109216         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
109217         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
109218         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
109219         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
109220         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
109221         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
109222         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
109223         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
109224         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
109225         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
109226         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
109227         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
109228         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
109229         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
109230         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
109231         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
109232         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
109233         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
109234         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
109235         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
109236         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
109237         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
109238         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
109239         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
109240         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
109241         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
109242         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
109243         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
109244         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
109245         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
109246         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
109247         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
109248         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
109249         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
109250         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
109251         Likewise.
109253 2006-09-13  Eric Blake  <ebb9@byu.net>
109255         * lib/getopt.c: Fix typo in last commit.
109257 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
109259         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
109260         dgettext.
109262 2006-09-12  Jim Meyering  <jim@meyering.net>
109264         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
109265         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
109266         Reported by Nelson H. F. Beebe.
109268 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
109270         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
109271         program_invocation_name and program_invocation_short_name are
109272         initialized.
109273         * lib/argp-namefrob.h: Move declarations of program_invocation_name
109274         and program_invocation_short_name to argp.h, so they are visible
109275         to user programs.
109276         * lib/argp.h: Likewise
109278 2006-09-10  Bruno Haible  <bruno@clisp.org>
109280         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
109281         m4/inttypes_h.m4, m4/uintmax_t.m4.
109283 2006-09-10  Bruno Haible  <bruno@clisp.org>
109285         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
109286         gl_AC_TYPE_UINTMAX_T.
109288 2006-09-10  Bruno Haible  <bruno@clisp.org>
109290         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
109292 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
109294         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
109295         convention.  Text proposed by Bruno Haible.
109296         (struct argp_option): Document the use of N_() wrappers.
109298         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
109299         '\v', and translate the two parts separately, instead of feeding
109300         the whole string to gettext.  This allows to exclude
109301         '\v' from the strings visible to the translator by writing doc
109302         strings as N_("..") "\v" N_("..").
109304 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
109306         * config/srclist.txt: Undo latest change; the bug was fixed.
109308 2006-09-09  Bruno Haible  <bruno@clisp.org>
109310         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
109311         assignments if building a library without libtool.
109312         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
109313         in func_emit_lib_Makefile_am.
109314         (func_import): When building a static library libfoo.a, arrange to
109315         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
109316         (func_create_testdir): Likewise.
109317         * modules/gc (configure.ac, Makefile.am): If building statically,
109318         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
109319         * modules/iconvme (configure.ac, Makefile.am): Likewise.
109320         * modules/striconv (configure.ac, Makefile.am): Likewise.
109321         Based on a suggestion by Ralf Wildenhues.
109323 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109325         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109326         Check for unistd.h too, since Autoconf doesn't assume POSIX.
109327         Also:
109329         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109330         Add year_2050_test to catch glibc bug 2821
109331         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109333         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
109334         Prefer #ifdef to #if.
109336         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
109337         Return from 'main' instead of calling 'exit'.
109339 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109341         * lib/mktime.c (guess_time_tm): Fix bug where mktime
109342         returned the maximum time_t value rather than (time_t) -1.
109343         Problem originally reported by William Bardwell
109344         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109346         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
109347         Moved to here ...
109348         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
109349         ... from here.
109351 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109353         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
109354         2821 is fixed.
109356 2006-09-08  Jim Meyering  <jim@meyering.net>
109358         Don't make generated files read-only.  That would bother too many
109359         people.  However, do retain the ability to work when targets are
109360         read-only: remove the destination and temporary files before writing
109361         them (when generated via sed or echo), or by using the -f option for
109362         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
109363         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109364         * modules/byteswap, modules/configmake, modules/fcntl:
109365         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109366         * modules/localcharset, modules/netinet_in, modules/poll:
109367         * modules/stdbool, modules/stdint, modules/sys_select:
109368         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109370 2006-09-08  Jim Meyering  <jim@meyering.net>
109372         Avoid new build failure on FreeBSD 6.0.
109373         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
109374         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
109375         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
109377 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109379         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
109381 2006-09-07  Jim Meyering  <jim@meyering.net>
109383         Fix global typo in last change: use chmod u-w, not chmod u-x.
109384         Spotted by Paul Eggert and Bruce Korb.
109385         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109386         * modules/byteswap, modules/configmake, modules/fcntl:
109387         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109388         * modules/localcharset, modules/netinet_in, modules/poll:
109389         * modules/stdbool, modules/stdint, modules/sys_select:
109390         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109392 2006-09-06  Jim Meyering  <jim@meyering.net>
109394         Make generated files be read-only.
109395         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
109396         Ensure that each generated file is now read-only.
109397         * modules/argz: Likewise.
109398         * modules/arpa_inet: Likewise.
109399         * modules/byteswap: Likewise.
109400         * modules/configmake: Likewise.
109401         * modules/fcntl: Likewise.
109402         * modules/fnmatch: Likewise.
109403         * modules/getopt: Likewise.
109404         * modules/glob: Likewise.
109405         * modules/inttypes: Likewise.
109406         * modules/netinet_in: Likewise.
109407         * modules/poll: Likewise.
109408         * modules/stdbool: Likewise.
109409         * modules/stdint: Likewise.
109410         * modules/sys_select: Likewise.
109411         * modules/sys_socket: Likewise.
109412         * modules/sys_stat: Likewise.
109413         * modules/sysexits: Likewise.
109414         * modules/localcharset: Same as above, but continue using temporary
109415         file named "t-$@" (why different?) rather than the "$@-t" used
109416         everywhere else.
109418         * modules/sysexits (Makefile.am): Replace literal occurrences
109419         of "sysexit.h" more readable, and more consistent, "$@".
109421 2006-09-06  Bruno Haible  <bruno@clisp.org>
109423         * modules/striconv: New file.
109424         * modules/xstriconv: New file.
109425         * MODULES.html.sh (Internationalization functions): Add striconv,
109426         xstriconv.
109428 2006-09-06  Bruno Haible  <bruno@clisp.org>
109430         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
109431         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
109432         not using libtool correctly.
109434 2006-09-06  Bruno Haible  <bruno@clisp.org>
109436         * lib/striconv.h: New file.
109437         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
109438         iconvstring.c.
109439         * lib/xstriconv.h: New file.
109440         * lib/xstriconv.c: New file.
109442 2006-09-06  Bruno Haible  <bruno@clisp.org>
109444         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109445         lib_..._LDFLAGS.
109447 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109449         * lib/argz_.h: Sync from Libtool.
109451         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
109452                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
109454         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
109456 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
109458         * modules/trim: New file.
109460 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
109462         * lib/trim.h: New file.
109463         * lib/trim.c: New file.
109465 2006-09-05  Bruno Haible  <bruno@clisp.org>
109467         * MODULES.html.sh (String handling): Add trim.
109469 2006-09-04  Karl Berry  <karl@gnu.org>
109471         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
109472         until next release.
109474 2006-09-03  Bruno Haible  <bruno@clisp.org>
109476         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
109477         correctly.
109479 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109481         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
109482         not gl_GETLOADAVG.  Omit unneeded semicolons.
109483         Problems reported by Ralf Wildenhues in
109484         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
109485         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
109486         at the end, which is the usual gnulib style.
109488         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
109489         of doing all the work ourselves.
109490         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
109491         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
109493 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109495         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
109496         Problem reported by Ralf Wildenhues in
109497         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
109499         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
109500         HAVE_STRUCT_STATFS_F_FSTYPENAME.
109502 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109504         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
109505         yesterday's patch by changing test -n to test -z.
109507 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109509         * modules/getloadavg (Files): Add m4/getloadavg.m4.
109510         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
109511         the former is now obsolescent.
109513         * modules/chdir-long (Depends-on): Add fcntl.
109515 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109517         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
109518         obsolescent, and programs should use gnulib instead.
109519         * m4/getloadavg.m4: New file, with contents taken from Autoconf
109520         but with prefixes changed.
109522 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109524         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
109525         or stdbool.h, because they might not exist while configuring.
109527         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
109528         Don't include unistd.h or limits.h; not needed, since chdir-long.h
109529         does that for us.
109530         (O_DIRECTORY): Remove.
109532 2006-08-31  Eric Blake  <ebb9@byu.net>
109534         * gnulib-tool: Don't let emacs change spaces to TAB.
109536 2006-08-31  Bruno Haible  <bruno@clisp.org>
109538         * gnulib-tool: When calling func_import more than once, do it in a
109539         subshell.
109540         Reported by Eric Blake <ebb9@byu.net>.
109542 2006-08-31  Bruno Haible  <bruno@clisp.org>
109544         * gnulib-tool (nl): Remove variable.
109545         (sed_transform_lib_file): Use more robust test for config-h module.
109546         (func_import): Fix typo in 2006-08-25 patch.
109548 2006-08-31  Bruno Haible  <bruno@clisp.org>
109550         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
109551         specified, augment Makefile.am variables instead of assigning them.
109553 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109555         Work around a bug in both the Linux and SunOS 64-bit kernels:
109556         nanosleep mishandles sleeps for longer than 2**31 seconds.
109557         Problem reported by Frank v Waveren in
109558         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
109559         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
109560         Check for nanosleep bug.
109561         (LIB_NANOSLEEP): Append clock_gettime library if needed.
109563 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109565         Work around a bug in both the Linux and SunOS 64-bit kernels:
109566         nanosleep mishandles sleeps for longer than 2**31 seconds.
109567         Problem reported by Frank v Waveren in
109568         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
109569         * lib/nanosleep.c (BILLION): New constant.
109570         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
109571         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
109572         implementation.
109574 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109576         * modules/nanosleep (Depends-on): Add gettime.
109578 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109579         and Simon Josefsson  <jas@extundo.com>
109580         and Oskar Liljeblad  <oskar@osk.mine.nu>
109582         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
109583         * gnulib-tool (func_import): New license type 'unmodifiable license
109584         text'.
109585         * modules/fdl: Use it.  Longer description.
109586         * module/gpl, module/lgpl: New files.
109588 2006-08-30  Jim Meyering  <jim@meyering.net>
109590         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
109591         shadowing the parameter.
109593 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109595         Sync from Libtool:
109597         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109599         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
109600         sharing with gnulib.  Report by Eric Blake.
109602 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109604         * modules/isapipe: New file.
109605         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
109607 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109609         * modules/configmake (Makefile.am): Add a comment, and omit
109610         the CONFIGMAKE_ prefix from generated macro names.  Suggested
109611         by Bruno Haible.
109613 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109615         * m4/isapipe.m4: New file.
109617 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109619         * lib/isapipe.c, lib/isapipe.h: New files.
109621 2006-08-29  Jim Meyering  <jim@meyering.net>
109623         * modules/configmake (Makefile.am): Make configmake.h depend on
109624         Makefile.  Otherwise, a stale configmake.h could hang around.
109626 2006-08-29  Eric Blake  <ebb9@byu.net>
109628         * lib/error.c (error_at_line, print_errno_message): Match libc, after
109629         resolution of upstream bug 3044.
109631 2006-08-29  Bruno Haible  <bruno@clisp.org>
109633         * modules/localcharset (Depends-on): Add configmake.
109634         (Makefile.am): Remove setting of LIBDIR through DEFS.
109636 2006-08-29  Bruno Haible  <bruno@clisp.org>
109638         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
109639         defined.
109641 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109643         * modules/fcntl: New file.
109644         * modules/chdir-safer (Depends-on): Add fcntl.
109645         * modules/fts: Likewise.
109646         * modules/mkdir-p: Likewise.
109648         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
109649         This undoes the most recent change, since we're now addressing the
109650         problem in a different way.
109652         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
109653         into output, since the output might be called Makefile.am even
109654         if $makefile_name is something different.
109655         (func_import): Use $makefile_am rather than
109656         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
109657         empty.
109659         * modules/inttypes (Files): Add m4/inttypes-h.m4.
109661 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109663         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
109664         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
109665         recent change to stdint.m4, since we're now addressing the problem in a
109666         different way.
109668 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109670         * m4/fcntl_h.m4: New file.
109672 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109674         * lib/fcntl_.h: New file.
109675         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
109676         the fcntl module.
109677         * lib/dirchownmod.c: Likewise.
109678         * lib/fts.c: Likewise.
109680         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
109681         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
109682         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
109683         just before including <inttypes.h>, to avoid circular inclusion.
109685 2006-08-28  Jim Meyering  <jim@meyering.net>
109687         * doc/visibility.texi: Actually read and correct the grammar of the
109688         sentence affected by yesterday's change.
109690 2006-08-28  Eric Blake  <ebb9@byu.net>
109692         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
109693         needs wrapper.
109695 2006-08-28  Eric Blake  <ebb9@byu.net>
109697         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
109699 2006-08-28  Eric Blake  <ebb9@byu.net>
109701         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
109703 2006-08-28  Bruno Haible  <bruno@clisp.org>
109705         * modules/c-strstr: New file, from GNU gettext.
109706         * MODULES.html.sh (String handling): Add c-strstr.
109708 2006-08-28  Bruno Haible  <bruno@clisp.org>
109710         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
109711         macros.
109712         Reported by Eric Blake.
109714 2006-08-28  Bruno Haible  <bruno@clisp.org>
109716         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
109717         (VASNPRINTF): Return a string of length > INT_MAX without failing.
109718         * lib/vasprintf.c: Include errno.h, limits.h.
109719         (EOVERFLOW): New fallback definition.
109720         (vasprintf): Test here whether the string length is > INT_MAX.
109721         * lib/vsnprintf.c: Include errno.h, limits.h.
109722         (EOVERFLOW): New fallback definition.
109723         (vsnprintf): Fix bug when generated string was too long for the buffer.
109724         Test here whether the string length is > INT_MAX.
109726 2006-08-28  Bruno Haible  <bruno@clisp.org>
109728         * lib/inttypes_.h (SCNX*): Remove definitions.
109729         Reported by Eric Blake.
109731 2006-08-28  Bruno Haible  <bruno@clisp.org>
109733         * lib/c-strstr.h: New file, from GNU gettext.
109734         * lib/c-strstr.c: New file, from GNU gettext.
109736 2006-08-28  Bruno Haible  <bruno@clisp.org>
109738         * gnulib-tool: Reorder some statements.
109740 2006-08-28  Bruno Haible  <bruno@clisp.org>
109742         * gnulib-tool: New option --makefile-name.
109743         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
109744         $makefile_name.
109745         (func_import): Write $makefile_name to the cache file, and read it from
109746         there unless explicitly specified. Use $makefile_name as file name
109747         instead of Makefile.am. Adjust the recommendations accordingly.
109749 2006-08-28  Bruno Haible  <bruno@clisp.org>
109751         * gnulib-tool (func_verify_module): Check against misapplying patch.
109753 2006-08-28  Bruno Haible  <bruno@clisp.org>
109755         * gnulib-tool (func_relativize, func_relconcat): New functions.
109756         Give an error if --local-dir is given with --update.
109757         Remove trailing slashes from $local_gnulib_dir.
109758         (func_import): Store the relativized $local_gnulib_dir in
109759         gnulib-cache.m4, and read it from there if not specified explicitly.
109761 2006-08-28  Bruno Haible  <bruno@clisp.org>
109763         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
109764         is the current directory. Respect also $local_gnulib_dir.
109766 2006-08-28  Bruno Haible  <bruno@clisp.org>
109767             Simon Josefsson  <jas@extundo.com>
109769         BeOS portability.
109770         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
109772 2006-08-27  Jim Meyering  <jim@meyering.net>
109774         * doc/visibility.texi: Remove duplicate word: "pointer".
109776 2006-08-26  Bruno Haible  <bruno@clisp.org>
109778         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
109779         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
109780         (Makefile.am): Create inttypes.h from inttypes_.h.
109781         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
109783         * modules/imaxabs: New file.
109785         * modules/imaxdiv: New file.
109787 2006-08-26  Bruno Haible  <bruno@clisp.org>
109789         * m4/inttypes.m4: New file.
109790         * m4/_inttypes_h.m4: Remove file.
109791         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
109792         PRI_MACROS_BROKEN.
109793         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
109795         * m4/imaxabs.m4: New file.
109797         * m4/imaxdiv.m4: New file.
109799 2006-08-26  Bruno Haible  <bruno@clisp.org>
109801         * lib/inttypes_.h: New file.
109802         * lib/inttypes.h: Remove file.
109803         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
109805         * lib/imaxabs.c: New file.
109807         * lib/imaxdiv.c: New file.
109809 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109811         New config-h module, so that "make" output needn't be cluttered
109812         by -DHAVE_CONFIG_H.
109813         * MODULES.html.sh (Support for building libraries and executables):
109814         Add config-h.
109815         * modules/config-h: New file.
109816         * gnulib-tool (nl, sed_transform_lib_file): New vars.
109817         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
109818         the config-h module is used.
109820         New configmake module, so that "make" output needn't be cluttered
109821         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
109822         * MODULES.html.sh (Support for building libraries and executables):
109823         Add configmake.
109824         * modules/configmake: New file.
109826 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109828         * m4/config-h.m4: New file.
109830 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109832         * config/srclist.txt: Add elisp-comp.
109834 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109836         * MODULES.html.sh (Support for building libraries and executables):
109837         Add elisp-comp.
109838         * build-aux/elisp-comp: New file.
109839         * modules/elisp-comp: New file.
109841 2006-08-24  Bruno Haible  <bruno@clisp.org>
109843         * gnulib-tool (func_create_testdir): Use non-default values of
109844         sourcebase and m4base.
109846 2006-08-24  Bruno Haible  <bruno@clisp.org>
109848         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
109849         HTML structure.
109851 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
109853         * modules/openat (Depends-on): Add lchown.
109855 2006-08-23  Bruno Haible  <bruno@clisp.org>
109857         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
109858         of gl_LOCK_EARLY instead of gl_LOCK.
109860 2006-08-23  Bruno Haible  <bruno@clisp.org>
109862         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
109863         on OSF/1 to no.
109864         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
109866 2006-08-23  Bruno Haible  <bruno@clisp.org>
109868         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
109869         as unusable.
109871         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
109872         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
109873         (gl_LOCK): New macro.
109875 2006-08-22  Simon Josefsson  <jas@extundo.com>
109877         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
109878         to md5 module.
109880 2006-08-22  Simon Josefsson  <jas@extundo.com>
109882         * MODULES.html.sh: Add "Support for maintaining and release
109883         projects".
109885         * build-aux/gnupload: New file, from coreutils.
109887 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
109889         Avoid the need for AC_LIBSOURCES in m4 macros.
109890         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
109891         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
109892         * modules/check-version (EXTRA_DIST): Add check-version.h.
109893         * modules/crc (EXTRA_DIST): Add crc.h.
109894         * modules/des (EXTRA_DIST): Add des.h.
109895         * modules/gc (EXTRA_DIST): Add gc.h.
109896         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
109897         * modules/getline (EXTRA_DIST): Add getline.h.
109898         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
109899         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
109900         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
109901         * modules/md2 (EXTRA_DIST): Add md2.h.
109902         * modules/md4 (EXTRA_DIST): Add md4.h.
109903         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
109904         * modules/read-file (EXTRA_DIST): Add read-file.h.
109905         * modules/readline (EXTRA_DIST): Add readline.h.
109906         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
109907         rijndael-api-fst.h.
109909 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
109911         * m4/rijndael.m4 (gl_ARCFOUR):
109912         * m4/arctwo.m4 (gl_ARCTWO):
109913         * m4/check-version.m4 (gl_CHECK_VERSION):
109914         * m4/crc.m4 (gl_CRC):
109915         * m4/des.m4 (gl_DES):
109916         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
109917         * m4/gc.m4 (gl_GC):
109918         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
109919         * m4/getline.m4 (gl_FUNC_GETLINE):
109920         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
109921         * m4/hmac-md5.m4 (gl_HMAC_MD5):
109922         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
109923         * m4/md2.m4 (gl_MD2):
109924         * m4/md4.m4 (gl_MD4):
109925         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
109926         * m4/read-file.m4 (gl_FUNC_READ_FILE):
109927         * m4/readline.m4 (gl_FUNC_READLINE):
109928         * m4/rijndael.m4 (gl_RIJNDAEL):
109929         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
109930         to get the necessary .h files and whatnot.
109932 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
109934         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
109935         gnulib rather than the other way around.
109936         * config/srclistvars.sh (COREUTILS): Remove.
109938 2006-08-22  Jim Meyering  <jim@meyering.net>
109940         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
109942         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
109944 2006-08-22  Eric Blake  <ebb9@byu.net>
109946         * modules/regexprops-generic: New file.
109947         * MODULES.html.sh (Support for building documentation): List it.
109949 2006-08-22  Eric Blake  <ebb9@byu.net>
109951         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
109952         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
109953         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
109954         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
109956 2006-08-22  Bruno Haible  <bruno@clisp.org>
109958         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
109959         and lib_LTLIBRARIES like the other lib_* variables.
109961 2006-08-22  Bruno Haible  <bruno@clisp.org>
109963         * build-aux/x-to-1.in: New file, from GNU gettext.
109965 2006-08-22  Bruno Haible  <bruno@clisp.org>
109967         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
109968         <utmpx.h> exists.
109970 2006-08-22  Bruno Haible  <bruno@clisp.org>
109972         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
109973         <utmpx.h> exists.
109975 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
109977         BeOS portability.
109978         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
109979         exist.
109980         Problem reported by Bruno Haible.
109982 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
109984         Avoid the need for AC_LIBSOURCES in m4 macros.
109985         * modules/acl (EXTRA_DIST): Add acl.h.
109986         * modules/argmatch (Files): Add m4/argmatch.m4.
109987         (configure.ac): Add gl_ARGMATCH.
109988         (EXTRA_DIST): Renamed from lib_SOURCES, for
109989         consistency with the other modules.  Remove argmatch.c.
109990         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
109991         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
109992         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
109993         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
109994         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
109995         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
109996         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
109997         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
109998         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
109999         * modules/closeout (EXTRA_DIST): Add closeout.h.
110000         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
110001         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
110002         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
110003         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
110004         dirname.h; remove basename.c and stripslash.c.
110005         * modules/exclude (EXTRA_DIST): Add exclude.h.
110006         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
110007         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
110008         * modules/file-type (EXTRA_DIST): Add file-type.h.
110009         * modules/filemode (EXTRA_DIST): Add filemode.h.
110010         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
110011         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
110012         * modules/fpending (EXTRA_DIST): Add __fpending.h.
110013         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
110014         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
110015         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
110016         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
110017         * modules/getdate (EXTRA_DIST): Add getdate.c.
110018         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
110019         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
110020         * modules/getpass (EXTRA_DIST): Add getpass.h.
110021         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
110022         * modules/group-member (EXTRA_DIST): Add group-member.h.
110023         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
110024         * modules/hash (EXTRA_DIST): Add hash.h.
110025         * modules/human (EXTRA_DIST): Add human.h.
110026         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
110027         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
110028         * modules/lchown (EXTRA_DIST): Add lchown.h.
110029         * modules/long-options (EXTRA_DIST): Add long-options.h.
110030         * modules/lstat (EXTRA_DIST): Add lstat.h.
110031         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
110032         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
110033         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
110034         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
110035         * modules/memxor (EXTRA_DIST): Add memxor.h.
110036         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
110037         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
110038         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
110039         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
110040         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
110041         * modules/physmem (EXTRA_DIST): Add physmem.h.
110042         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
110043         * modules/posixver (EXTRA_DIST): Add posixver.h.
110044         * modules/quote (EXTRA_DIST): Add quote.h.
110045         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
110046         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
110047         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
110048         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
110049         regex_internal.h regexec.c.
110050         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
110051         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
110052         * modules/same (EXTRA_DIST): Add same.h.
110053         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
110054         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
110055         * modules/savedir (EXTRA_DIST): Add savedir.h.
110056         * modules/sha1 (EXTRA_DIST): Add sha1.h.
110057         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
110058         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
110059         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
110060         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
110061         * modules/strdup (EXTRA_DIST): Add strdup.h.
110062         * modules/strftime (EXTRA_DIST): Add strftime.h.
110063         * modules/strndup (EXTRA_DIST): Add strndup.h.
110064         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
110065         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
110066         * modules/time_r (EXTRA_DIST): Add time_r.h.
110067         * modules/timespec (EXTRA_DIST): Add timespec.h.
110068         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
110069         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
110070         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
110071         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
110072         * modules/userspec (EXTRA_DIST): Add userspec.h.
110073         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
110074         * modules/utimens (EXTRA_DIST): Add utimens.h.
110075         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
110076         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
110077         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
110078         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
110079         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
110080         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
110081         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
110082         * modules/yesno (EXTRA_DIST): Add yesno.h.
110084 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110086         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
110088         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
110089         * m4/dev-ino.m4, same-inode.m4: Remove.
110091         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
110092         * m4/acl.m4 (AC_FUNC_ACL):
110093         * m4/backupfile.m4 (gl_BACKUPFILE):
110094         * m4/c-strtod.m4 (gl_C99_STRTOLD):
110095         * m4/canon-host.m4 (gl_CANON_HOST):
110096         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
110097         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
110098         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
110099         * m4/cloexec.m4 (gl_CLOEXEC):
110100         * m4/close-stream.m4 (gl_CLOSE_STREAM):
110101         * m4/closeout.m4 (gl_CLOSEOUT):
110102         * m4/dirfd.m4 (gl_FUNC_DIRFD):
110103         * m4/dirname.m4 (gl_DIRNAME):
110104         * m4/exclude.m4 (gl_EXCLUDE):
110105         * m4/exitfail.m4 (gl_EXITFAIL):
110106         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
110107         * m4/file-type.m4 (gl_FILE_TYPE):
110108         * m4/filemode.m4 (gl_FILEMODE):
110109         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
110110         * m4/fpending.m4 (gl_FUNC_FPENDING):
110111         * m4/fprintftime.m4 (gl_FPRINTFTIME):
110112         * m4/fts.m4 (gl_FUNC_FTS):
110113         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
110114         * m4/getdate.m4 (gl_GETDATE):
110115         * m4/gethrxtime.m4 (gl_GETHRXTIME):
110116         * m4/getpagesize.m4 (gl_GETPAGESIZE):
110117         * m4/getpass.m4 (gl_FUNC_GETPASS):
110118         * m4/gettime.m4 (gl_GETTIME):
110119         * m4/getugroups.m4 (gl_GETUGROUPS):
110120         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
110121         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
110122         * m4/hard-locale.m4 (gl_HARD_LOCALE):
110123         * m4/hash.m4 (gl_HASH):
110124         * m4/idcache.m4 (gl_IDCACHE):
110125         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
110126         * m4/lchown.m4 (gl_FUNC_LCHOWN):
110127         * m4/long-options.m4 (gl_LONG_OPTIONS):
110128         * m4/lstat.m4 (gl_FUNC_LSTAT):
110129         * m4/md5.m4 (gl_MD5):
110130         * m4/memcasecmp.m4 (gl_MEMCASECMP):
110131         * m4/memcoll.m4 (gl_MEMCOLL):
110132         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
110133         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
110134         * m4/memxor.m4 (gl_MEMXOR):
110135         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
110136         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
110137         * m4/modechange.m4 (gl_MODECHANGE):
110138         * m4/mountlist.m4 (gl_MOUNTLIST):
110139         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
110140         * m4/openat.m4 (gl_FUNC_OPENAT):
110141         * m4/pathmax.m4 (gl_PATHMAX):
110142         * m4/physmem.m4 (gl_PHYSMEM):
110143         * m4/posixtm.m4 (gl_POSIXTM):
110144         * m4/posixver.m4 (gl_POSIXVER):
110145         * m4/quote.m4 (gl_QUOTE):
110146         * m4/quotearg.m4 (gl_QUOTEARG):
110147         * m4/readtokens.m4 (gl_READTOKENS):
110148         * m4/readutmp.m4 (gl_READUTMP):
110149         * m4/regex.m4 (gl_REGEX):
110150         * m4/safe-read.m4 (gl_SAFE_READ):
110151         * m4/safe-write.m4 (gl_SAFE_WRITE):
110152         * m4/same.m4 (gl_SAME):
110153         * m4/save-cwd.m4 (gl_SAVE_CWD):
110154         * m4/savedir.m4 (gl_SAVEDIR):
110155         * m4/settime.m4 (gl_SETTIME):
110156         * m4/sha1.m4 (gl_SHA1):
110157         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
110158         * m4/stat-macros.m4 (gl_STAT_MACROS):
110159         * m4/stat-time.m4 (gl_STAT_TIME):
110160         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
110161         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
110162         * m4/strdup.m4 (gl_FUNC_STRDUP):
110163         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
110164         * m4/strndup.m4 (gl_FUNC_STRNDUP):
110165         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
110166         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
110167         * m4/time_r.m4 (gl_TIME_R):
110168         * m4/timespec.m4 (gl_TIMESPEC):
110169         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
110170         * m4/unlinkdir.m4 (gl_UNLINKDIR):
110171         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
110172         * m4/userspec.m4 (gl_USERSPEC):
110173         * m4/utimecmp.m4 (gl_UTIMECMP):
110174         * m4/utimens.m4 (gl_UTIMENS):
110175         * m4/xalloc.m4 (gl_XALLOC):
110176         * m4/xgetcwd.m4 (gl_XGETCWD):
110177         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
110178         * m4/xreadlink.m4 (gl_XREADLINK):
110179         * m4/xstrtod.m4 (gl_XSTRTOD):
110180         * m4/yesno.m4 (gl_YESNO):
110181         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
110182         to get the necessary .h files and whatnot.
110184 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
110185             Bruno Haible  <bruno@clisp.org>
110187         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
110188         /bin/sh understanding of '!' conditional negation.
110190 2006-08-21  Jim Meyering  <jim@meyering.net>
110192         * modules/openat (Depends-on): Really alphabetize.
110194         * modules/acl (Depends-on): Add error and quote.
110196         * check-module (find_included_lib_files): Add at-func.c to the
110197         ok-to-include-more-than-once white list.
110199         * modules/openat (Depends-on): Add lstat.  Alphabetize.
110201 2006-08-21  Bruno Haible  <bruno@clisp.org>
110203         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110204         Emit a pkgdata_DATA variable only if some snippets add contents to it.
110205         Reported by Martin Lambers <marlam@marlam.de>.
110207 2006-08-21  Bruno Haible  <bruno@clisp.org>
110209         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
110210         specify an installation location, don't emit a noinst_LIBRARIES or
110211         noinst_LTLIBRARIES assignment.
110213 2006-08-21  Bruno Haible  <bruno@clisp.org>
110215         BeOS portability.
110216         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
110217         BeOS has mbrtowc() but no <wctype.h>.
110219 2006-08-21  Bruno Haible  <bruno@clisp.org>
110221         BeOS portability.
110222         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
110223         exist.
110225 2006-08-21  Bruno Haible  <bruno@clisp.org>
110227         BeOS portability.
110228         * lib/mbchar.h: Include <wctype.h> only if it exists.
110230 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110232         Remove files that are no longer needed by their respective modules.
110233         * m4/obstack.m4: Remove.
110234         * m4/strerror_r.m4: Remove.
110235         * m4/uint32_t.m4: Remove.
110236         * m4/uintptr_t.m4: Remove.
110237         * m4/ullong_max.m4: Remove.
110238         * m4/xstrtoimax.m4: Remove.
110239         * m4/xstrtoumax.m4: Remove.
110241         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
110242         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
110243         dependencies now capture this.
110245         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
110246         Do not use AC_LIBSOURCES, since gnulib modules now do this.
110247         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
110248         * m4/human.m4 (gl_HUMAN): Likewise.
110249         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
110250         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
110252         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
110254         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
110255         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
110256         stdint.
110257         * m4/human.m4 (gl_HUMAN): Likewise.
110258         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
110259         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
110260         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
110261         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
110262         * m4/xstrtol (gl_XSTRTOL): Likewise.
110264         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
110265         AC_TYPE_LONG_LONG_INT.
110266         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
110267         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
110268         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
110269         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
110271         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
110272         on stdbool.
110274         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
110275         (gl_PREREQ_XSTRTOUL): Remove.
110277         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
110279         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
110280         mode.
110282 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110284         Add and change modules to make it easier for coreutils to use
110285         gnulib-tool.
110286         * modules/backupfile (Files): Remove m4/d-ino.m4.
110287         (Depends-on): Add d-ino.
110288         * modules/cycle-check (Depends-on): Add stdint.
110289         (lib_SOURCES): Add cycle-check.h.
110290         * modules/d-ino: New module.
110291         * modules/d-type: New module.
110292         * modules/error (Files): Remove m4/strerror_r.m4.
110293         * modules/filemode (Files): Add m4/st_dm_mode.m4.
110294         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
110295         m4/inttypes_h.m4, m4/uintmax_t.m4.
110296         (Depends-on): Add stdint.
110297         (lib_SOURCES): Add fsusage.h.
110298         * modules/getcwd (Files): Remove d-ino.m4.
110299         (Depends-on): Add d-ino.
110300         * modules/getndelim2 (Depends-on): Add stdint.
110301         * modules/glob (Files): Remove m4/d-type.m4.
110302         (Depends-on): Add d-type.
110303         * modules/host-os: New module.
110304         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
110305         m4/inttypes_h.m4, m4/uintmax_t.m4.
110306         * Depends-on: Add stdint.
110307         (lib_SOURCES): Add human.h.
110308         * modules/inttostr (Files): Remove m4/intmax_t.m4,
110309         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
110310         m4/uintmax_t.m4, m4/ulonglong.m4.
110311         (Depends-on): Add stdint.
110312         (EXTRA_DIST): Add inttostr.h.
110313         * modules/lchmod: New module.
110314         * modules/link-follow: New module.
110315         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
110316         (Depends-on): Add lchmod.
110317         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
110318         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
110319         (Depends-on): Add stdint.
110320         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
110321         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
110322         (Depends-on): Add stdint.
110323         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
110324         * modules/perl: New module.
110325         * modules/regex (Depends-on): Add stdint.
110326         * modules/rmdir-errno: New module.
110327         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110328         m4/intmax_t.m4.
110329         (Depends-on): Add stdint.
110330         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110331         m4/uintmax_t.m4.
110332         (Depends-on): Add stdint.
110333         * modules/unlink-busy: New module.
110334         * modules/utimecmp (Depends-on): Add stdint.
110335         * modules/uptime: New module.
110336         * modules/winsz-ioctl: New module.
110337         * modules/winsz-termios: New module.
110338         * modules/xnanosleep (Depends-on): Add nanosleep.
110339         * modules/ullong_max: Remove.
110340         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
110341         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
110342         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
110343         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
110344         (Depends-on): Add inttypes.
110345         (lib_SOURCES): Add xstrtol.h.
110346         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
110347         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
110348         * MODULES.html.sh: Move 'assert' into the assert section.
110349         Move 'dummy' into the linking section.
110350         Remove ullong_max.
110351         Add section for compatibility checks for POSIX:2001 functions,
110352         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
110353         winsz-ioctl, and winsz-termios into it.
110354         Add lchmod.
110355         Add top-level Misc section and put host-os, perl, and uptime
110356         into it.
110358 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110360         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
110361         now assume the stdint module.  Do not include inttypes.h.
110362         * lib/fsusage.h: Likewise.
110363         * lib/getndelim2.c: Likewise.
110364         * lib/human.h: Likewise.
110365         * lib/inttostr.h: Likewise.
110366         * lib/obstack.c: Likewise.
110367         * lib/regex_internal.h: Likewise.
110368         * lib/tempname.c: Likewise.
110369         * lib/utimecmp.c: Likewise.
110370         * lib/xstrtol.h: Likewise.
110372         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
110374         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
110375         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
110376         * lib/xtime.h: Likewise.
110378 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110380         * modules/openat (Files): Add lib/fchmodat.c.
110381         Fixes problem reported by Jay Youngman.
110383 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110385         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
110386         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
110388 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
110389             Bruno Haible  <bruno@clisp.org>
110391         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
110392         and is a script that invokes bison. Tighten the code. Add comments.
110394 2006-08-18  Jim Meyering  <jim@meyering.net>
110396         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
110397         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
110398         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
110399         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
110401 2006-08-18  Bruno Haible  <bruno@clisp.org>
110403         * modules/bison-i18n: New file.
110404         * MODULES.html.sh (Internationalization functions): Add it.
110406 2006-08-18  Bruno Haible  <bruno@clisp.org>
110408         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
110409         sys/statvfs.h. When getmntinfo was found, check its declaration and
110410         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
110412 2006-08-18  Bruno Haible  <bruno@clisp.org>
110414         * m4/bison-i18n.m4: New file, from bison.
110416 2006-08-18  Bruno Haible  <bruno@clisp.org>
110418         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
110419         (ME_DUMMY): Treat "kernfs" as a dummy.
110420         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
110422 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110424         Update from coreutils.
110426         2006-08-15  Jim Meyering  <jim@meyering.net>
110428         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
110430         2006-01-17  Jim Meyering  <jim@meyering.net>
110432         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
110434         2006-01-11  Jim Meyering  <jim@meyering.net>
110436         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
110437         Check for the lchmod function.
110439 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110441         Update from coreutils.
110443         * lib/__fpending.h: Add copyright notice.
110444         * lib/fprintftime.h: Likewise.
110445         * lib/savedir.c: Use (C) in copyright notice.
110446         * lib/savedir.h: Likewise.
110448         2006-08-15  Jim Meyering  <jim@meyering.net>
110450         * lib/at-func.c: New file, with the logic of all emulated at-functions.
110451         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
110452         in support of the EXPECTED_ERRNO macro.
110453         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
110454         definitions.  Instead, define the appropriate symbols and include
110455         "at-func.c".
110456         * lib/mkdirat.c (mkdirat): Likewise.
110457         * lib/fchmodat.c (fchmodat): Likewise.
110458         (ENOSYS): Remove definition.
110459         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
110460         it.  Don't include "unistd--.h" -- it wasn't ever used.
110462         2006-01-17  Jim Meyering  <jim@meyering.net>
110464         Rewrite fts.c not to change the current working directory,
110465         by using openat, fstatat, fdopendir, etc..
110467         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
110468         (HAVE_OPENAT_SUPPORT): Define.
110469         [_LIBC] (fchdir): Don't undef or define; no longer used.
110470         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
110471         Now, this `function' always succeeds, and consumes its file descriptor
110472         parameter -- so callers must not close such FDs.  Update callers.
110473         (diropen_fd, opendirat, cwd_advance_fd): New functions.
110474         (diropen): Add parameter, SP.  Adjust all callers.
110475         Implement using diropen_fd, rather than open.
110476         (fts_open): Initialize new member, fts_cwd_fd.
110477         Remove fts_rft-setting code.
110478         (fts_close): Close fts_cwd_fd, if necessary.
110479         (__opendir2): Define in terms of opendir or opendirat,
110480         depending on whether the FST_NOCHDIR flag is set.
110481         (fts_build): Since fts_safe_changedir consumes its FD, and since
110482         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
110483         and close the dup'd file descriptor upon failure.
110484         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
110485         (fts_safe_changedir): Tweak semantics to reflect that this function
110486         now calls cwd_advance_fd and hence consumes its FD argument.
110487         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
110488         [struct FTS] (fts_rft): Remove now-unused member.
110489         [struct FTS] (fts_cycle.state): Improve comment.
110491         * lib/openat.c (openat_needs_fchdir): New function.
110492         * lib/openat.h (openat_needs_fchdir): Declare it.
110494 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
110496         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
110497         Problem and fix reported by Pádraig Brady in
110498         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
110500 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110502         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
110504 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110506         * lib/memcoll.c (memcoll): Optimize for the common case where the
110507         arguments are bytewise equal.
110509 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110511         * doc/regexprops-generic.texi: Add a copyright notice.
110513 2006-08-15  Bruno Haible  <bruno@clisp.org>
110515         * modules/tmpdir (License): Change to LGPL.
110517 2006-08-15  Bruno Haible  <bruno@clisp.org>
110519         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
110520         module.
110522 2006-08-14  Simon Josefsson  <jas@extundo.com>
110524         * config/srclist.txt: Add gnupload.
110526 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110528         Change copyright notice from LGPL 2 to GPL 2, since that's the
110529         standard form used in the gnulib repository.
110530         * tests/test-lock.c: Likewise.
110531         * tests/test-stdint.c: Likewise.
110532         * tests/test-tls.c: Likewise.
110534         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
110535         prelude-manager.  User shorter URLs for GNU projects, without '?'.
110536         Add copyright notice.
110538         * check-module: Add copyright notice.  Output a copyright
110539         notice if "--version" is specified.
110540         * modules/COPYING: New file.
110541         * tests/test-getaddrinfo.c: Add copyright notice.
110542         * tests/test-verify.c: Likewise.
110544 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110546         Change copyright notice from LGPL 2 to GPL 2, since that's the
110547         standard form used in the gnulib repository.
110548         * lib/lock.c: LGPL -> GPL.
110549         * lib/lock.h: Likewise.
110550         * lib/strnlen1.c: Likewise.
110551         * lib/strnlen1.h: Likewise.
110552         * lib/tls.c: Likewise.
110553         * lib/tls.h: Likewise.
110554         * lib/tmpdir.c: Likewise.
110556         * lib/TODO: Remove; this belongs only in coreutils.
110558 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110560         Add copyright notices to long-enough files that lack them, since
110561         otherwise the files aren't clearly free.  Use the same notice that
110562         getdate.texi already uses.
110563         * doc/alloca-opt.texi: Add copyright notice.
110564         * doc/alloca.texi: Likewise.
110565         * doc/ctime.texi: Likewise.
110566         * doc/functions.texi: Likewise.
110567         * doc/gcd.texi: Likewise.
110568         * doc/gnulib-tool.texi: Likewise.
110569         * doc/inet_ntoa.texi: Likewise.
110570         * doc/visibility.texi: Likewise.
110572         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
110573         * doc/quote.texi: Add copyright notice.
110575         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
110576         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
110577         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
110578         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
110579         is now obsolete, and give a pointer to the Sun list.
110580         Add copyright notice.
110582 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110584         * config/srclistvars.sh: Add copyright notice.
110586 2006-08-14  Eric Blake  <ebb9@byu.net>
110588         Import the following change from libc:
110590         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
110592         Upstream bug 2997.
110593         * lib/misc/error.c: Add space between program name and message if file
110594         name is missing.
110596 2006-08-12  Karl Berry  <karl@gnu.org>
110598         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
110599         remove, these originate in gnulib now.
110601 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110603         * doc/Makefile (standards.info standards.html standards.dvi):
110604         Also depend on make-stds.texi.
110606 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
110608         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
110609         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
110611         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
110612         in wchar_t.  Problem reported by Eric Blake.
110614         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
110615         LEN is smaller than SIZE.  Suggested by Bruno Haible.
110616         Also, help the compiler to keep LEN in a register.
110618 2006-08-11  Eric Blake  <ebb9@byu.net>
110620         * users.txt: Sort.  Add tar.
110622 2006-08-11  Bruno Haible  <bruno@clisp.org>
110624         * users.txt: New file.
110626 2006-08-11  Bruno Haible  <bruno@clisp.org>
110628         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
110629         before <wchar.h>. Needed for OSF/1 and BSD/OS.
110631 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
110633         * modules/snprintf (Depends-on): Remove minmax.
110634         (Maintainer): Add self and Bruno.
110636 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
110638         * lib/.cppi-disable: Add snprintf.h, socket_.h.
110639         * lib/snprintf.c: Include <errno.h> and <limits.h>.
110640         (EOVERFLOW): Define if the system does not.
110641         Do not include "minmax.h"; it wasn't used.
110642         (snprintf): Don't assume size_t promotes to an unsigned type.
110643         Fix bug when generated string was too long for the buffer: the
110644         buffer's contents are supposed to be the initial prefix of the
110645         output.  Don't assume vasnprintf returns EOVERFLOW if the size
110646         exceeds INT_MAX; do the check ourselves.
110648         Import the following changes from libc:
110650         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
110652         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
110653         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
110654         set wc to the byte which couldn't be converted.
110655         (re_string_reconstruct): Don't clear valid_raw_len before calling
110656         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
110657         tip_context using re_string_context_at.
110659         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
110661         * lib/posix/regex.h: g++ still cannot handled [restrict].
110663         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
110665         * lib/posix/regex.h: Remove special handling for VMS.
110667 2006-08-10  Jim Meyering  <jim@meyering.net>
110669         * modules/same-inode: New module.
110670         * modules/dev-ino: New module.
110671         * modules/cycle-check: Depend on these modules, rather than simply
110672         including their .h files.
110673         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
110674         required via m4/cycle-check.m4.
110675         * modules/same: Depend on new same-inode module, rather than
110676         including same-inode.h.
110677         * modules/chdir-safer: New file.
110679         * modules/chown (Depends-on): Add stat-macros.
110681 2006-08-10  Jim Meyering  <jim@meyering.net>
110683         * m4/cycle-check.m4: New file.
110684         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
110685         * m4/dev-ino.m4, m4/same-inode.m4: New files.
110687 2006-08-10  Eric Blake  <ebb9@byu.net>
110689         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
110690         in from original proposal.
110692 2006-08-10  Eric Blake  <ebb9@byu.net>
110693         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
110695         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
110696         namespace.
110698 2006-08-10  Bruno Haible  <bruno@clisp.org>
110700         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
110701         as well.
110703 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110705         Sync from coreutils.
110707         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
110709         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
110710         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
110712 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110714         * modules/restrict: Remove; no longer needed now that we assume
110715         Autoconf 2.59 or later.
110716         * MODULES.html.sh: Remove 'restrict'.
110717         * modules/argp (Depends-on): Remove 'restrict'.
110718         * modules/base64 (Depends-on): Likewise.
110719         * modules/gc (Depends-on): Likewise.
110720         * modules/getaddrinfo (Depends-on): Likewise.
110721         * modules/glob (Depends-on): Likewise.
110722         * modules/inet_ntop (Depends-on): Likewise.
110723         * modules/inet_pton (Depends-on): Likewise.
110724         * modules/memxor (Depends-on): Likewise.
110725         * modules/regex (Depends-on): Likewise.
110726         * modules/strtok_r (Depends-on): Likewise.
110727         * modules/time_r (Depends-on): Likewise.
110729 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110731         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
110732         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
110733         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
110734         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
110735         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
110736         * m4/memxor.m4 (gl_MEMXOR): Likewise.
110737         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
110738         gl_C_RESTRICT replaced by AC_C_RESTRICT.
110740         Merge from coreutils.
110741         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
110742         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
110743         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
110744         * m4/time_r.m4 (gl_TIME_R): Likewise.
110746 2006-08-09  Karl Berry  <karl@gnu.org>
110748         * config/srclist.txt: no more gettext-tools, per Bruno.
110750 2006-08-08  Eric Blake  <ebb9@byu.net>
110752         * modules/verror: New module.
110753         * MODULES.html.sh: Document it.
110755 2006-08-08  Eric Blake  <ebb9@byu.net>
110757         * lib/verror.h, lib/verror.c: New files.
110759 2006-08-08  Eric Blake  <ebb9@byu.net>
110761         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
110762         verror_at_line output complies with GNU Coding Standards even when
110763         file is NULL.
110765 2006-08-07  Bruno Haible  <bruno@clisp.org>
110767         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
110768         versions of AIX.
110769         Reported by Ralf Wildenhues.
110771 2006-08-07  Bruno Haible  <bruno@clisp.org>
110773         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
110774         in an AC_DEFUN. Needed so that the autoconf snippets can use
110775         AC_REQUIRE.
110777 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110779         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110780         Initialize pkgdata_DATA.
110781         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
110782         overriding it.
110784 2006-08-06  Eric Blake  <ebb9@byu.net>
110786         * lib/error.h: Fold in some upstream changes from glibc.
110787         * lib/error.c: Likewise.
110789 2006-08-04  Bruno Haible  <bruno@clisp.org>
110791         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110792         Make the mostlyclean-local rule depend on mostlyclean-generic.
110793         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
110795 2006-07-31  Bruno Haible  <bruno@clisp.org>
110797         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
110798         <stdlib.h>, <string.h>.
110800 2006-07-30  Bruno Haible  <bruno@clisp.org>
110802         * modules/readlink (License): Change to LGPL.
110804 2006-07-30  Bruno Haible  <bruno@clisp.org>
110806         * modules/javaversion (Makefile.am): Distribute javaversion.java and
110807         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
110808         set PKGDATADIR to point to it.
110810 2006-07-30  Bruno Haible  <bruno@clisp.org>
110812         * modules/csharpexec (configure.ac): Comment out macro invocation.
110813         * modules/javaexec (configure.ac): Likewise.
110814         * modules/javacomp-script (configure.ac): Likewise.
110816         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
110818 2006-07-30  Bruno Haible  <bruno@clisp.org>
110820         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
110821         linked-list.
110823 2006-07-30  Bruno Haible  <bruno@clisp.org>
110825         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
110827 2006-07-30  Bruno Haible  <bruno@clisp.org>
110829         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110830         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
110831         get removed.
110833 2006-07-29  Bruno Haible  <bruno@clisp.org>
110835         Make it possible for gnulib-tool to work with locally modified or
110836         augmented gnulib repositories.
110837         * gnulib-tool (func_usage): Document --local-dir option.
110838         (local_gnulib_dir): New variable.
110839         Handle --local-dir option.
110840         (func_lookup_file): New function.
110841         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
110842         (func_get_description, func_get_filelist, func_get_description,
110843         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
110844         func_get_automake_snippet, func_get_include_directive,
110845         func_get_license, func_get_maintainer): Use func_lookup_file.
110846         (func_import, func_create_testdir): Use func_lookup_file.
110848 2006-07-29  Bruno Haible  <bruno@clisp.org>
110850         * modules/setenv (Depends-on): Add unistd.
110852 2006-07-29  Bruno Haible  <bruno@clisp.org>
110854         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
110856 2006-07-29  Bruno Haible  <bruno@clisp.org>
110858         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
110860 2006-07-29  Bruno Haible  <bruno@clisp.org>
110862         * gnulib-tool (import, update): If there is no Makefile.am, look at
110863         aclocal.m4, instead of bailing out.
110865 2006-07-29  Bruno Haible  <bruno@clisp.org>
110867         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
110868         Categorize the options by when they are useful.
110870 2006-07-29  Bruno Haible  <bruno@clisp.org>
110872         * gnulib-tool (func_usage): Document option --no-libtool.
110873         Handle option --no-libtool.
110874         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
110875         for changed semantics of $libtool variable.
110876         (func_import): Likewise. If libtool is not used, show this through
110877         an option --no-libtool.
110878         (func_create_testdir): Update.
110880 2006-07-29  Bruno Haible  <bruno@clisp.org>
110882         * gnulib-tool (func_import): Extend error message about missing
110883         --doc-base.
110885 2006-07-29  Bruno Haible  <bruno@clisp.org>
110887         * gnulib-tool (func_import): Don't create the $docbase directory if
110888         there is no file to store there.
110890 2006-07-29  Bruno Haible  <bruno@clisp.org>
110892         * gnulib-tool (autoconf_minversion): If a --dir option is given and
110893         relevant, look for configure.ac there, not in the current directory.
110894         Also use a simple search for AC_PREREQ, not "autoconf --trace".
110896 2006-07-29  Bruno Haible  <bruno@clisp.org>
110898         * gnulib-tool (SORT): New variable.
110899         (func_usage): Undocument --assume-autoconf option.
110900         Remove --assume-autoconf option handling.
110901         (autoconf_minversion): Determine from the contents of configure.ac.
110902         (func_import): Remove autoconf_minversion handling.
110903         Suggested by Eric Blake.
110905 2006-07-29  Bruno Haible  <bruno@clisp.org>
110907         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
110909 2006-07-29  Bruno Haible  <bruno@clisp.org>
110911         * config/srclist.txt (*setenv.[ch]): Remove rules.
110913 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110915         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
110917 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110919         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
110920         arpa/inet.h.
110922 2006-07-28  Simon Josefsson  <jas@extundo.com>
110924         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
110925         * modules/inet_pton (Depends-on): Likewise.
110927 2006-07-28  Simon Josefsson  <jas@extundo.com>
110929         * m4/netinet_in_h.m4: New file.
110931 2006-07-28  Simon Josefsson  <jas@extundo.com>
110933         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
110934         #include's.
110936 2006-07-28  Simon Josefsson  <jas@extundo.com>
110938         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
110939         #include's.
110941 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
110943         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
110944         setgid on directories only if they set these bits.
110945         * lib/modechange.h: Remove obsolete comment about masks.
110947 2006-07-28  Eric Blake  <ebb9@byu.net>
110949         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
110950         macro expansion.
110952 2006-07-28  Bruno Haible  <bruno@clisp.org>
110954         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
110956 2006-07-28  Bruno Haible  <bruno@clisp.org>
110958         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
110960 2006-07-28  Bruno Haible  <bruno@clisp.org>
110962         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
110963         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
110964         Define fallbacks.
110965         Avoids link error on FreeBSD 4.x.
110966         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
110968         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
110969         encoding.
110970         * lib/mbswidth.c (iswcntrl): Likewise.
110972 2006-07-27  Bruno Haible  <bruno@clisp.org>
110974         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
110975         test.
110977 2006-07-27  Bruno Haible  <bruno@clisp.org>
110979         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
110980         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
110981         defined.
110983 2006-07-26  Eric Blake  <ebb9@byu.net>
110985         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
110987 2006-07-26  Eric Blake  <ebb9@byu.net>
110989         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
110990         like mingw that lack mkstemp.
110991         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
110992         avoid compilation warning on mingw.
110994 2006-07-26  Bruno Haible  <bruno@clisp.org>
110996         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
110997         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
110998         INT_FAST*_MIN, INTPTR_MIN.
111000 2006-07-25  Bruno Haible  <bruno@clisp.org>
111002         * modules/version-etc (Depends-on): Add stdarg.
111004 2006-07-25  Bruno Haible  <bruno@clisp.org>
111006         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
111007         complex commands.
111009 2006-07-25  Bruno Haible  <bruno@clisp.org>
111011         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
111012         defined in <stdarg.h> or config.h.
111014 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
111016         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
111017         (gl_STDIO_SAFER): Remove.
111019 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
111021         * MODULES.html.sh (File stream based Input/Output):
111022         Add fopen-safer, tmpfile-safer; remove stdio-safer.
111023         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
111024         * modules/fopen-safer, modules/tmpfile-safer: New files.
111025         * modules/stdio-safer: Remove.
111027 2006-07-24  Bruno Haible  <bruno@clisp.org>
111029         * modules/tmpdir: New file.
111030         * MODULES.html.sh (File system functions): Add it.
111032 2006-07-24  Bruno Haible  <bruno@clisp.org>
111034         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
111035         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
111037 2006-07-24  Bruno Haible  <bruno@clisp.org>
111039         * modules/clean-temp: New file.
111041 2006-07-24  Bruno Haible  <bruno@clisp.org>
111043         * m4/tmpdir.m4: New file, from GNU gettext.
111045 2006-07-24  Bruno Haible  <bruno@clisp.org>
111047         * lib/tmpdir.h: New file, from GNU gettext.
111048         * lib/tmpdir.c: New file, from GNU gettext.
111050 2006-07-24  Bruno Haible  <bruno@clisp.org>
111052         * lib/clean-temp.h: New file, from GNU gettext.
111053         * lib/clean-temp.c: New file, from GNU gettext.
111055 2006-07-23  Eric Blake  <ebb9@byu.net>
111057         * modules/stdio-safer (Files): Add tmpfile-safer.c.
111058         (Depends-on): Add binary-io.
111060 2006-07-23  Eric Blake  <ebb9@byu.net>
111062         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
111064 2006-07-23  Eric Blake  <ebb9@byu.net>
111066         * lib/tmpfile-safer.c: New file.
111067         * lib/stdio-safer.h (fopen_safer): Add prototype.
111068         * lib/stdio--.h (tmpfile): Make safer.
111070 2006-07-23  Bruno Haible  <bruno@clisp.org>
111072         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
111073         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
111074         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
111075         gl_linked_remove_at): Use it.
111077 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111078         and Simon Josefsson <jas@extundo.com>
111080         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
111082         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
111084 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111086         * modules/close-stream: New file.
111087         * modules/closeout (Description): Make it clear that it exits
111088         with a diagnostic on error.
111089         (Depends-on): Add close-stream.  Remove fpending, stdbool.
111090         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
111092 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111094         * m4/close-stream.m4: New file.
111096 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111098         * lib/close-stream.c, lib/close-stream.h: New files.
111100 2006-07-22  Bruno Haible  <bruno@clisp.org>
111102         Merge from GNU gettext 0.15.
111104         2006-05-01  Bruno Haible  <bruno@clisp.org>
111106                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
111108         2006-07-22  Bruno Haible  <bruno@clisp.org>
111110                 * modules/javaversion: New file.
111111                 * MODULES.html.sh (Java): Add javaversion.
111113         2006-03-12  Bruno Haible  <bruno@clisp.org>
111115                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
111117         2005-12-04  Bruno Haible  <bruno@clisp.org>
111119                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
111120                 (untested).
111122         2006-06-21  Bruno Haible  <bruno@clisp.org>
111124                 Avoid warnings from recent versions of mcs.
111125                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
111126                 -o, -L, -r any more. Use options documented since mcs-1.0
111127                 instead. Similarly for -g.
111129         2005-12-04  Bruno Haible  <bruno@clisp.org>
111131                 * build-aux/csharpcomp.sh.in: Suffix for resources is
111132                 .resources, not .resource.
111134         2005-07-09  Bruno Haible  <bruno@clisp.org>
111136                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
111137                 add a .dll suffix.
111138                 Reported by Mark Junker <mjscod@gmx.de>.
111140         2006-07-22  Bruno Haible  <bruno@clisp.org>
111142                 * modules/gettext: Upgrade to gettext-0.15.
111143                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
111144                 m4/visibility.m4.
111145                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
111147 2006-07-22  Bruno Haible  <bruno@clisp.org>
111149         Merge from GNU gettext 0.15.
111151         2006-03-25  Bruno Haible  <bruno@clisp.org>
111153                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
111155         2006-07-21  Bruno Haible  <bruno@clisp.org>
111157                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
111158                 "1.1".
111160         2006-05-09  Bruno Haible  <bruno@clisp.org>
111162                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
111163                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
111164                 for the conftestver execution.
111166         2006-05-01  Bruno Haible  <bruno@clisp.org>
111168                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
111169                 optional target-version argument. Verify that the compiler
111170                 groks source of the specified source-version, or add -source
111171                 option as necessary. Verify that the compiler produces
111172                 bytecode in the specified target-version, or add -target and
111173                 -source options as necessary. Make the result of the test
111174                 available as variable CONF_JAVAC. Also log error output in
111175                 config.log.
111177         2006-03-11  Bruno Haible  <bruno@clisp.org>
111179                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
111181         2006-05-09  Bruno Haible  <bruno@clisp.org>
111183                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
111184                 CLASSPATH_SEPARATOR to a semicolon.
111186         2006-03-12  Bruno Haible  <bruno@clisp.org>
111188                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
111189                 available as variable CONF_JAVA, for subsequent autoconf
111190                 tests. Also log error output in config.log.
111192         2006-07-19  Bruno Haible  <bruno@clisp.org>
111194                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
111195                 that getline works on glibc2 systems. Needed to avoid trouble
111196                 in relocatable.c.
111197                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
111199         2005-12-04  Bruno Haible  <bruno@clisp.org>
111201                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
111202                 launcher (untested).
111204         2005-12-04  Bruno Haible  <bruno@clisp.org>
111206                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
111208         2006-07-22  Bruno Haible  <bruno@clisp.org>
111210                 * gettext.m4: Update from GNU gettext-0.15.
111211                 * nls.m4: Likewise.
111212                 * po.m4: Likewise.
111213                 * inttypes-pri.m4: Likewise.
111214                 * inttypes-h.m4: Renamed from inttypes.m4.
111215                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
111217 2006-07-22  Bruno Haible  <bruno@clisp.org>
111219         Merge from GNU gettext 0.15.
111221         2005-07-05  Bruno Haible  <bruno@clisp.org>
111223                 * printf-args.c (printf_fetchargs): Work around broken
111224                 definition of wint_t on mingw.
111226         2005-02-12  Bruno Haible  <bruno@clisp.org>
111228                 * xallocsa.h: Add extern "C" for C++.
111230         2006-05-17  Bruno Haible  <bruno@clisp.org>
111232                 Cygwin portability.
111233                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
111235         2006-04-30  Bruno Haible  <bruno@clisp.org>
111237                 * progreloc.c: Include <mach-o/dyld.h> if available.
111238                 (find_executable): Use _NSGetExecutablePath when possible.
111240         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111242                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
111243                 function.
111245         2005-12-29  Bruno Haible  <bruno@clisp.org>
111247                 * progreloc.c (set_program_name_and_installdir): Fix
111248                 compilation error.
111250         2005-12-04  Bruno Haible  <bruno@clisp.org>
111252                 Cygwin portability.
111253                 * progreloc.c: Include <windows.h> also on Cygwin.
111254                 (find_executable): Add support for Cygwin.
111255                 (set_program_name_and_installdir): Handle also platforms with
111256                 nonempty EXEEXT.
111258         2006-07-11  Bruno Haible  <bruno@clisp.org>
111260                 * javacomp.c: Fix a comment.
111261                 Reported by Jim Meyering.
111263         2006-04-30  Bruno Haible  <bruno@clisp.org>
111265                 * javacomp.h (compile_java_class): Add source_version,
111266                 target_version arguments.
111267                 * javacomp.c: Rewritten to choose only a compiler that
111268                 respects the specified source_version and target_version.
111270         2006-06-27  Bruno Haible  <bruno@clisp.org>
111272                 Assume correct S_ISDIR macro.
111273                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
111275         2006-07-22  Bruno Haible  <bruno@clisp.org>
111277                 * javaversion.h: New file, from GNU gettext.
111278                 * javaversion.c: New file, from GNU gettext.
111279                 * javaversion.java: New file, from GNU gettext.
111280                 * javaversion.class: New file, from GNU gettext.
111282         2006-05-17  Bruno Haible  <bruno@clisp.org>
111284                 Cygwin portability.
111285                 * javaexec.c (execute_java_class): Test for jview program
111286                 also on Cygwin.
111288         2006-04-09  Bruno Haible  <bruno@clisp.org>
111290                 * fatal-signal.c: Don't include string.h.
111291                 (at_fatal_signal): Use a copying loop instead of memcpy.
111293         2005-12-04  Bruno Haible  <bruno@clisp.org>
111295                 * csharpexec.c: Add support for 'clix' launcher (untested).
111296                 (execute_csharp_using_sscli): New function.
111297                 (execute_csharp_program): Call it.
111299         2006-06-21  Bruno Haible  <bruno@clisp.org>
111301                 Avoid warnings from recent versions of mcs.
111302                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
111303                 -o, -L, -r any more. Use options documented since mcs-1.0
111304                 instead. Similarly for -g.
111306         2005-07-09  Bruno Haible  <bruno@clisp.org>
111308                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
111309                 add a .dll suffix.
111310                 Reported by Mark Junker <mjscod@gmx.de>.
111312         2006-06-17  Bruno Haible  <bruno@clisp.org>
111314                 * config.charset: Update for NetBSD 3.0.
111316         2006-05-17  Bruno Haible  <bruno@clisp.org>
111318                 Cygwin portability.
111319                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
111321         2006-05-16  Bruno Haible  <bruno@clisp.org>
111323                 * localcharset.c [CYGWIN]: Include <windows.h>.
111324                 (get_charset_aliases): For Cygwin, return the same CPxxx
111325                 aliases list as under WIN32.
111326                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
111327                 the environment variables. Fall back to GetACP().
111329         2006-04-05  Bruno Haible  <bruno@clisp.org>
111331                 * config.charset: Update Juan Manuel Guerrero's address.
111333         2005-02-12  Bruno Haible  <bruno@clisp.org>
111335                 * allocsa.h: Add extern "C" for C++.
111337         2005-02-10  Bruno Haible  <bruno@clisp.org>
111339                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
111340                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
111342         2006-07-22  Bruno Haible  <bruno@clisp.org>
111344                 * gettext.h: Update to GNU gettext-0.15.
111346 2006-07-22  Bruno Haible  <bruno@clisp.org>
111348         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
111349         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
111350         lib-prefix.m4, longdouble.m4, ssize_t.m4.
111352 2006-07-21  Eric Blake  <ebb9@byu.net>
111354         * modules/stdlib-safer: New file.
111355         * MODULES.html.sh (File stream based Input/Output): Add
111356         stdlib-safer.
111358 2006-07-21  Eric Blake  <ebb9@byu.net>
111360         * lib/stdlib-safer.h: New file from coreutils, required by
111361         stdlib--.h.
111363 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
111365         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
111367 2006-07-20  Bruno Haible  <bruno@clisp.org>
111369         * gnulib-tool: Recognize new option --assume-autoconf.
111370         (autoconf_minversion): New variable.
111371         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
111373 2006-07-20  Bruno Haible  <bruno@clisp.org>
111375         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
111377 2006-07-19  Derek R. Price  <derek@ximbiot.com>
111379         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
111380         Reindent and repaginate.
111382 2006-07-19  Derek Price  <derek@ximbiot.com>
111384         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
111385         Correct grammar.
111387 2006-07-17  Bruno Haible  <bruno@clisp.org>
111389         * modules/list: New file.
111390         * modules/array-list: New file.
111391         * modules/carray-list, modules/carray-list-tests: New files.
111392         * modules/linked-list, modules/linked-list-tests: New files.
111393         * modules/avltree-list, modules/avltree-list-tests: New files.
111394         * modules/rbtree-list, modules/rbtree-list-tests: New files.
111395         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
111396         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
111397         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
111398         * modules/oset: New file.
111399         * modules/array-oset: New file.
111400         * modules/avltree-oset, modules/avltree-oset-tests: New files.
111401         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
111402         * tests/test-carray_list.c: New file.
111403         * tests/test-linked_list.c: New file.
111404         * tests/test-avltree_list.c: New file.
111405         * tests/test-rbtree_list.c: New file.
111406         * tests/test-linkedhash_list.c: New file.
111407         * tests/test-avltreehash_list.c: New file.
111408         * tests/test-rbtreehash_list.c: New file.
111409         * tests/test-avltree_oset.c: New file.
111410         * tests/test-rbtree_oset.c: New file.
111411         * MODULES.html.sh (Container data structures): New section.
111413 2006-07-17  Bruno Haible  <bruno@clisp.org>
111415         * m4/gl_list.m4: New file.
111417 2006-07-17  Bruno Haible  <bruno@clisp.org>
111419         * lib/gl_list.h: New file.
111420         * lib/gl_list.c: New file.
111421         * lib/gl_array_list.h: New file.
111422         * lib/gl_array_list.c: New file.
111423         * lib/gl_carray_list.h: New file.
111424         * lib/gl_carray_list.c: New file.
111425         * lib/gl_linked_list.h: New file.
111426         * lib/gl_linked_list.c: New file.
111427         * lib/gl_anylinked_list1.h: New file.
111428         * lib/gl_anylinked_list2.h: New file.
111429         * lib/gl_avltree_list.h: New file.
111430         * lib/gl_avltree_list.c: New file.
111431         * lib/gl_anyavltree_list1.h: New file.
111432         * lib/gl_anyavltree_list2.h: New file.
111433         * lib/gl_rbtree_list.h: New file.
111434         * lib/gl_rbtree_list.c: New file.
111435         * lib/gl_anyrbtree_list1.h: New file.
111436         * lib/gl_anyrbtree_list2.h: New file.
111437         * lib/gl_anytree_list1.h: New file.
111438         * lib/gl_anytree_list2.h: New file.
111439         * lib/gl_linkedhash_list.h: New file.
111440         * lib/gl_linkedhash_list.c: New file.
111441         * lib/gl_anyhash_list1.h: New file.
111442         * lib/gl_anyhash_list2.h: New file.
111443         * lib/gl_avltreehash_list.h: New file.
111444         * lib/gl_avltreehash_list.c: New file.
111445         * lib/gl_rbtreehash_list.h: New file.
111446         * lib/gl_rbtreehash_list.c: New file.
111447         * lib/gl_anytreehash_list1.h: New file.
111448         * lib/gl_anytreehash_list2.h: New file.
111450         * lib/gl_oset.h: New file.
111451         * lib/gl_oset.c: New file.
111452         * lib/gl_array_oset.h: New file.
111453         * lib/gl_array_oset.c: New file.
111454         * lib/gl_avltree_oset.h: New file.
111455         * lib/gl_avltree_oset.c: New file.
111456         * lib/gl_rbtree_oset.h: New file.
111457         * lib/gl_rbtree_oset.c: New file.
111458         * lib/gl_anytree_oset.h: New file.
111460 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111462         * m4/mkancesdirs.m4: New file.
111463         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
111464         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
111465         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
111466         it.
111468 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111470         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
111471         * lib/mkancesdirs.h: New files.
111472         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
111473         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
111474         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
111475         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
111476         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
111477         callers changed.  Revamp internals significantly, by not
111478         attempting to create directories that are temporarily more
111479         permissive than the final results.  Do not attempt to use
111480         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
111481         This removes some race conditions, fixes some bugs, and simplifies
111482         things.  Use new dirchownmod function to do owner and mode changes.
111483         * lib/mkdir-p.h: Likewise.
111484         * lib/modechange.c (octal_to_mode): New function.
111485         (struct mode_change): New member mentioned.
111486         (make_node_op_equals): New arg mentioned.  All callers changed.
111487         (mode_compile): Keep track of which mode bits the user has explicitly
111488         mentioned.
111489         (mode_adjust): New arg DIR, so that we implement the X op correctly.
111490         New arg PMODE_BITS, to keep track of which mode bits the user
111491         mentioned; it treats S_ISUID and S_ISGID speciall.
111492         All callers changed.
111493         * lib/modechange.h: Likewise.
111495 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111497         * MODULES.html.sh: Add mkancestors.
111498         * modules/mkancesdirs: New module.
111499         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
111500         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
111501         The chdir-safer and afs files are now orphans; I'll remove them
111502         unless someone speaks up.
111503         Add lib/dirchownmod.c, lib/dirchownmod.h.
111504         (Depends-on): Remove alloca, chown, save-cwd, dirname.
111505         Add lchown, mkancesdirs.
111506         (Maintainer): Add self.
111508 2006-07-15  Karl Berry  <karl@gnu.org>
111510         * gnulib-tool: help message wording/arrangement.
111512 2006-07-14  Simon Josefsson  <jas@extundo.com>
111514         * doc/gnulib.texi (Libtool and Windows): New section.
111516 2006-07-12  Simon Josefsson  <jas@extundo.com>
111518         * modules/gendocs (License): Fix license, approved by Karl.
111520 2006-07-12  Eric Blake  <ebb9@byu.net>
111522         * MODULES.html.sh: Add gendocs.
111524 2006-07-11  Eric Blake  <ebb9@byu.net>
111526         * modules/fdl: New module, to install doc/fdl.texi.
111527         * MODULES.html.sh: Add new section for documentation modules.
111528         * gnulib-tool: Avoid space-tab.
111529         (--doc-base): New option, to manage files from doc.
111531 2006-07-11  Eric Blake  <ebb9@byu.net>
111533         * m4/absolute-header.m4: Fix comments to match recent change.
111535 2006-07-11  Eric Blake  <ebb9@byu.net>
111537         * gnulib-tool: List --doc-base before --tests-base.
111539 2006-07-11  Derek R. Price  <derek@ximbiot.com>
111541         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
111543 2006-07-11  Bruno Haible  <bruno@clisp.org>
111545         * README: Mention where to put documentation.
111547 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111549         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
111551 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
111553         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
111554         to stdint.m4.
111556 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
111558         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
111559         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
111560         "no/such/file/stdint.h" when there is no such file, so that
111561         the resulting C code can be parsed by dodgy compilers.
111562         Problems reported by Bob Proulx.
111564 2006-07-10  Derek R. Price  <derek@ximbiot.com>
111566         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
111567         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
111568         macros into the GNU _D_EXACT_NAMLEN.
111569         * lib/savedir.c:  Likewise.
111570         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
111572 2006-07-10  Derek R. Price  <derek@ximbiot.com>
111573         and Paul Eggert  <eggert@cs.ucla.edu>
111575         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
111576         * m4/savedir.m4:
111577         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
111578         macros into the GNU _D_EXACT_NAMLEN.
111580 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111582         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
111583         around the absolute name, to work around a problem with the HP-UX
111584         11.23 native C compiler, reported by Bob Proulx.
111586 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111588         * doc/maintain.texi, make-stds.texi: Sync from
111589         <http://savannah.gnu.org/projects/gnustandards>.
111591 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111593         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
111595 2006-07-09  Jim Meyering  <jim@meyering.net>
111597         * m4/glob.m4: Remove a doubled word in a comment.
111599 2006-07-09  Jim Meyering  <jim@meyering.net>
111601         * lib/argp-pv.c: Remove a doubled word in a comment.
111602         * lib/check-version.c (check_version): Likewise.
111603         * lib/javacomp.c (compile_java_class): Likewise.
111605 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
111607         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
111608         for the benefit of people using Autoconf 2.60.  If you want to
111609         support older Autoconf versions you can copy m4/onceonly_2_57.m4
111610         (or m4/onceonly.m4, if pre-2.57) manually.
111612 2006-07-08  Jim Meyering  <jim@meyering.net>
111614         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
111615         comment.
111616         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
111617         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
111618         comment.
111620 2006-07-08  Jim Meyering  <jim@meyering.net>
111622         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
111624 2006-07-07  Simon Josefsson  <jas@extundo.com>
111626         * tests/test-crc.c: Change expected crc value, the test vector
111627         were probably computed using the old broken crc.c?
111629 2006-07-06  Simon Josefsson  <jas@extundo.com>
111631         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
111632         now the canonical place for the M4 file).
111634         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
111635         from the sys_socket dependency now.
111637         * modules/inet_pton (Files): Ditto.
111639         * modules/inet_ntop (Files): Ditto.
111641 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
111643         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
111644         not gl_PREREQ_GETUSERSHELL.
111646 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111648         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
111649         with only one argument, for Autoconf 2.60.
111650         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
111651         expand to nothing, so add a shell command to avoid syntax error.
111652         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
111654 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111656         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
111658 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111660         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
111661         no longer needed.  Check for isblank decl.
111662         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
111663         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
111664         of existence.
111666 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111668         * lib/getloadavg.c: Use __VMS, not VMS.
111669         * lib/getopt.c: Likewise.
111670         * lib/getpagesize.h: Likewise.
111671         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
111672         and probably does not work.
111674 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111676         * lib/.cppi-disable: Add wcwidth.
111677         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
111678         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
111679         (ISGRAPH): Remove.  All uses changed to isgraph.
111680         (FOLD) [!defined _LIBC]: Remove special case.
111681         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
111682         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
111683         HAVE_ISBLANK.
111684         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
111685         case.
111687 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
111689         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
111690         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
111691         brackets.  Other minor changes to suppress some compiler
111692         warnings.
111694 2006-07-06  Derek R. Price  <derek@ximbiot.com>
111695         and Paul Eggert  <eggert@cs.ucla.edu>
111697         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
111698         of invoking obsolescent AC_HEADER_DIRENT macro.
111699         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
111700         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
111701         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
111702         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
111703         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
111704         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
111705         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
111706         * m4/readdir.m4: Remove; no longer needed.
111708 2006-07-06  Derek R. Price  <derek@ximbiot.com>
111709         and Paul Eggert  <eggert@cs.ucla.edu>
111711         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
111712         Don't worry about this obsolete case any more.
111713         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
111714         directories.
111715         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
111716         worry about this obsolete case any more.
111717         * lib/fts.c: Likewise.
111718         * lib/getcwd.c: Likewise.
111719         * lib/glob.h: Likewise.
111720         * lib/savedir.c: Likewise.
111722 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
111724         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
111725         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
111726         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
111727         needed.
111728         All uses removed.
111729         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111730         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
111731         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
111732         needed.
111733         * m4/getdate.m4 (gl_GETDATE): Likewise.
111734         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
111735         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
111736         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
111737         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111738         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
111739         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111740         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
111741         needed.
111743 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
111745         * lib/memcasecmp.c: Include <limits.h>.
111746         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
111747         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
111748         Don't assume isdigit succeeds only on '0' through '9'.
111750 2006-07-05  Eric Blake  <ebb9@byu.net>
111752         * modules/getaddrinfo (Depends-on): Add snprintf.
111754 2006-07-05  Eric Blake  <ebb9@byu.net>
111756         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
111757         to avoid 'header present but could not be compiled' on cygwin.
111759 2006-07-05  Eric Blake  <ebb9@byu.net>
111761         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
111762         missing from netdb.h.
111763         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
111765 2006-07-05  Derek R. Price  <derek@ximbiot.com>
111767         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
111768         no longer needed.
111769         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
111770         * m4/getdate.m4 (gl_GETDATE): Likewise.
111771         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
111772         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
111773         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
111774         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111775         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111777 2006-07-05  Derek R. Price  <derek@ximbiot.com>
111779         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
111780         All uses of is_space replaced by isspace.
111781         * lib/exit.h: Don't talk about STDC_HEADERS.
111782         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
111783         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
111784         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
111785         replaced by isprint etc.
111786         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
111787         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
111788         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
111789         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
111790         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
111791         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
111793 2006-07-05  Bruno Haible  <bruno@clisp.org>
111795         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
111796         the function exists, before testing against AIX.
111797         Reported by Martin Lambers <marlam@marlam.de>.
111799 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
111801         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
111802         From Mark D. Baushke.
111804 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
111806         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
111807         to the absolute name, not just one, to bypass Sun C 5.8's
111808         "warning: #include of /usr/include/... may be non-portable".
111810 2006-07-04  Eric Blake  <ebb9@byu.net>
111812         * modules/dirname-tests: New test module.
111813         * tests/test-dirname.c: New file, replacing dirname.c
111814         TEST_DIRNAME section that was recently deleted.
111816 2006-07-04  Bruno Haible  <bruno@clisp.org>
111818         Assume ANSI C header files and <ctype.h> functions.
111819         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
111820         (mbsnwidth): Use isprint, iscntrl instead.
111822 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111824         Merge from coreutils.
111825         * MODULES.html.sh: Add xstrtold.
111826         * modules/xstrtold: New file.
111827         * modules/cycle-check (Files): Add lib/same-inode.h.
111828         * modules/dirname (Files): Add m4/double-slash-root.m4.
111829         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
111830         * modules/mkdir-p (Files): Add lib/same-inode.h.
111831         * modules/same (Files): Add lib/same-inode.h.
111833 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111835         * m4/absolute-header.m4: Renamed from full-header-path.m4.
111836         This is to keep the terminology clean; POSIX talks about
111837         "absolute pathnames", not "full pathnames", but the GNU
111838         Coding Standards say to use "path" for something else;
111839         so use "absolute" to keep both sides happy.
111840         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
111841         Set gl_absolute_header, not gl_full_header_path.
111842         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
111843         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
111844         All uses changed.
111846         Merge from coreutils.
111848         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
111850         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
111851         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
111852         want to require the building of c-strtod.o.
111853         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
111854         needs -lm directly.
111855         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
111857         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
111859         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
111860         --as-needed option if available.  Problem reported by Albert Chin in
111861         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
111862         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
111863         cc merely issues a bunch of annoying warnings for --as-needed
111864         (this problem was reported by Bob Proulx).  Also, try linking with
111865         -lm to detect a bug in binutils 2.16 (this problem was reported
111866         by Ralf Wildenhues).
111868         2006-06-18  Jim Meyering  <jim@meyering.net>
111870         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
111871         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
111872         macro.
111873         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
111874         also check for glibc-2.4's abort-inducing bug.
111876         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
111877         Low-probability clean-up should be to use rmdir to get rid of
111878         the just-created directory, not unlink.
111880         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
111881         configure fail, and request a bug report to inform us about it.
111882         Add a comment that, barring reports to the contrary, in 2007 we'll
111883         assume ftruncate is universally available.
111885         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
111887         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
111889         2006-03-12  Jim Meyering  <jim@meyering.net>
111891         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
111892         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
111893         * m4/same.m4 (gl_SAME): Likewise.
111894         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
111896         2006-03-11  Eric Blake  <ebb9@byu.net>
111898         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
111899         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
111900         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
111901         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
111903 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111905         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
111906         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
111907         reported by Mark D. Baushke, one in
111908         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
111910         Merge from coreutils.
111912         * lib/.cppi-disable: Add stdint_.h.
111913         * lib/.cvsignore: Add stdint.h.
111915         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
111917         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
111918         both double and long double versions.
111919         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
111920         * lib/xstrtold.c: New file.
111921         * lib/xstrtod.h (xstrtold): New decl.
111923         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
111925         * lib/filemode.c (setst): Remove.
111926         (strmode): Rewrite to avoid setst.  This makes the code shorter,
111927         (arguably) clearer, and the generated code is a bit smaller on my
111928         Debian GNU/Linux stable x86 host.
111930         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
111932         * lib/filemode.c: Include "filemode.h" first, to test the interface.
111933         Assume that filemode.h includes sys/types.h and sys/stat.h.
111934         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
111935         (ftypelet): Reorder to put common cases first, for efficiency.
111936         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
111937         to do 'M'.
111938         (strmode): Renamed from mode_string, and now stores 12 bytes instead
111939         of 10, for compatibility with FreeBSD.  All callers changed.
111940         (filemodestring): Now stores 12 bytes instead of 10, and sets file
111941         types that can't be deduced solely from st_mode.  First arg is now a
111942         const pointer.
111943         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
111944         (strmode): Renamed from mode_string.
111945         (filemodestring): New decl.
111946         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
111947         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
111948         needed.
111949         (S_ISPORT, S_ISWHT): New macros, if not already defined.
111951         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
111953         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
111954         fsusage.h now does that.  Include fsusage.h first, to test interface.
111955         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
111956         at most one method (the old code could have generated decls that
111957         didn't conform to C89, not that this was ever exercised).
111958         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
111960         2006-03-19  Jim Meyering  <jim@meyering.net>
111962         Work even in a chroot where d_ino values for entries in "/"
111963         don't match the stat.st_ino values for the same names.
111964         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
111965         number, iterate through all entries again, using lstat instead.
111966         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
111967         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
111969         * lib/getcwd.c (__getcwd): Clarify a comment.
111970         Use memcpy in place of a call to strcpy.
111972         2006-03-12  Jim Meyering  <jim@meyering.net>
111974         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
111975         matches that of the current directory (which we're about to chdir ".."
111976         out of), then save the dev-ino of the parent, instead.
111978         * lib/same-inode.h (SAME_INODE): New file/macro.
111979         * lib/chdir-safer.c (SAME_INODE): Remove definition.
111980         Include "same-inode.h", instead.
111981         * lib/same.c: Likewise.
111982         * lib/cycle-check.h: Include "same-inode.h".
111983         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
111984         * lib/cycle-check.c (SAME_INODE): Remove definition.
111985         * lib/root-dev-ino.h: Include "same-inode.h".
111987         2006-03-11  Eric Blake  <ebb9@byu.net>
111989         * lib/same.c (same_name): s/base_name/last_component/
111990         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
111991         * lib/filenamecat.c (file_name_concat): Likewise.
111993         2006-03-11  Eric Blake  <ebb9@byu.net>,
111994                     Paul Eggert  <eggert@cs.ucla.edu>
111996         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
111997         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
111998         drive prefix.
111999         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
112000         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
112001         (last_component): New method.
112002         * lib/dirname.c (dir_len): Determine when drive letters need a
112003         subsequent slash.  Preserve // when it is special.
112004         (dir_name): Don't append dot when drive letter is absolute.
112005         [TEST_DIRNAME]: Move into a full-blown gnulib test.
112006         * lib/basename.c (base_name): New semantics - malloc the result.
112007         Preserve // when it is special.  Preserve relative files that look
112008         like drive letters.
112009         (base_len): Preserve // when it is special.
112010         (last_component): New method, similar to old base_name semantics.
112011         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
112012         base_name.  Strip redundant slashes from ///.
112014 2006-07-03  Jim Meyering  <jim@meyering.net>
112016         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
112017         macro is used before the first cycle_check call.
112019 2006-07-03  Eric Blake  <ebb9@byu.net>
112021         * modules/dirname (Depends-on): Add xstrndup.
112023 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
112025         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
112026         test cases, so that config.log is a bit easier to follow.
112028 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
112030         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
112031         both are 64 bits, since this seems to be the tradition, and this
112032         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
112033         we ever run into a host that prefers long long to long in this
112034         case, we'll need another configure-time test.  Problem reported by
112035         Jim Meyering.
112037 2006-07-02  Eric Blake  <ebb9@byu.net>
112039         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
112041 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112043         * modules/inttypes (Depends-on): No longer depends on stdint.
112044         * modules/stdint (Description): Say more about assumptions.
112045         Say that the fast types might differ.  Say macros are used.
112046         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
112047         (Makefile.am): Revise list of substituted symbols to match
112048         new stdint.m4.
112049         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
112050         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
112051         * tests/test-stdint.c (verify_same_types)
112052         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
112053         the code conforms to C99/C89.
112054         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
112055         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
112057 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112059         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
112060         but fix a bug, by requiring at least 64 bits.
112061         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
112062         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
112063         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
112064         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
112066         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
112067         changes.  Make 2.59 a prerequisite.  Check and substitute for
112068         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
112069         inttypes.h.  Do not use special include files; just use the
112070         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
112071         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
112072         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
112073         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
112074         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
112075         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
112076         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
112077         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
112078         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
112079         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
112080         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
112081         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
112082         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
112083         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
112084         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
112085         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
112086         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
112087         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
112088         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
112089         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
112090         WINT_MAX.  Check for C99 conformance more strictly, by detecting
112091         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
112092         not check for things that C99 does not require, e.g., int8_t.  If
112093         a test isn't needed unless <stdint.h> isn't working, and is
112094         unlikely to be needed for any other reason, then don't do it
112095         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
112096         size_t, since we assume C89 freestanding at least.  Do not check
112097         for sig_atomic_t, wchar_t, or wint_t, since the code now does
112098         the right thing even if the types are not defined.  Instead use:
112099         (gl_STDINT_TYPE_PROPERTIES): New macro.
112100         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
112101         testing whether <sys/types.h> clashes, as Autoconf does this for
112102         us now.  All uses removed.
112103         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
112104         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
112105         (gl_CHECK_TYPE_SAME):
112106         Remove; no longer needed.
112107         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
112108         exists, since we'll return 0 anyway in that case.
112109         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
112111 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112113         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
112114         possible collision with system files.
112115         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
112116         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
112117         WCHAR_MIN and WCHAR_MAX in this case.
112118         (<stddef.h>): Do not include; no longer needed.
112119         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
112120         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
112121         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
112122         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
112123         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
112124         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
112125         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
112126         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
112127         !defined(__c99))]: Include in this case too, since it's harmless
112128         now.
112129         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
112130         dangerous to do so.
112131         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
112132         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
112133         (_STDINT_MIN, _STDINT_MAX): New macros.
112134         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
112135         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
112136         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
112137         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
112138         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
112139         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
112140         macros, not typedefs; this simplifies things quite a bit.
112141         Use long int for all types narrower than int64_t.
112142         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
112143         Define in terms of long long int or int64_t or long int,
112144         not int64_t or int32_t.  This saves some compile-time testing.
112145         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
112146         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
112147         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
112148         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
112149         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
112150         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
112151         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
112152         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
112153         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
112154         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
112155         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
112156         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
112157         undef any previous version and define our own version, for
112158         simplicity and consistency with the new macros for types.
112159         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
112160         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
112161         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
112162         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
112163         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
112164         @WINT_T_SUFFIX@ to keep things simple here.
112165         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
112166         Simplify by assuming typical 8/16/32/64 host, since we're
112167         already doing that elsewhere anyway.
112168         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
112169         and assume long long int is 64 bits if available.  This
112170         speeds up 'configure'.
112172 2006-07-01  Eric Blake  <ebb9@byu.net>
112174         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
112175         Reported by Andreas Buening.
112177 2006-07-01  Eric Blake  <ebb9@byu.net>
112179         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
112181 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
112183         * lib/getaddrinfo.c: fixed typo
112185 2006-06-29  Jim Meyering  <jim@meyering.net>
112187         * modules/strftime (Maintainer): Add my name, since with the
112188         FPRINTFTIME changes strftime.c has forked from glibc.
112190 2006-06-29  Eric Blake  <ebb9@byu.net>
112192         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
112194 2006-06-29  Eric Blake  <ebb9@byu.net>
112196         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
112198 2006-06-29  Eric Blake  <ebb9@byu.net>
112200         * lib/stat_.h: New file.
112202 2006-06-29  Eric Blake  <ebb9@byu.net>
112204         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
112205         unused static function.
112207 2006-06-29  Eric Blake  <ebb9@byu.net>
112209         * doc/functions.texi (Function Portability): Document missing lstat
112210         on mingw.
112212 2006-06-29  Eric Blake  <ebb9@byu.net>
112214         * MODULES.html.sh: Add sys_stat.
112215         * modules/sys_stat: New module.
112216         * modules/mkstemp (Depends-on): Add sys_stat.
112218 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112220         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
112222 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112224         * m4/c-bs-a.m4: Removed.
112226 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112228         * lib/strftime.c: Assume strftime() exists.
112230 2006-06-29  Derek Price  <derek@ximbiot.com>
112232         * modules/c-bs-a: Removed - \a is C89.
112233         * MODULES.html.sh: Remove c-bs-a.
112235 2006-06-29  Bruno Haible  <bruno@clisp.org>
112237         * modules/wcwidth (License): Change to LGPL.
112239 2006-06-28  Simon Josefsson  <jas@extundo.com>
112241         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
112242         on _WIN32.
112244         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
112245         getnameinfo.
112247 2006-06-28  Simon Josefsson  <jas@extundo.com>
112249         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
112251 2006-06-28  Simon Josefsson  <jas@extundo.com>
112253         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
112254         functions there.  It will succeed on Windows XP, but on Windows
112255         2000 and (presumably) earlier, it will fail, and use the internal
112256         re-implementation.
112257         (use_win32_p): New function.
112258         (getaddrinfo): Use strtoul on servname, to support numeric ports.
112259         Support AI_NUMERICSERV to disable getservbyname.
112260         (getnameinfo): New function, only supports
112261         NI_NUMERICHOST|NI_NUMERICSERV for now.
112263         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
112264         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
112265         getnameinfo.
112267 2006-06-28  Eric Blake  <ebb9@byu.net>
112269         * modules/wcwidth: New file.
112270         * modules/mbchar (Depends-on): Add wcwidth.
112271         * modules/mbswidth (Depends-on): Add wcwidth.
112272         * MODULES.html.sh: Add wcwidth.
112274 2006-06-28  Eric Blake  <ebb9@byu.net>
112276         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
112277         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
112279 2006-06-28  Eric Blake  <ebb9@byu.net>
112281         * lib/xvasprintf.h: Fix comments.
112283 2006-06-28  Eric Blake  <ebb9@byu.net>
112285         * lib/mbchar.h (wcwidth): Include wcwidth.h.
112286         * lib/mbswidth.c (wcwidth): Move from here...
112287         * lib/wcwidth.h: ...to this new file.
112289 2006-06-28  Derek R. Price  <derek@ximbiot.com>
112291         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
112293         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
112294         it's obsolete.
112295         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
112297 2006-06-28  Derek R. Price  <derek@ximbiot.com>
112299         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
112300         Autoconf 2.60 says this stuff was obsolete.
112302 2006-06-28  Bruno Haible  <bruno@clisp.org>
112304         * modules/wcwidth (Files): Add m4/wchar_t.m4.
112306 2006-06-28  Bruno Haible  <bruno@clisp.org>
112308         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
112309         gt_TYPE_WCHAR_T.
112311 2006-06-28  Bruno Haible  <bruno@clisp.org>
112313         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
112314         declaration for wcwidth.
112315         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
112317 2006-06-28  Bruno Haible  <bruno@clisp.org>
112319         * lib/mkdtemp.c [MINGW]: Include <io.h>.
112320         (mkdir): Define using _mkdir.
112322 2006-06-28  Bruno Haible  <bruno@clisp.org>
112324         * lib/getaddrinfo.h: Fix POSIX URL.
112325         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
112326         _WIN32.
112327         (use_win32_p): Make static.
112328         (getaddrinfo): Reject service name if it is empty or does not consist
112329         solely of decimal digits, or if its value is > 65535.
112330         (getnameinfo): Remove useless casts.
112332 2006-06-27  Simon Josefsson  <jas@extundo.com>
112334         * modules/sys_select: New file, suggested by Bruno Haible, Paul
112335         Eggert and Martin Lambers.
112337 2006-06-27  Simon Josefsson  <jas@extundo.com>
112339         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
112340         Eggert and Martin Lambers.
112342 2006-06-27  Bruno Haible  <bruno@clisp.org>
112344         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
112345         result to 0, not to empty.
112346         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
112348 2006-06-27  Bruno Haible  <bruno@clisp.org>
112350         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
112352 2006-06-26  Simon Josefsson  <jas@extundo.com>
112354         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
112355         present.
112357 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
112359         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
112360         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
112361         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
112363 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
112365         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
112367 2006-06-26  Bruno Haible  <bruno@clisp.org>
112369         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
112371 2006-06-26  Bruno Haible  <bruno@clisp.org>
112373         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
112375 2006-06-26  Bruno Haible  <bruno@clisp.org>
112377         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
112378         SGI C compiler in pre-C99 mode.
112379         Suggested by Mark D. Baushke and Larry Jones.
112381 2006-06-26  Bruno Haible  <bruno@clisp.org>
112383         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
112384         WCHAR_MAX.
112385         Reported by Mark D. Baushke and Larry Jones.
112387 2006-06-26  Bruno Haible  <bruno@clisp.org>
112389         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
112390         in pre-C99 mode.
112391         Suggested by Mark D. Baushke and Larry Jones.
112393 2006-06-23  Simon Josefsson  <jas@extundo.com>
112394             Bruno Haible  <bruno@clisp.org>
112396         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
112397         Emit mostlyclean-local rule.
112398         (func_emit_tests_Makefile_am): Likewise.
112399         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
112401 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
112403         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
112405 2006-06-23  Bruno Haible  <bruno@clisp.org>
112407         * tests/test-stdint.c: Update to match ISO C 99 Technical
112408         Corrigendum 1.
112410 2006-06-23  Bruno Haible  <bruno@clisp.org>
112412         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
112414 2006-06-23  Bruno Haible  <bruno@clisp.org>
112416         * lib/stdint_.h: Treat IRIX like OpenBSD.
112418 2006-06-23  Bruno Haible  <bruno@clisp.org>
112420         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
112421         ISO C 99 Technical Corrigendum 1.
112423 2006-06-22  Simon Josefsson  <jas@extundo.com>
112425         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
112426         MinGW.
112428 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
112430         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
112431         needed.  Some compiler complained about some of them.  Problem reported
112432         by Larry Jones in
112433         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
112435 2006-06-21  Simon Josefsson  <jas@extundo.com>
112437         * tests/test-getaddrinfo.c: New file.
112439         * modules/getaddrinfo-tests: New file.
112441         * MODULES.html.sh: Add inet_pton.
112443         * modules/inet_pton: New file.
112445 2006-06-21  Simon Josefsson  <jas@extundo.com>
112447         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
112448         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
112449         of using the (limited) gnulib implementation on Windows XP.
112451         * m4/inet_pton.m4: New file.
112453 2006-06-21  Simon Josefsson  <jas@extundo.com>
112455         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
112456         variable.
112458         * lib/socket_.h: Don't define WINVER.
112460         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
112461         slightly modified to work in gnulib.
112463 2006-06-21  Simon Josefsson  <jas@extundo.com>
112465         * doc/gnulib.texi (Windows sockets): Add.
112467 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
112469         * lib/read-file.c (fread_file): Start with buffer allocation of
112470         0 bytes rather than 1 byte; this simplifies the code.
112471         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
112472         code to free buffer and save/restore errno.
112473         (internal_read_file): Remove unused local.
112475 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
112477         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
112478         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
112479         Problem reported by Denis Excoffier in
112480         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
112482 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112484         * modules/sys_socket, modules/socklen: Include sys/types since
112485         FreeBSD 4.x's sys/socket.h needs it.
112487 2006-06-19  Simon Josefsson  <jas@extundo.com>
112489         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
112491 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
112493         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
112495 2006-06-19  Bruno Haible  <bruno@clisp.org>
112497         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
112498         and FULL_PATH_INTTYPES_H in angle brackets.
112499         Reported by Mark D. Baushke <mdb@gnu.org>.
112501 2006-06-17  Eric Blake  <ebb9@byu.net>
112503         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
112504         errno.
112506 2006-06-17  Bruno Haible  <bruno@clisp.org>
112508         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
112509         <sys/inttypes.h>.
112511 2006-06-17  Bruno Haible  <bruno@clisp.org>
112513         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
112514         whether errno is declared. Assume <errno.h> declares errno.
112516 2006-06-17  Bruno Haible  <bruno@clisp.org>
112518         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
112520 2006-06-17  Bruno Haible  <bruno@clisp.org>
112522         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
112523         problem on Solaris 2.5.1.
112525 2006-06-16  Eric Blake  <ebb9@byu.net>
112527         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
112528         * lib/unicodeio.c [!defined errno]: Likewise.
112529         * lib/strtol.c [!defined errno]: Likewise.
112530         * lib/strtod.c [!defined errno]: Likewise.
112532 2006-06-15  Eric Blake  <ebb9@byu.net>
112534         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
112536 2006-06-15  Eric Blake  <ebb9@byu.net>
112538         * config/srclist.txt (ssize_t.m4): Lose sync.
112540 2006-06-15  Bruno Haible  <bruno@clisp.org>
112542         * modules/stdint (Files): Include m4/full-header-path.m4,
112543         m4/size_max.m4, m4/wchar_t.m4.
112544         (Makefile.am): Many more substitutions.
112545         * modules/stdint-tests: New file.
112546         * tests/test-stdint.c: New file.
112548 2006-06-15  Bruno Haible  <bruno@clisp.org>
112550         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
112551         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
112552         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
112553         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
112554         gl_CHECK_TYPE_SAME): New macros.
112556 2006-06-15  Bruno Haible  <bruno@clisp.org>
112558         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
112560 2006-06-15  Bruno Haible  <bruno@clisp.org>
112562         * lib/stdint_.h: Rewritten to be fully auto-configured.
112563         Fixes bug on HP-UX/IA64.
112565 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
112567         * lib/getdate.y (__attribute__): Don't define if already defined.
112568         Problem reported by Larry Jones.
112569         * lib/utimens.c (__attribute__): Likewise.
112571 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
112573         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
112574         reported by Andreas Schwab.
112576 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112577             Bruno Haible  <bruno@clisp.org>
112579         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
112580         check for the declaration of strnlen and a run test that exposes the
112581         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
112582         rpl_strndup.
112584 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112585             Bruno Haible  <bruno@clisp.org>
112587         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
112589 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112591         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
112592         compile test, for Tru64 4.0D.
112594 2006-05-28  Karl Berry  <karl@gnu.org>
112596         * config/srclist.txt (printf-args.c): lose sync.
112598 2006-05-26  Martin Lambers  <marlam@marlam.de>
112600         * lib/getpass.c: Updates the test for the native W32 API, and adds
112601         missing includes, thus fixing compilation warnings.
112603 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
112605         * lib/exclude.c (exclude_fnmatch): New function.
112606         (excluded_file_name): Call exclude_fnmatch.
112607         * lib/exclude.h (excluded_file_name): New prototype
112609 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
112611         * lib/tempname.c (small_open, large_open): New macros.
112612         (__open, __open64) [!_LIBC]: Remove.
112613         (__gen_tempname): Use small_open and large_open instead of __open
112614         and __open64.  This fixes a portability bug on HP-UX 11.11i
112615         reported by Simon Wing-Tang in
112616         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
112618 2006-05-24  Bruno Haible  <bruno@clisp.org>
112620         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
112621         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
112622         Reported by Thorsten Maerz <torte@netztorte.de> via
112623         Aaron Stone <aaron@serendipity.cx>.
112625 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
112627         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
112628         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
112629         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
112630         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
112631         not really conditional on the cache.
112632         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
112634 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
112636         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
112637         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
112638         (my_usleep): Don't mishandle maximum value.
112640 2006-05-19  Jim Meyering  <jim@meyering.net>
112642         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
112644 2006-05-17  Bruno Haible  <bruno@clisp.org>
112646         Cygwin portability.
112647         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
112649 2006-05-17  Bruno Haible  <bruno@clisp.org>
112651         * lib/stdint_.h: Fix recognition of Cygwin.
112653 2006-05-15  Bruno Haible  <bruno@clisp.org>
112655         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
112656         on libtool patch by Ralf Wildenhues.
112658 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
112660         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
112661         test for C99 conformance; (bool) 0.5 is an integer constant
112662         expression, but (bool) -0.5 is not.  Problem reported by Fedor
112663         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
112665 2006-05-11  Simon Josefsson  <jas@extundo.com>
112667         * m4/xvasprintf.m4: Fix obvious typo.
112669 2006-05-11  Jim Meyering  <jim@meyering.net>
112671         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
112672         James Lemley.
112674 2006-05-10  Simon Josefsson  <jas@extundo.com>
112676         * lib/md4.c: Typo fix, update copyright years.
112677         (K1, K2): Don't use L because it turn computations into 64-bit on
112678         64-bit platforms.
112680 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
112682         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
112683         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
112684         unwanted sign propagation, e.g., on hosts with 64-bit int.
112685         There still are some problems with reeelly weird theoretical hosts
112686         (e.g., 33-bit int) but it's not worth worrying about now.
112687         * lib/sha1.c (rol): Likewise.
112688         (K1, K2, K3, K4): Remove unnecessary L suffix.
112690 2006-05-10  Bruno Haible  <bruno@clisp.org>
112692         * lib/des.c: Cast to avoid warnings.
112694 2006-05-09  Bruno Haible  <bruno@clisp.org>
112696         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
112697         (Depends-on): Depend also on xsize, stdarg.
112698         (configure.ac): Add gl_XVASPRINTF.
112700 2006-05-09  Bruno Haible  <bruno@clisp.org>
112702         * m4/xvasprintf.m4: New file.
112704 2006-05-09  Bruno Haible  <bruno@clisp.org>
112706         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
112707         (EOVERFLOW): Define fallback value.
112708         (xstrcat): New function.
112709         (xvasprintf): Recognize the special case of a string concatenation.
112711 2006-05-08  Eric Blake  <ebb9@byu.net>
112713         * gnulib-tool (func_version): Base copyright year on CVS date.
112714         (func_emit_copyright_notice): New function.
112715         (func_emit_lib_Makefile_am): Use it.
112716         (func_emit_tests_Makefile_am): Likewise.
112717         (func_import): Likewise.
112719 2006-05-08  Bruno Haible  <bruno@clisp.org>
112721         * modules/stdarg: New file.
112722         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
112724 2006-05-08  Bruno Haible  <bruno@clisp.org>
112726         * m4/stdarg.m4: New file, from GNU gettext.
112728 2006-05-08  Bruno Haible  <bruno@clisp.org>
112730         * config/srclist.txt (build-aux/config.rpath): different from latest
112731         release.
112733 2006-05-08  Bruno Haible  <bruno@clisp.org>
112735         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
112737 2006-05-05  Jim Meyering  <jim@meyering.net>
112739         * m4/warning.m4: New file, derived from bison's file by the same name.
112741 2006-05-03  Bruno Haible  <bruno@clisp.org>
112743         * lib/stdint_.h: Shorter URL.
112744         * lib/inttypes.h: Likewise.
112746 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112748         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
112750 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112752         * lib/verify.h: Document the internals better.  Most of this change
112753         was written by Bruno Haible.
112755 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112757         * doc/verify.texi: New file, partly based on a proposal by
112758         Bruno Haible.
112760 2006-05-02  Bruno Haible  <bruno@clisp.org>
112762         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
112763         test from here...
112764         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
112766 2006-04-29  Bruno Haible  <bruno@clisp.org>
112768         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
112769         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
112771 2006-04-29  Bruno Haible  <bruno@clisp.org>
112773         * gnulib-tool: Make --update option actually work.
112775 2006-04-29  Bruno Haible  <bruno@clisp.org>
112777         * doc/gcd.texi: New file.
112778         * doc/gnulib.texi: Include it.
112780 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
112782         * lib/getdate.y (get_date): When adding relative date, start with the
112783         initial time, not with the result of the first mktime call.
112785 2006-04-25  Bruno Haible  <bruno@clisp.org>
112787         * gnulib-tool (func_import): Output the include directives in three
112788         blocks, sorted separately.
112789         Reported by Ben Pfaff <blp@cs.stanford.edu>.
112791 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
112793         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
112794         to define main with arguments, for C++.  Reported by Eric Blake.
112795         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
112796         Prefer 'int main ()' to 'int main (void)', for C++.
112797         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
112798         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
112799         for 'main', for C99 and C++.
112801 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
112803         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
112804         Don't assume that exit status -1 is valid.
112805         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
112806         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
112807         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
112808         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
112809         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
112810         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
112811         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
112812         functions can be used without declaring them, or that you can
112813         exit with status -1.
112814         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
112816 2006-04-24  Karl Berry  <karl@gnu.org>
112818         * config/srclist.txt (longdouble.m4): sync lost.
112820 2006-04-24  Eric Blake  <ebb9@byu.net>
112822         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
112824 2006-04-24  Bruno Haible  <bruno@clisp.org>
112826         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
112827         poll() implementation in AIX.
112828         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112830 2006-04-24  Bruno Haible  <bruno@clisp.org>
112832         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
112833         assigned exactly once.
112835 2006-04-23  Claudio Fontana  <claudio@gnu.org>
112836             Bruno Haible  <bruno@clisp.org>
112838         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
112839         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
112840         for AM_CPPFLAGS.
112842 2006-04-23  Bruno Haible  <bruno@clisp.org>
112844         * modules/copy-file: Depend on unistd.
112845         * modules/execute: Likewise.
112846         * modules/fatal-signal: Likewise.
112847         * modules/findprog: Likewise.
112848         * modules/mkdtemp : Likewise.
112849         * modules/pipe: Likewise.
112850         * modules/wait-process: Likewise.
112852 2006-04-23  Bruno Haible  <bruno@clisp.org>
112854         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
112855         condition was already detected.
112856         Reported by Ben Pfaff <blp@cs.stanford.edu>.
112858 2006-04-23  Bruno Haible  <bruno@clisp.org>
112860         * lib/copy-file.c: Include <unistd.h> unconditionally.
112861         * lib/execute.c: Likewise.
112862         * lib/fatal-signal.c: Likewise.
112863         * lib/findprog.c: Likewise.
112864         * lib/mkdtemp.c: Likewise.
112865         * lib/pipe.h: Likewise.
112866         * lib/pipe.c: Likewise.
112867         * lib/wait-process.h: Likewise.
112869 2006-04-23  Bruno Haible  <bruno@clisp.org>
112871         * gnulib-tool (func_usage): Fix --import description. Document
112872         --update.
112873         (func_import): Create temporary file in a temporary directory, if
112874         --dry-run is specified. Silence errors from 'grep' when there are no
112875         m4 files in $m4dir.
112876         (func_create_testdir): Silence errors from 'grep' when there are no
112877         m4 files in $m4dir.
112878         Reported by Karl Berry <karl@freefriends.org>.
112880 2006-04-20  Bruno Haible  <bruno@clisp.org>
112882         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
112883         one argument, so that the code will be portable to Autoconf 2.60.
112884         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
112885         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
112886         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
112888 2006-04-19  Derek Price  <derek@ximbiot.com>
112889             Eric Blake  <ebb9@byu.net>
112891         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
112892         rather than "/full/path.h".  Update comment to match.  Shorten &
112893         generalize m4_translit call via AS_TR_CPP.
112895 2006-04-19  Derek Price  <derek@ximbiot.com>
112896             Eric Blake  <ebb9@byu.net>
112898         * lib/inttypes.h: Correct grammar in comment.
112900 2006-04-18  Derek Price  <derek@ximbiot.com>
112901             Paul Eggert  <eggert@cs.ucla.edu>
112903         * modules/inttypes: New file.
112904         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
112906 2006-04-18  Derek Price  <derek@ximbiot.com>
112907             Paul Eggert  <eggert@cs.ucla.edu>
112909         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
112910         New files.
112912 2006-04-18  Derek Price  <derek@ximbiot.com>
112913             Paul Eggert  <eggert@cs.ucla.edu>
112915         * lib/inttypes.h: New file.
112916         * lib/strtoimax.c: Assume <inttypes.h>.
112918 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
112920         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
112921         isn't mounted.  Problem reported by Kir Kolyshkin.
112923 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
112925         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
112926         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
112927         Derek R. Price.
112928         * lib/regex.h (RE_DUP_MAX): Update comment to match current
112929         implementation.
112931 2006-04-12  Eric Blake  <ebb9@byu.net>
112933         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
112934         is now done automatically by the corresponding Autoconf macro.
112936 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
112938         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
112939         time_r.h.
112941 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
112943         Merge regex changes from libc, removing some of our
112944         POSIX-conformance changes that were rejected and redoing them in a
112945         less-intrusive way.
112947         * lib/regcomp.c (re_compile_internal, init_dfa):
112948         Length arg is now size_t, not Idx.  All uses changed.
112949         (peek_token): Forward decl now says internal_function.
112950         (__re_error_msgid, __re_error_msgid_idx):
112951         Now static rather than extern with attribute_hidden.
112952         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
112953         For some reason libc prefers K&R style defns for external functions.
112954         (regerror) [!defined _LIBC]: Likewise.
112955         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
112956         (seek_collating_symbol_entry, lookup_collation_sequence_value):
112957         (build_range_exp, build_collating_symbol):
112958         Use K&R-style defn.
112959         (re_compile_fastmap): Use '\0' to memset, not 0.
112960         (utf8_sb_map): Make the calculations more obvious.
112961         (init_dfa, parse_bracket_exp, build_charclass_op):
112962         Call calloc and cast result, as glibc does.
112963         (init_word_char, fetch_token, peek_token, peek_token_bracket):
112964         (build_range_exp, build_collating_symbol):
112965         Now internal functions.
112967         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
112969         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
112970         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
112971         Don't depend on VMS; depend on __VMS instead, for POSIX
112972         namespace cleanness.
112973         (regoff_t): Define to ssize_t, not long int.
112975         Remove the REG_ macros named below.  Instead, make the old names
112976         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
112977         __USE_GNU_REGEX.
112978         (REG_BACKSLASH_ESCAPE_IN_LISTS):
112979         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
112980         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
112981         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
112982         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
112983         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
112984         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
112985         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
112986         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
112987         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
112988         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
112989         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
112990         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
112991         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
112992         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
112993         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
112994         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
112995         (REG_NREGS):
112996         Remove.  All uses replaced by the old RE_* names.
112997         (RE_BACKSLASH_ESCAPE_IN_LISTS):
112998         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
112999         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
113000         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
113001         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
113002         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
113003         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
113004         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
113005         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
113006         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
113007         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
113008         Don't bother having these macros be independent of each others'
113009         values, since they no longer exist in the POSIX name space.
113011         Rename the following member names back to their old names,
113012         unless !__USE_GNU_REGEX.  All uses changed back.
113013         (buffer): Renamed from re_buffer.
113014         (allocated): Renamed from re_allocated.
113015         (used): Renamed from re_used.
113016         (syntax): Renamed from re_syntax.
113017         (fastmap): Renamed from re_fastmap.
113018         (translate): Renamed from re_translate.
113019         (can_be_null): Renamed from re_can_be_null.
113020         (regs_allocated): Renamed from re_regs_allocated.
113021         (fastmap_accurate): Renamed from re_fastmap_accurate.
113022         (no_sub): Renamed from re_no_sub.
113023         (not_bol): Renamed from re_not_bol.
113024         (not_eol): Renamed from re_not_eol.
113025         (newline_anchor): Renamed from re_newline_anchor.
113026         (num_regs): Renamed from rm_num_regs.
113027         (start): Renamed from rm_start.
113028         (end): Renamed from rm_end.
113030         (free_state): Move up a bit.
113032         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
113033         #define to be empty.
113034         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
113035         when that is what is intended.
113036         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
113037         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
113038         (MAX): New macro.
113039         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
113040         All uses changed back to re_malloc, etc.  It's now the caller's
113041         responsibility to check for overflow; all callers changed.
113042         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
113043         (re_x2nrealloc): Remove.
113044         (free_state): Remove decl.
113046         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
113047         (re_set_registers, re_exec):
113048         Use K&R-style defn.
113050         2006-01-31  Roland McGrath  <roland@redhat.com>
113052         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
113053         Reported by Mike Frysinger <vapier@gentoo.org>.
113055         2006-01-15  Andreas Jaeger  <aj@suse.de>
113057         [BZ #1950]
113058         * lib/regex_internal.c (re_string_reconstruct): Adjust for
113059         build_wcs_upper_buffer change.
113060         (build_wcs_upper_buffer): Change return type.
113062         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
113064         * lib/regex_internal.h: Include <stdint.h> if available.
113066         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
113068         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
113070         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
113072         * lib/regcomp.c: Adjust for changed secondary hash function.
113074         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
113076         * lib/regex.h: Pretty printing.
113077         Clean up namespace a bit.
113079         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
113081         * lib/regexec.c (update_cur_sifted_state, check_arrival,
113082         check_arrival_add_next_nodes): Avoid using uninitialized variable.
113084         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
113085                     Ulrich Drepper  <drepper@redhat.com>
113087         [BZ #1302]
113088         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
113089         changed.
113090         (bitset_word_t): Renamed from bitset_word.  All uses changed.
113092         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
113094         [BZ #281]
113095         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
113096         * lib/regcomp.c: Remove unnecessary uses of
113097         unsigned RE_TRANSLATE_TYPE.
113098         * lib/regex_internal.h: Likewise.
113099         * lib/regex_internal.c: Likewise.
113100         * lib/regexec.c: Likewise.
113101         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
113103         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
113105         * lib/regexec.c (find_recover_state): Remove unnecessary
113106         initialization.
113107         (transit_state_bkref): Make DFA a const pointer.
113108         (get_subexp): Likewise.
113109         (check_arrival): Likewise.
113110         (update_cur_sifted_state): Likewise.
113111         (re_search_internal): Likewise.
113112         (prune_impossible_nodes): Likewise.
113113         (acquire_init_state_context): Likewise.
113114         (proceed_next_node): Likewise.
113115         (set_regs): Likewise.
113116         (free_fail_stack_return): Likewise.
113117         (check_arrival_expand_ecl): Mark DFA parameter as const.
113118         (check_arrival_expand_ecl_sub): Likewise.
113119         (check_subexp_limits): Likewise.
113120         (sub_epsilon_src_nodes):  Likewise.
113121         (add_epsilon_src_nodes):  Likewise.
113122         (merge_state_array): Likewise.
113123         (update_regs): Likewise.
113124         (build_trtable): Likewise.
113125         (sift_states_backward): Mark MCTX parameter as const.
113126         (build_sifted_states): Likewise.
113127         (update_cur_sifted_state): Likewise.
113128         (sift_states_mkref): Likewise.
113129         (check_arrival_expand_ecl): Mark eclosure as const.
113130         (check_dst_limits_calc_pos_1): Likewise.
113131         * lib/regex_internal.h (re_match_context_t): Make dfa a const
113132         pointer.
113134         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
113136         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
113137         (transit_state_sb): Likewise.
113138         (transit_state_mb): Likewise.
113139         (sift_states_iter_mb): Likewise.
113140         (check_arrival_add_next_nodes): Likewise.
113141         (check_node_accept_bytes): Change first parameter to pointer-to-const.
113142         [_LIBC] (re_search_2_stub): Use mempcpy.
113144         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
113145         mbrtowc for very simple UTF-8 case.
113147         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
113148         a pointer-to-const.
113149         (re_acquire_state_context): Likewise.
113150         * lib/regex_internal.h: Adjust prototypes.
113152         * lib/regex.c: Prevent using C++ compilers.
113154         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
113155         (re_acquire_state_context): Likewise.
113157 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113159         * modules/regex (Depends-on): Add ssize_t.
113161 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113163         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
113164         translation table.
113166 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113168         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
113170 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
113171             Bruno Haible  <bruno@clisp.org>
113173         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
113174         <sys/types.h> and <inttypes.h>.
113176 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113178         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
113179         `__error_t_defined', so argp.h will not typedef the former.
113181 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
113183         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
113184         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
113185         glibc names.  Even if glibc is changed to conform to POSIX, the
113186         traditional names will be available anyway, since regex depends on
113187         the extensions module.  Also, fix a longstanding typo in the
113188         implementation of Spencer ERE test #75 from grep 2.3.  Problems
113189         reported by Emanuele Giaquinta.  Also, change sense of cached
113190         variable, so that the message makes sense.
113192 2006-03-24  Simon Josefsson  <jas@extundo.com>
113194         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
113195         including some doc fixes.
113196         (base64_encode_alloc): Fix +1 bug on allocation failures.
113198 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113200         * lib/base64.c (base64_encode): Do not read past end of array with
113201         unsanitized input on systems with CHAR_BIT > 8.
113203 2006-03-24  Eric Blake  <ebb9@byu.net>
113205         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
113207 2006-03-22  Karl Berry  <karl@gnu.org>
113209         * config/srclist.txt (*setenv.[ch]): get from coreutils.
113210         * config/srclistvars.sh (COREUTILS): new var.
113212 2006-03-17  Jim Meyering  <jim@meyering.net>
113214         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
113215         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
113217 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
113219         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
113220         no longer needs it.  Instead, check that regoff_t is as least
113221         as wide as ptrdiff_t.
113223         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
113224         so that our regex.h stays compatible with the installed regex.
113225         This is helpful for installers who configure --without-included-regex.
113226         Problem reported by Emanuele Giaquinta.
113228 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
113230         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
113231         Typedef to long int, not to off_, as POSIX will likely change
113232         in that direction.
113234 2006-03-15  Eric Blake  <ebb9@byu.net>
113236         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
113238 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
113240         * lib/argp-help.c (validate_uparams): Fix typo
113241         * lib/argp-parse.c (argp_default_options): Consistently begin help
113242         messages with a lowercase letter.
113244 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
113246         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
113247         overrun buffers and shouldn't be used (much as gets shouldn't be
113248         used).
113249         * lib/time_r.c (asctime_r, ctime_r): Likewise.
113251 2006-03-08  Simon Josefsson  <jas@extundo.com>
113253         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
113254         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113256 2006-03-08  Simon Josefsson  <jas@extundo.com>
113258         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
113259         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113261 2006-03-08  Simon Josefsson  <jas@extundo.com>
113263         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
113264         signal that configure disabled the device.
113266 2006-03-08  Simon Josefsson  <jas@extundo.com>
113268         * build-aux/maint.mk: Fix refresh-po, to handle no translated
113269         languages.
113271 2006-03-07  Simon Josefsson  <jas@extundo.com>
113273         * modules/getopt (Depends-on): Add unistd.
113275         * modules/unistd: New file.
113277 2006-03-07  Simon Josefsson  <jas@extundo.com>
113279         * modules/gc-random: New file.
113281 2006-03-07  Simon Josefsson  <jas@extundo.com>
113283         * m4/unistd_h.m4: New file.
113285 2006-03-07  Simon Josefsson  <jas@extundo.com>
113287         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
113288         test to be side-effect free by storing the result in the cache
113289         variable gl_cv_lib_readline, and moving the assignment of
113290         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
113291         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113293 2006-03-07  Simon Josefsson  <jas@extundo.com>
113295         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
113296         error on missing devices (the functions will return an error).
113298         * m4/gc.m4: Move random stuff to gc-random.m4
113300 2006-03-07  Simon Josefsson  <jas@extundo.com>
113302         * lib/unistd_.h: New file.
113304 2006-03-07  Simon Josefsson  <jas@extundo.com>
113306         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
113308 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113310         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
113311         Problem reported by Juan Manuel Guerrero.
113313 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113315         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
113316         the unistd module.
113317         * lib/getlogin_r.c: Likewise.
113318         * lib/getlogin_r.h: Likewise.
113319         * lib/glob.c: Likewise.
113320         * lib/pagealign_alloc.c: Likewise.
113321         * lib/unistd_.h: Remove; no longer needed.
113323 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113325         * MODULES.html.sh (Support for systems lacking POSIX:2001):
113326         Add unistd.
113327         * modules/c-stack (Depends-on): Add unistd.
113328         * modules/getlogin_r: Likewise.
113329         * modules/glob: Likewise.
113330         * modules/pagealign_alloc: Likewise.
113331         * modules/unistd (Files): Remove lib/unistd_.h.
113332         (EXTRA_DIST): Remove.
113333         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
113334         need unistd_.h.
113335         (MOSTLYCLEANFILES): Remove unistd.h-t.
113337 2006-03-03  Simon Josefsson  <jas@extundo.com>
113339         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
113341 2006-03-03  Simon Josefsson  <jas@extundo.com>
113343         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
113344         libidn and bison.
113346 2006-03-03  Simon Josefsson  <jas@extundo.com>
113348         * build-aux/maint.mk: Add indent target.
113350 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
113352         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
113353         our replacement poll.h in any case, to avoid a differing
113354         declaration from a system header.  Seen on AIX.
113356 2006-03-01  Simon Josefsson  <jas@extundo.com>
113358         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
113359         <kasal@ucw.cz>.
113361 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
113363         * modules/gettime (Depends-on): Add extensions module.
113364         * modules/nanosleep (Depends-on): Likewise.
113365         * modules/settime (Depends-on): Likewise.
113367 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
113369         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
113370         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
113371         pedantically.
113372         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
113373         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
113375         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
113376         not "==".  Reported by Ralf Wildenhues.
113378 2006-03-01  Karl Berry  <karl@gnu.org>
113380         * doc/Copyright/request-*: new files, synced from gnuorg.
113382 2006-03-01  Karl Berry  <karl@gnu.org>
113384         * config/srclist.txt (Copyright/*): new entries.
113386 2006-02-28  Simon Josefsson  <jas@extundo.com>
113388         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
113390 2006-02-27  Simon Josefsson  <jas@extundo.com>
113392         * lib/base64.h: Indent #define's.  From Jim Meyering
113393         <jim@meyering.net>.
113395 2006-02-27  Jim Meyering  <jim@meyering.net>
113397         Revert the change of 2006-02-24, so these files can continue
113398         to be sync'd from gettext.
113399         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
113400         of `config.h'.
113402 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
113404         * modules/intprops: New file.
113405         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
113406         Add intprops.
113407         * modules/getloadavg (Files): Remove lib/intprops.h.
113408         (Depends-on): Add intprops.
113409         * modules/human: Likewise.
113410         * modules/inttostr: Likewise.
113411         * modules/openat: Likewise.
113412         * modules/sig2str: Likewise.
113413         * modules/userspec: Likewise.
113414         * modules/utimecmp: Likewise.
113415         * modules/xnanosleep: Likewise.
113416         * modules/xstrtol: Likewise.
113418 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
113420         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
113421         * modules/lock-tests (TESTS): Use $(EXEEXT).
113422         * modules/tls-tests: Likewise.
113423         * modules/argp-tests: Likewise.
113424         (check_PROGRAMS): New var, replacing...
113425         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
113427 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113429         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
113430         `config.h'.
113432 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
113434         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
113436 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113438         Sync from coreutils.
113439         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
113440         gl_CHDIR_SAFER.
113442 2006-02-22  Jim Meyering  <jim@meyering.net>
113444         Sync from coreutils.
113445         * m4/chdir-safer.m4: New file.
113447 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
113449         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
113450         AT_FDCWD exceeds INT_MAX.
113451         * lib/openat.h (AT_FDCWD): Likewise.
113453 2006-02-17  Eric Blake  <address@hidden>
113455         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
113457 2006-02-16  Simon Josefsson  <jas@extundo.com>
113459         * modules/getaddrinfo (Depends-on): Add sys_socket.
113461 2006-02-15  Simon Josefsson  <jas@extundo.com>
113463         * build-aux/maint.mk: Add dsyntax-check rule.
113465 2006-02-15  Eric Blake  <ebb9@byu.net>
113467         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
113468         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
113469         'present but cannot compile' warnings on cygwin.
113470         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
113471         use ws2tcpip.h if sys/socket.h works.
113472         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
113473         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
113475 2006-02-14  Simon Josefsson  <jas@extundo.com>
113477         * modules/maintainer-makefile (Files): Rename.
113479         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
113480         and (the local) Makefile.cfg to maint-cfg.mk.
113482         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
113483         to the latter.
113485         * modules/maintainer-makefile: New module.
113487         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
113488         severaly stripped to make it possible to build it up from scratch
113489         with reliable tests.
113491         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
113492         fixes to permit overriding the default actions when configure and
113493         makefile are not available.
113495 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
113497         Sync from coreutils.
113498         * modules/lstat (Depends-on): Don't depend on xalloc.
113499         (License): Change from GPL to LGPL, since this is now simply a
113500         replacement for a libc function.
113502 2006-02-14  Jim Meyering  <jim@meyering.net>
113504         Sync from coreutils.
113506         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
113507         failure on deficient systems, and simplify gnulib lgpl dependencies.
113508         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
113509         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
113511         * lib/xalloc-die.c: Remove unused definition of N_.
113513 2006-02-14  Jim Meyering  <jim@meyering.net>
113515         Sync from coreutils.
113516         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
113517         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
113518         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
113519         double-quote uses of that variable, to accommodate the rare case in
113520         which getmntent is available in none of the libraries checked.  This
113521         happens at least on FreeBSD 5.0.
113523 2006-02-13  Simon Josefsson  <jas@extundo.com>
113525         * gnulib-tool (Usage): Fix --import, from
113526         karl@freefriends.org (Karl Berry).
113528 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
113530         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
113532 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
113534         * lib/argp-namefrob.h: Restore changes accidentally lost during the
113535         "autoupdate" on 2005-12-12.
113537 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
113539         * modules/closeout (Depends-on): Remove atexit.
113541 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
113543         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
113544         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
113546 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
113548         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
113549         __EXTENSIONS__ if this causes compilation to fail.  Problem
113550         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
113551         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
113553 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
113555         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
113556         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
113557         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
113558         All uses changed.
113560 2006-01-26  Simon Josefsson  <jas@extundo.com>
113562         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
113563         prototype is visible on mingw32.
113565         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
113566         for mingw32.
113568         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
113569         mingw32).
113571 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
113573         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
113574         attempt to open for write; this always fails, at least on POSIX
113575         hosts.  This reinstates the 2006-01-09 change, which was
113576         inadvertently removed.
113578 2006-01-26  Bruno Haible  <bruno@clisp.org>
113580         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
113581         Reported by Paul Eggert.
113583 2006-01-26  Bruno Haible  <bruno@clisp.org>
113584             Paul Eggert  <eggert@cs.ucla.edu>
113586         * lib/stdbool_.h (_Bool)
113587         [(! (defined __cplusplus || defined __BEOS__)
113588           && !defined __GNUC__
113589           && !(defined __HP_cc || defined __xlc__
113590                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
113591                || defined __sgi))]:
113592         #define to signed char in these cases too; this simplifies
113593         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
113594         etc., separately) and makes it more conservative.
113596 2006-01-25  Simon Josefsson  <jas@extundo.com>
113598         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
113599         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
113600         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
113602 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
113604         * lib/argp-namefrob.h: Bugfix. Remove stray #
113606 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
113608         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
113609         so that we test the test.
113610         Check for yet another HP-UX cc bug involving *bool |= bool.
113612 2006-01-25  Karl Berry  <karl@gnu.org>
113614         * config/srclist.txt (vasnprintf.c): sync lost.
113616 2006-01-25  Jim Meyering  <jim@meyering.net>
113618         Sync from the stable (b5) branch of coreutils:
113620         * lib/fts.c (fts_children): Don't let close() clobber errno from
113621         failed fchdir().
113623         * lib/fts.c (fts_stat): When following a symlink-to-directory,
113624         don't necessarily interpret stat-fails+lstat-succeeds as indicating
113625         a dangling symlink.  That can also happen at least for ELOOP.
113626         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
113627         FYI, this bug predates the inclusion of fts.c in coreutils.
113629         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
113630         in their own block, so pre-c99 compilers don't object.
113632         Avoid the double-free (first in fts_read, second in fts_close) that
113633         would occur when an `active' directory is made inaccessible (e.g.,
113634         via chmod a-x) during a traversal.
113635         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
113636         before returning.  Reproduce this failure by
113637         mkdir -p a/b; cd a; chmod a-x . b
113638         Reported by Stavros Passas.
113640 2006-01-25  Jim Meyering  <jim@meyering.net>
113642         * lib/fileblocks.c: Remove more useless parentheses.
113643         * lib/readutmp.h: Likewise.
113645 2006-01-25  Bruno Haible  <bruno@clisp.org>
113647         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
113648         warnings.
113649         Reported by Paul Eggert.
113651 2006-01-25  Bruno Haible  <bruno@clisp.org>
113653         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
113654         rid of a trap command. For Solaris sh.
113655         Reported by Mark D. Baushke <mdb@gnu.org>.
113657 2006-01-24  Simon Josefsson  <jas@extundo.com>
113659         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
113660         Bruno.
113662 2006-01-24  Karl Berry  <karl@gnu.org>
113664         * config/srclist.txt (argp-namefrob.h): sync lost.
113666 2006-01-24  Jim Meyering  <jim@meyering.net>
113668         * modules/openat (Files): Add lib/intprops.h.
113669         From Mark D. Baushke.
113671 2006-01-24  Jim Meyering  <jim@meyering.net>
113673         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
113674         Reported by Mark D. Baushke.
113676 2006-01-24  Jim Meyering  <jim@meyering.net>
113678         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
113680 2006-01-24  Bruno Haible  <bruno@clisp.org>
113682         * modules/strnlen (Maintainer): Change from glibc to all.
113684 2006-01-24  Bruno Haible  <bruno@clisp.org>
113686         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
113687         Patch by Paul Eggert.
113689 2006-01-24  Bruno Haible  <bruno@clisp.org>
113691         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
113692         already has it.
113693         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
113694         2005-11-26.
113696         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
113697         'signed char' to avoid problems with the built-in _Bool type.
113698         Reported by Paul Eggert on 2005-11-26.
113700 2006-01-24  Bruno Haible  <bruno@clisp.org>
113702         * gnulib-tool (func_import): Avoid constructing complicated sed
113703         expressions inside backquote.
113704         Report and solution by Mark D. Baushke <mdb@gnu.org>.
113706 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
113708         These changes imported from libc.
113709         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
113710         test and two separate function calls.
113711         * lib/strndup.c (__strndup): Add libc_hidden_def.
113713 2006-01-23  Simon Josefsson  <jas@extundo.com>
113715         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
113716         Remove the test_*_SOURCES variable: automake infers it by default.
113717         * modules/tls-tests: Likewise.
113719 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113721         Work around porting bugs reported by Dieter in
113722         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
113723         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
113724         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
113725         Include "getopt.h" first, to check interface.
113726         (getenv): Declare only if defined HAVE_DECL_GETENV &&
113727         !HAVE_DECL_GETENV.
113728         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
113729         (__strndup): Revert to K&R-style function dfns, the glibc style.
113730         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
113731         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
113732         Include strnlen.h first, to get prototype properly.
113733         (strnlen): Renamed from __strnlen.
113734         Remove weak alias.
113736 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113738         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
113740 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113742         * config/srclist.txt: Adjust to reflect glibc reorganization.
113743         This affects only comments.
113745 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
113747          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
113748          Reported by Bruce Korb <bkorb@gnu.org>.
113750 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
113752         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
113753         to pacify gcc -Wswitch-default.
113755 2006-01-22  Bruno Haible  <bruno@clisp.org>
113757         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
113758         temporary buffer for sprintf, take into account the precision also
113759         for 'd', 'i', 'u', 'o', 'x', 'X'.
113761 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
113763         * modules/argp-tests: New module
113764         * tests/test-argp.c: New file
113765         * tests/test-argp-2.sh: New file
113767 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
113769         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
113770         (__argp_base_name): Removed
113771         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
113772         typo.
113773         (__argp_base_name): Provide macro definition or extern declaration
113774         depending on the configuration
113776 2006-01-20  Simon Josefsson  <jas@extundo.com>
113778         * modules/inet_ntop (Depends-on): Depend on sys_socket.
113780 2006-01-20  Simon Josefsson  <jas@extundo.com>
113782         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
113784 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
113786         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
113787         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
113788         Suggested by Bruno Haible.
113790 2006-01-20  Karl Berry  <karl@gnu.org>
113792         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
113793         until changes propagate, I guess.
113795 2006-01-19  Simon Josefsson  <jas@extundo.com>
113797         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
113799 2006-01-19  Simon Josefsson  <jas@extundo.com>
113801         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
113803 2006-01-19  Simon Josefsson  <jas@extundo.com>
113805         * gnulib-tool: Set check_PROGRAMS.
113807         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
113808         modules/des-tests, modules/gc-arcfour-tests,
113809         modules/gc-arctwo-tests, modules/gc-des-tests,
113810         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
113811         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
113812         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
113813         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
113814         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
113815         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
113816         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
113817         test_*_SOURCES.
113819 2006-01-18  Simon Josefsson  <jas@extundo.com>
113821         * modules/socklen (Depends-on): Depend on sys_socket.
113823 2006-01-18  Simon Josefsson  <jas@extundo.com>
113825         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
113826         modules/des-tests, modules/gc-arcfour-tests,
113827         modules/gc-arctwo-tests, modules/gc-des-tests,
113828         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
113829         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
113830         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
113831         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
113832         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
113833         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
113834         $(EXEEXT) to automake TESTS variable, for mingw32.
113836 2006-01-17  Simon Josefsson  <jas@extundo.com>
113838         * modules/socklen (Include): Need sys/socket.h.
113840 2006-01-17  Bruno Haible  <bruno@clisp.org>
113842         * modules/ssize_t (Include): Add <sys/types.h>.
113844 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
113846         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
113847         it's not portable and it doesn't work with cross-compiles.
113848         Problem reported by Bruno Haible.  Fix missing-$ typo in
113849         'test "gl_cv_ignore_unused_libraries" ...' that prevented
113850         -zignore from being used with Sun's C compiler.
113852 2006-01-12  Simon Josefsson  <jas@extundo.com>
113854         * lib/base64.c: Fix warning, reported by Bruno Haible
113855         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
113857 2006-01-12  Bruno Haible  <bruno@clisp.org>
113859         * modules/ldd: New file.
113860         * build-aux/ldd.sh.in: New file.
113861         * MODULES.html.sh (Support for building libraries and executables): Add
113862         ldd.
113864 2006-01-12  Bruno Haible  <bruno@clisp.org>
113866         * m4/ldd.m4: New file.
113868 2006-01-12  Bruno Haible  <bruno@clisp.org>
113870         * gnulib-tool (func_import, func_create_testdir): Don't go into an
113871         endless loop while replacing $auxdir with build-aux.
113873 2006-01-11  Simon Josefsson  <jas@extundo.com>
113875         * lib/stdint_.h (SIZE_MAX): Add missing (.
113877 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
113879         Sync from coreutils.
113880         * lib/md5.c: Fix commentary typos.
113881         (alignof, UNALIGNED_P): No need for a GCC-specific version.
113882         * lib/md5.h (__attribute__): Remove; unused.
113883         * lib/sha1.c: Fix commentary to match md5 better.
113884         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
113885         so that we don't need to worry about alignment.  All uses changed.
113886         This merges the 2005-10-28 md5 change into sha1.
113888 2006-01-11  Jim Meyering  <jim@meyering.net>
113890         Sync from coreutils.
113891         * lib/md5.c (OP): Fix spacing.
113893 2006-01-11  Bruno Haible  <bruno@clisp.org>
113895         Ensure automatic ordering between gl_LOCK and gl_ARGP.
113896         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
113897         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
113899 2006-01-11  Bruno Haible  <bruno@clisp.org>
113901         Ensure automatic ordering between gl_LOCK and gl_ARGP.
113902         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
113903         the "early" section as well.
113905 2006-01-11  Bruno Haible  <bruno@clisp.org>
113907         Avoid "ar: no archive members specified" error on MacOS X.
113908         * gnulib-tool (func_modules_add_dummy): New function.
113909         (func_import, func_create_testdir): Invoke it.
113911 2006-01-11  Bruno Haible  <bruno@clisp.org>
113913         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
113914         with $auxdir in AC_CONFIG_FILES statements.
113916 2006-01-11  Bruno Haible  <bruno@clisp.org>
113918         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113919         Initialize also noinst_HEADERS to empty.
113921 2006-01-11  Bruno Haible  <bruno@clisp.org>
113923         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
113924         variables.
113925         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
113926         autoreconf.
113928 2006-01-11  Bruno Haible  <bruno@clisp.org>
113930         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
113931         overridable by the user.
113932         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113934 2006-01-10  Simon Josefsson  <jas@extundo.com>
113936         * modules/sys_socket: New file.
113938 2006-01-10  Simon Josefsson  <jas@extundo.com>
113940         * m4/sys_socket_h.m4: New file.
113942 2006-01-10  Simon Josefsson  <jas@extundo.com>
113944         * lib/socket_.h: New file.
113946 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
113948         * modules/readutmp (Maintainer): Add myself.
113950 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
113952         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
113953         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
113954         People who are still concerned with buggy memcmp implementations
113955         can invoke gl_FUNC_MEMCMP themselves.
113957 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
113959         * lib/regex_internal.h (BITSET_WORD_BITS):
113960         Work around a bug in 64-bit PGC (before version 6.1-2), where the
113961         preprocessor mishandles large unsigned values as if they were signed.
113962         Problem reported by Claudio Fontana in
113963         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
113965 2006-01-10  Jim Meyering  <jim@meyering.net>
113967         Avoid the double-free (first in fts_read, second in fts_close) that
113968         would occur when an `active' directory is made inaccessible (e.g.,
113969         via chmod a-x) during a traversal.
113970         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
113971         before returning.  Reproduce this failure by
113972         mkdir -p a/b; cd a; chmod a-x . b
113973         Reported by Stavros Passas.
113975         Sync from coreutils.
113976         * lib/sha1.c: Tweak grammar in a comment.
113978 2006-01-10  Jim Meyering  <jim@meyering.net>
113980         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
113981         Patch by Joerg Sonnenberger.
113983 2006-01-10  Bruno Haible  <bruno@clisp.org>
113985         * modules/readutmp: Depend on module free.
113986         * modules/strtok_r: Depend on module restrict.
113988 2006-01-10  Bruno Haible  <bruno@clisp.org>
113990         * modules/gettext (configure.ac): Add an invocation of
113991         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
113993 2006-01-10  Bruno Haible  <bruno@clisp.org>
113995         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
113996         Reported by Werner Lemberg <wl@gnu.org>.
113998 2006-01-10  Bruno Haible  <bruno@clisp.org>
114000         * lib/localcharset.c: Update from GNU gettext.
114002 2006-01-10  Bruno Haible  <bruno@clisp.org>
114004         * lib/argp.h (__const): Remove macro. Use const instead.
114005         * lib/argp-fmtstream.h (__const): Likewise.
114006         * lib/glob_.h (__const): Remove macro.
114007         * lib/glob-libc.h: Use const instead of __const.
114009 2006-01-10  Bruno Haible  <bruno@clisp.org>
114011         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
114012         variable.
114013         Needed to avoid an automake error regarding the 'gettext' module.
114015 2006-01-09  Simon Josefsson  <jas@extundo.com>
114017         * modules/inet_ntop (Depends-on): Add restrict.
114019 2006-01-09  Simon Josefsson  <jas@extundo.com>
114021         * modules/gc-rijndael-tests (License): Put under LGPL.
114023         * modules/gc-des-tests (License): Likewise.
114025         * modules/gc-arcfour-tests (License): Likewise.
114027         * modules/gc-arctwo-tests (License): Likewise.
114029         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
114031         * modules/gc-hmac-sha1-tests (Files): Likewise.
114033         * modules/gc-hmac-md5-tests (License): Likewise.
114035         * modules/gc-sha1-tests (License): Likewise.
114037         * modules/gc-md5-tests (License): Likewise.
114039         * modules/gc-md4-tests (License): Likewise.
114041         * modules/gc-md2-tests (License): Likewise.
114043         * modules/gc-tests (License): Likewise.
114045         * modules/des-tests (License): Likewise.
114047         * modules/md4-tests (License): Likewise.
114049         * modules/md2-tests (License): Likewise.
114051 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114053         Sync from coreutils:
114055         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
114056         * modules/lib-ignore: New file.
114057         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
114058         chdir-safer.m4, lchmod.m4.
114059         * modules/openat: Add mkdirat.c, openat-priv.h.
114061 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114063         Sync from coreutils.
114064         * m4/lib-ignore.m4: New file.
114065         * m4/lchmod.m4: New file.
114067 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114069         Sync from coreutils.
114070         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
114071         for write access: POSIX says that must fail.
114072         * lib/fts.c (diropen): Likewise.
114073         * lib/save-cwd.c (save_cwd): Likewise.
114074         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
114075         well, for minor improvements on hosts that lack O_DIRECTORY.
114076         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
114077         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
114078         Fall back on chown if open failed with EACCES.
114080         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
114081         Report an error at compile-time if only a 1-second nominal clock
114082         resolution is found.
114084         * lib/lchmod.h: New file.
114085         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
114086         (make_dir_parents): Use lchown rather than chown, and
114087         lchmod rather than chmod.
114089         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
114090         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
114091         "proc" reported by n0dalus.
114093         * lib/mountlist.c: Include <limits.h>.
114094         (dev_from_mount_options)
114095         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
114096         New function.  It no longer assumes "dev=" has the System V meaning
114097         on Linux (since it doesn't).  It also parses "dev=" more carefully.
114098         (read_file_system_list)
114099         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
114100         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
114101         dev= in that case.
114103         * lib/posixtm.h (PDS_PRE_2000): New macro.
114104         * lib/posixtm.c (year): Arg is now syntax_bits rather than
114105         allow_century.  All usages changed.  Reject dates outside the range
114106         1969-1999 if PDS_PRE_2000 is used.
114108 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114110         Sync from coreutils.
114111         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
114112         (Time of day items): Mention the possibility of leap seconds.
114113         Problem reported by Dr. David Alan Gilbert.
114115 2006-01-09  Jim Meyering  <jim@meyering.net>
114117         Sync from coreutils.
114119         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
114121         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
114123         * lib/modechange.c (mode_compile): Reject an invalid mode string
114124         that starts with an octal digit.  From Andreas Gruenbacher.
114126         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
114127         and dup to open_safer and dup_safer, respectively.
114128         (openat_permissive): Fix typo in comment.
114130         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
114131         "gettext.h"; either no longer needed or are guaranteed by openat.h.
114132         (_): Remove; no longer needed.
114133         (openat): Renamed from rpl_openat; no need for rpl_openat
114134         since openat.h renames openat for us.
114135         Replace most of the body with a call to openat_permissive,
114136         to avoid duplicate code.
114137         Port to (probably hypothetical) environments were mode_t is
114138         wider than int.
114139         (openat_permissive): Require mode arg, so that we can check
114140         types better.  Put it just after flags.  Change cwd failure
114141         indicator from pointer-to-bool to pointer-to-errno-value.
114142         All callers changed.
114143         Invoke openat_save_fail and/or openat_restore_fail if
114144         cwd_errno is null, so that openat can call us.
114145         (openat_permissive, fdopendir, fstatat, unlinkat):
114146         Simplify errno handling to avoid some duplicate code,
114147         as it's OK to set errno on success.
114148         * lib/openat.h: Revamp code so that function macros depend on
114149         __OPENAT_PREFIX only, not also on AT_FDCWD.
114150         (openat_ro): Remove.  Caller changed to use openat_permissive.
114151         (openat_permissive): Now a macro, if not a function.
114152         (openat_restore_fail, openat_save_fail): Now always functions,
114153         since mkdirat needs them even if __OPENAT_PREFIX is defined.
114155         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
114156         and openat.c.
114157         * lib/mkdirat.c: Include openat-priv.h.
114158         Remove definitions of macros defined therein.
114159         * lib/openat.c: Likewise.
114161         * lib/mkdirat.c (mkdirat): New file and function.
114162         * lib/openat.h (mkdirat): Declare.
114164         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
114166         * lib/openat.h (openat_permissive): Declare.
114167         (openat_ro): Define.
114169         * lib/openat.c (EXPECTED_ERRNO): New macro.
114170         (openat_permissive): New function -- used in remove.c rewrite.
114171         (all functions): Set errno just before returning, only if there
114172         was an actual failure.
114173         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
114175         Emulate openat-family functions using Linux's procfs, if possible.
114176         Idea and some code based on Ulrich Drepper's glibc changes.
114178         * lib/openat.c: (BUILD_PROC_NAME): New macro.
114179         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
114180         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
114181         before falling back on save_cwd and restore_cwd.
114182         (fdopendir, fstatat, unlinkat): Likewise.
114184         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
114185         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
114187         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
114188         as second argument to va_arg.  Otherwise, some versions of gcc
114189         warn that `if this code is reached, the program will abort'.
114191 2006-01-09  Jim Meyering  <jim@meyering.net>
114193         Sync from coreutils.
114194         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
114195         Require openat-priv.h.
114197 2006-01-09  Bruno Haible  <bruno@clisp.org>
114199         * modules/strnlen (Include): Use strnlen.h.
114201 2006-01-09  Bruno Haible  <bruno@clisp.org>
114203         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
114205 2006-01-09  Bruno Haible  <bruno@clisp.org>
114207         * lib/sysexit_.h (EX_OK): New macro.
114208         Suggested by Martin Lambers <marlam@marlam.de>.
114210 2006-01-09  Bruno Haible  <bruno@clisp.org>
114212         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
114213         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
114215 2006-01-09  Bruno Haible  <bruno@clisp.org>
114217         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
114218         numbers.
114220 2006-01-09  Bruno Haible  <bruno@clisp.org>
114222         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
114223         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
114224         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
114225         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
114227 2006-01-09  Bruno Haible  <bruno@clisp.org>
114229         * build-aux/javacomp.sh.in: New file, moved from lib/.
114230         * modules/javacomp-script (Files): Update.
114231         (configure.ac): Add AC_CONFIG_FILES invocation.
114232         (EXTRA_DIST): Remove variable.
114234         * build-aux/javaexec.sh.in: New file, moved from lib/.
114235         * modules/javaexec (Files): Update.
114236         (configure.ac): Add AC_CONFIG_FILES invocation.
114237         (EXTRA_DIST): Remove javaexec.sh.in.
114239         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
114240         * modules/csharpcomp-script (Files): Update.
114241         (configure.ac): Add AC_CONFIG_FILES invocation.
114242         (EXTRA_DIST): Remove variable.
114244         * build-aux/csharpexec.sh.in: New file, moved from lib/.
114245         * modules/csharpexec (Files): Update.
114246         (configure.ac): Add AC_CONFIG_FILES invocation.
114247         (EXTRA_DIST): Remove csharpexec.sh.in.
114249 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
114251         Sync from coreutils.
114253         Add POSIX ACL support
114254         * lib/acl.h (copy_acl, set_acl): Add declarations.
114255         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
114256         systems other than Linux.
114257         (chmod_or_fchmod): New function: use fchmod when possible,
114258         and chmod otherwise.
114259         (file_has_acl): Add a POSIX ACL implementation, with a
114260         Linux-specific subcase.
114261         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
114262         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
114263         acls are unsupported.
114264         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
114265         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
114266         are unsupported.
114268 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
114270         Sync from coreutils.
114271         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
114273 2006-01-07  Bruno Haible  <bruno@clisp.org>
114275         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
114276         gl_EARLY.
114278 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114280         * lib/strftime.c (tzname): Don't declare if it is already #defined.
114281         Problem reported for Mingw by Mark Junker.
114283 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114285         * README: Gnulib normally doesn't generate a tarball.
114287 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
114289         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
114290         long int, not int, for nanosecond counts, so that people who are
114291         used to POSIX struct timespec won't be surprised.  Reported by Jim
114292         Meyering.
114294 2005-12-28  Bruno Haible  <bruno@clisp.org>
114296         * build-aux/config.rpath: Update from GNU gettext.
114298 2005-12-16  Jim Meyering  <jim@meyering.net>
114300         * modules/fprintftime: New module.
114301         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
114303 2005-12-16  Jim Meyering  <jim@meyering.net>
114305         * m4/fprintftime.m4: New file.
114307 2005-12-16  Jim Meyering  <jim@meyering.net>
114309         * lib/fprintftime.c, lib/fprintftime.h: New files.
114311 2005-12-15  Simon Josefsson  <jas@extundo.com>
114313         * modules/socklen (configure.ac): Fix M4 macro name, to align with
114314         new m4/socklen.m4.
114316 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114318         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
114319         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
114321 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114323         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
114324         * lib/argp-help.c (fill_in_uparams): Check if the constructed
114325         struct uparams is valid. Fall back to the default values if it is
114326         not.
114328 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114330         * modules/argp (Files): Add argp-pin.c
114331         (Depends-on): dirname
114332         (lib_SOURCES): Add argp-pin.c
114334 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114336         * m4/argp.m4:  Check if program_invocation_name and
114337         program_invocation_short_name are declared and define appropriate
114338         macros if they are not.
114340 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114342         * lib/argp-help.c (__argp_base_name): New function
114343         (__argp_short_program_name): Rewrite using __argp_base_name
114344         * lib/argp-namefrob.h: Define program_invocation_name and
114345         program_invocation_short_name if requested
114346         (__argp_base_name): Add prototype
114347         * lib/argp-parse.c (argp_def): Use gettext wrappers
114348         (argp_default_parser): Use __argp_base_name
114349         * lib/argp-pin.c: New file. Defines program_invocation_name and
114350         program_invocation_short_name on systems that lack them.
114352 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114354         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
114355         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
114356         porting problem reported by Georg Schwarz in
114357         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
114359 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114361         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
114362         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
114363         porting problem reported by Georg Schwarz in
114364         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
114366 2005-12-05  Bruno Haible  <bruno@clisp.org>
114368         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
114369         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
114370         Reported by Mark Junker <mjscod@gmx.de>.
114372 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
114374         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
114375         Use implementation from Albert Chin, with some
114376         comments/corrections by Stepan Kasal and myself.
114378 2005-12-02  Bruno Haible  <bruno@clisp.org>
114380         * gnulib-tool (func_import): Accept GPLed build tool modules when
114381         --lgpl is given.
114382         * modules/csharpcomp-script: New file.
114383         * modules/csharpcomp: Depend on it.
114384         * modules/javacomp-script: New file.
114385         * modules/javacomp: Depend on it.
114386         Suggested by Simon Josefsson.
114388 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
114390         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
114391         statement, to work around an HP-UX 10.20 compiler bug reported by
114392         Peter O'Gorman.
114394 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114396         * modules/savedir (Depends-on): Add openat.
114398 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114400         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
114401         (uintmax_t) [defined uintmax_t]: Do not declare.
114402         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
114403         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
114404         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
114405         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
114406         sake of portability to weird hosts that C allows (though we don't
114407         know of any practical examples).
114409         * lib/savedir.h (fdsavedir): New decl.
114410         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
114411         contains most of the former guts of savedir.
114412         (savedir): Use savedirstream.
114413         Include "openat.h".
114415 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
114417         * modules/obstack (Files): Add m4/ulonglong.m4.
114418         Problem reported by Davide Angelocola.
114420 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
114422         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
114423         coreutils no longer futzes with rounding modes.
114425 2005-11-14  Jim Meyering  <jim@meyering.net>
114427         * lib/mkstemp-safer.c: Include <config.h>, required for possible
114428         replacement of mkstemp.
114430 2005-11-10  Simon Josefsson  <jas@extundo.com>
114432         * lib/readline.c: Remove EOL.
114434 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114436         * modules/gethrxtime (Depends-on): Add gettime.
114438 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114440         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
114441         or gettimeofday; no longer needed.
114443 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114445         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
114446         time business.
114447         (gethrxtime) [! (HAVE_NANOUPTIME
114448         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
114449         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
114450         our own approximation.
114452 2005-11-08  Eric Blake  <ebb9@byu.net>
114454         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
114456 2005-11-08  Eric Blake  <ebb9@byu.net>
114458         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
114460 2005-11-04  Bruno Haible  <bruno@clisp.org>
114462         * gnulib-tool: Implement --update mode.
114464 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
114466         Fix porting problem reported by Theodoros V. Kalamatianos.
114467         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
114468         Don't assume that futimes failing means we must fail.
114470 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
114472         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
114473         variables to suggest the intended function of the PATH_MAX check.
114475 2005-10-30  Kean Johnston  <jkj@sco.com>
114477         Trivial changes to support SCO systems.
114478         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
114479         as PATH_MAX.
114480         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
114481         where __ptr is null when no I/O is pending.
114483 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
114485         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
114486         leave errno alone.  Problem reported by Dmitry V. Levin.
114488 2005-10-28  Simon Josefsson  <jas@extundo.com>
114490         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
114491         Test more.
114493         * tests/test-gc-md2.c, tests/test-md2.c: New files.
114495         * modules/md2, modules/md2-tests: New files.
114497 2005-10-28  Simon Josefsson  <jas@extundo.com>
114499         * m4/inet_ntop.m4: More tests.
114501         * m4/gc-md2.m4, md2.m4: New file.
114503 2005-10-28  Simon Josefsson  <jas@extundo.com>
114505         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
114506         "restrict" keywords, as per POSIX.  Protect the function
114507         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
114508         Don't use K&R prototypes.  Check the sprintf return values.
114509         Re-define EAFNOSUPPORT if not present.  Indent.
114511         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
114512         suggested by Bruno Haible <bruno@clisp.org>.
114514         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
114516         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
114518         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
114519         libgcrypt).
114521         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
114523         * lib/md2.h, lib/md2.c: New files.
114525 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
114527         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
114528         errno alone.  Problem reported by Frederic Jolliton.
114530 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
114532         * modules/verify (License): Change from GPL to LGPL.  This is a
114533         tiny module and there are apparently near-equivalents that are
114534         under the BSD license.
114536 2005-10-24  Simon Josefsson  <jas@extundo.com>
114538         * modules/sha1: Relicense to LGPL.
114540 2005-10-24  Simon Josefsson  <jas@extundo.com>
114542         * lib/md4.h: Shrink buffer size, now that we changed the type.
114544 2005-10-23  Simon Josefsson  <jas@extundo.com>
114546         * gnulib-tool (func_import): Fix --tests-base.
114548 2005-10-22  Simon Josefsson  <jas@extundo.com>
114550         * modules/arcfour (Depends-on): Need stdint.
114552 2005-10-22  Simon Josefsson  <jas@extundo.com>
114554         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
114555         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
114557 2005-10-22  Simon Josefsson  <jas@extundo.com>
114559         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
114560         suggested by Bruno Haible <bruno@clisp.org>.
114562 2005-10-22  Simon Josefsson  <jas@extundo.com>
114564         * lib/crc.h: Include stddef.h, for size_t.
114566 2005-10-22  Simon Josefsson  <jas@extundo.com>
114568         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
114569         arcfour_context struct (simplify test vector testing in GNU
114570         Shishi).
114572 2005-10-21  Simon Josefsson  <jas@extundo.com>
114574         * modules/des, modules/des-tests: New files.
114576         * modules/gc-des, modules/gc-des-tests: New files.
114578         * tests/test-des.c, tests/test-gc-des.c: New file.
114580 2005-10-21  Simon Josefsson  <jas@extundo.com>
114582         * modules/arctwo, modules/arctwo-tests: New files.
114584         * tests/test-arctwo.c: New file.
114586         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
114588         * tests/test-gc-arctwo.c: New file.
114590 2005-10-21  Simon Josefsson  <jas@extundo.com>
114592         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
114593         Bruno Haible <bruno@clisp.org>.
114595         * m4/gc-des.m4: New file.
114597 2005-10-21  Simon Josefsson  <jas@extundo.com>
114599         * m4/arctwo.m4: New file.
114601         * m4/gc-arctwo.m4: New file.
114603 2005-10-21  Simon Josefsson  <jas@extundo.com>
114605         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
114606         block.
114608 2005-10-21  Simon Josefsson  <jas@extundo.com>
114610         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
114611         <bruno@clisp.org>.
114613         * lib/hmac-sha1.c (hmac_sha1): Likewise.
114615         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
114616         Bruno Haible <bruno@clisp.org>.
114618         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
114619         <bruno@clisp.org>.
114621 2005-10-21  Simon Josefsson  <jas@extundo.com>
114623         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
114625 2005-10-21  Simon Josefsson  <jas@extundo.com>
114627         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
114629 2005-10-21  Simon Josefsson  <jas@extundo.com>
114631         * lib/des.h, lib/des.c: New files.
114633         * lib/gc-gnulib.c: Support DES.c
114635 2005-10-21  Simon Josefsson  <jas@extundo.com>
114637         * lib/arctwo.h, lib/arctwo.c: New files.
114639         * lib/gc-gnulib.c: Support ARCTWO.
114641 2005-10-21  Simon Josefsson  <jas@extundo.com>
114643         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
114644         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114646 2005-10-21  Simon Josefsson  <jas@extundo.com>
114648         * gnulib-tool (func_import, func_create_testdir): Define automake
114649         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
114650         Makefile.am snippet),
114651         suggested by Bruno Haible <bruno@clisp.org>.
114653         * modules/gc (Makefile.am): Use it.
114655 2005-10-21  Bruno Haible  <bruno@clisp.org>
114657         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
114658         patch.
114660 2005-10-19  Simon Josefsson  <jas@extundo.com>
114662         * tests/test-gc-rijndael.c: New file.
114664         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
114666 2005-10-19  Simon Josefsson  <jas@extundo.com>
114668         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
114669         interface too.
114671 2005-10-19  Simon Josefsson  <jas@extundo.com>
114673         * tests/test-gc-arcfour.c: New file.
114675         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
114677 2005-10-19  Simon Josefsson  <jas@extundo.com>
114679         * modules/gc-md4, modules/gc-md4-tests: New file.
114681         * tests/test-gc-md4.c: New file.
114683 2005-10-19  Simon Josefsson  <jas@extundo.com>
114685         * m4/gc-md4.m4: New file.
114687 2005-10-19  Simon Josefsson  <jas@extundo.com>
114689         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
114690         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
114691         <kasal@ucw.cz>.
114693 2005-10-19  Simon Josefsson  <jas@extundo.com>
114695         * m4/gc-arcfour.m4: New file.
114697         * m4/gc-rijndael.m4: New file.
114699 2005-10-19  Simon Josefsson  <jas@extundo.com>
114701         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
114703 2005-10-19  Simon Josefsson  <jas@extundo.com>
114705         * lib/gc-gnulib.c: Support ARCFOUR.
114707 2005-10-19  Simon Josefsson  <jas@extundo.com>
114709         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
114710         support.
114712         * lib/gc.h: Add ECB enum type.
114714         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
114716 2005-10-18  Simon Josefsson  <jas@extundo.com>
114718         * tests/test-md5.c: New file.
114720         * modules/md5-tests: New file.
114722 2005-10-18  Simon Josefsson  <jas@extundo.com>
114724         * tests/test-md4.c: New file.
114726         * modules/md4, modules/md4-tests: New files.
114728 2005-10-18  Simon Josefsson  <jas@extundo.com>
114730         * m4/md4.m4: New file.
114732 2005-10-18  Simon Josefsson  <jas@extundo.com>
114734         * lib/md4.h, lib/md4.c: New files, based on md5.?.
114736 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
114738         * gnulib-tool (func_create_testdir): Omit the second check whether
114739         BUILT_SOURCES in nonempty.
114741 2005-10-17  Simon Josefsson  <jas@extundo.com>
114743         * tests/test-rijndael.c: New file.
114745 2005-10-17  Simon Josefsson  <jas@extundo.com>
114747         * modules/sha1: Depend on stdint instead of md5.
114749         * modules/md5: Depend on stdint, remove uint32_t.
114751 2005-10-17  Simon Josefsson  <jas@extundo.com>
114753         * modules/gc-sha1-tests: New file.
114755         * tests/test-gc-sha1.c: New file.
114757 2005-10-17  Simon Josefsson  <jas@extundo.com>
114759         * m4/md5.m4: Remove call to uint32_t.m4.
114761 2005-10-17  Simon Josefsson  <jas@extundo.com>
114763         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
114765         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
114766         md5.h.
114768         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
114770         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
114772 2005-10-17  Simon Josefsson  <jas@extundo.com>
114774         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
114776 2005-10-17  Simon Josefsson  <jas@extundo.com>
114778         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
114780 2005-10-17  Simon Josefsson  <jas@extundo.com>
114782         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
114784         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
114786 2005-10-17  Bruno Haible  <bruno@clisp.org>
114788         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
114789         that it can also be used in a test.
114791 2005-10-16  Bruno Haible  <bruno@clisp.org>
114793         * gnulib-tool (func_emit_tests_Makefile_am): Also define
114794         TESTS_ENVIRONMENT, so that individual tests can augment it.
114796         * gnulib-tool (func_create_testdir): Use an intermediate target for
114797         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
114798         macros, like $(ALLOCA_H), which cannot be passed through the command
114799         line.
114801 2005-10-15  Simon Josefsson  <jas@extundo.com>
114803         * modules/rijndael-tests: New file.
114805         * modules/rijndael: New file.
114807 2005-10-15  Simon Josefsson  <jas@extundo.com>
114809         * m4/rijndael.m4: New file.
114811 2005-10-15  Simon Josefsson  <jas@extundo.com>
114813         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
114815         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
114817 2005-10-14  Simon Josefsson  <jas@extundo.com>
114819         * tests/test-arcfour.c: New file.
114821         * modules/arcfour, modules/arcfour-tests: New files.
114823 2005-10-14  Simon Josefsson  <jas@extundo.com>
114825         * m4/arcfour.m4: New file.
114827 2005-10-14  Simon Josefsson  <jas@extundo.com>
114829         * lib/arcfour.h, lib/arcfour.c: New files.
114831 2005-10-14  Roland McGrath  <roland@redhat.com>
114833         Import from libc.  [BZ #1331]
114834         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
114835         macro argument.
114836         Reported by Matej Vela <vela@debian.org>.
114838 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
114840         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
114841         include <wchar.h>; no longer needed.
114843 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
114845         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
114847 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
114848         and  Ulrich Drepper  <drepper@redhat.com>
114850         Import from libc.
114851         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
114852         instead of inline stream orientation test and two separate
114853         function calls.  Pay no attention to USE_IN_LIBIO.
114855 2005-10-13  Simon Josefsson  <jas@extundo.com>
114857         * modules/gc-hmac-md5-tests: New file.
114859         * tests/test-gc-hmac-sha1.c: New file.
114861         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
114863         * modules/gc-hmac-md5-tests: New file.
114865         * tests/test-gc-md5.c: New file.
114867         * modules/gc-md5-tests: New file.
114869 2005-10-13  Simon Josefsson  <jas@extundo.com>
114871         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
114872         Move memory allocation outside of loop.
114874 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
114876         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
114877         intermediate directory is in a read-only file system.  Problem
114878         reported by Eric Blake.
114880 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
114882         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
114884 2005-10-12  Simon Josefsson  <jas@extundo.com>
114886         * tests/test-hmac-sha1.c: New file.
114888         * modules/hmac-sha1-tests: New file.
114890         * modules/hmac-sha1: New file.
114892 2005-10-12  Simon Josefsson  <jas@extundo.com>
114894         * modules/gc-sha1: New file.
114896 2005-10-12  Simon Josefsson  <jas@extundo.com>
114898         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
114900         * tests/test-gc-pbkdf2-sha1.c: New file.
114902 2005-10-12  Simon Josefsson  <jas@extundo.com>
114904         * modules/gc-md5, modules/gc-hmac-md5: New files.
114906         * modules/gc (Files): Remove md5, memxor and hmac files.
114908 2005-10-12  Simon Josefsson  <jas@extundo.com>
114910         * m4/gc-pbkdf2-sha1.m4: New file.
114912         * m4/gc-hmac-sha1.m4: New file.
114914         * m4/gc-sha1: New file.
114916         * m4/hmac-sha1.m4: New file.
114918 2005-10-12  Simon Josefsson  <jas@extundo.com>
114920         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
114922         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
114924 2005-10-12  Simon Josefsson  <jas@extundo.com>
114926         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
114927         suggested by Bruno Haible <bruno@clisp.org>.
114929 2005-10-12  Simon Josefsson  <jas@extundo.com>
114931         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
114933 2005-10-12  Simon Josefsson  <jas@extundo.com>
114935         * lib/gc-pbkdf2-sha1.c: New file.
114937         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
114939 2005-10-12  Simon Josefsson  <jas@extundo.com>
114941         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
114943         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
114945 2005-10-12  Simon Josefsson  <jas@extundo.com>
114947         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
114948         GC_USE_HMAC_MD5, respectively.
114950         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
114951         (gc_md5): Fix typo.
114953         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
114955         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
114957         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
114959 2005-10-12  Bruno Haible  <bruno@clisp.org>
114961         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
114962         Reported by Stepan Kasal <kasal@ucw.cz>.
114964 2005-10-11  Simon Josefsson  <jas@extundo.com>
114966         * tests/test-crc.c: New file.
114968         * modules/crc, modules/crc-tests: New files.
114970 2005-10-11  Simon Josefsson  <jas@extundo.com>
114972         * m4/crc.m4: New file.
114974 2005-10-11  Simon Josefsson  <jas@extundo.com>
114976         * lib/gc.h: Add gc_hash and gc_hash_buffer.
114978         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
114980         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
114982 2005-10-11  Simon Josefsson  <jas@extundo.com>
114984         * lib/crc.h, lib/crc.c: New files.
114986         * lib/gc.h (gc_hash_buffer): Add doc.
114988 2005-10-11  Bruno Haible  <bruno@clisp.org>
114990         * modules/c-strcasestr: New file.
114991         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
114993 2005-10-11  Bruno Haible  <bruno@clisp.org>
114995         * modules/c-strcase: New file.
114996         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
114998 2005-10-11  Bruno Haible  <bruno@clisp.org>
115000         * lib/strcasecmp.c: Include limits.h.
115001         (strcasecmp): Avoid integer overflow on exotic platforms.
115002         * lib/strncasecmp.c: Include limits.h.
115003         (strncasecmp): Avoid integer overflow on exotic platforms.
115004         Reported by Paul Eggert.
115006 2005-10-11  Bruno Haible  <bruno@clisp.org>
115008         * lib/c-strcasestr.h: New file, from GNU gettext.
115009         * lib/c-strcasestr.c: New file, from GNU gettext.
115011 2005-10-11  Bruno Haible  <bruno@clisp.org>
115013         * lib/c-strcase.h: New file, from GNU gettext.
115014         * lib/c-strcasecmp.c: New file, from GNU gettext.
115015         * lib/c-strncasecmp.c: New file, from GNU gettext.
115017 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
115019         * modules/mempcpy (License): GPL -> LGPL.
115020         * modules/strchrnul (License): Likewise.
115021         * modules/sysexits (License): Likewise.
115023 2005-10-08  Simon Josefsson  <jas@extundo.com>
115025         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
115027 2005-10-07  Simon Josefsson  <jas@extundo.com>
115029         * m4/memxor.m4: Remove gl_C_RESTRICT call.
115031 2005-10-06  Simon Josefsson  <jas@extundo.com>
115033         * tests/test-hmac-md5.c: New file.
115035         * modules/hmac-md5-tests: New file.
115037         * modules/hmac-md5: New file.
115039 2005-10-06  Simon Josefsson  <jas@extundo.com>
115041         * m4/hmac-md5.m4: New file.
115043         * m4/memxor.m4: Require gl_C_RESTRICT.
115045 2005-10-06  Simon Josefsson  <jas@extundo.com>
115047         * lib/memxor.c (memxor): Avoid casts and warnings.
115049 2005-10-06  Simon Josefsson  <jas@extundo.com>
115051         * lib/hmac-md5.c: New file.
115053         * lib/hmac.h: New file.
115055 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
115057         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
115058         promotes to int, not unsigned int, to catch the AIX 5.3
115059         compiler bug.
115061 2005-10-05  Simon Josefsson  <jas@extundo.com>
115063         * modules/memxor: New file.
115065         * modules/iconv (Files): Move config.rpath to havelib, it is used
115066         there.
115068         * modules/havelib (Files): Add config.rpath.
115070 2005-10-05  Simon Josefsson  <jas@extundo.com>
115072         * m4/memxor.m4: New file.
115074 2005-10-05  Simon Josefsson  <jas@extundo.com>
115076         * lib/memxor.c (memxor): Fix compiler error.
115078         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
115079         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
115081         * lib/memxor.h, lib/memxor.c: New files.
115083         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
115084         we assume all systems have it, suggested by Jim Meyering
115085         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
115086         any systems lack sys/socket.h; mingw32 is known to lack it, but we
115087         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
115088         same reasons.
115090 2005-10-05  Simon Josefsson  <jas@extundo.com>
115092         * config/srclist.txt: Add glibc bug 1423 for md5.h.
115094 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
115096         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
115097         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
115098         needed, since the source code now assumes these .h files.
115100 2005-10-05  Derek Price  <derek@ximbiot.com>
115102         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
115104 2005-10-05  Bruno Haible  <bruno@clisp.org>
115106         * modules/stdint (License): Change to LGPL.
115108 2005-10-04  Simon Josefsson  <jas@extundo.com>
115110         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
115111         D. Baushke" <mdb@gnu.org>.
115113 2005-10-04  Bruno Haible  <bruno@clisp.org>
115115         * lib/verify.h (verify_true): Provide alternative definition for C++.
115117 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
115119         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
115120         (SSIZE_MAX): New macro, if not already defined.
115121         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
115122         than 2 GiB.
115124 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115126         Sync from coreutils.
115127         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
115128         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
115129         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
115130         ULLONG_MAX doesn't work with 2.7.2.1.
115132 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115134         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
115135         From Ben Pfaff.
115137         * modules/exclude (Depends-on): Depend on verify.
115138         * modules/strtoimax (Depends-on): Likewise.
115139         * modules/utimecmp (Depends-on): Likewise.
115141 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115143         * lib/exclude.c: Include verify.h.
115144         (verify): Remove.  All callers changed to use verify.h's version.
115145         * lib/strtoimax.c: Likewise.
115146         * lib/utimecmp.c: Likewis.e
115148         Sync from coreutils.
115149         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
115150         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
115151         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
115152         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
115153         bother returning ENOSYS if settimeofday or stime fails; just let
115154         them return whatever errno they want to return.
115155         * lib/utimens.c: Include unistd.h, for dup2.
115156         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
115157         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
115159 2005-10-02  Jim Meyering  <jim@meyering.net>
115161         Sync from coreutils.
115162         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
115163         from glibc-2.2.5 that fails for read-only files.
115165 2005-10-02  Jim Meyering  <jim@meyering.net>
115167         Sync from coreutils.
115168         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
115169         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
115170         `#if HAVE_CONFIG_H'.
115171         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
115172         Remove AT_FDCWD test.
115173         Do not consume the fd unless successful.
115174         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
115175         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
115176         block, so that we don't even try to compile it if settimeofday is
115177         available.  This works around a compilation failure on OSF1 V5.1,
115178         due to stime requiring a `long int*' while tv_sec is `int'.
115180 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
115182         Sync from coreutils.
115183         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
115184         against `yes', rather than just testing for nonempty.
115186 2005-10-01  Simon Josefsson  <jas@extundo.com>
115188         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
115189         and Darwin.
115191         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
115192         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
115193         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
115194         freeaddrinfo and gai_strerror are declared by the POSIX headers.
115195         Check if struct addrinfo is declared.
115197 2005-10-01  Simon Josefsson  <jas@extundo.com>
115199         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
115200         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
115201         AI_* and EAI_* definitions.  Protect function declarations.
115203 2005-10-01  Jim Meyering  <jim@meyering.net>
115205         Sync from coreutils.
115207         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
115208         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
115209         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
115210         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
115211         in the inet and nsl libraries.  Required on Solaris 5.7.
115213 2005-10-01  Jim Meyering  <jim@meyering.net>
115215         Sync from coreutils.
115216         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
115217         in the inet and nsl libraries.  Required on Solaris 5.7.
115219 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
115221         * lib/getdelim.c (getdelim): Remove unused variables.
115223 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
115225         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
115226         so that the code works even with ancient cpp.  Portability problem
115227         with GCC 2.7.2.1 reported by Thomas M.Ott.
115229 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
115231         * modules/regex (Depends-on): Add strcase.
115233         * modules/gethostname (Licence): Change from GPL to LGPL, since
115234         gethostname.c is a trivial implementation of a standard library
115235         function.
115236         * modules/poll (License): Change from GPL to LGPL, since it's
115237         derived from LGPL code.
115239 2005-09-27  Jim Meyering  <jim@meyering.net>
115241         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
115242         HAVE_CONFIG_H.
115244         * lib/intprops.h (signed_type_or_expr__): Define.
115245         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
115246         for unsigned types.
115248 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
115250         * lib/verify.h (verify_expr): Remove, replacing with:
115251         (verify_true): New macro that returns true instead of void.
115252         (verify_type__): Remove.
115253         (verify): Use verify_true rather than verify_type__.
115255 2005-09-26  Bruno Haible  <bruno@clisp.org>
115257         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
115258         is necessary.
115259         (lib_SOURCES): Remove mbchar.c.
115260         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
115261         (Files): Add m4/mbrtowc.m4.
115262         * modules/mbiter: Likewise.
115263         * modules/mbuiter: Likewise.
115265 2005-09-26  Bruno Haible  <bruno@clisp.org>
115267         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
115268         compile mbchar.c if they are not both present.
115269         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
115270         * m4/mbiter.m4 (gl_MBITER): Likewise.
115271         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
115272         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
115273         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
115275 2005-09-25  Jim Meyering  <jim@meyering.net>
115277         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
115278         also uses socklen_t.
115280 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
115282         * lib/utimens.c (ENOSYS): Define if not already defined.
115283         (futimens): Support having a null PATH if the file descriptor
115284         is nonnegative.
115286         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
115287         Remove.
115288         (__attribute): Define to empty unless GCC 3.1 or later.
115289         This works around a core dump on OpenBSD 3.4, which has GCC
115290         2.95.3, which dumps core when given __attribute__(()).  It also
115291         simplifies other tests, since we really don't want to bother with
115292         worrying about which ancient version of GCC supported what.
115293         Original problem reported by Yoann Vandoorselaere, with part of
115294         the fix suggested by Derek Price.
115296 2005-09-24  Jim Meyering  <jim@meyering.net>
115298         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
115299         so we can once again use a positive bitfield width of 1 -- now we
115300         don't have to explain why we were using a bitfield width of 2.
115302 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115304         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
115305         and similarly for the other external symbols.  Problem reported
115306         by James Gallager.
115308         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
115309         bug reported by Jim Meyering.
115311         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
115312         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
115313         not needed, since socklen is a prerequisite module.
115315 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115317         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
115318         Problem reported by Eric Blake.
115319         (getaddrinfo): Initialize se so that it's not garbage.
115320         Redo internal storage allocation so that it doesn't make unportable
115321         assumptions about alignment.
115322         Fix a memory leak.
115324         * lib/utimens.c (futimens): Use futimesat if available.
115325         Prefer it to futimes since it doesn't have the futimes bug.
115327         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
115328         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
115329         Instead, declare a function that returns a pointer to an array,
115330         and use verify_type__ to declare the size of the array.
115331         Problem and germ of a solution reported by Bruno Haible.
115332         (verify_type__): Use 2, not 1, for bitfield size, to avoid
115333         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
115335 2005-09-23  Jim Meyering  <jim@meyering.net>
115337         Sync from coreutils.
115338         Correct build failure (socklen_t not defined) on at least
115339         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
115340         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
115342 2005-09-23  Jim Meyering  <jim@meyering.net>
115344         * modules/getaddrinfo (Depends-on): Add socklen.
115346 2005-09-23  Bruno Haible  <bruno@clisp.org>
115348         * tests/test-verify.c: New file.
115350 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115352         Sync from coreutils.
115354         * modules/argmatch (Depends-on): Add verify.
115355         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
115356         unistd-safer.
115357         * modules/save-cwd (Depends-on): Likewise.
115359         * modules/openat (Files): Add lib/openat-die.c.
115360         (Depends-on): Remove error, exitfail.
115361         Add dirname.
115363         * modules/verify: New file.
115364         * MODULES.html.sh (Diagnostics <assert.h>): New section,
115365         with "verify" module.
115367 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115369         Sync from coreutils.
115371         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
115372         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
115373         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
115374         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
115375         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
115376         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
115377         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
115378         Don't bother checking for string.h, stdlib.h, unistd.h.
115379         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
115380         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
115381         module's job.
115382         * m4/jm-macros.m4 (gl_MACROS): Likewise.
115383         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
115385         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
115386         (gl_GETDATE): Use it.
115388         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
115390 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115392         Sync from coreutils.
115394         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
115395         stat-time.h.
115396         * lib/argmatch.h: Include verify.h
115397         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
115398         (ARGMATCH_ASSERT): Remove; unused.
115399         * lib/canonicalize.c: Assume STDC_HEADERS.
115400         * lib/exclude.c: Include "strcase.h".
115401         * lib/regex_internal.h [!defined _LIBC]: Likewise.
115402         * lib/getusershell.c: Include stdio--.h rather than stdio.h
115403         and stdio-safer.h.
115404         (getusershell): Call fopen, not fopen_safer.
115405         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
115406         Do not include unistd-safer.h.
115407         (save_cwd): Don't call fd_safer; no longer needed
115408         now that we include fcntl--.h.
115410         * lib/getdate.y (relative_time): New type.
115411         (RELATIVE_TIME_0): New constant.
115412         (parser_control): Use relative_time instead of doing it ourselves.
115413         (%union): Add new relative_time rel member.
115414         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
115415         Now typeless.
115416         (relunit, relunit_snumber): Now of type rel.
115417         (zone, rel, relunit, get_date): Adjust to above changes.
115419         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
115420         Do not include unistd-safer.h.
115421         (getloadavg): Don't call fd_safer; no longer needed
115422         now that we include fcntl--.h.
115424         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
115425         (make_dir_parents): Treat ENOSYS like EEXIST.
115427         Improve quality of diagnostics on restore_cwd failure.
115428         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
115429         (make_dir_parents): Last arg is now int * (for errno), not bool *.
115430         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
115431         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
115432         each time through the loop.  Do not diagnose restore_cwd failure;
115433         that is the caller's job (and perhaps the caller does not care).
115435         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
115436         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
115437         If the file already exists but is not a directory, don't bother
115438         to try to make its parents.
115439         Close potential file descriptor leak if we can't chdir("/") (!).
115440         Don't always return true if chdir($PWD) fails; return true only
115441         if the requested action was done successfully (except for the
115442         chdir($PWD)).
115443         Don't log final directory unless we actually made it.
115444         Refactor to avoid duplicate code to fix up permissions.
115445         Don't attempt to fix up parent permissions if chdir($PWD) fails.
115447         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
115448         to make it a bit faster and (I hope) clearer.
115449         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
115450         Fix bug in formats like %2N.
115452         * lib/verify.h: New file.
115454 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115456         Sync from coreutils.
115457         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
115459 2005-09-22  Jim Meyering  <jim@meyering.net>
115461         Sync from coreutils.
115463         * m4/lstat.m4 (gl_FUNC_LSTAT):
115464         Use AC_LIBSOURCES to require lstat.c and lstat.h.
115465         Remove obsolete comment.
115466         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
115467         * m4/xstrtod.m4: Likewise.
115469         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
115471 2005-09-22  Jim Meyering  <jim@meyering.net>
115473         Sync from coreutils.
115475         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
115477         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
115478         the .tm_year member, since otherwise gcc-4.0 would now warn about
115479         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
115481         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
115482         order to avoid an unsuppressible warning from gcc on 64-bit systems.
115484         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
115485         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
115486         when run in a time zone for which daylight savings time is in effect
115487         for the starting date.
115489         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
115490         stop us from restricting permissions of just-created absolute-named
115491         directories.
115492         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
115493         to restore initial working directory.
115494         * lib/mkdir-p.c (make_dir_parents): New parameter:
115495         different_working_dir, to tell caller if/when we change the working
115496         directory and are unable to return to the initial one.
115497         * lib/mkdir-p.h (make_dir_parents): Update prototype.
115498         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
115499         `return false'.  This fixes a bug introduced on 2004-07-30.
115501         * lib/openat.c (fdopendir): Be sure to close the supplied
115502         file descriptor before returning.  This makes our replacement
115503         implementation a little closer to Solaris's, where fdopendir
115504         ties the file descriptor to the returned DIR* pointer.
115505         * lib/openat.c (unlinkat): New function.
115506         * lib/openat.h (unlinkat): Add prototype.
115507         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
115508         (openat_restore_fail): Rename from openat_restore_die.
115509         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
115511         Provide an alternative to exiting immediately upon save_cwd or
115512         restore_cwd failure.  Now, an application can arrange e.g.,
115513         to perform a longjump in that case.
115514         * lib/openat.c: Include dirname.h.
115515         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
115516         (rpl_openat, fdopendir, fstatat): Call openat_save_die
115517         and openat_restore_die rather than calling error directly.
115518         Don't include "error.h" or "exitfail.h"; they're no longer needed.
115520         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
115521         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
115522         define.
115524         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
115525         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
115526                             int utc, int nanoseconds);
115527         Background:
115528         date should not have to allocate a megabyte of virtual memory to
115529         handle a format argument like +%1048575T.  When implemented with
115530         strftime, it must allocate such a buffer, use strftime to fill it
115531         in, print it, then free it.
115532         With fprintftime, it simply prints everything and exits.
115533         With no need for memory allocation, that's one fewer way to fail.
115534         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
115535         optional field width, not before, so we accept %9:z, not %:9z.
115536         (my_strftime): Be sure to use L_('x') for literals.
115538         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
115539         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
115540         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
115541         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
115542         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
115543         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
115544         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
115545         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
115546         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
115547         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
115548         * lib/xgethostname.c, lib/xreadlink.c:
115549         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
115551         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
115552         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
115553         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
115554         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
115555         and don't include <sys/file.h>).
115557 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
115559         Sync from coreutils.
115561         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
115562         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
115563         [!LDAV_DONE]: Avoid unused variable warning.
115565 2005-09-21  Bruno Haible  <bruno@clisp.org>
115567         * lib/unicodeio.h (unicode_to_mb): New declaration.
115569 2005-09-20  Derek Price  <derek@ximbiot.com>
115571         * lib/getaddrinfo.c: Don't include <netdb.h> included from
115572         getaddrinfo.h.
115574 2005-09-20  Bruno Haible  <bruno@clisp.org>
115576         * gnulib-tool: Remove trailing slashes from the values specified for
115577         --source-base, --m4-base, --tests-base, --aux-dir.
115578         Suggested by Simon Josefsson <jas@extundo.com>.
115580 2005-09-20  Bruno Haible  <bruno@clisp.org>
115582         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
115583         func_modules_to_filelist, func_import, func_create_testdir): Make all
115584         sorting results locale-independent, so that gnulib-cache.m4 doesn't
115585         change when gnulib-tool is invoked in a different locale.
115587 2005-09-19  Simon Josefsson  <jas@extundo.com>
115589         * m4/socklen.m4: Fix typo.
115591 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115593         Use a consistent style for including <config.h>.
115594         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
115595         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
115596         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
115597         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
115598         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
115599         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
115600         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
115601         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
115602         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
115603         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
115604         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
115605         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
115606         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
115607         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
115608         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
115609         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
115610         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
115611         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
115612         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
115613         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
115614         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
115615         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
115616         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
115617         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
115618         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
115619         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
115620         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
115621         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
115622         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
115623         lib/xstrtoumax.c, lib/yesno.c:
115624         Standardize inclusion of config.h.
115625         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
115626         lib/inttostr.h:  Removed inclusion of config.h from header files.
115627         * lib/inttostr.c:  Adjusted in-tree users.
115628         * lib/timespec.h: Remove superfluous warning to include config.h.
115629         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
115630         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
115631         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
115632         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
115633         config.h with HAVE_CONFIG_H.
115635 2005-09-19  Jim Meyering  <jim@meyering.net>
115637         * modules/pathmax (License): Change to LGPL.
115639 2005-09-19  Derek Price  <derek@ximbiot.com>
115641         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
115643 2005-09-19  Bruno Haible  <bruno@clisp.org>
115645         * gnulib-tool (import): Provide default for --tests-base.
115647 2005-09-19  Bruno Haible  <bruno@clisp.org>
115649         * doc/quote.texi: New file, extracted from gnulib.texi.
115650         * doc/ctime.texi: New file, extracted from gnulib.texi.
115651         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
115652         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
115653         * doc/gnulib.texi: Include them.
115655 2005-09-18  Bruno Haible  <bruno@clisp.org>
115657         Portability fix.
115658         * gnulib-tool (func_readlink): New function.
115659         (func_ln_if_changed): Use it.
115661 2005-09-18  Bruno Haible  <bruno@clisp.org>
115663         * gnulib-tool: Support --with-tests also with --import.
115664         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
115665         (func_import): Use variables $testsbase and $inctests. Emit a
115666         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
115667         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
115668         SUBDIRS += $testsdir.
115669         (func_create_testdir): Update.
115671 2005-09-18  Bruno Haible  <bruno@clisp.org>
115673         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
115674         instead of $dry_run.
115675         (func_cp_if_changed, func_mv_if_changed): Remove functions.
115676         (func_ln_if_changed): Don't handle dry-run here.
115677         (func_import): In dry-run mode, detect more precisely which actions
115678         would be performed, and don't use "...ing" verbs.
115680 2005-09-18  Bruno Haible  <bruno@clisp.org>
115682         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
115683         (func_import): Use join on two temporary files instead of three nested
115684         loops, in order to determine which files are new or old.
115686 2005-09-18  Bruno Haible  <bruno@clisp.org>
115688         * gnulib-tool (func_import): Comment out code that spits out the
115689         new files with --dry-run.
115691 2005-09-18  Bruno Haible  <bruno@clisp.org>
115693         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
115695 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115697         * lib/stat-time.h: New file.
115698         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
115699         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
115700         in a different way.
115701         (timespec_cmp): New function.
115702         * lib/utimecmp.c: Include stat-time.h.
115703         (SYSCALL_RESOLUTION): Depend on whether various struct stat
115704         members exist, not on the obsolescent ST_MTIM_NSEC.
115705         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
115707 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115709         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
115711 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115713         * MODULES.html.sh (File system functions): Add stat-time.
115714         * modules/stat-time: New file.
115715         * modules/timespec (Files): Remove m4/st_mtim.m4; this
115716         is now done in a different way, by the stat-time module.
115717         * modules/utimecmp (Depends-on): Add stat-time.
115719 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
115721         * m4/st_mtim.m4: Remove.  Superseded by...
115722         * m4/stat-time.m4: New file.
115723         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
115724         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
115726 2005-09-15  Derek Price  <derek@ximbiot.com>
115728         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
115730 2005-09-15  Derek Price  <derek@ximbiot.com>
115732         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
115733         * lib/regex_internal.c: Ditto, using this...
115734         (__GNUC_PREREQ): ...new macro.
115735         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
115736         using...
115737         (__GNUC_PREREQ): ...this new macro.
115739         * lib/strstr.h: Include string.h. Define strstr as a macro here.
115741 2005-09-15  Derek Price  <derek@ximbiot.com>
115742             Paul Eggert  <eggert@cs.ucla.edu>
115744         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
115745         changes, consolidating in...
115746         * lib/regex_internal.h: ...this file.
115748 2005-09-13  Jim Meyering  <jim@meyering.net>
115750         * lib/canon-host.c: Filter through gnu indent and reword comments
115751         slightly.
115752         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
115754 2005-09-13  Derek Price  <derek@ximbiot.com>
115756         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
115757         failure.
115758         Reported by Jim Meyering  <jim@meyering.net>.
115760 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115762         * lib/base64.c: Typo.
115763         (base64_encode): Put b64str in initialized data section.
115765 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
115767         Merge glibc and coreutils changes into gnulib, plus a few
115768         extra fixes.
115769         * lib/md5.c: Use #error rather than a string.
115770         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
115771         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
115772         (__attribute__): Define to empty for non recent-GCC.
115773         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
115774         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
115775         Renamed from their non-__ counterparts, with new macros replacing
115776         them if not _LIBC.  Add __THROW attribute.
115777         (rol): Remove.
115778         (struct md5_ctx): Align buffer if using GCC.
115779         * lib/sha1.h (struct sha1_ctx): Likewise.
115780         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
115781         The old name was backwards.
115782         (NOTSWAP): Remove; not used.
115783         (rol): New macro, moved here from md5.h.
115784         (sha1_process_block): Remove a FIXME that doesn't make sense.
115786 2005-09-12  Derek Price  <derek@ximbiot.com>
115788         Return usable errors from canon-host.
115789         * lib/canon-host.h: New file.
115790         * lib/canon-host.c (canon_host): Wrap...
115791         (canon_host_r): ...this new function, which now relies exclusively on
115792         getaddrinfo.
115793         (ch_strerror): New function.
115794         (last_cherror): New global.
115795         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
115796         interface.
115797         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
115798         void *.
115799         (freeaddrinfo): Free ai->ai_canonname when set.
115801 2005-09-12  Derek Price  <derek@ximbiot.com>
115803         Make canon-host require getaddrinfo.
115804         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
115805         AC_LIBSOURCE canon-host.h.  Call...
115806         (gl_PREREQ_CANON_HOST): ...this new function, which requires
115807         gl_GETADDRINFO.
115808         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
115810 2005-09-12  Derek Price  <derek@ximbiot.com>
115812         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
115813         LGPL.
115814         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
115816 2005-09-12  Derek Price  <derek@ximbiot.com>
115818         * lib/gai_strerror.c: Include config.h when available.  Include
115819         getaddrinfo.h before other headers to test interface.
115820         Reported by Larry Jones <lawrence.jones@ugs.com>.
115822 2005-09-12  Derek Price  <derek@ximbiot.com>
115823             Paul Eggert  <eggert@cs.ucla.edu>
115825         * modules/glob (Files): Add glob-libc.h.
115827 2005-09-12  Derek Price  <derek@ximbiot.com>
115828             Paul Eggert  <eggert@cs.ucla.edu>
115830         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
115831         glob_.h, glob-libc.h.
115832         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
115834 2005-09-12  Derek Price  <derek@ximbiot.com>
115835             Paul Eggert  <eggert@cs.ucla.edu>
115837         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
115838         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
115839         protecting things that should be done only in gnulib contexts.
115840         * lib/glob_.h: New file, containing only the glob things needed for
115841         gnulib.
115842         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
115843         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
115844         (glob, globfree, glob_pattern_p): Now defined simply in terms of
115845         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
115846         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
115847         and to respect the namespace rules better.
115849 2005-09-08  Simon Josefsson  <jas@extundo.com>
115851         * modules/socklen: New file.
115853 2005-09-08  Simon Josefsson  <jas@extundo.com>
115855         * m4/socklen.m4: New file.
115857 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115859         * modules/utimens (Files): Add m4/utimbuf.m4, since
115860         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
115861         Reported by Sergey Poznyakoff.
115863 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115865         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
115866         definitions, since that's the preferred style in glibc.
115867         Fix a minor spacing issue, and update copyright notice to match
115868         glibc's.
115870 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115872         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
115874 2005-09-06  Simon Josefsson  <jas@extundo.com>
115876         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
115877         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
115879 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
115881         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
115882         warning.
115884 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
115886         * config/srclist.txt: Add glibc bug 1302.
115888 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
115890         Change bitset word type from unsigned int to unsigned long int,
115891         as this has better performance on typical 64-bit hosts.
115892         Port bitset code to hosts with unusual word sizes.
115893         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
115894         (build_collating_symbol):
115895         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
115896         argument is a bitset.  This is merely a style issue, but it makes
115897         it clearer that an entire array is expected.
115898         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
115899         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
115900         Port to the case where bitset_word is not the same as unsigned int.
115901         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
115902         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
115903         Likewise.
115904         * lib/regexec.c (check_dst_limits_calc_pos_1,
115905         check_subexp_matching_top):
115906         (build_trtable, group_nodes_into_DFAstates):
115907         Likewise.
115908         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
115909         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
115910         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
115911         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
115912         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
115913         * lib/regcomp.c (optimize_subexps, lower_subexp):
115914         Work even if bitset_word has holes in its bitwise representation.
115915         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
115916         * lib/regexec.c (check_dst_limits_calc_pos_1,
115917         check_subexp_matching_top):
115918         Likewise.
115919         * lib/regex_internal.c (re_string_reconstruct):
115920         Don't assume UCHAR_MAX == 255.
115921         * lib/regex_internal.h (bitset_set_all): Likewise.
115922         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
115923         All uses changed.
115924         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
115925         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
115926         All uses changed.
115927         (BITSET_WORD_MAX): New macro.
115928         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
115929         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
115930         (bitset_empty, bitset_copy):
115931         Prefer sizeof (bitset) to multiplying it out ourselves.
115932         (bitset_not_merge): Remove; unused.
115933         (bitset_contain): Return bool, not unsigned int with one bit on.
115934         All callers changed.
115935         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
115936         alignment than re_node_set; do this by defining a new internal
115937         type struct dests_alloc and using it to allocate memory.
115939 2005-09-05  Bruno Haible  <bruno@clisp.org>
115941         * gnulib-tool (func_import): Fix comparison in handling of symbolic
115942         links.
115944 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
115946         * modules/size_max (Makefile.am): Add size_max.h
115948 2005-09-04  Derek Price  <derek@ximbiot.com>
115950         * gnulib-tool (func_import): Fix reversed $symbolic logic.
115952 2005-09-03  Simon Josefsson  <jas@extundo.com>
115954         * gnulib-tool: Fix typo.
115956 2005-09-03  Simon Josefsson  <jas@extundo.com>
115958         * config/srclist.txt: Add glibc bug 1293.
115960 2005-09-03  Derek Price  <derek@ximbiot.com>
115962         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
115963         From Larry Jones <lawrence.jones@ugs.com>.
115965 2005-09-02  Simon Josefsson  <jas@extundo.com>
115967         * modules/socklen: New file.
115969 2005-09-02  Simon Josefsson  <jas@extundo.com>
115971         * modules/havelib: New module.
115973         * modules/gettext, modules/iconv, modules/lock, modules/readline:
115974         Use havelib.
115976 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
115978         Check for arithmetic overflow when calculating sizes, to prevent
115979         some buffer-overflow issues.  These patches are conservative, in the
115980         sense that when I couldn't determine whether an overflow was possible,
115981         I inserted a run-time check.
115982         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
115983         macros.
115984         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
115985         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
115986         (re_xnrealloc, re_x2nrealloc): New inline functions.
115987         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
115988         parse_bracket_exp):
115989         (build_equiv_class, build_charclass): Check for arithmetic overflow
115990         in size expression calculations.
115991         * lib/regex_internal.c (re_string_realloc_buffers):
115992         (build_wcs_upper_buffer, re_node_set_add_intersect):
115993         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
115994         (re_dfa_add_node, register_state): Likewise.
115995         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
115996         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
115997         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
115998         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
116000 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
116002         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
116003         m4/ulonglong.m4.  Problem reported by Martin Lambers.
116005 2005-09-02  Bruno Haible  <bruno@clisp.org>
116007         Support for lib vs. lib64 distinction on biarch platforms.
116008         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
116009         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
116010         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
116012 2005-09-02  Bruno Haible  <bruno@clisp.org>
116014         * gnulib-tool (import): In the other first-use case, provide defaults
116015         as well.
116017 2005-09-02  Bruno Haible  <bruno@clisp.org>
116019         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
116020         patches not yet found in the latest gettext release.
116022 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
116024         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
116025         to avoid a collision with bits/local_lim.h in glibc.
116026         All uses changed.  Problem reported by Dmitry V. Levin in
116027         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
116029         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
116030         bugs in int versus size_t comparisons.
116031         (re_string_context_at): Fix bug where the code assumed that
116032         Idx is signed.
116034         Use bool where appropriate.
116035         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
116036         All callers changed.
116037         (calc_eclosure_iter): Likewise, for ROOT arg.
116038         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
116039         (build_charclass_op): Likewise, for NON_MATCH arg.
116040         * lib/regex_internal.c (re_string_allocate, re_string_construct):
116041         (re_string_construct_common): Likewise, for ICASE arg.
116042         * lib/regexec.c (re_search_2_stub, re_search_stub):
116043         Likewise, for RET_LEN arg.
116044         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
116045         (set_regs): Likewise, for FL_BACKTRACK arg.
116046         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
116047         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
116048         (calc_eclosure_iter, parse_bracket_exp):
116049         Use bool for internal variables that are booleans.
116050         * lib/regexec.c (re_search_internal, check_matching,
116051         proceed_next_node):
116052         (set_regs, build_sifted_states, sift_states_bkref):
116053         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
116054         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
116055         (find_collation_sequence_value):
116056         Likewise.
116057         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
116058         (re_node_set_compare):
116059         Return bool, not int. All callers changed.
116060         * lib/regexec.c (check_halt_node_context, check_dst_limits):
116061         (build_trtable, check_node_accept): Likewise.
116062         * lib/regex_internal.h: Include stdbool.h.
116064         Fix bugs uncovered when converting to bool.
116065         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
116066         failure instead of charging ahead blindly.
116067         * lib/regex_internal.c (register_state): Likewise.
116068         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
116069         for freeing internal storage.
116070         (group_nodes_into_DFA_states): Use unsigned int, not int, for
116071         bitset pieces used as boolean, to avoid undefined behavior
116072         on hosts that do int overflow checking.
116074 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
116076         * config/srclist.txt: Add glibc bugs 1285-1287.
116078 2005-09-01  Jim Meyering  <jim@meyering.net>
116080         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
116081         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
116082         Require gl_STAT_MACROS, too.
116084 2005-09-01  Bruno Haible  <bruno@clisp.org>
116086         * gnulib-tool (import): In the first-use case, provide defaults.
116088 2005-09-01  Bruno Haible  <bruno@clisp.org>
116090         * gnulib-tool (func_import): Remove the .tmp files.
116092 2005-09-01  Bruno Haible  <bruno@clisp.org>
116094         * gnulib-tool (func_import): Fix handling of symbolic links.
116096 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116098         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
116099         old glibc regex code mishandles strings longer than 2**31 bytes.
116100         This patch fixes this when the regex code is used in gnulib
116101         (i.e., outside glibc).
116103         This patch should not affect the use of the regex code inside
116104         glibc.  No doubt this problem also needs to be handled for glibc
116105         as well, but the result will be an incompatible change to the
116106         glibc ABI, and the old ABI will have to be supported too.  That
116107         can be the subject for another patch.
116109         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
116110         governing whether the rest of this patch is active.  By default,
116111         the macro is disabled and the patch has no effect.
116112         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
116113         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
116114         (struct re_pattern_buffer, re_search, re_search_2, re_match):
116115         (re_match_2, re_set_registers): Use the new types.
116116         * lib/regex_internal.h (Idx, re_hashval_t): New types.
116117         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
116118         New macros.
116119         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
116120         (re_string_context_at, bin_tree_t, re_dfastate_t):
116121         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
116122         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
116123         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
116124         (re_string_char_size_at, re_string_wchar_at):
116125         (re_string_elem_size_at):
116126         Use the new types and macros to port to 64-bit hosts.
116127         Use unsigned types for internal values, so that the code
116128         mostly works even for arrays larger than SSIZE_MAX.
116129         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
116130         (search_duplicated_node, calc_eclosure_iter, fetch_number):
116131         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
116132         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
116133         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
116134         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
116135         (calc_inveclosure, parse_dup_op, build_range_exp):
116136         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
116137         (fetch_number, create_token_tree, mark_opt_subexp):
116138         Likewise.
116139         * lib/regex_internal.c (re_string_construct_common,
116140         create_ci_newstate):
116141         (create_cd_newstate, re_string_allocate, re_string_construct):
116142         (re_string_realloc_buffers, build_wcs_upper_buffer):
116143         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
116144         (re_string_reconstruct, re_string_peek_byte_case):
116145         (re_string_fetch_byte_case, re_string_context_at):
116146         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
116147         (re_node_set_init_copy, re_node_set_add_intersect):
116148         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116149         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116150         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
116151         (re_acquire_state, re_acquire_state_context, register_state):
116152         Likewise.
116153         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
116154         search_cur_bkref_entry):
116155         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
116156         (re_search_internal, re_search_2_stub, re_search_stub)
116157         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
116158         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
116159         (update_cur_sifted_state, check_dst_limits):
116160         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
116161         (check_subexp_limits, sift_states_bkref, merge_state_array):
116162         (check_subexp_matching_top, get_subexp, get_subexp_sub):
116163         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
116164         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
116165         (expand_bkref_cache, check_node_accept_bytes):
116166         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
116167         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
116168         (acquire_init_state_context, check_halt_node_context):
116169         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
116170         (sift_states_backward, clean_state_log_if_needed):
116171         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
116172         (find_recover_state, transit_state_sb, transit_state_mb):
116173         (transit_state_bkref, build_trtable, match_ctx_clean):
116174         Likewise.
116175         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
116176         to work around an assumption that REG_MISSING is negative.
116178         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
116179         (seek_collating_symbol_entry) [defined _LIBC]:
116180         (lookup_collation_sequence_value) [defined _LIBC]:
116181         (build_range_exp, build_collating_symbol) [defined _LIBC]:
116182         Use prototypes rather than old-style function definitions.
116183         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
116184         (transit_state_sb) [0]:
116185         (find_collation_sequence_value) [defined _LIBC]: Likewise.
116187         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
116188         rm_eo.
116190         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
116191         (optimize_subexps, lower_subexp):
116192         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
116193         since the signed shift might overflow.  Use 1u<<31 instead.
116194         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
116195         Likewise.
116196         * lib/regexec.c (check_dst_limits_calc_pos_1,
116197         check_subexp_matching_top): Likewise.
116199         * lib/regcomp.c (optimize_subexps, lower_subexp):
116200         Use CHAR_BIT rather than 8, for clarity.
116201         * lib/regexec.c (check_dst_limits_calc_pos_1):
116202         (check_subexp_matching_top): Likewise.
116203         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
116204         have to worry about portability issues when shifting it left.
116205         Remove no-longer-needed test for table_size > 0.
116206         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
116207         in a word, as the resulting behavior is undefined.
116208         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
116209         in one case, a <= should have been an <, and in another case the
116210         whole test was missing.
116211         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
116212         the standard name CHAR_BIT.
116213         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
116214         this is not true on one's complement and signed-magnitude hosts.
116216         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
116217         next_last_offset.
116218         (struct re_dfa_t): Remove unused member states_alloc.
116219         * lib/regcomp.c (init_dfa): Don't initialize unused members.
116221 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116223         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
116224         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
116225         and large-file glibc and in 32-bit large-file Solaris.
116227 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116229         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
116230         lengths fit in regoff_t; this isn't true if regoff_t is the same
116231         width as size_t.
116232         * lib/regex.c (re_search_internal): 5th arg is LAST_START
116233         (= START + RANGE) instead of RANGE.  This avoids overflow
116234         problems when regoff_t is the same width as size_t.
116235         All callers changed.
116236         (re_search_2_stub): Check for overflow when adding the
116237         sizes of the two strings.
116238         (re_search_stub): Check for overflow when adding START
116239         to RANGE; if it occurs, substitute the extreme value.
116241 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116243         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
116245 2005-08-31  Jim Meyering  <jim@meyering.net>
116247         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
116248         a pointer-to-const.
116249         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
116250         (register_state): Likewise.
116251         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
116252         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
116253         (group_nodes_into_DFAstates): Likewise.
116255 2005-08-31  Jim Meyering  <jim@meyering.net>
116257         * check-module: Add a FIXME comment.
116259 2005-08-31  Eric Blake  <ebb9@byu.net>
116261         * modules/unistd-safer (Files): Add unistd--.h.
116262         * modules/stdio-safer (Files): Add stdio--.h.
116264 2005-08-31  Derek Price  <derek@ximbiot.com>
116266         * lib/getdelim.c (getdelim): Return EOF on EOF.
116267         Reported by Larry Jones <lawrence.jones@ugs.com>.
116269 2005-08-31  Bruno Haible  <bruno@clisp.org>
116271         Avoid unnecessary diffs in the generated lib/Makefile.am.
116272         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
116273         the generated files.
116274         (func_import): Don't set cmd.
116276 2005-08-31  Bruno Haible  <bruno@clisp.org>
116278         * lib/strstr.c: Include <stddef.h>, for NULL.
116279         * lib/strcasestr.c: Likewise.
116280         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
116282 2005-08-31  Bruno Haible  <bruno@clisp.org>
116284         * gnulib-tool: New option --macro-prefix.
116285         (func_import): Use macro_prefix.
116286         (import): Handle option --macro-prefix.
116288 2005-08-31  Bruno Haible  <bruno@clisp.org>
116290         * gnulib-tool (import): Rename most ac_* variables to cached_*.
116291         Also use new variables cached_lgpl, cached_libtool.
116293 2005-08-31  Bruno Haible  <bruno@clisp.org>
116295         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
116296         always instantiating them.
116298 2005-08-31  Bruno Haible  <bruno@clisp.org>
116300         * gnulib-tool (func_import): Read the previous cached settings
116301         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
116302         earlier added by gnulib but are now dropped. Warn when a gnulib file
116303         overwrites a non-gnulib file.
116305 2005-08-31  Bruno Haible  <bruno@clisp.org>
116307         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
116308         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
116309         projects that don't keep autogenerated files in CVS. Put into
116310         actioncmd only the specified modules, not the transitive closure.
116312 2005-08-31  Bruno Haible  <bruno@clisp.org>
116314         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
116315         Create directories that shall be filled.
116316         (import): Don't look for gl_* macros in configure.ac. Recurse across
116317         all directories containing a gnulib-cache.m4 files, if meaningful.
116319 2005-08-31  Bruno Haible  <bruno@clisp.org>
116321         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
116322         (import): Set seen_libtool when we see gl_LIBTOOL.
116324 2005-08-31  Bruno Haible  <bruno@clisp.org>
116326         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
116327         declaration macro definitions from generated gnulib.m4.
116329 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
116331         * lib/iconvme.h: Add prototype for iconv_alloc.
116333 2005-08-29  Simon Josefsson  <jas@extundo.com>
116335         * lib/iconvme.c: Fix errno.
116337 2005-08-29  Bruno Haible  <bruno@clisp.org>
116339         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
116340         that it works when the directory contains spaces.
116342 2005-08-29  Bruno Haible  <bruno@clisp.org>
116344         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
116346 2005-08-29  Bruno Haible  <bruno@clisp.org>
116348         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
116349         Emit more advice.
116351 2005-08-29  Bruno Haible  <bruno@clisp.org>
116352         and Stepan Kasal  <kasal@ucw.cz>
116354         * check-module: If more parameters are given, check each of them
116355         separately; add more exceptions, as noted by Jim Meyering.
116356         (check_module): New procedure.
116357         (%exempt_header): Now contains all exceptions.
116359 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
116361         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
116363 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
116365         * lib/iconvme.c: Split iconv_string into iconv_alloc.
116367 2005-08-28  Bruno Haible  <bruno@clisp.org>
116369         * m4/gnulib-tool.m4: New file.
116371 2005-08-27  Jim Meyering  <jim@meyering.net>
116373         * modules/unistd-safer (Files): Add pipe-safer.c.
116374         * modules/fcntl-safer (Files): Add creat-safer.c.
116376 2005-08-27  Jim Meyering  <jim@meyering.net>
116378         * m4/stdlib-safer.m4: New file.  From coreutils.
116379         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
116380         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
116381         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
116382         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
116383         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
116385 2005-08-27  Jim Meyering  <jim@meyering.net>
116387         * lib/fopen-safer.c: Merge minor changes from coreutils.
116388         * lib/dup-safer.c: Likewise.
116389         * lib/fd-safer.c: Likewise.
116391         Merge from coreutils.
116392         * lib/stdio--.h: New file.
116393         * lib/stdlib--.h: New file.
116394         * lib/mkstemp-safer.c: New file.
116396         GNU tar needs these.
116397         * lib/pipe-safer.c: New file.
116398         * lib/creat-safer.c: New file.
116399         * lib/fcntl--.h (creat): Define to creat_safer.
116400         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
116401         * lib/unistd--.h (pipe): Define to pipe_safer.
116402         * lib/unistd-safer.h: Declare pipe_safer.
116404 2005-08-26  Simon Josefsson  <jas@extundo.com>
116406         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
116407         Haible <bruno@clisp.org>.
116409 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
116411         * lib/regex_internal.h: Remove all references to
116412         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
116413         or better.
116414         (bitset_not, bitset_merge, bitset_not_merge):
116415         (bitset_mask, re_string_allocate, re_string_construct):
116416         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
116417         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
116418         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
116419         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
116420         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116421         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116422         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
116423         (re_acquire_state_context):
116424         Remove unnecessary forward decls.
116425         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
116426         Put __attribute at function definition,
116427         now that the function decl has been removed.
116428         * lib/regex_internal.c (re_string_peek_byte_case):
116429         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
116430         Likewise.
116432 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
116434         * m4/regex.m4: Add AC_PREREQ(2.50).
116435         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
116437 2005-08-25  Simon Josefsson  <jas@extundo.com>
116439         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
116440         __fsetlocking.
116442 2005-08-25  Simon Josefsson  <jas@extundo.com>
116444         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
116445         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
116446         GLIBC specific code.
116448 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116450         Make regex safe for g++.  This fixes one real bug (an "err"
116451         that should have been "*err").  g++ problem reported by
116452         Sam Steingold.
116453         * lib/regex_internal.h (re_calloc): New macro, consistent with
116454         re_malloc etc.  All callers of calloc changed to use re_calloc.
116455         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
116456         not int.  All callers changed.
116457         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
116458         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
116459         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
116460         (find_recover_state): Change "err" to "*err"; this fixes what
116461         appears to be a real bug.
116462         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
116463         versus int.
116465 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116467         * modules/regex (Depends-on): Add malloc, since the code
116468         assumes that !malloc(0) means failure.
116470 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116472         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
116474         alloca modernization/simplification for regex.
116475         * lib/regex.c: Remove portability cruft for alloca.  This no longer
116476         needs to be at the start of the file, and can be moved into
116477         regex_internal.h and simplified.
116478         * lib/regex_internal.h: Include <alloca.h>.
116479         (__libc_use_alloca) [!defined _LIBC]: New macro.
116480         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
116481         now works outside glibc.
116483 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116485         * config/srclist.txt: Add glibc bugs 1241, 1245.
116487 2005-08-25  Jim Meyering  <jim@meyering.net>
116489         * lib/open-safer.c: Include <config.h>.
116490         Otherwise, we'd lose LARGEFILE support in any file using
116491         e.g. "fcntl--.h"
116493 2005-08-25  Bruno Haible  <bruno@clisp.org>
116495         * m4/minmax.m4: Require autoconf 2.52.
116496         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
116497         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
116498         alternatives of translit over the alphabet.
116499         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
116501 2005-08-24  Simon Josefsson  <jas@extundo.com>
116503         * tests/test-getpass.c: New file.
116505 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116507         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
116508         for GNU regex features.
116510 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116512         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
116513         * lib/regex.h (regerror): Likewise.
116515         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
116516         requires this.  (The code never needed it.)
116518         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
116519         All uses of recently-renamed identifiers changed to use the new,
116520         POSIX-compliant names.  The code will build and run just fine
116521         without these changes, but it's better to eat our own dog food
116522         and use the standard-conforming names.
116524         * lib/regex.h: Fix a multitude of POSIX name space violations.
116525         These changes have an effect only for programs that define
116526         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
116527         do not change anything for programs compiled in the normal way.
116528         Also, there is no effect on the ABI.
116530         (_REGEX_SOURCE): New macro.
116531         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
116532         defined and _GNU_SOURCE is not; this fixes a name space violation.
116534         Rename the following macros to obey POSIX requirements.
116535         The old names are still visible as macros if _REGEX_SOURCE is defined.
116536         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
116537         RE_BACKSLASH_ESCAPE_IN_LISTS.
116538         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
116539         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
116540         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
116541         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
116542         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
116543         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
116544         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
116545         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
116546         (REG_INTERVALS): renamed from RE_INTERVALS.
116547         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
116548         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
116549         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
116550         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
116551         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
116552         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
116553         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
116554         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
116555         RE_UNMATCHED_RIGHT_PAREN_ORD.
116556         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
116557         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
116558         (REG_DEBUG): renamed from RE_DEBUG.
116559         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
116560         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
116561         unusual, since we can't clash with the POSIX REG_ICASE.
116562         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
116563         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
116564         (REG_NO_SUB): renamed from RE_NO_SUB.
116565         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
116566         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
116567         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
116568         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
116569         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
116570         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
116571         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
116572         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
116573         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
116574         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
116575         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
116576         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
116577         RE_SYNTAX_POSIX_MINIMAL_BASIC.
116578         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
116579         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
116580         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
116581         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
116582         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
116583         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
116584         (REG_FIXED): Renamed from REGS_FIXED.
116585         (REG_NREGS): Renamed from RE_NREGS.
116587         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
116588         of other REG_* macros, since POSIX says the user is allowed to
116589         #undef these macros selectively.
116591         (reg_errcode_t): Update comment stating what other tables need
116592         to be consistent.
116594         Rename the following enum values to obey POSIX requirements.
116595         The old names are still visible as macros.
116596         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
116597         is not defined, since GNU is supposed to be a superset of POSIX as
116598         much as possible, and since we want reg_errcode_t to be a signed
116599         type for implementation consistency.
116600         (_REG_NOERROR): Renamed from REG_NOERROR.
116601         (_REG_NOMATCH): Renamed from REG_NOMATCH.
116602         (_REG_BADPAT): Renamed from REG_BADPAT.
116603         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
116604         (_REG_ECTYPE): Renamed from REG_ECTYPE.
116605         (_REG_EESCAPE): Renamed from REG_EESCAPE.
116606         (_REG_ESUBREG): Renamed from REG_ESUBREG.
116607         (_REG_EBRACK): Renamed from REG_EBRACK.
116608         (_REG_EPAREN): Renamed from REG_EPAREN.
116609         (_REG_EBRACE): Renamed from REG_EBRACE.
116610         (_REG_BADBR): Renamed from REG_BADBR.
116611         (_REG_ERANGE): Renamed from REG_ERANGE.
116612         (_REG_ESPACE): Renamed from REG_ESPACE.
116613         (_REG_BADRPT): Renamed from REG_BADRPT.
116614         (_REG_EEND): Renamed from REG_EEND.
116615         (_REG_ESIZE): Renamed from REG_ESIZE.
116616         (_REG_ERPAREN): Renamed from REG_ERPAREN.
116617         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
116618         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
116619         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
116620         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
116622         (_REG_RE_NAME, _REG_RM_NAME): New macros.
116623         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
116624         changed.  But support the old name if the new one is not defined
116625         and if _REGEX_SOURCE.
116627         Change the following member names in struct re_pattern_buffer.
116628         The old names are still supported if !_REGEX_SOURCE.
116629         The new names are always supported, regardless of _REGEX_SOURCE.
116630         (re_buffer): Renamed from buffer.
116631         (re_allocated): Renamed from allocated.
116632         (re_used): Renamed from used.
116633         (re_syntax): Renamed from syntax.
116634         (re_fastmap): Renamed from fastmap.
116635         (re_translate): Renamed from translate.
116636         (re_can_be_null): Renamed from can_be_null.
116637         (re_regs_allocated): Renamed from regs_allocated.
116638         (re_fastmap_accurate): Renamed from fastmap_accurate.
116639         (re_no_sub): Renamed from no_sub.
116640         (re_not_bol): Renamed from not_bol.
116641         (re_not_eol): Renamed from not_eol.
116642         (re_newline_anchor): Renamed from newline_anchor.
116644         Change the following member names in struct re_registers.
116645         The old names are still supported if !_REGEX_SOURCE.
116646         The new names are always supported, regardless of _REGEX_SOURCE.
116647         (rm_num_regs): Renamed from num_regs.
116648         (rm_start): Renamed from start.
116649         (rm_end): Renamed from end.
116651         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
116652         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
116653         Prepend __ to parameter names.
116655         Undo yesterday's changes.
116657 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116659         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
116660         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
116661         lib/regex.c.
116663 2005-08-24  Jim Meyering  <jim@meyering.net>
116665         Sync from coreutils.
116666         * m4/fcntl-safer.m4: New file.
116668         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
116669         and object files for this module.
116671 2005-08-24  Jim Meyering  <jim@meyering.net>
116673         Sync from coreutils.
116674         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
116676 2005-08-24  Jim Meyering  <jim@meyering.net>
116678         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
116679         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
116681 2005-08-24  Jim Meyering  <jim@meyering.net>
116683         * modules/fcntl-safer: New module.
116684         * modules/fts (Depends-on): Add fcntl-safer.
116685         * MODULES.html.sh (File descriptor based Input/Output):
116686         Add fcntl-safer.
116688 2005-08-24  Bruno Haible  <bruno@clisp.org>
116690         Support for unit test modules.
116691         * modules/README: Mention tests modules.
116692         * modules/TEMPLATE-TESTS: New file.
116693         * gnulib-tool: New options --extract-tests-module, --with-tests and
116694         --tests-base (unused for the moment).
116695         (testsbase, inctests): New variables.
116696         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
116697         (func_verify_module): Exclude TEMPLATE-TESTS.
116698         (func_verify_nontests_module, func_verify_tests_module): New functions.
116699         (func_get_dependencies): Add implicit dependency for tests modules.
116700         (func_get_tests_module): New function.
116701         (func_modules_transitive_closure): When --with-tests was specified,
116702         include the unit tests as well, unless explicitly avoided.
116703         (func_emit_lib_Makefile_am): Ignore the tests modules here.
116704         (func_emit_tests_Makefile_am): New function.
116705         (func_create_testdir): When --with-tests was specified, emit a
116706         tests/ directory.
116707         * MODULES.html.sh (Future developments): Update.
116709 2005-08-24  Bruno Haible  <bruno@clisp.org>
116711         * modules/tls-tests: New file.
116712         * tests/test-tls.c: New file, from GNU gettext.
116714 2005-08-24  Bruno Haible  <bruno@clisp.org>
116716         * modules/lock-tests: New file.
116717         * tests/test-lock.c: New file, from GNU gettext.
116719 2005-08-24  Bruno Haible  <bruno@clisp.org>
116721         * lib/lock.h: Add multiple inclusion guard.
116722         * lib/tls.h: Add multiple inclusion guard.
116724 2005-08-24  Bruno Haible  <bruno@clisp.org>
116726         * gnulib-tool: Add support for the --aux-dir option to
116727         --create-testdir, --create-megatestdir, --test, --megatest.
116728         (func_create_testdir, func_create_megatestdir): Optionally emit a
116729         AC_CONFIG_AUX_DIR directive.
116730         (create-testdir, create-megatestdir, test, megatest): Provide a
116731         default value for $auxdir.
116733 2005-08-24  Bruno Haible  <bruno@clisp.org>
116735         * gnulib-tool (import): Use compound statement instead of subshell
116736         where possible.
116738 2005-08-24  Bruno Haible  <bruno@clisp.org>
116740         * gnulib-tool (import): Change --aux-dir default to "build-aux".
116742 2005-08-24  Bruno Haible  <bruno@clisp.org>
116744         * gnulib-tool (func_version): Update.
116746 2005-08-24  Bruno Haible  <bruno@clisp.org>
116748         * gnulib-tool (func_import, func_create_testdir,
116749         func_create_megatestdir): Quote all autoconf macro arguments.
116751 2005-08-24  Bruno Haible  <bruno@clisp.org>
116753         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
116754         option --force, because --force causes the aclocal.m4 of each
116755         subdirectory to be newer than the corresponding config.h.in.
116757 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116759         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
116760         All contents moved to gl_REGEX.
116761         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
116762         assume that it does.
116764 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116766         * lib/regex.h (REG_NOSYS)
116767         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
116768         Define, since POSIX requires it as of 2001.
116769         (_REG_ENOSYS)
116770         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
116771         New private symbol, used to keep the enum signed in all cases.
116772         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
116773         Youngman in
116774         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
116776         * lib/regex_internal.c (re_string_skip_chars, register_state):
116777         (calc_state_hash):
116778         Remove forward decls; no longer needed now that we use prototypes.
116779         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
116780         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
116781         (clean_state_log_if_needed): Likewise.
116783 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116785         * config/srclist.txt: Add glibc bugs 1231-1233.
116787 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116789         Fix problems reported by Sam Steingold in
116790         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
116791         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
116792         assumed that reg_errcode_t is a signed type, which is not
116793         necessarily true if _XOPEN_SOURCE is not defined.
116794         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
116795         since some compilers warn about it otherwise.
116797 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116799         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
116800         (init_word_char, create_initial_state, duplicate_node_closure):
116801         (fetch_token, peek_token_bracket, build_range_exp):
116802         (build_collating_symbol): Remove forward decls; no longer needed
116803         now that we use prototypes.
116805         * lib/regcomp.c:
116806         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
116807         (re_compile_fastmap_iter, regcomp, regerror, regfree):
116808         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
116809         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
116810         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
116811         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
116812         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
116813         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
116814         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
116815         (build_range_exp, build_collating_symbol, parse_bracket_exp):
116816         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
116817         (build_charclass, build_charclass_op, fetch_number, create_tree):
116818         (create_token_tree, mark_opt_subexp, duplicate_tree):
116819         Use prototypes rather than old-style definitions.
116821         * lib/regex_internal.c:
116822         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
116823         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
116824         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
116825         (re_string_reconstruct, re_string_peek_byte_case):
116826         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
116827         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
116828         (re_node_set_init_copy, re_node_set_add_intersect):
116829         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116830         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116831         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
116832         (re_acquire_state, re_acquire_state_context, register_state):
116833         (create_ci_newstate, create_cd_newstate, free_state):
116834         Likewise.
116835         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
116836         re_search_2):
116837         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
116838         (re_search_internal, prune_impossible_nodes):
116839         (acquire_init_state_context, check_matching, static):
116840         (check_halt_node_context, check_halt_state_context, proceed_next_node):
116841         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
116842         (update_regs, sift_states_backward, build_sifted_states):
116843         (clean_state_log_if_needed, merge_state_array):
116844         (update_cur_sifted_state, add_epsilon_src_nodes):
116845         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
116846         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
116847         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
116848         (find_recover_state, check_subexp_matching_top, transit_state_mb):
116849         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
116850         (check_arrival, check_arrival_add_next_nodes):
116851         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
116852         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
116853         (check_node_accept_bytes, check_node_accept, extend_buffers):
116854         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
116855         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
116856         (sift_ctx_init):
116857         Likewise.
116859         * lib/regex_internal.h:
116860         (re_string_allocate, re_string_construct, re_string_reconstruct):
116861         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
116862         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
116863         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
116864         (re_string_context_at, re_string_peek_byte_case):
116865         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
116866         is defined, since we now use prototypes always.
116868         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
116869         C89 or better.  All uses removed.
116871 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116873         * config/srclist.txt: Add glibc bugs 1220-1227.
116875 2005-08-20  Jim Meyering  <jim@meyering.net>
116877         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
116878         of unused local, dfa.
116880 2005-08-20  Bruno Haible  <bruno@clisp.org>
116882         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
116884 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116886         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
116887         (re_node_set_insert_last, re_dfa_add_node):
116888         Rename local variables to avoid GCC shadowing warnings.
116890 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116892         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
116893         [defined lint]: Suppress bogus uninitialized-variable warnings.
116895         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
116896         and let the caller return REG_ESPACE if out of space.  This
116897         removes an uninitialied-variable warning with GCC 4.0.1, and also
116898         avoids taking the address of a local variable.  All callers
116899         changed.
116901 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116903         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
116904         $LIBCSRC/posix/regexec.c.
116905         Add glibc bug 1217 for regcomp.c.
116907 2005-08-19  Jim Meyering  <jim@meyering.net>
116909         * lib/regexec.c (proceed_next_node): Redo local variables to
116910         avoid GCC shadowing warnings.
116912 2005-08-18  Bruno Haible  <bruno@clisp.org>
116914         * lib/strstr.c (strstr): Fix return value in multibyte case.
116915         * lib/strcasestr.c (strcasestr): Likewise.
116917 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
116919         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
116921 2005-08-17  Jim Meyering  <jim@meyering.net>
116923         Make the %s format (seconds since the epoch) work for a negative
116924         number and when used with a zero-padded field width, e.g. %015s.
116926         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
116927         label so that it precedes the code to set `digits'.  Otherwise,
116928         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
116929         print `00-22'.  Now, it prints `-0022', as it should.
116931 2005-08-17  Bruno Haible  <bruno@clisp.org>
116933         * modules/strstr (Files): Add m4/mbrtowc.m4.
116934         (Depends-on): Add mbuiter.
116936 2005-08-17  Bruno Haible  <bruno@clisp.org>
116938         * modules/strcasestr: New file.
116939         * MODULES.html.sh (String handling, based on ANSI C 89): Add
116940         strcasestr.
116942 2005-08-17  Bruno Haible  <bruno@clisp.org>
116944         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
116946 2005-08-17  Bruno Haible  <bruno@clisp.org>
116948         * modules/mbuiter: New file.
116949         * MODULES.html.sh (Extended multibyte and wide character utilities):
116950         Add mbuiter.
116952 2005-08-17  Bruno Haible  <bruno@clisp.org>
116954         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
116955         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
116957 2005-08-17  Bruno Haible  <bruno@clisp.org>
116959         * m4/strcasestr.m4: New file.
116961 2005-08-17  Bruno Haible  <bruno@clisp.org>
116963         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
116964         * lib/strstr.c: Completely rewritten, with multibyte locale support.
116966 2005-08-17  Bruno Haible  <bruno@clisp.org>
116968         * lib/strcasestr.h: New file.
116969         * lib/strcasestr.c: New file.
116971 2005-08-17  Bruno Haible  <bruno@clisp.org>
116973         * lib/strcasecmp.c: Use mbuiter.h.
116975 2005-08-17  Bruno Haible  <bruno@clisp.org>
116977         * lib/mbuiter.h: New file.
116979 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
116981         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
116982         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
116983         and gl_GETOPT are both invoked via different paths (as happens
116984         with GNU tar CVS because it uses both argp and getopt), the former
116985         wins.
116987 2005-08-16  Bruno Haible  <bruno@clisp.org>
116989         * modules/tls: New file.
116990         * MODULES.html.sh (Multithreading): Add tls.
116992 2005-08-16  Bruno Haible  <bruno@clisp.org>
116994         * modules/strnlen1: New file.
116995         * MODULES.html.sh (String handling): Add strnlen1.
116997 2005-08-16  Bruno Haible  <bruno@clisp.org>
116999         * modules/strcase (Files): Add m4/mbrtowc.m4.
117000         (Depends-on): Add strnlen1, mbchar.
117002 2005-08-16  Bruno Haible  <bruno@clisp.org>
117004         * modules/mbiter: New file.
117005         * MODULES.html.sh (Extended multibyte and wide character utilities):
117006         Add mbiter.
117008 2005-08-16  Bruno Haible  <bruno@clisp.org>
117010         * modules/mbfile: New file.
117011         * MODULES.html.sh (Extended multibyte and wide character utilities):
117012         Add mbfile.
117014 2005-08-16  Bruno Haible  <bruno@clisp.org>
117016         * modules/mbchar: New file.
117017         * MODULES.html.sh (Extended multibyte and wide character utilities):
117018         New section.
117020 2005-08-16  Bruno Haible  <bruno@clisp.org>
117022         * m4/tls.m4: New file, from GNU gettext.
117024 2005-08-16  Bruno Haible  <bruno@clisp.org>
117026         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
117027         always.
117028         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
117030 2005-08-16  Bruno Haible  <bruno@clisp.org>
117032         * m4/mbiter.m4: New file.
117034 2005-08-16  Bruno Haible  <bruno@clisp.org>
117036         * m4/mbfile.m4: New file.
117038 2005-08-16  Bruno Haible  <bruno@clisp.org>
117040         * m4/mbchar.m4: New file.
117042 2005-08-16  Bruno Haible  <bruno@clisp.org>
117044         * lib/tls.h: New file, from GNU gettext.
117045         * lib/tls.c: New file, from GNU gettext.
117047 2005-08-16  Bruno Haible  <bruno@clisp.org>
117049         * lib/strnlen1.h: New file.
117050         * lib/strnlen1.c: New file.
117052 2005-08-16  Bruno Haible  <bruno@clisp.org>
117054         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
117055         (mbi_init): Update.
117056         (mbi_avail, mbi_advance): Let the iteration end before the terminating
117057         NUL byte, not after it.
117059 2005-08-16  Bruno Haible  <bruno@clisp.org>
117061         * lib/strcase.h (strcasecmp): Add note in comments.
117062         * lib/strncasecmp.c: Use code from strcasecmp.c.
117063         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
117064         (strcasecmp): Work correctly in multibyte locales.
117066 2005-08-16  Bruno Haible  <bruno@clisp.org>
117068         * lib/mbiter.h: New file.
117070 2005-08-16  Bruno Haible  <bruno@clisp.org>
117072         * lib/mbfile.h: New file.
117074 2005-08-16  Bruno Haible  <bruno@clisp.org>
117076         * lib/mbchar.h: New file.
117077         * lib/mbchar.c: New file.
117079 2005-08-16  Bruno Haible  <bruno@clisp.org>
117081         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
117082         the valid ones. Makes the comparison operations transitive:
117083         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
117084         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
117086 2005-08-15  Simon Josefsson  <jas@extundo.com>
117088         * modules/ssize_t (License): Change to 'unlimited'.
117090         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
117092 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
117094         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
117095         Add comments for each pending glibc patch.
117097 2005-08-15  Bruno Haible  <bruno@clisp.org>
117099         * lib/regex.h (__restrict_arr): Don't define to __restrict if
117100         __cplusplus is defined.
117102 2005-08-14  Jim Meyering  <jim@meyering.net>
117104         Sync from coreutils.
117106         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
117107         Use the hash-table-based cycle-detection code not just when
117108         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
117109         Reported by James Youngman in
117110         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
117111         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
117112         FTS_TIGHT_CYCLE_CHECK.
117113         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
117114         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
117115         once again.
117116         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
117117         * lib/fts.c (fd_safer): Remove decl.
117118         Include fcntl--.h rather than unistd-safer.h
117119         (fts_safe_changedir): Don't call fd_safer; no longer needed
117120         now that we include fcntl--.h.
117122 2005-08-12  Simon Josefsson  <jas@extundo.com>
117124         * modules/getndelim2: Use ssize_t module.
117125         * modules/getnline: Likewise.
117126         * modules/safe-read: Likewise.
117127         * modules/xreadlink: Likewise.
117129         * modules/ssize_t: New file.
117131 2005-08-12  Simon Josefsson  <jas@extundo.com>
117133         * m4/readline.m4: Look for termcap, curses or ncurses if required.
117135 2005-08-12  Simon Josefsson  <jas@extundo.com>
117137         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
117138         ssize_t.
117140 2005-08-12  Simon Josefsson  <jas@extundo.com>
117142         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
117143         readline, getdelim and check_version.
117144         (Support for systems lacking ISO C 99: Sizes of integer types):
117145         Add size_max.
117147 2005-08-12  Bruno Haible  <bruno@clisp.org>
117149         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
117151 2005-08-11  Simon Josefsson  <jas@extundo.com>
117153         * modules/readline: New file.
117155         * modules/strnlen (Files): Add strnlen.h.
117157 2005-08-11  Simon Josefsson  <jas@extundo.com>
117159         * m4/readline.m4: New file.
117161 2005-08-11  Simon Josefsson  <jas@extundo.com>
117163         * lib/readline.h, readline.c: New file.
117165 2005-08-11  Simon Josefsson  <jas@extundo.com>
117167         * doc/gnulib.texi (Initial import, Finishing touches): Mention
117168         gl_AVOID.
117170 2005-08-11  Bruno Haible  <bruno@clisp.org>
117172         * lib/strnlen.h (strnlen): Change parameter name to match comment.
117174 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
117176         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
117178 2005-08-10  Simon Josefsson  <jas@extundo.com>
117180         * tests/test-iconvme.c: New file.
117182 2005-08-10  Simon Josefsson  <jas@extundo.com>
117184         * m4/strnlen.m4: New file.
117186         * m4/strndup.m4: Don't check for strnlen declaration, done in
117187         strnlen.m4.
117189 2005-08-10  Simon Josefsson  <jas@extundo.com>
117191         * lib/strndup.c: Use strnlen.h.
117193         * lib/strnlen.h: New file.
117195 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117197         * README: Typos.
117199 2005-08-02  Simon Josefsson  <jas@extundo.com>
117201         * modules/readline: New file.
117203 2005-08-02  Simon Josefsson  <jas@extundo.com>
117205         * modules/getdelim: New file.
117207         * modules/getline: Rewrite, don't use getndelim2.
117209 2005-08-02  Simon Josefsson  <jas@extundo.com>
117211         * m4/getline.m4: Separate out getdelim stuff into separate module.
117213         * m4/getdelim.m4: New file.
117215 2005-08-02  Simon Josefsson  <jas@extundo.com>
117217         * lib/getline.h, getline.c: Rewrite.
117219         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
117221 2005-07-31  Bruno Haible  <bruno@clisp.org>
117223         * lib/lock.h (gl_lock_initializer): New macro.
117224         (gl_lock_define_initialized): Use it.
117225         (gl_rwlock_initializer): New macro.
117226         (gl_rwlock_define_initialized): Use it.
117227         (gl_recursive_lock_initializer): New macro.
117228         (gl_recursive_lock_define_initialized): Use it.
117230 2005-07-30  Karl Berry  <karl@gnu.org>
117232         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
117233         Report from Ben Pfaff, regarding getopt.
117235 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
117237         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
117238         normal way.
117239         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
117240         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
117241         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
117242         (gl_GETOPT): Use the new macros.  Most of the implementation
117243         is moved to the new macros.  This is for programs like Emacs
117244         that don't want all the functionality of gl_GETOPT.
117246 2005-07-26  Bruno Haible  <bruno@clisp.org>
117248         * m4/lock.m4: Update from GNU gettext.
117250 2005-07-26  Bruno Haible  <bruno@clisp.org>
117252         * lib/lock.h: Update from GNU gettext.
117253         * lib/lock.c: Update from GNU gettext.
117255 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
117257         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
117258         obsolescent AC_TRY_RUN.  Include the default includes files, for
117259         'exit'.
117261 2005-07-24  Bruno Haible  <bruno@clisp.org>
117263         * modules/visibility: New file.
117264         * MODULES.html.sh (Misc): Add visibility.
117266 2005-07-24  Bruno Haible  <bruno@clisp.org>
117268         * m4/visibility.m4: New file.
117270 2005-07-24  Bruno Haible  <bruno@clisp.org>
117272         * doc/visibility.texi: New file.
117274 2005-07-22  Bruno Haible  <bruno@clisp.org>
117276         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
117277         $(ALLOCA_H), redundant through BUILT_SOURCES.
117278         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
117279         redundant through BUILT_SOURCES.
117280         * modules/byteswap (Makefile.am): Remove explicit dependency on
117281         $(BYTESWAP_H), redundant through BUILT_SOURCES.
117282         * modules/fnmatch (Makefile.am): Remove explicit dependency on
117283         $(FNMATCH_H), redundant through BUILT_SOURCES.
117284         * modules/getopt (Makefile.am): Remove explicit dependency on
117285         $(GETOPT_H), redundant through BUILT_SOURCES.
117286         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
117287         redundant through BUILT_SOURCES.
117288         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
117289         redundant through BUILT_SOURCES.
117290         * modules/stdbool (Makefile.am): Remove explicit dependency on
117291         $(STDBOOL_H), redundant through BUILT_SOURCES.
117292         * modules/stdint (Makefile.am): Remove explicit dependency on
117293         $(STDINT_H), redundant through BUILT_SOURCES.
117294         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
117295         Remove explicit dependency on $(SYSEXITS_H).
117296         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
117298 2005-07-18  Simon Josefsson  <jas@extundo.com>
117300         * lib/check-version.c (check_version): Accept identical versions too.
117302 2005-07-18  Bruno Haible  <bruno@clisp.org>
117304         * modules/lock: New file.
117305         * MODULES.html.sh (Multithreading): New section.
117307 2005-07-18  Bruno Haible  <bruno@clisp.org>
117309         * m4/lock.m4: New file, from GNU gettext.
117311 2005-07-18  Bruno Haible  <bruno@clisp.org>
117313         * lib/lock.h: New file, from GNU gettext.
117314         * lib/lock.c: New file, from GNU gettext.
117316 2005-07-18  Bruno Haible  <bruno@clisp.org>
117318         * lib/lock.h (gl_once_t): New type.
117319         (gl_once_define, gl_once): New macros.
117320         * lib/lock.c (fresh_once): New variable.
117321         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
117322         functions.
117324 2005-07-16  Simon Josefsson  <jas@extundo.com>
117326         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
117327         workaround, suggested by Bruno.
117329 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117331         * modules/xalloc (Depends-on): Add xalloc-die.
117332         * modules/xvasprintf (Depends-on): Add xalloc-die.
117334 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117336         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
117337         with a minor change.
117339 2005-07-15  Bruno Haible  <bruno@clisp.org>
117341         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
117342         When using lib/poll.c, define poll as rpl_poll.
117344 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
117346         * modules/argp (Depends-on): Remove unlocked-io.
117348 2005-07-14  Derek Price  <derek@ximbiot.com>
117350         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
117351         for glob symlink bug.
117353 2005-07-14  Bruno Haible  <bruno@clisp.org>
117355         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
117356         Instead, test for *_unlocked function declarations directly.
117358 2005-07-11  Simon Josefsson  <jas@extundo.com>
117360         * modules/size_max: New file.
117362         * modules/xsize: Depend on size_max module for size_max.m4.
117364 2005-07-11  Simon Josefsson  <jas@extundo.com>
117366         * lib/size_max.h: New file.
117368 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
117370         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
117371         copyright symbol and the year.
117372         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
117373         (version_etc_va): Use parameterized copyright notice.
117374         Reword to conform to the current GNU coding standards.
117376 2005-07-11  Karl Berry  <karl@gnu.org>
117378         * doc/gnulib.texi (Quoting): new node.
117379         (Initial import): more info, from Patrice.
117381 2005-07-11  Bruno Haible  <bruno@clisp.org>
117383         * gnulib-tool (func_usage): Document option --avoid.
117384         (Command line options): Handle --avoid.
117385         (func_acceptable): New function.
117386         (func_modules_transitive_closure): Use it.
117388 2005-07-11  Bruno Haible  <bruno@clisp.org>
117390         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
117391         Reported by Jim Meyering.
117393 2005-07-10  Bruno Haible  <bruno@clisp.org>
117395         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
117396         Needed when size_t is smaller than 'unsigned int'.
117397         Reported by Paul Eggert.
117399 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117401         * modules/argp (Depends-on): Add unlocked-io
117403 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117405         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
117406         block of defines.
117408 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
117410         * config/srclist.txt: Comment out regcomp.c, since we have a porting
117411         fix now.
117413 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
117414         and Paul Eggert  <eggert@cs.ucla.edu>
117416         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
117417         in wint_t, not wchar_t.  Remove now-unnecessary cast.
117419 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117421         * modules/regex (Files): Add lib/regex_internal.c,
117422         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
117423         (Depends-on): Add extensions.
117424         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
117426 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117428         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
117429         pathconf.
117430         * m4/same.m4 (gl_SAME): Likewise.
117431         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
117433         * m4/regex.m4: Adjust to new libc regex implementation.
117434         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
117435         all the .c and .h parts of (the new) regex.
117436         Quote the m4 stuff better.
117437         Check for RE_ICASE bug of old gnulib.
117438         Check for REG_STARTEND of recent libc.
117439         Rename local variables from jm_* to gl_*.
117440         Quote operand of "test -f".
117441         Say "recent enough" version of libc, not "version 2".
117442         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
117443         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
117444         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
117445         Remove check for btowc, isascii.
117446         Require AM_LANGINFO_CODESET.
117448 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117450         * lib/regex.c, regex.h: Sync from libc.
117451         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
117452         * lib/regexec.c:
117453         New files, synced from libc, except that regex_internal.h
117454         currently has a small porting fix.
117456 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117458         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
117459         regex_internal.c, regexec.c.
117460         Add regex_internal.h too, but as a comment, since the libc version
117461         is currently broken in gnulib mode.
117463 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
117465         Support programs like Emacs that use gnulib but not gettext.
117466         * MODULES.html.sh (Internationalization functions): Add gettext-h.
117467         * modules/gettext-h: New file.
117468         * modules/gettext (Files): Remove lib/gettext.h.
117469         (Depends-on): Add gettext-h.
117470         (Makefile.am): Remove lib_SOURCES.
117471         * modules/argmatch, modules/c-stack, modules/closeout:
117472         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
117473         * modules/execute, modules/file-type, modules/getaddrinfo:
117474         * modules/getopt, modules/human, modules/javacomp:
117475         * modules/javaexec, modules/mkdir-p, modules/obstack:
117476         * modules/openat, modules/pagealign_alloc, modules/pipe:
117477         * modules/quotearg, modules/regex, modules/rpmatch:
117478         * modules/unicodeio, modules/userspec, modules/version-etc:
117479         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
117480         * modules/xsetenv:
117481         Depend on gettext-h, not gettext.
117483 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
117485         * gnulib-tool (func_import): Add support for 'public domain' license.
117486         * modules/alloca, modules/atexit, modules/memmove:
117487         Now public domain, not GPL.
117488         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
117489         * modules/realloc, modules/strerror, modules/strtod:
117490         Now LGPL, not GPL.
117492 2005-07-05  Bruno Haible  <bruno@clisp.org>
117494         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
117495         autoconf CVS. Needed for mingw.
117497 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117499         Remove the dependency of the strftime module on the tzset module.
117500         * modules/strftime (Depends-on): Remove dependency on tzset.
117502 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117504         Remove the dependency of the strftime module on the tzset module.
117505         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
117506         gl_FUNC_TZSET_CLOBBER.
117508 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117510         Remove the dependency of the strftime module on the tzset module.
117511         * lib/strftime.c (my_strftime)
117512         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
117513         Copy the input structure, to work around some of the bug with
117514         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
117515         Solaris releases, you should also use the tzset module, but we won't
117516         require it as a dependency any more since we don't want LGPLed code
117517         to depend on GPLed code.
117519 2005-07-02  Jim Meyering  <jim@meyering.net>
117521         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
117522         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
117523         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
117524         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
117526 2005-07-02  Jim Meyering  <jim@meyering.net>
117528         * lib/backupfile.c (backup_args): Change a `0' to NULL.
117530 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
117532         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
117533         declares only 'struct timespec;' (!).
117535 2005-07-01  Jim Meyering  <jim@meyering.net>
117537         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
117538         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
117539         * lib/save-cwd.c, tempname.c:
117540         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
117541         and don't include <sys/file.h>).
117543 2005-06-29  Jim Meyering  <jim@meyering.net>
117545         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
117546         type name.  Use the variable name instead.
117547         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
117548         Likewise.
117550 2005-06-28  Simon Josefsson  <jas@extundo.com>
117552         * modules/check-version (Files): Add check-version.m4.
117554 2005-06-28  Simon Josefsson  <jas@extundo.com>
117556         * m4/check-version.m4: New file, suggested by Jim Meyering
117557         <jim@meyering.net>.
117559 2005-06-28  Simon Josefsson  <jas@extundo.com>
117561         * lib/check-version.h, lib/check-version.c: New files.
117563 2005-06-28  Simon Josefsson  <jas@extundo.com>
117565         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
117566         collision with global variable.  Better indentation.  Don't
117567         increment buffer pointer beyond buffer end.  Based on comments
117568         from Paul Eggert <eggert@cs.ucla.edu>.
117570         * lib/base64.h: Indent.
117572 2005-06-28  Simon Josefsson  <jas@extundo.com>
117574         * doc/gnulib.texi (Library version handling): New section.
117576 2005-06-28  Jim Meyering  <jim@meyering.net>
117578         * check-module (find_included_lib_files): Hard-code another
117579         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
117580         but modules/fts-lgpl (correctly) does not list those files.
117582         * modules/canonicalize (Files): Add lib/pathmax.h.
117584 2005-06-25  Simon Josefsson  <jas@extundo.com>
117586         * modules/check-version: New file.
117588 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
117590         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
117591         initializer of struct addrinfo, as an indication that we don't
117592         care how many members the structure has.
117594 2005-06-24  Derek Price  <derek@ximbiot.com>
117595         and Bruno Haible  <bruno@clisp.org>
117597         Remove stat module & update lstat.
117598         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
117599         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117600         * m4/stat.m4: Remove this file.
117602 2005-06-24  Derek Price  <derek@ximbiot.com>
117603         and Bruno Haible  <bruno@clisp.org>
117605         Remove stat module & update lstat.
117606         * lib/stat.c: Remove this file...
117607         (slash_aware_lstat): ...moving this content and its support...
117608         * lib/lstat.c (rpl_lstat): ...into here.
117609         * lib/lstat.h: New file.
117611 2005-06-24  Derek Price  <derek@ximbiot.com>
117612         and Bruno Haible  <bruno@clisp.org>
117614         Remove stat module & update lstat.
117615         * config/srclist.txt (libc sources): Remove stat.
117617 2005-06-24  Derek Price  <derek@ximbiot.com>
117618         and Bruno Haible  <bruno@clisp.org>
117620         Remove stat module & update lstat.
117621         * MODULES.html.sh (stat): Remove.
117622         * MODULES.html: Regenerated.
117623         * modules/lstat (Description): Correct function name.
117624         (Files): Add "lstat.h".
117625         (Depends-on): Remove stat, add xalloc, stat-macros.
117626         * modules/stat: Remove this file.
117627         (Include): Add "lstat.h", remove <sys/stat.h>.
117629 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
117631         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
117632         (ranged_convert): Don't save conversion in a temporary struct.
117633         This causes a warning with GCC 4.0.0, and anyway in the typical
117634         case it's not worth the extra 100 bytes or so of code.
117635         (ranged_convert, __mktime_internal): When calling a function via a
117636         pointer P, use P () rather than (*P) (), as we now assume C89 or
117637         better.
117639 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
117641         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
117642         "who -r" failed to give output.  Problem reported by Tim Waugh.
117644         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
117645         (xcalloc): Use it to avoid needless tests.
117646         Problem reported by Jim Meyering.
117648 2005-06-20  Derek Price  <derek@ximbiot.com>
117650         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
117651         unnecessary for Autoconfs > 2.59c.
117653 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117655         * lib/argp.h (__option_is_short): Check upper limit of
117656         __key. Isprint() requires its argument to have the value
117657         of an unsigned char or EOF.
117659 2005-06-16  Jim Meyering  <jim@meyering.net>
117661         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
117662         when either N or S is zero.
117664 2005-06-16  Derek Price  <derek@ximbiot.com>
117666         * m4/bison.m4: Declare YACC & YFLAGS precious.
117668 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
117670         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
117671         multibyte string or pattern, fall back on unibyte matching.
117672         Problem reported by James Youngman.
117674 2005-06-08  Bruno Haible  <bruno@clisp.org>
117676         * modules/csharpcomp: New file.
117677         * MODULES.html.sh (C#): Add csharpcomp.
117679 2005-06-08  Bruno Haible  <bruno@clisp.org>
117681         * m4/csharpcomp.m4: New file, from GNU gettext.
117683 2005-06-08  Bruno Haible  <bruno@clisp.org>
117685         * lib/csharpcomp.h: New file, from GNU gettext.
117686         * lib/csharpcomp.c: New file, from GNU gettext.
117687         * lib/csharpcomp.sh.in: New file, from GNU gettext.
117689 2005-06-08  Bruno Haible  <bruno@clisp.org>
117691         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
117692         warning on mingw.
117694 2005-06-07  Derek Price  <derek@ximbiot.com>
117696         Sync from CVS.
117697         * lib/glob_.h: Indent nested #ifdef.
117699 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117701         Sync from coreutils.
117702         Use "file name" when talking about file names, instead of "filename"
117703         or "path", as per the GNU coding standards.
117704         * lib/mkdir-p.c: Renamed from makepath.c.
117705         (make_dir_parents): Renamed from make_path.  All callers changed.
117706         * lib/mkdir-p.h: Likewise.  All includers changed.
117707         * lib/filenamecat.c: Renamed from path-concat.c.
117708         (file_name_concat): Renamed from path_concat.  All callers changed.
117709         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
117710         * lib/filenamecat.h: Likewise.  All includers changed.
117711         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
117712         in comments or local variable names.
117713         * lib/basename.c: Likewise.
117714         * lib/canonicalize.c, canonicalize.h: Likewise.
117715         * lib/dirname.c, dirname.h: Likewise.
117716         * lib/euidaccess.c: Likewise.
117717         * lib/exclude.c: Likewise
117718         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
117719         * lib/fsusage.c, fsuage.h: Likewise.
117720         * lib/fts.c, fts_.h: Likewise.
117721         * lib/getcwd.c: Likewise.
117722         * lib/getloadavg.c: Likewise.
117723         * lib/mkstemp.c: Likewise.
117724         * lib/mountlist.c, mountlist.h: Likewise.
117725         * lib/openat.c, openat.h: Likewise.
117726         * lib/readlink-stub.c: Likewise.
117727         * lib/readutmp.c, readutmp.h: Likewise.
117728         * lib/rename.c: Likewise.
117729         * lib/rmdir.c: Likewise.
117730         * lib/same.c: Likewise.
117731         * lib/savedir.c: Likewise.
117732         * lib/stripslash.c: Likewise.
117733         * lib/tempname.c: Likewise.
117734         * lib/xreadlink.c: Likewise.
117735         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
117736         All uses changed.
117737         * lib/exclude.h: Likewise.
117739         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
117740         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117741         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
117742         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117743         * lib/pathmax.h: Include <limits.h> unconditionally, since other
117744         files have been getting away with it for years (MORE/BSD 4.3
117745         is extinct now).
117746         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
117747         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117749         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
117750         Define to 256, not 255, as per modern POSIX.
117752 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117754         Sync from coreutils.
117755         Use "file name" when talking about file names, instead of "filename"
117756         or "path", as per the GNU coding standards.
117757         * MODULES.html.sh: mkdir-p renamed from makepath.
117758         filenamecat renamed from path-concat.
117759         * modules/filenamecat: Renamed from modules/path-concat.
117760         (Files): filenamecat.h and filenamecat.c renamed from
117761         path-concat.h and path-concat.c.
117762         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
117763         (Include): filenamecat.h, not path-concat.h.
117764         * modules/mkdir-p: Renamed from modules/makepath.
117765         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
117766         makepath.c.
117767         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
117768         (Include): mkdir-p.h, not makepath.h.
117770 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117772         Sync from coreutils.
117773         * m4/mkdir-p.m4: Renamed from makepath.m4.
117774         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
117775         Rename files from makepath.c to mkdir-p.c, and from
117776         makepath.h to mkdir-p.h.
117777         * m4/filenamecat.m4: Renamed from path-concat.m4.
117778         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
117779         Rename files from path-concat.c to filenamecat.c,
117780         and from path-concat.h to filenamecat.h.
117781         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
117782         "file name" in local variables or comments.
117783         * m4/rename.m4: Likewise.
117785 2005-06-01  Bruno Haible  <bruno@clisp.org>
117787         * modules/csharpexec: New file.
117788         * MODULES.html.sh (C#): New section.
117790 2005-06-01  Bruno Haible  <bruno@clisp.org>
117792         * m4/csharp.m4: New file, from GNU gettext.
117793         * m4/csharpexec.m4: New file, from GNU gettext.
117795 2005-06-01  Bruno Haible  <bruno@clisp.org>
117797         * lib/csharpexec.h: New file, from GNU gettext.
117798         * lib/csharpexec.c: New file, from GNU gettext.
117799         * lib/csharpexec.sh.in: New file, from GNU gettext.
117801 2005-05-31  Derek Price  <derek@ximbiot.com>
117802             Paul Eggert  <eggert@cs.ucla.edu>
117804         Sync from cvs.
117805         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
117807 2005-05-31  Derek Price  <derek@ximbiot.com>
117808             Paul Eggert  <eggert@cs.ucla.edu>
117810         Sync from cvs.
117811         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
117813 2005-05-29  Derek Price  <derek@ximbiot.com>
117815         * config/srclist.txt (glob_.h, glob.c): Add these files.
117817 2005-05-29  Derek Price  <derek@ximbiot.com>
117819         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
117820         * modules/glob: New file.
117821         * modules/getlogin_r: Add link to POSIX spec in description.
117823 2005-05-29  Derek Price  <derek@ximbiot.com>
117824             Paul Eggert  <eggert@cs.ucla.edu>
117826         * m4/glob.m4: New file.
117828 2005-05-29  Derek Price  <derek@ximbiot.com>
117829             Paul Eggert  <eggert@cs.ucla.edu>
117831         * lib/glob_.h, lib/glob.c: New files.
117833 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117835         * modules/fts (Files): Remove m4/inttypes-pri.m4.
117836         * modules/fts-lgpl (Depends-on): Remove gettext.
117838 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117840         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
117841         and don't require gt_INTTYPES_PRI.
117843 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117845         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
117847         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
117848         the configuration hassle isn't worth it.
117849         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
117850         (LONGEST_MODIFIER, PRIuMAX): Remove.
117852 2005-05-27  Bruno Haible  <bruno@clisp.org>
117854         * lib/getlogin_r.h: Remove second include of <stddef.h>.
117856 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
117858         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
117859         _POSIX_PTHREAD_SEMANTICS for Solaris.
117861 2005-05-25  Derek Price  <derek@ximbiot.com>
117863         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
117865 2005-05-25  Derek Price  <derek@ximbiot.com>
117866             Paul Eggert  <eggert@cs.ucla.edu>
117868         * modules/getlogin_r, m4/getlogin_r.m4: New files.
117869         * lib/getlogin_r.c, getlogin_r.h: New files.
117871 2005-05-25  Bruno Haible  <bruno@clisp.org>
117872             Derek Price  <derek@ximbiot.com>
117874         * lib/getlogin_r.h: Simplify API documentation.
117876 2005-05-23  Derek Price  <derek@ximbiot.com>
117878         * modules/minmax (Files): Add m4/minmax.m4.
117879         (configure.ac): Add gl_MINMAX.
117881 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
117883         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
117884         so that unistd-safer.h (GPL'ed code) need not be included.
117886 2005-05-22  Bruno Haible  <bruno@clisp.org>
117888         * m4/minmax.m4: New file.
117889         Based on a patch by Derek Price <derek@ximbiot.com>.
117891 2005-05-22  Bruno Haible  <bruno@clisp.org>
117893         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
117894         (INT64_MIN): Fix definition.
117895         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
117897         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
117898         NEED_SIGNED_INT_TYPES.
117900         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
117901         HAVE_SYSTEM_INTTYPES.
117903 2005-05-22  Bruno Haible  <bruno@clisp.org>
117905         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
117906         Also include <sys/param.h> if it defines MIN, MAX.
117907         Based on a patch by Derek Price <derek@ximbiot.com>.
117909 2005-05-21  Jim Meyering  <jim@meyering.net>
117911         * modules/fts (Files): Add m4/inttypes-pri.m4.
117912         (Depends-on): Add lstat and remove gettext.  Alphabetize.
117914 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117916         New fts module.
117917         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
117918         (setup_dir, free_dir): New functions.
117919         (enter_dir, leave_dir): Define trivial
117920         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
117921         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
117922         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
117923         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
117924         Move to fts-cycle.c.
117925         (fts_open): Use setup_dir.
117926         (fts_close): Use free_dir.
117927         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
117928         This adds a label and some gotos, but the alternatives were messier.
117929         Check for memory allocation failure when entering a dir.
117930         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
117931         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
117932         (FTS): New member fts_cycle, that is a union that contains the
117933         old active_dir_ht and cycle_state.  All uses changed to mention
117934         fts_cycle.ht and fts_cycle.state.
117935         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
117936         fts.c, with the following changes:
117937         (setup_dir, free_dir): New functions.
117938         (enter_dir): Now returns bool.  Return true if successful, false
117939         if memory exhausted.  All callers changed.
117940         Do not bother partly cleaning up on
117941         memory allocation failure; that is free_dir's job.
117942         However, free ad if hash_insert fails, to avoid memory leak.
117943         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
117944         fts->fts_options to see which union member to use.
117946 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117948         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
117949         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
117951 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117953         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
117955 2005-05-20  Jim Meyering  <jim@meyering.net>
117957         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
117958         Now a macro, to pacify GCC.
117960 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
117962         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
117963         of -1.
117965 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
117967         * lib/chown.c (rpl_chown): Return -1 on failure.
117969 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
117971         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
117972         Don't check for stddef.h.
117973         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
117974         don't use its results.
117975         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
117976         since we include them unconditionally.  Don't require
117977         AM_STDBOOL_H, since stdbool is a prerequisite.
117978         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
117979         since we assume C89 or better.
117980         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
117981         as we don't use their results.
117982         Don't check for fchdir, memmove, memset, strrchr, as we use
117983         them unconditionally.
117984         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
117985         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
117987 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
117989         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
117990         Include <stddef.h> unconditionally, since we assume C89 now.
117991         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
117992         * lib/fts.c: Include fts_.h first, to check interface.
117993         Do not include intprops.h; no longer needed.
117994         Include cycle-check.h and hash.h, since fts_.h no longer does.
117995         Remove unnecessary casts of closedir to void.
117996         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
117997         decide whether to decrement nlinks.
117998         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
117999         (FTS): Use struct hash_table * instead of Hash_table, so that
118000         we no longer need to include hash.h here.
118002 2005-05-18  Jim Meyering  <jim@meyering.net>
118004         * modules/dirfd (License): Change to LGPL.  Most of the code
118005         is already in the public domain.
118007 2005-05-18  Jim Meyering  <jim@meyering.net>
118009         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
118010         Reported by Yoann Vandoorselaere.
118012 2005-05-17  Jim Meyering  <jim@meyering.net>
118014         * m4/fts.m4: New file, from coreutils.
118016 2005-05-17  Jim Meyering  <jim@meyering.net>
118018         * lib/fts.c, lib/fts_.h: New files, from coreutils.
118020 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118022         Sync from coreutils.
118023         * m4/unlinkdir.m4: New file.
118025 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118027         Sync from coreutils.
118028         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
118029         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
118030         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
118031         White space changes only.
118032         * lib/makepath.c (make_path): Port to hosts where leading "//" is
118033         special.
118034         * lib/yesno.c: Include getline.h, not ctype.h.
118035         (yesno): Don't remove leading white space; POSIX doesn't allow it.
118036         Use getline to remove arbitrary restriction on response length.
118038 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118040         * config/srclist-update: Spell out "Street" in FSF postal
118041         mail address; this is the style the FSF seems to prefer.
118043         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
118044         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
118045         this updates FSF postal mail address.
118047         Sync from coreutils.
118048         * modules/unlinkdir: New file.
118049         * modules/yesno (Depends-on): Add getline.
118050         * MODULES.html.sh (File system functions): Add unlinkdir.
118052 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
118054         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
118055         lib/strsep.h:
118056         Change the initial comment to refer to GPL, not LGPL.
118057         gnulib-tool will change it to LGPL as needed.
118059         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
118060         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
118061         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
118062         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
118063         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
118064         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
118065         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
118066         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
118067         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
118068         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
118069         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
118070         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
118071         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
118072         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
118073         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
118074         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
118075         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
118076         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
118077         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
118078         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
118079         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
118080         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
118081         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
118082         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
118083         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
118084         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
118085         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
118086         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
118087         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
118088         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
118089         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
118090         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
118091         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
118092         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
118093         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
118094         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
118095         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
118096         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
118097         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
118098         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
118099         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
118100         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
118101         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
118102         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
118103         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
118104         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
118105         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
118106         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
118107         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
118108         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
118109         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
118110         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
118111         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
118112         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
118113         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
118114         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
118115         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
118116         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
118117         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
118118         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
118119         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
118120         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
118121         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
118122         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
118123         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
118124         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
118125         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
118126         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
118127         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
118128         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
118129         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
118130         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
118131         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
118132         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
118133         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
118134         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
118135         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
118136         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
118137         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
118138         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
118139         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
118140         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
118141         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
118142         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
118143         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
118144         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
118145         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
118146         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
118147         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
118148         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
118149         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
118150         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
118151         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
118152         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
118153         lib/yesno.c, lib/yesno.h:
118154         Update FSF postal mail address.
118156 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
118158         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
118159         tests/test-memmem.c, tests/test-stpncpy.c:
118160         Update FSF postal mail address.
118162 2005-05-13  Bruno Haible  <bruno@clisp.org>
118164         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
118165         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
118166         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
118167         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
118168         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
118169         Add support for 64-bit integers in the MSVC compiler.
118171 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118173         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
118175 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
118177         * gnulib-tool (func_import): Sort and uniquify recommended includes.
118179 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
118181         * doc/getdate.texi (General date syntax): Don't say that date
118182         date --iso-8601=ns generates acceptable dates; it doesn't yet.
118183         Problem reported by Nic Ferrier.
118185 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118187         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
118188         specified in ai_socktype. Fix invalid ai_protocol
118189         check. ai_protocol is usually set to 0 or depending on
118190         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
118191         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
118192         ai_socktype / ai_protocol in the returned addrinfo structure.
118194 2005-05-10  Simon Josefsson  <jas@extundo.com>
118196         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
118197         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
118199 2005-05-10  Karl Berry  <karl@gnu.org>
118201         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
118202         (from http://www.gnu.org/licenses).
118203         * doc/COPYING.LIB: also rename to COPYING.LESSER.
118204         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
118205         fdl.texi suffices.
118207 2005-05-10  Karl Berry  <karl@gnu.org>
118209         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
118210         (COPYING.DOC): remove.
118212         * config/srclist-update: new FSF address.
118214 2005-05-10  Derek Price  <derek@ximbiot.com>
118216         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
118217         possible.
118219 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118220             Bruno Haible  <bruno@clisp.org>
118222         * modules/inet_ntop: New file.
118223         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
118224         inet_ntop.
118226 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118227             Bruno Haible  <bruno@clisp.org>
118229         * m4/inet_ntop.m4: New file.
118231 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118232             Bruno Haible  <bruno@clisp.org>
118234         * lib/inet_ntop.h: New file.
118235         * lib/inet_ntop.c: New file, from glibc with modifications.
118237 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
118239         * modules/time_r (License): Change to LGPL.
118240         * modules/extensions (License): Change to LGPL.  Actually,
118241         the license is more permissive than that, but currently gnulib-tool
118242         doesn't know how to handle more-permissive licenses.
118244         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
118245         Problem reported by Dave Love.
118247 2005-05-08  Jim Meyering  <jim@meyering.net>
118249         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
118250         blank.
118252 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
118254         * modules/argmatch (Depends-on): Add stdbool.
118255         * modules/backupfile (Depends-on): Likewise.
118256         * modules/chdir-long (Depends-on): Likewise.
118257         * modules/closeout (Depends-on): Likewise.
118258         * modules/cycle-check (Depends-on): Likewise.
118259         * modules/dirname (Depends-on): Likewise.
118260         * modules/fnmatch (Depends-on): Likewise.
118261         * modules/fsusage (Depends-on): Likewise.
118262         * modules/fwriteerror (Depends-on): Likewise.
118263         * modules/getcwd (Depends-on): Likewise.
118264         * modules/getloadavg (Depends-on): Likewise.
118265         * modules/hard-locale (Depends-on): Likewise.
118266         * modules/makepath (Depends-on): Likewise.
118267         * modules/mountlist (Depends-on): Likewise.
118268         * modules/nanosleep (Depends-on): Likewise.
118269         * modules/posixtm (Depends-on): Likewise.
118270         * modules/quotearg (Depends-on): Likewise.
118271         * modules/readtokens (Depends-on): Likewise.
118272         * modules/readtokens0 (Depends-on): Likewise.
118273         * modules/readutmp (Depends-on): Likewise.
118274         * modules/save-cwd (Depends-on): Likewise.
118275         * modules/strftime (Depends-on): Likewise.
118276         * modules/userspec (Depends-on): Likewise.
118277         * modules/utimecmp (Depends-on): Likewise.
118278         * modules/xgetcwd (Depends-on): Likewise.
118279         * modules/xnanosleep (Depends-on): Likewise.
118280         * modules/xstrtod (Depends-on): Likewise.
118281         * modules/yesno (Depends-on): Likewise.
118283 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
118285         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
118286         needless checks.
118288 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118290         Merge from coreutils.  Among other things,
118291         add bulletproofing for cases where stdin, stdout, or stderr are closed.
118292         * lib/fd-safer.c: New file.
118293         * lib/fcntl-safer.h, open-safer.c: Remove.
118294         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
118295         * lib/dup-safer.c: Include unistd-safer.h first.
118296         Don't include errno.h.
118297         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
118298         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
118299         * lib/file-type.c: Rely on file-type.h change.
118300         * lib/getloadavg.c: Include unistd-safer.h.
118301         (getloadavg): Use safer open.
118302         * lib/getusershell.c: Include "stdio-safer.h".
118303         (getusershell): Use safer fopen.
118304         * lib/long-options.c (long_options): Use NULL rather than 0.
118305         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
118306         'free'.
118307         * lib/modechange.c: Likewise.
118308         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
118309         (MODE_DONE): New constant.
118310         (struct mode_change): Remove 'next' member.
118311         (make_node_op_equals): New function; like the old one of the
118312         same name, except it allocates an array.
118313         (mode_compile, mode_create_from_ref): Use it.
118314         (mode_compile): Allocate result as an array, not a linked list.
118315         Parse octal string ourself, so that we catch mistakes like "+0".
118316         (mode_adjust): Arg is an array, not a linked list.
118317         * lib/modechange.c: Include stat-macros.h, xalloc.h.
118318         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
118319         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
118320         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
118321         Remove.  This is now stat-macros.h's job.
118322         (talloc): Remove.  All callers replaced by xalloc, so that
118323         our invokers don't have to worry about reporting memory failures.
118324         (make_node_op_equals): Remove.
118325         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118326         New constants.
118327         (struct mode_change): Moved here from modechange.h.
118328         (mode_append_entry): Remove.
118329         (mode_compile): Remove MASKED_OPS arg, since it encouraged
118330         apps to have incorrect behavior.  Use simpler algorithm for head
118331         and tail.  Don't futz with umask; that's now the job of mode_adjust.
118332         Detect more invalid usages rather than having somewhat-random behavior.
118333         Don't insert an "a=" action, as that leads to incorrect behavior.
118334         (mode_compile, mode_create_from_ref): Return NULL on error instead
118335         of an enum, since now there's only one way to have an error.  All
118336         callers changed.
118337         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
118338         at the correct time.  Simplify calculation of "+u" and its ilk.
118339         Don't mishandle "+X".
118340         (mode_free): Remove "register" and localize decls.
118341         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118342         (struct mode_change): Move to modechange.c; callers don't
118343         need to see this stuff.
118344         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
118345         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
118346         (mode_change, mode_adjust): Reflect the new signatures noted above.
118347         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
118348         that might redefine system include files.
118349         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
118350         (my_usleep): Use NULL rather than (void *) 0.
118351         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
118352         Use siginterrupt to specify that system calls should be interrupted.
118353         (rpl_nanosleep): Move initialization of suspended closer to call of
118354         my_usleep.
118355         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
118356         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
118357         (desirable_utmp_entry): New function.
118358         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
118359         using x2nrealloc, to simplify logic.
118360         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
118361         size calculation.  Do not assume utmp file is a regular file.
118362         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
118363         (READ_UTMP_CHECK_PIDS): New constant.
118364         * lib/save-cwd.c: Include unistd-safer.h.
118365         (save_cwd): Use fd_safer.
118366         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
118367         [!_LIBC] Include "stat-macros.h" instead.
118368         * lib/unistd-safer.h (fd_safer): New decl.
118370 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118372         * modules/getloadavg (Depends-on): Add unistd-safer.
118373         * modules/getusershell (Depends-on): Add stdio-safer.
118374         * modules/lstat (Depends-on): Remove xalloc.
118375         * modules/mkstemp (Depends-on): Add stat-macros.
118376         * modules/modechange (Depends-on): Remove xstrtol.
118377         Add stat-macros, xalloc.
118378         * modules/save-cwd (Depends-on): Add unistd-safer.
118379         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
118380         * modules/unistd-safer (Files): Add lib/fd-safer.c
118381         (Makefile.am): Remove lib_SOURCES.
118383         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
118384         Remove fcntl-safer; unistd-safer supersedes it.
118386 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118388         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
118389         AC_HEADER_STAT.
118390         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
118391         (gl_PREREQ_CHOWN): Remove.
118392         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
118393         it.  Don't require AC_HEADER_STAT.
118394         (gl_PREREQ_LSTAT): Remove.
118395         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
118396         Don't require AC_HEADER_STAT.
118397         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
118398         (gl_PREREQ_RMDIR): Remove.
118399         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
118400         mention stat-macros.h or AC_HEADER_STAT, since we'll make
118401         the stat-macros module a prerequisite.
118402         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
118403         * m4/filemode.m4 (gl_FILEMODE): Likewise.
118404         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
118405         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
118406         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
118407         variable names.
118408         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
118409         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
118410         variable prefixes.
118411         * m4/fcntl-safer.m4: Remove.
118412         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
118413         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
118414         Invoke gl_PREREQ_FD_SAFER.
118415         (gl_PREREQ_FD_SAFER): New macro.
118416         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
118417         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
118418         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
118419         Remove duplicate call to AC_LIBOBJ(readutmp).
118420         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
118422         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
118423         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
118425 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118427         * MODULES.html.sh (Misc): Add byteswap.
118429 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118431         * modules/getcwd (Depends-on): Add extensions.
118432         * modules/openat (Depends-on): Likewise.
118434 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118436         * modules/byteswap: New file.
118438 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118440         * m4/byteswap.m4: New file.
118442 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118444         * lib/byteswap_.h: New file.
118446 2005-04-25  Karl Berry  <karl@gnu.org>
118448         * m4/gettext.m4: Update from GNU gettext 0.14.4.
118450 2005-04-25  Albert Chin  <china@thewrittenword.com>
118452         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
118453         Toolkit C bug.
118455 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
118457         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
118458         (func_ln_if_changed): Remove forcibly for no error message
118459         in case file does not exist.
118461 2005-04-19  Simon Josefsson  <jas@extundo.com>
118463         * gnulib-tool (Options): Make --symlink mean --symbolic.
118465 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
118467         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
118469 2005-04-16  Simon Josefsson  <jas@extundo.com>
118471         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
118473 2005-04-15  Simon Josefsson  <jas@extundo.com>
118475         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
118477 2005-04-15  Simon Josefsson  <jas@extundo.com>
118479         * gnulib-tool: Rename --symlink to --symbolic.
118481 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
118483         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
118484         symbolic links to files instead of copying/moving.  Add --aux-dir,
118485         specifying directory relative --dir where auxiliary build tools
118486         are placed.
118488 2005-04-14  Bruno Haible  <bruno@clisp.org>
118490         * modules/allocsa (License): Change to LGPL.
118491         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
118493 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
118495         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
118496         that "UTC +1 second" continues to work.  Problem reported
118497         by Dmitry V. Levin.
118498         (relunit_snumber): New rule.
118499         (relunit): Use it.
118501 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
118503         * lib/getdate.y (universal_time_zone_table): New constant.
118504         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
118505         universal_time_zone_table.
118506         (lookup_zone): Prefer universal_time_zone_table to
118507         local_time_zone_table, so that "GMT" time stamps are allowed in
118508         London during the summer.  Problem reported by Ian Abbott.
118510 2005-04-12  Jim Meyering  <jim@meyering.net>
118512         * lib/human.c (humblock): Set *options even when returning due to
118513         xstrtoumax conversion failure.  Thanks to a used-uninitialized
118514         warning from gcc-4.
118516 2005-04-09  Jim Meyering  <jim@meyering.net>
118518         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
118519         -Wuninitialized: initialize tm0.tm_year.
118521 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
118523         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
118524         count, since there's no maximum.  All uses changed.
118525         Add member dsts_seen.
118526         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
118527         not being INT_MAX.
118528         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
118529         Use pc_rels_seen to decide whether a date is absolute.
118531         * lib/getdate.y (number): Don't overwrite year.
118532         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
118533         check.
118535 2005-04-02  Simon Josefsson  <jas@extundo.com>
118537         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
118538         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
118540 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
118542         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
118543         where no absolute path name can be longer than PATH_MAX.
118545 2005-03-27  Jim Meyering  <jim@meyering.net>
118547         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
118549 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
118551         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
118552         "one's complement" -> "ones' complement" in comment, as per Knuth.
118553         "value of type" -> "type or expression" in comment.
118554         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
118556 2005-03-26  Jim Meyering  <jim@meyering.net>
118558         Comment nits.
118559         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
118560         Correct typos: s/or/of/.
118562 2005-03-26  Jim Meyering  <jim@meyering.net>
118564         * modules/check-include-files: Move to ../ and rename to...
118565         * check-module: ...this.
118567 2005-03-25  Jim Meyering  <jim@meyering.net>
118569         * modules/xvasprintf (Files): Add xalloc.h.
118571 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
118573         * modules/gettext (Files): config/config.rpath ->
118574         build-aux/config.rpath
118575         * modules/iconv (Files): Likewise.
118576         Problem reported by Oskar Liljeblad.
118578 2005-03-23  Jim Meyering  <jim@meyering.net>
118580         * modules/check-include-files: New script to check for
118581         missing dependencies, multiple includes, etc.
118583         * modules/c-strtold (Depends-on): Add xalloc.
118584         * modules/c-strtod (Depends-on): Add xalloc.
118585         * modules/hash (Depends-on): Add xalloc.
118586         (Files): Remove lib/xalloc.h.
118588         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
118589         * modules/userspec (Files): Add lib/inttostr.h.
118591 2005-03-23  Jim Meyering  <jim@meyering.net>
118593         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
118595 2005-03-22  Jim Meyering  <jim@meyering.net>
118597         * modules/stat-macros: New module.
118598         * modules/canonicalize, modules/euidaccess, modules/file-type,
118599         * modules/filemode, modules/lchown, modules/makepath,
118600         * modules/rmdir, modules/stat: Depend on new stat-macros module
118601         rather than listing lib/stat-macros.h manually.
118602         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
118604 2005-03-22  Jim Meyering  <jim@meyering.net>
118606         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
118608 2005-03-22  Bruno Haible  <bruno@clisp.org>
118610         * config/srclist.txt: Replace target directory 'config' with
118611         'build-aux'.
118612         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
118613         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
118614         ../build-aux/.
118616 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
118618         * modules/chdir-long (Depends-on): Add mempcpy.
118620         * modules/acl, modules/backupfile, modules/c-strtod,
118621         modules/c-strtold, modules/canon-host, modules/canonicalize,
118622         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
118623         modules/exclude, modules/exitfail, modules/file-type,
118624         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
118625         modules/getdate, modules/getline, modules/getpagesize,
118626         modules/getpass, modules/getugroups, modules/group-member,
118627         modules/hard-locale, modules/hash, modules/human, modules/idcache,
118628         modules/inttostr, modules/long-options, modules/makepath,
118629         modules/md5, modules/memcasecmp, modules/memcoll,
118630         modules/modechange, modules/mountlist, modules/path-concat,
118631         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
118632         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
118633         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
118634         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
118635         modules/strftime, modules/strndup, modules/strverscmp,
118636         modules/timespec, modules/unlocked-io, modules/userspec,
118637         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
118638         modules/yesno:
118639         Remove lib_SOURCES line from Makefile.am section, as this is now
118640         done automatically by the corresponding Autoconf macro.
118642 2005-03-21  Jim Meyering  <jim@meyering.net>
118644         Changes imported from coreutils.
118646         * lib/cycle-check.c: Don't include xalloc.h.
118648         * lib/path-concat.c: Don't include assert.h.
118649         (path_concat): Remove assertion that would have triggered
118650         for ABASE starting with more than one slash.
118651         Reported by Andreas Schwab.
118653         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
118654         properly when ABASE is an absolute file name.
118655         Correct the description of this function.
118656         Include <assert.h>.
118657         Add an assertion and a test driver.
118658         This fixes a bug introduced on 2004-07-02.
118659         Andreas Schwab reported the resulting failure of cp --parents:
118660         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
118662 2005-03-21  Jim Meyering  <jim@meyering.net>
118664         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
118665         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
118667 2005-03-21  Jim Meyering  <jim@meyering.net>
118668         and  Paul Eggert  <eggert@cs.ucla.edu>
118670         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
118671         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
118672         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
118673         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
118674         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
118675         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
118676         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
118677         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
118678         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
118679         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
118680         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
118681         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
118682         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
118683         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
118684         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
118685         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
118686         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
118687         for these modules.
118689 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
118691         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
118692         (which shouldn't happen), generate nothing instead of returning 0
118693         immediately, so that nstrftime (NULL, ...) doesn't return 0.
118695 2005-03-16  Bruno Haible  <bruno@clisp.org>
118697         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
118698         HAVE_LONGLONG_64BIT.
118700 2005-03-16  Bruno Haible  <bruno@clisp.org>
118702         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
118703         HAVE_LONGLONG_64BIT.
118705 2005-03-16  Bruno Haible  <bruno@clisp.org>
118707         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
118708         HAVE_LONGLONG_64BIT.
118710 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
118712         * lib/strftime.c (my_strftime): Prepend space to format so that we can
118713         reliably distinguish strftime failure from empty output on POSIX
118714         hosts.
118716 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
118718         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
118719         (iconv_string): Don't guess a size-zero buffer, as that might cause
118720         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
118721         result would be 'too large', where 'too large' is (heuristically)
118722         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
118723         overflow concerns.  This will prevent some unwanted malloc failures
118724         when the inputs are very large.
118726 2005-03-15  Karl Berry  <karl@gnu.org>
118728         * config/srclist.txt (config.rpath): from gettext.
118729         * config/config.rpath: update.
118731 2005-03-15  Bruno Haible  <bruno@clisp.org>
118733         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
118734         to 'negate'.
118736         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
118737         variable.
118739         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
118740         results.
118742 2005-03-14  Simon Josefsson  <jas@extundo.com>
118744         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
118745         <fx@gnu.org>.
118747 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
118749         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
118750         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
118751         intprops.h.
118752         * lib/strtol.c: Likewise.
118754 2005-03-14  Jim Meyering  <jim@meyering.net>
118756         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
118757         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
118758         to be nonzero so that we (and caller) can detect the difference
118759         between a valid zero-length expansion and an error return, even
118760         when the underlying strftime fails before writing anything into
118761         that location.
118763 2005-03-14  Bruno Haible  <bruno@clisp.org>
118765         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
118766         Update from GNU gettext 0.14.3.
118768 2005-03-10  Jim Meyering  <jim@meyering.net>
118770         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
118772 2005-03-10  Jim Meyering  <jim@meyering.net>
118774         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
118775         so that this module works on systems without fchdir.
118777 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
118779         Factor int-properties macros into a single file, except for
118780         glibc-related files.
118781         * lib/intprops.h: New file.
118782         * lib/getloadavg.c: Include it instead of limits.h.
118783         (INT_STRLEN_BOUND): Remove.
118784         * lib/human.c: Include intprops.h.
118785         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
118786         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
118787         302/1000.
118788         * lib/inttostr.h: Include intprops.h instead of limits.h.
118789         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
118790         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
118791         for consistency with intprops.h.
118792         (time_t_is_integer, twos_complement_arithmetic): Use them.
118793         * lib/sig2str.h: Include <signal.h>, intprops.h.
118794         (INT_STRLEN_BOUND): Remove.
118795         * lib/strftime.c (TYPE_SIGNED): Remove.
118796         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
118797         * lib/strtol.c: Adjust comments to match intprops.h.
118798         * lib/userspec.c: Include intprops.h.
118799         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
118800         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
118801         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
118802         instead of rolling our own expressions.
118803         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
118805         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
118806         instead of int.
118807         (my_strftime): Do not mishandle years close to INT_MAX, by doing
118808         the right thing even if adding 1900 would overflow.  Similarly
118809         for tm_mon + 1 and tm_yday + 1.
118810         Make %Y always equivalent to %C%y, and similarly for %G and %g.
118811         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
118812         (DO_SIGNED_NUMBER): New macro.
118813         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
118815 2005-03-07  Bruno Haible  <bruno@clisp.org>
118817         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
118819 2005-03-07  Bruno Haible  <bruno@clisp.org>
118821         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
118823 2005-03-04  Derek R. Price  <derek@ximbiot.com>
118825         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
118826         (func_import): Only replace files via --import when they have actually
118827         changed.
118829 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118831         * m4/mmap-anon.m4: New file.
118832         * m4/pagealign_alloc.m4: New file.
118834 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118835             Bruno Haible  <bruno@clisp.org>
118837         * modules/pagealign_alloc: New file.
118838         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
118840 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118841             Bruno Haible  <bruno@clisp.org>
118843         * lib/pagealign_alloc.h: New file.
118844         * lib/pagealign_alloc.c: New file.
118846 2005-03-03  Bruno Haible  <bruno@clisp.org>
118848         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
118849         Use an all-permissive copyright notice, recommended by RMS.
118851 2005-03-02  Bruno Haible  <bruno@clisp.org>
118853         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
118854         of AIX, the replacement has to be done only after <string.h> is
118855         included, therefore not in config.h. stpncpy.h does the replacement,
118856         and stpncpy.c uses it.
118858 2005-03-02  Bruno Haible  <bruno@clisp.org>
118860         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
118861         stpncpy.c uses it.
118863 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118865         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
118866         The workaround isn't strictly needed for POSIX conformance, and
118867         it's too much of a pain to configure and maintain.  We'll ask
118868         people to fix their kernels instead.
118869         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
118870         (NANOSLEEP_BUG_WORKAROUND): Remove.
118871         (xnanosleep): Remove the workaround.
118873 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118875         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
118876         Reported by Derek Price.
118877         (Include): Add "timespec.h".
118879         * modules/xnanosleep (Depends-on): Remove gethrxtime.
118881 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118883         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
118884         to detect nanosleep bug.
118886 2005-03-01  Bruno Haible  <bruno@clisp.org>
118888         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
118890 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
118892         * modules/gethrxtime: New file.
118893         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
118894         (Depends-on): Add gethrxtime.
118895         (configure.ac): Add gl_XNANOSLEEP.
118896         (Makefile.am): Remove lib_SOURCES line.
118898 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
118900         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
118901         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
118903 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
118905         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
118906         * lib/timespec.h (gettime): Return void, since it always
118907         succeeds now.  All uses changed.
118908         * lib/gettime.c (gettime): Likewise.
118909         [HAVE_NANOTIME]: Prefer nanotime.
118910         Assume gettimeofday succeeds, as POSIX requires.
118911         Assime time () succeeds, since other code already does.
118912         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
118913         (timespec_subtract): Remove.
118914         (NANOSLEEP_BUG_WORKAROUND): New constant.
118915         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
118916         things considerably.  Use it only on GNU/Linux hosts, since the
118917         workaround shouldn't be needed elsewhere.
118919 2005-02-24  Bruno Haible  <bruno@clisp.org>
118921         * modules/gettext (Files): Add m4/glibc2.m4.
118923 2005-02-24  Bruno Haible  <bruno@clisp.org>
118925         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
118926         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
118927         * m4/progtest.m4:
118928         Update from GNU gettext 0.14.2.
118929         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
118931 2005-02-24  Bruno Haible  <bruno@clisp.org>
118933         * lib/localcharset.c: Update from GNU gettext 0.14.2.
118934         * lib/config.charset: Update from GNU gettext 0.14.2.
118936 2005-02-24  Bruno Haible  <bruno@clisp.org>
118938         * lib/gettext.h: Update from GNU gettext 0.14.2.
118940 2005-02-23  Simon Josefsson  <jas@extundo.com>
118942         * m4/iconvme.m4: New file.
118944 2005-02-23  Jim Meyering  <jim@meyering.net>
118946         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
118947         change.
118948         Thanks to Bruno Haible for catching it.
118950 2005-02-22  Simon Josefsson  <jas@extundo.com>
118952         * modules/iconvme: New file.
118954         * MODULES.html.sh: Add iconvme.
118956 2005-02-22  Simon Josefsson  <jas@extundo.com>
118958         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
118960 2005-02-22  Simon Josefsson  <jas@extundo.com>
118962         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
118964 2005-02-22  Jim Meyering  <jim@meyering.net>
118966         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
118967         s/ifndef/ifdef/.
118969 2005-02-20  Neil Conway  <neilc@samurai.com>
118971         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
118972         returned by OSX/Darwin if the specified buffer is not large
118973         enough for the hostname.
118975 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118977         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
118978         pass it to _help, otherwise the latter coredumps trying to
118979         dereference state.root_argp.
118981 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
118983         * modules/chdir-long (Depends-on): Add memrchr.
118984         * modules/memrchr (Files): Add lib/memrchr.h.
118985         (Include): "memrchr.h".
118987 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
118989         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
118991 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
118993         * lib/memrchr.h: New file.
118994         * lib/chdir-long.c: Include it.
118995         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
118996         Don't bother including stddef.h.
118998 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
119000         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
119001         inclusion.
119002         Include <sys/types.h>, for dev_t.
119003         (ME_DUMMY, ME_REMOTE): Move from here....
119004         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
119005         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
119006         Dmitry V. Levin.
119007         Include mountlist.h first, to test the interface.
119009 2005-01-29  Bruno Haible  <bruno@clisp.org>
119011         * lib/progname.c (program_name): Initialize.
119012         Needed when linking statically on MacOS X.
119014 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
119016         Sync from coreutils.
119017         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
119018         (Depends-on): Add c-strtod.
119019         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
119021 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
119023         Sync from coreutils.
119024         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
119026         Remove files that are specific to coreutils.
119027         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
119029 2005-01-28  Bruno Haible  <bruno@clisp.org>
119031         * modules/javacomp: New file.
119032         * MODULES.html.sh (Java): Add javacomp.
119034 2005-01-28  Bruno Haible  <bruno@clisp.org>
119036         * m4/javacomp.m4: New file, from GNU gettext.
119038 2005-01-28  Bruno Haible  <bruno@clisp.org>
119040         * lib/javacomp.sh.in: New file, from GNU gettext.
119041         * lib/javacomp.h: New file, from GNU gettext.
119042         * lib/javacomp.c: New file, from GNU gettext.
119044 2005-01-26  Simon Josefsson  <jas@extundo.com>
119046         * lib/gai_strerror.c: Use GPL in header.
119048 2005-01-26  Bruno Haible  <bruno@clisp.org>
119050         * modules/javaexec: New file.
119051         * MODULES.html.sh (Java): Add javaexec.
119053 2005-01-26  Bruno Haible  <bruno@clisp.org>
119055         * m4/javaexec.m4: New file, from GNU gettext.
119057 2005-01-26  Bruno Haible  <bruno@clisp.org>
119059         * lib/javaexec.sh.in: New file, from GNU gettext.
119060         * lib/javaexec.h: New file, from GNU gettext.
119061         * lib/javaexec.c: New file, from GNU gettext.
119063 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119065         * modules/lchown (Depends-on): Remove lchown.h
119067 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119069         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
119070         must be defined if the header file was not found, in order
119071         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
119073 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119075         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
119076         initializers for struct pentry_state.
119077         (__argp_error): Check return value of __asprintf
119078         (__argp_failure): Translate error message
119080         * lib/argp-parse.c: Removed braces around the expansion of N_()
119082 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
119084         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
119085         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
119086         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
119087         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
119088         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
119089         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
119090         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
119091         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
119092         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
119093         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
119094         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
119095         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
119096         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
119097         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
119098         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
119099         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
119100         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
119101         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
119102         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
119103         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
119104         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
119105         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
119106         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
119107         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
119108         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
119109         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
119110         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
119111         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
119112         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
119113         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
119114         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
119115         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
119116         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
119117         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
119118         xstrtol.m4, xstrtoumax.m4, yesno.m4:
119119         Use an all-permissive copyright notice, recommended by RMS.
119121 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
119123         * modules/chdir-long (Depends-on): Remove mempcpy.
119125 2005-01-21  Jim Meyering  <jim@meyering.net>
119127         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
119128         same value as for Solaris 9.
119130         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
119131         component length.  This included changing the parameter to be
119132         of type `char *' rather than `char const *'.
119133         * lib/chdir-long.h (chdir_long): Update prototype.
119135         * lib/openat.c (fdopendir, fstatat): New functions.
119136         * lib/openat.h: Include headers required for use of DIR and struct
119137         stat.
119138         [AT_SYMLINK_NOFOLLOW]: Define.
119139         (fdopendir, fstatat): Add prototypes.
119141 2005-01-21  Bruno Haible  <bruno@clisp.org>
119143         * modules/classpath: New file.
119144         * MODULES.html.sh (Java): Add classpath.
119146 2005-01-21  Bruno Haible  <bruno@clisp.org>
119148         * lib/classpath.h: New file, from GNU gettext.
119149         * lib/classpath.c: New file, from GNU gettext.
119151 2005-01-20  Simon Josefsson  <jas@extundo.com>
119153         * modules/version-etc-fsf: New file.
119155 2005-01-20  Simon Josefsson  <jas@extundo.com>
119157         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
119158         * lib/version-etc.c: Remove version_etc_copyright.
119159         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
119160         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
119162 2005-01-20  Simon Josefsson  <jas@extundo.com>
119164         * lib/base64.h (isbase64): Add.
119166         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
119167         using a unsigned prototype, don't inline.
119168         (base64_decode): Use it.
119170 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119172         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
119173         it.
119175 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119177         * lib/save-cwd.c (save_cwd): Remove code to support the case
119178         where fchdir is missing or flaky.
119180 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119182         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
119184 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
119186         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
119187         AC_LIBSOURCES now does this.
119188         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
119189         with new ullong_max module.
119191 2005-01-19  Bruno Haible  <bruno@clisp.org>
119193         * modules/sh-quote: New file.
119194         * MODULES.html.sh (Executing programs): Add sh-quote.
119196 2005-01-19  Bruno Haible  <bruno@clisp.org>
119198         * lib/sh-quote.h: New file, from GNU gettext.
119199         * lib/sh-quote.c: New file, from GNU gettext.
119201 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119203         Merge from coreutils.
119204         * m4/ullong_max.m4: New file.
119205         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
119206         (gl_MACROS): Assume localeconv exists.
119208 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119210         Merge changes from coreutils, as described below in several
119211         changelogs dated today.
119213         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
119214         (O_DIRECTORY): Remove; not needed here, since "." must be
119215         a directory.  All uses removed.
119216         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
119217         universal on Suns, and we also need to test for IRIX.
119218         Revamp code to use 'if' rather than '#if'.
119219         Avoid unnecessary comparison of cwd->desc to 0.
119221         * lib/utimens.c (futimens): Robustify the previous patch, by checking
119222         for known valid error numbers rather than observed invalid ones.
119224 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119226         * modules/ullong_max: New file.
119228         * modules/chdir-long, modules/openat: New files.
119229         * modules/save-cwd (Depends-on): Depend on chdir-long.
119230         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
119232 2005-01-18  Jim Meyering  <jim@meyering.net>
119234         Merge from coreutils.
119235         * m4/chdir-long.m4, m4/openat.m4: New files.
119236         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
119237         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
119238         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
119239         is sane and DOES follow symlinks.  Besides, testing 20 different
119240         systems found no broken chown implementations.
119241         Prompted by a change in rsync's copy of this macro.
119242         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
119244         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
119246         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
119247         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
119248         NULL-means-set-to-current-time semantics.
119249         Remove temporary file immediately, rather than waiting
119250         for configure's at-exit trap code to do it.
119252 2005-01-18  Jim Meyering  <jim@meyering.net>
119254         * lib/version-etc.c (version_etc_copyright): Update copyright date.
119256         * lib/utimens.c (futimens): Account for the fact that futimes
119257         can also fail with errno == ENOSYS or errno == ENOENT.
119258         Patch from Dmitry V. Levin.
119260         Change the name of the robust chdir function from chdir to chdir_long.
119261         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
119262         (restore_cwd): Use chdir_long, not chdir.
119263         * lib/chdir-long.c: Renamed from chdir.c.
119264         * lib/chdir-long.h: Renamed from chdir.h.
119265         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
119266         Hurd.
119268 2005-01-18  Bruno Haible  <bruno@clisp.org>
119270         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
119271         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
119272         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
119273         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
119274         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
119275         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
119276         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
119277         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
119278         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
119279         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
119280         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
119281         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
119282         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
119283         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
119284         Use an all-permissive copyright notice, recommended by RMS.
119286 2005-01-18  Bob Proulx  <bob@proulx.com>
119288         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
119289         simplify offsetof() macro construct to avoid compile failure with
119290         native HP-UX 11.0 ANSI C compiler.
119292 2005-01-17  Bruno Haible  <bruno@clisp.org>
119294         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
119295         redundant because stpncpy.m4 takes care of it.
119297 2005-01-17  Bruno Haible  <bruno@clisp.org>
119299         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
119301 2005-01-17  Bruno Haible  <bruno@clisp.org>
119303         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
119304         used.
119306 2005-01-17  Bruno Haible  <bruno@clisp.org>
119308         * lib/fwriteerror.h (fwriteerror): Change specification to include
119309         fclose.
119310         * lib/fwriteerror.c: Include <stdbool.h>.
119311         (fwriteerror): At the end, close the file stream. Record whether
119312         stdout was already closed.
119314 2005-01-17  Bruno Haible  <bruno@clisp.org>
119316         * lib/execute.c (environ): Declare if needed.
119317         * lib/pipe.c (environ): Likewise.
119318         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
119320 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119322         * modules/argp: Depend on vsnprintf
119324 2005-01-10  Jim Meyering  <jim@meyering.net>
119326         * modules/closeout (Depends-on): Add atexit.
119328 2005-01-06  Bruno Haible  <bruno@clisp.org>
119330         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
119332 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
119334         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
119335         definitions to be after all include files, to avoid collisions.
119336         Problem reported by Bob Proulx.
119338 2005-01-04  Jim Meyering  <jim@meyering.net>
119340         Changes imported from coreutils.
119341         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
119342         as the mkstemp template, use a temporary directory and an
119343         8.3-friendly template to avoid trouble on systems like DJGPP.
119344         Reported by Juan M. Guerrero via Stepan Kasal.
119345         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
119346         close. Remove the temporary directory right away, rather than waiting
119347         for configure's at-exit trap code to do it.
119348         Suggestion from Stepan Kasal.
119350 2005-01-01  Simon Josefsson  <jas@extundo.com>
119352         * gnulib-tool: Print #include directives when --import'ing.
119354 2004-12-28  Simon Josefsson  <jas@extundo.com>
119356         * tests/test-base64.c: Include required header files.  Remove
119357         unused variables.
119359 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
119361         * modules/error (Depends-on): Remove gettext.
119363 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
119365         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
119366         not needed.  This removes a dependency on the gettext module.
119367         [defined _LIBC]: Do not include <libintl.h>; not needed.
119369 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
119371         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
119372         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
119374 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
119376         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
119377         HAVE_DECL_STRTOLD.
119379 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119381         * modules/getdate (Depends-on): Remove alloca-opt.
119383 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119385         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
119387 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119389         * lib/argp-parse.c: Include <stddef.h>.
119390         (alignof, alignto): New macros.
119391         (parser_init): Don't assume that void * is aligned sufficiently
119392         for struct option.
119394         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
119395         need to extend the stack.
119396         (YYINITDEPTH): New macro, so that the initial stack isn't overly
119397         large.
119399 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119401         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
119403 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119405         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
119406         (2004-10-24) change.  Apparently this was a false alarm.
119408         * modules/getdate: Depend on alloca-opt, not alloca.
119410 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119412         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
119413         Remove now-obsolete comment about AIX.
119414         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
119415         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
119416         (YYMAXDEPTH): New macro.
119418 2004-12-18  Simon Josefsson  <jas@extundo.com>
119420         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
119422 2004-12-18  Bruno Haible  <bruno@clisp.org>
119424         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
119426 2004-12-18  Bruno Haible  <bruno@clisp.org>
119428         * lib/fatal-signal.c (fatal_signals): Make non-const.
119429         (init_fatal_signals): New function.
119430         (uninstall_handlers, install_handlers): Ignore signals that were set to
119431         SIG_IGN.
119432         (at_fatal_signal): Call init_fatal_signals.
119433         (init_fatal_signal_set): Likewise. Ignore signals that were set to
119434         SIG_IGN.
119435         Reported by Paul Eggert.
119437 2004-12-18  Bruno Haible  <bruno@clisp.org>
119439         * doc/alloca.texi: New file.
119440         * doc/alloca-opt.texi: New file.
119442 2004-12-17  Jim Meyering  <jim@meyering.net>
119444         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
119445         Otherwise, install-sh could exit with improper exit status when
119446         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
119448 2004-12-16  Simon Josefsson  <jas@extundo.com>
119450         * tests/test-base64.c: Add license.
119452 2004-12-15  Stepan Kasal  <address@hidden>
119454         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
119456 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
119458         * modules/getcwd (Files): Add m4/d-ino.m4.
119459         Suggested by Mark D. Baushke.
119461 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
119463         * lib/getdate.y (textint): New member "negative".
119464         (time_zone_hhmm): New function.
119465         Expect 14 shift-reduce conflicts, not 13.
119466         (o_colon_minutes): New rule.
119467         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
119468         (yylex): Set the "negative" member of signed numbers.
119470 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
119472         * doc/getdate.texi (Time of day items, Time zone items):
119473         Describe new formats +00:00, UTC+00:00.
119475 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
119477         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
119478         spurious "-l"s.  Problem reported by Stepan Kasal.
119480 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
119482         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
119483         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
119485 2004-12-04  Simon Josefsson  <jas@extundo.com>
119487         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
119488         Vandoorselaere <yoann@prelude-ids.org>.
119490 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119492         Changes imported from coreutils.
119493         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
119494         exist.
119495         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
119497 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119499         Changes imported from coreutils.
119500         * lib/hard-locale.c: Assume <locale.h> exists.
119501         Include "strdup.h".
119502         (GLIBC_VERSION): New macro.
119503         (hard_locale): Assume setlocale exists.
119504         Rewrite to avoid #ifdef.
119505         Use strdup rather than malloc + strcpy.
119506         * lib/human.c: Assume <locale.h> exists.
119507         (human_readable): Assume localeconv exists.
119509 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119511         * modules/hard-locale (Depends-on): Add strdup.
119513 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
119515         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
119516         convert T2, not T.  (Imported from libc.)
119518 2004-11-30  Simon Josefsson  <jas@extundo.com>
119520         * modules/restrict (License): Change to LGPL.
119522 2004-11-30  Simon Josefsson  <jas@extundo.com>
119524         * m4/restrict.m4: Add copyright and copying conditions.
119526 2004-11-30  Simon Josefsson  <jas@extundo.com>
119528         * m4/base64.m4: New file.
119530 2004-11-30  Simon Josefsson  <jas@extundo.com>
119532         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
119533         base64.
119535         * tests/test-base64.c: New file.
119537         * modules/base64: New file.
119539 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
119541         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
119542         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
119544         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
119546 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
119548         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
119549         (__getcwd.c): Don't restore errno; glibc doesn't.
119550         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
119551         first, falling back to our code only if its results look suspicious.
119552         Ensure that the resulting buffer is only as large as necessary.
119554         * lib/readutmp.c: Include readutmp.h first.
119555         Include <errno.h>, since readutmp.h no longer does that.
119556         * lib/readutmp.h: Don't include <errno.h>,
119557         <sys/param.h>, <time.h>; not needed to establish interface.
119558         (errno): Remove decl.
119559         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
119560         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
119561         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
119563 2004-11-28  Simon Josefsson  <jas@extundo.com>
119565         * lib/base64.h, base64.c: New file.
119567 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
119569         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
119571 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
119573         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
119574         (Depends-on): Remove pathmax, same.  Add mempcpy.
119575         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
119576         (Makefile.am): Append getcwd.h to lib_SOURCES.
119577         (Include): Add getcwd.h.
119578         (Maintainer): Change from Jim Meyering to "all, glibc",
119579         since getdate now uses intended-for-glibc code.
119580         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
119581         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
119583 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119585         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
119586         HP's ANSI C compiler.
119587         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
119588         Declaring int functions causes warnings on some modern systems and
119589         shouldn't be needed to compile on ancient ones.
119590         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
119591         defined.
119593         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
119594         with the following changes.
119595         (__set_errno): Parenthesize properly.
119596         Include <stdbool.h>.
119597         (MIN, MAX, MATCHING_INO): New macros.
119598         (__getcwd): Define with prototype, not K&R form.
119599         Use heuristics to allocate default buffer on stack if possible.
119600         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
119601         behavior, and to avoid the PATH_MAX limit when computing
119602         ../../../../...
119603         Use MATCHING_INO to compare inode number to file.
119604         Check for arithmetic overflow in size calculations.
119605         Fix bug in reallocation of dot array that caused getcwd to fail
119606         on directories nested deeper than 75.
119607         Be more careful about saving errno on error.
119608         Do not use realloc; use only free+malloc, as this is a bit
119609         more flexible and avoids a needless copy operation.
119610         Do not inspect st_dev and st_ino for symbolic links; POSIX
119611         doesn't specify the latter.
119612         Check for closedir errors.
119613         Avoid needless casts.
119614         Use "#ifdef weak_alias" around weak_alias, to be like other
119615         glibc code.
119616         The following changes to getcwd.c have effect only when used in
119617         gnulib; they have no effect inside glibc proper.
119618         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
119619         as alloca isn't used.
119620         (alloca, __alloca): Likewise.
119621         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
119622         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
119623         unconditionally, as gnulib assumes C89 or better.
119624         Do not include <sys/param.h>.
119625         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
119626         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
119627         better.
119628         (NULL) [!defined NULL]: Remove; we assume C89 or better.
119629         Include <dirent.h> in a way that is compatible with modern Autoconf.
119630         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
119631         New macros, if not already defined.
119632         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
119633         Use "_LIBC", not "defined _LIBC", for consistency.
119634         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
119635         a mempcpy module.
119636         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
119637         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
119638         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
119639         credit only to Jim Meyering and adjust the copyright dates.
119640         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
119641         <stdlib.h>, <unistd.h>, "pathmax.h".
119642         Instead, include "xgetcwd.h" (first) and "getcwd.h".
119643         (INITIAL_BUFFER_SIZE): Remove.
119644         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
119646 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119648         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
119649         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
119650         Use the _ONCE methods, for efficiency.
119651         Check for fcntl.h.  In test program, include <errno.h>
119652         and <fcntl.h> if available.  Remove old K&R cruft from
119653         test program.  Check for common errors in GNU/Linux,
119654         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
119655         don't do AC_LIBOBJ, as that's getcwd.m4's job.
119656         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
119657         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
119658         name accordingly.
119659         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
119660         accommodate new getcwd.c.
119661         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
119662         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
119663         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
119664         that's all we need now.
119666 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119668         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
119669         argp-parse.c depends on getopt internals, that means we should
119670         always use our getopt, to be on the safe side.
119671         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
119672         order not to spoil the result of an eventual previous invocation
119673         of gl_GETOPT_SUBSTITUTE.
119675 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119677         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
119678         redefinition warnings. To avoid them, include the defines
119679         in `#if !defined __need_getopt ... #endif'. The only place
119680         where __getopt_argv_const is used is in definitions
119681         of getopt_long and getopt_long_only below, which are as well
119682         protected by `#ifndef __need_getopt'.
119683         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
119684         __need_getopt after including <stdio.h> and <unistd.h> These
119685         headers might have defined it.
119687 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
119689         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
119691 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
119693         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
119694         (futimens): New function, which uses futimes if available.
119695         (futimens, utimens): Support timespec==NULL, with same semantics
119696         as utime and utimens.
119697         * lib/utimens.h (futimens): New decl.
119699 2004-11-23  Jim Meyering  <jim@meyering.net>
119701         * lib/getopt_.h: Remove trailing blanks.
119703 2004-11-23  Jim Meyering  <jim@meyering.net>
119705         * lib/__fpending.c: Add comment.
119707 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
119709         * modules/canonicalize (Depends-on): Add xreadlink.
119710         Problem reported by James Youngman.
119712 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
119714         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
119715         New macros.
119716         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
119717         optopt): Use them instead of invoking ## directly; otherwise, the
119718         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
119720 2004-11-19  Bruno Haible  <bruno@clisp.org>
119722         * lib/strtok_r.c: Move comments from here...
119723         * lib/strtok_r.h: ... to here.
119725 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
119727         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
119728         implementations that mishandle size_t overflow.
119730 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
119732         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
119733         might fail.  Problem reported by Yoann Vandoorselaere.
119734         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
119735         implementations that mishandle size_t overflow.
119737 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119739         * modules/canon-host (Depends-on): Add strdup.
119741 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119743         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
119745 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119747         * lib/canon-host.c: Include "strdup.h".
119748         (canon_host): Use getaddrinfo if available, so that IPv6 works.
119749         Use strdup instead of malloc/strcpy to duplicate strings.
119751         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
119752         (human_space_before_unit): New constant.
119753         * lib/human.c (human_readable): Support it.
119755         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
119756         (xgetcwd): Set errno correctly when failing.
119757         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
119758         the failure is actually due to a PATH_MAX problem.
119760         Further getopt changes to make it more likely that glibc will
119761         buy the changes back.
119762         * lib/getopt.c (POSIXLY_CORRECT): New constant.
119763         (getopt): Use it, so to preserve glibc semantic
119764         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
119765         when compiling for libc.
119766         * lib/getopt_.h (__getopt_argv_const): Bring it back.
119767         (getopt_long, getopt_long_only): Use it.
119769         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
119770         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
119771         (getopt): Argv is now char * const *, as per standard.
119772         (_getopt_internal_r, _getopt_internal): Argv is now char **,
119773         not char *__getopt_argv_const *.
119774         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
119775         _getopt_long_only_r): Likewise.
119776         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
119777         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
119778         _getopt_long_r, _getopt_long_only_r): Likewise.
119779         * lib/getopt_.h (__getopt_argv_const): Remove.
119780         (getopt): Argv is now char * const *, as per standard.
119782         * lib/getdate.y (tORDINAL): New token.
119783         (day, relunit): Allow it for relative times.
119784         (relative_time_table): Use tORDINAL for ordinals.
119786 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119788         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
119789         Document that "second" isn't allowed as an ordinal number.
119791 2004-11-16  Jim Meyering  <jim@meyering.net>
119793         * modules/closeout (Depends-on): Add fpending.
119795 2004-11-15  Jim Meyering  <jim@meyering.net>
119797         * lib/closeout.c: Include "__fpending.h" once again.
119798         Include <stdbool.h>.
119799         (close_stdout): Don't fail just because stdout was closed initially,
119800         since some programs don't write to stdout in the normal course of
119801         operation (other than --version and --help), and we don't want this
119802         function to make e.g. `touch file >&-' fail.
119803         But do fail if it was closed and someone has tried to write to it.
119804         E.g., `printf foo >&-' must fail.
119806 2004-11-13  Jim Meyering  <jim@meyering.net>
119808         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
119810 2004-11-12  Simon Josefsson  <jas@extundo.com>
119812         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
119813         small doc fix is still pending.
119815 2004-11-11  Simon Josefsson  <jas@extundo.com>
119817         * modules/strtok_r: New file.
119819         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119820         strtok_r.
119822 2004-11-11  Simon Josefsson  <jas@extundo.com>
119824         * m4/strtok_r.m4: New file.
119826         * m4/getopt.m4: Replace opterr.
119828 2004-11-11  Simon Josefsson  <jas@extundo.com>
119830         * lib/strtok_r.h, strtok_r.c: New file.
119832 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
119834         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
119835         of replacing opterr, getopt, etc.  This should handle the
119836         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
119838 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
119840         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
119841         we can stop lying to compilers about the constness of argv when we
119842         are compiled outside glibc.
119843         (getopt, getopt_long, getopt_long_only): Use it.
119844         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
119845         _getopt_internal, getopt): Likewise.
119846         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
119847         _getopt_long_only_r): Likewise.
119848         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
119849         _getopt_long_r, _getopt_long_only_r): Likewise.
119851         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
119852         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
119853         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
119854         the other external symbols.
119855         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
119856         declaration, since the above renaming now works around collisions.
119858 2004-11-11  Jim Meyering  <jim@meyering.net>
119860         * lib/linebreak.c: Remove trailing blanks.
119861         * lib/alloca_.h: Likewise.
119862         * lib/acosl.c: Likewise.
119863         * lib/euidaccess.c: Likewise.
119864         * lib/allocsa.h: Likewise.
119866 2004-11-10  Simon Josefsson  <jas@extundo.com>
119868         * m4/getaddrinfo.m4: New file.
119870 2004-11-10  Simon Josefsson  <jas@extundo.com>
119872         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
119874 2004-11-10  Simon Josefsson  <jas@extundo.com>
119876         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119877         getaddrinfo.
119879         * modules/getaddrinfo: New file.
119881 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119883         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
119885 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119887         * lib/mktime.c (SHR): New macro, which is a portable
119888         substitute for >> that should work even on Crays.
119889         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
119890         Problem reported by Mark D. Baushke in
119891         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
119892         * lib/getdate.y (SHR): Likewise.
119893         (tm_diff): Use it.
119894         * lib/strftime.c (SHR): Likewise.
119895         (tm_diff): Use it.
119896         * lib/quotearg.c (struct quoting_options): Use unsigned int for
119897         quote_these_too, so that right shifts are well defined.  All uses
119898         changed.
119900 2004-11-10  Jim Meyering  <jim@meyering.net>
119902         Ensure that no close failure goes unreported.
119903         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
119904         return early when it seems there's nothing to flush.
119905         Don't include __fpending.h.
119907 2004-11-10  Jim Meyering  <jim@meyering.net>
119909         * modules/closeout (Depends-on): Remove fpending.
119911 2004-11-10  Jim Meyering  <jim@meyering.net>
119913         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
119915 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
119917         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
119918         gl_FUNC_STRFTIME.
119919         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
119920         and AC_REQUIRE when possible, to avoid duplicate checks.
119921         Check for <wchar.h>.
119923 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
119925         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
119927 2004-11-09  Bruno Haible  <bruno@clisp.org>
119929         * m4/sockpfaf.m4: New file.
119931 2004-11-05  Bruno Haible  <bruno@clisp.org>
119933         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
119934         Reported by Mark D. Baushke <mdb@cvshome.org>.
119936 2004-11-04  Bruno Haible  <bruno@clisp.org>
119938         2004-09-11  Bruno Haible  <bruno@clisp.org>
119939                 * allocsa.valgrind: New file.
119940         2004-02-06  Bruno Haible  <bruno@clisp.org>
119941                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
119942                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
119943                 Reported by Christopher Seip <chris.seip@hp.com>.
119945 2004-11-04  Bruno Haible  <bruno@clisp.org>
119947         * modules/allocsa (Files): Add lib/allocsa.valgrind.
119948         (Makefile.am): Distribute it.
119950 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
119952         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
119953         with errno == ERANGE if the buffer is too small.
119954         Problem reported by Mark D. Baushke.
119956 2004-11-03  Albert Chin  <china@thewrittenword.com>
119957             Paul Eggert  <eggert@cs.ucla.edu>
119959         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
119960         equivalent, substitute $ac_type for equivalent type rather than
119961         blindly using uint32_t *always* which won't work if uint32_t is not
119962         available.  Define _UINT32_T to work around typedef of uint32_t if
119963         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
119964         2.5.1.
119966 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
119968         * m4/jm-macros.m4: Sync from coreutils.
119969         (gl_MACROS): Check for mbrlen, for pathchk.
119970         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
119972 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
119974         * lib/xreadlink.c (MAXSIZE): New macro.
119975         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
119976         size does not exceed MAXSIZE.  Avoid cast.
119977         As suggested by Mark D. Baushke in
119978         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
119979         if readlink fails with buffer size just under MAXSIZE, try again
119980         with MAXSIZE.
119982 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
119984         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
119986 2004-11-02  Derek R. Price  <derek@ximbiot.com>
119987         and  Paul Eggert  <eggert@cs.ucla.edu>
119989         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
119990         (get_date): Overparenthesize to avoid GCC warning.
119992 2004-11-02  Bruno Haible  <bruno@clisp.org>
119994         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
119995         returns void.
119997 2004-11-02  Bruno Haible  <bruno@clisp.org>
119999         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
120000         function returns void.
120002 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
120004         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
120005         fflush_unlocked, flockfile, funlockfile, funlockfile,
120006         fputs_unlocked, putc_unlocked.
120008 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
120010         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
120011         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
120012         already declared.
120014 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120016         * modules/getdate (Files): Add doc/getdate.texi.
120017         (Depends-on): Add setenv, xalloc.
120019 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120021         * lib/getdate.y: Add support for TZ="foo" within a date string.
120022         Fix some bugs near time_t boundaries.  Reject dates with
120023         out-of-range components, e.g., "Sept 31".
120024         Include <stdlib.h>, "setenv.h", "xalloc.h".
120025         (ISDIGIT_LOCALE): Remove; unused.
120026         Note that the TZ and time functions used here are not reentrant.
120027         (mktime_ok, get_tz): New functions.
120028         (TZBUFSIZE): New constant.
120029         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
120030         This requires that we sometimes generate our own TZ="XXX..." setting.
120032 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120034         * doc/getdate.texi: New file, from coreutils with modifications for
120035         the new TZ parsing.
120037 2004-10-27  Derek R. Price  <derek@ximbiot.com>
120039         * lib/mktime.c (not_equal_tm): Remove redundant check.
120041 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
120043         * modules/regex (lib_SOURCES): Add regex.c.
120044         Reported by James Youngman in
120045         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
120047 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
120049         * lib/getdate.y: Use Bison 1.875 features, and some minor
120050         code cleanups.  This change does not affect semantics.
120051         Don't include <stdlib.h>; no longer needed.
120052         Don't include unlocked-io.h; only the "#if TEST" code uses
120053         stdio, and performance isn't crucial there.
120054         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
120055         Bison 1.875 features as described below.
120056         All uses of "PC." replaced by "pc->".
120057         (YYSTYPE): Add a forward declaration.
120058         (yylex, yyerror): Use full prototypes in forward decls.
120059         Use "%pure-parser" rather than obsolescent "%pure_parser".
120060         Use %parse-param and %lex-param instead of obsolescent
120061         YYPARSE_PARAM and YYLEX_PARAM.
120062         (meridian_table, month_and_day_table, time_units_table,
120063         relative_time_table, time_zone_table, military_table,
120064         lookup_zone, lookup_word, get_date):
120065         Use NULL instead of 0 where appropriate.
120066         (to_hour): Avoid abort (), to avoid a dependency on
120067         stdlib.h.
120068         (yyerror, yylex): Now accepts parser_control * arg.
120069         (main) [TEST]: Use '\0' rather than 0 for char.
120071 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
120073         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
120075 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
120077         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
120078         It's now the caller's responsibility to handle the case where
120079         !HAVE_GETPAGESIZE && !defined getpagesize.
120081         * lib/mktime.c (leapyear): Arg is long int, not int.
120083 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
120085         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
120087 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
120089         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
120090         missing.  Problem reported by James Youngman.
120092 2004-10-16  Simon Josefsson  <jas@extundo.com>
120094         * gnulib-tool: Fix comments.  Fix parse problem.
120095         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
120097 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
120099         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
120100         implementation of getopt_long.  Problem reported by Alexander Taler in:
120101         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
120103 2004-10-15  Bruno Haible  <bruno@clisp.org>
120105         * gnulib-tool: Untabify. Initialize supplied_libname.
120106         (func_usage): More homogenous output.
120107         (func_modules_transitive_closure, func_modules_to_filelist,
120108         func_emit_lib_Makefile_am): New functions.
120109         (func_import): New function, extracted from big case statement. Use
120110         func_get_license, func_modules_transitive_closure,
120111         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
120112         opt_lgpl. Don't use test -a, as it's not portable.
120113         (func_create_testdir): Use func_modules_transitive_closure,
120114         func_modules_to_filelist, func_emit_lib_Makefile_am.
120116 2004-10-15  Bruno Haible  <bruno@clisp.org>
120118         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
120120 2004-10-15  Bruno Haible  <bruno@clisp.org>
120122         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
120123         the portions belonging to each module.
120124         Suggested by Derek Robert Price <derek@ximbiot.com>.
120126 2004-10-12  Simon Josefsson  <jas@extundo.com>
120128         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
120129         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
120130         to real functions.
120132 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120134         * modules/vsnprintf: New file.
120136 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120138         * m4/vsnprintf.m4: New file.
120140 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120142         * lib/vsnprintf.h: New file.
120143         * lib/vsnprintf.c: New file.
120145 2004-10-11  Bruno Haible  <bruno@clisp.org>
120147         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
120148         vsnprintf.
120150 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
120152         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
120154 2004-10-07  Bruno Haible  <bruno@clisp.org>
120156         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
120157         fits into the provided buffer.
120159 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
120161         * lib/diacrit.c, diacrit.h: Add GPL notice.
120163         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
120164         notice.
120165         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
120166         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
120167         This avoids a potential constant-folding bug.
120169 2004-10-05  Bruno Haible  <bruno@clisp.org>
120171         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
120172         for the declaration of strsep.
120174 2004-10-05  Bruno Haible  <bruno@clisp.org>
120176         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
120178 2004-10-04  Simon Josefsson  <jas@extundo.com>
120180         * modules/memmem: New file.
120181         * tests/test-memmem.c: New file.
120182         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
120184 2004-10-04  Simon Josefsson  <jas@extundo.com>
120186         * m4/memmem.m4: New file.
120188 2004-10-04  Simon Josefsson  <jas@extundo.com>
120190         * lib/memmem.h: New file.
120191         * lib/memmem.c: New file, taken from glibc.
120193 2004-10-04  Simon Josefsson  <jas@extundo.com>
120195         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
120196         '#ifdef USE_UNLOCKED_IO'.
120198 2004-10-04  Simon Josefsson  <jas@extundo.com>
120200         * config/srclist.txt: Add memmem from glibc.
120202 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120204         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
120206         * modules/argmatch, modules/argp, modules/closeout, modules/error,
120207         modules/exclude, modules/getdate, modules/getline,
120208         modules/getndelim2, modules/getpass, modules/getpass-gnu,
120209         modules/getusershell, modules/linebuffer, modules/md5,
120210         modules/mountlist, modules/posixtm, modules/readtokens,
120211         modules/readutmp, modules/regex, modules/sha1,
120212         modules/version-etc, modules/yesno:
120213         Remove dependency on unlocked-io.
120215 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120217         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
120219         * m4/unlocked-io.m4: Add copyright notice.
120220         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
120222 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120224         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
120225         * lib/xmalloc.c (xmemdup): Likewise.
120226         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
120227         XFREE): Remove these long-obsolescent macros.
120228         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
120229         * lib/xstrdup.c: Remove.
120231         * lib/regex.c (re_comp): Cast gettext return value to char *,
120232         Problem reported by Martin Neitzel via Mark D. Baushke.
120234 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120236         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
120237         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
120238         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
120239         regex.c, sha1.c, version-etc.c, yesno.c:
120240         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
120241         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
120242         the includer's responsibility.
120244         Sync from coreutils.
120246         * lib/modechange.c (mode_compile): Don't decrement a pointer that
120247         points to the start of a string, as the C Standard says the
120248         resulting behavior is undefined.
120250         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
120251         simple -> simple_backups, numbered_existing ->
120252         numbered_existing_backups, numbered -> numbered_backups
120253         to avoid shadowing problems.  All uses changed.
120254         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
120255         * lib/backupfile.c (check_extension, numbered_backup):
120256         Rename locals to avoid shadowing 'basename'.
120257         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
120258         once.
120260         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
120261         * lib/.cvsignore: Add getopt.h.
120263 2004-10-04  Bruno Haible  <bruno@clisp.org>
120265         * modules/README: New file.
120266         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
120267         not a module.
120269 2004-10-02  Jim Meyering  <jim@meyering.net>
120271         * lib/dirfd.h, getpagesize.h: Add copyright notice.
120273 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120275         * modules/strsep: New file.
120277 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120279         * m4/strsep.m4: New file.
120281 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120283         * lib/strsep.h: New file.
120284         * lib/strsep.c: New file.
120286 2004-10-01  Simon Josefsson  <jas@extundo.com>
120288         * lib/snprintf.c (snprintf): Handle size==0.
120290 2004-10-01  Simon Josefsson  <jas@extundo.com>
120291             Bruno Haible  <bruno@clisp.org>
120293         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
120294         (snprintf): Declare 'args'.
120296 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
120298         * lib/snprintf.c: Remove comments as to why each header is needed.
120300 2004-10-01  Bruno Haible  <bruno@clisp.org>
120302         * MODULES.html.sh: Add strsep.
120304 2004-09-30  Simon Josefsson  <jas@extundo.com>
120306         * modules/snprintf: New file.
120308 2004-09-30  Simon Josefsson  <jas@extundo.com>
120310         * m4/snprintf.m4: New file.
120312 2004-09-30  Simon Josefsson  <jas@extundo.com>
120314         * lib/snprintf.h, lib/snprintf.c: New files.
120316 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120318         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
120319         (hol_entry_help): Never translate an empty string.
120320         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
120321         * lib/argp.h (OPTION_NO_TRANS): New option.
120323 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120325         * modules/argp (Maintainer): Replace Simon Josefsson
120326         by Sergey Poznyakoff.
120328 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120330         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
120331         changes merged back into glibc.
120333 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120335         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
120337 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
120339         * lib/xvasprintf.c: Include xalloc.h.
120340         (xvasprintf): Use xalloc_die, not xmalloc_die.
120342 2004-09-29  Bruno Haible  <bruno@clisp.org>
120344         * modules/alloca-opt: New file, derived from modules/alloca.
120345         * modules/allocsa: Depend on alloca-opt instead of alloca.
120346         * modules/setenv: Likewise.
120347         * modules/vasnprintf: Likewise.
120348         * MODULES.html.sh: Add alloca-opt.
120350 2004-09-28  Simon Josefsson  <jas@extundo.com>
120352         * gnulib-tool: New parameter --lgpl, to asseert that modules are
120353         LGPL, and to replace license template from GPL to LGPL.
120355 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
120357         * modules/dummy: Change license to LGPL.
120359 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
120361         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
120363 2004-09-24  Simon Josefsson  <jas@extundo.com>
120365         * modules/minmax (License): Change from GPL to LGPL.
120367 2004-09-23  Simon Josefsson  <jas@extundo.com>
120369         * gnulib-tool (--import): Typo.
120371 2004-09-23  Simon Josefsson  <jas@extundo.com>
120373         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
120375 2004-09-22  Bruno Haible  <bruno@clisp.org>
120377         * modules/*: Add 'License' field.
120378         * gnulib-tool: Accept --extract-license option.
120379         (func_get_license): New function.
120381 2004-09-21  Bruno Haible  <bruno@clisp.org>
120383         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
120384         Reported by Simon Josefsson.
120386 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120388         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
120389         gl_AC_TYPE_LONG_LONG.
120391 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120393         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
120395 2004-09-18  Simon Josefsson  <jas@extundo.com>
120396         and  Paul Eggert  <eggert@cs.ucla.edu>
120398         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
120399         calls with autoreconf.  Define GL_LIB.
120401 2004-09-14  Karl Berry  <karl@gnu.org>
120403         * config/srclist.txt: unsync setenv.c, sigh.
120405 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120407         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
120408         Problem reported by Bruno Haible in:
120409         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
120411 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120413         * config/srclist.txt: Comment out argp-pvh.c.
120415 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
120417         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
120418         in case some system header has #define'd it.  Problem reported by
120419         Soeren D. Schulze in
120420         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
120422 2004-09-09  Karl Berry  <karl@gnu.org>
120424         * regex.[ch]: delete from the root.  These were supposed to be
120425                 synced with emacs cvs, but this has not happened for about
120426                 a year, and anyway nothing else uses emacs regex.[ch].
120427                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
120428                 lib/regex[.ch] is untouched.
120430 2004-09-09  Bruno Haible  <bruno@clisp.org>
120432         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
120434 2004-09-09  Bruno Haible  <bruno@clisp.org>
120436         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
120437         modifications.
120438         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
120440 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
120442         * modules/xvasprintf: New file.
120443         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
120445 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
120447         * lib/xvasprintf.h: New file.
120448         * lib/xvasprintf.c: New file.
120449         * lib/xasprintf.c: New file.
120451 2004-09-08  Bruno Haible  <bruno@clisp.org>
120453         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
120455 2004-09-08  Bruno Haible  <bruno@clisp.org>
120457         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
120458         length is > INT_MAX.
120459         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
120460         more.
120462 2004-09-08  Bruno Haible  <bruno@clisp.org>
120464         * lib/stdint_.h: New file, taken from GNU clisp.
120466 2004-09-08  Bruno Haible  <bruno@clisp.org>
120467             Oskar Liljeblad  <oskar@osk.mine.nu>
120469         * modules/stdint: New file.
120470         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
120472 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120474         Import from coreutils.
120475         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
120476         strings on unbounded length.  alloca's performance benefits aren't
120477         that important here.
120478         (V_STRDUP): Remove.
120479         (parse_with_separator): New function, with most of the internals
120480         of the old parse_user_spec.  Allow user to omit both user and group,
120481         for compatibility with FreeBSD.
120482         Clone only the user name, not the entire spec.
120483         Do not set *uid, *gid unless entirely successful.
120484         Avoid memory leak in some failing cases.
120485         Fix regression for USER.GROUP reported by Dmitry V. Levin in
120486         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
120487         (parse_user_spec): Rewrite to use parse_with_separator.
120489 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120491         * modules/userspec: Don't depend on alloca.
120493 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120495         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
120497 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
120499         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
120500         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
120501         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
120503 2004-08-16  Simon Josefsson  <jas@extundo.com>
120505         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
120506         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
120507         Add --dry-run for --import.
120508         Let user provided command line parameters override configure.ac
120509         settings.
120511 2004-08-12  Simon Josefsson  <jas@extundo.com>
120513         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
120514         as discussed with Paul Eggert in threads rooted at
120515         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
120516         and
120517         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
120518         Before, the test was empty, and relied on ELIDE_CODE in source
120519         code.)
120520         (gl_PREREQ_GETOPT): New macro.
120521         (gl_GETOPT): Use them.
120523 2004-08-12  Simon Josefsson  <jas@extundo.com>
120525         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
120526         * lib/getopt_.h: Renamed from getopt.h.
120528 2004-08-12  Simon Josefsson  <jas@extundo.com>
120530         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
120531         Change default library name from libfoo to libgnu.
120532         Now, if you have a configure.ac that says:
120533                 gl_SOURCE_BASE(gl)
120534                 gl_M4_BASE(gl/m4)
120535                 gl_MODULES(error getopt etcetera)
120536                 gl_INIT
120537         you can import all you need by running:
120538                 ../gnulib/gnulib-tool --import
120540         * modules/getopt (Files): Rename getopt.h to getopt_.h.
120541         (Makefile.am): Rewrite, use logic from argz.
120542         (Include): Use <getopt.h> instead of "getopt.h".
120544 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120546         * modules/argp (Files): Add m4/unlocked-io.m4.
120547         (Depends-on): Add extensions.
120549 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120551         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
120552         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
120553         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
120554         Check for program_invocation_name, program_invocation_short_name,
120555         flockfile, funlockfile, features.h, _getopt_long_only_r.
120557 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120559         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
120560         its complicated substitute.
120561         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
120562         and program_invocation_name.
120563         (__argp_basename) [!_LIBC]: Remove; the only use was
120564         replaced by its body.
120565         (__argp_short_program_name): Change condition from
120566         !defined __argp_short_program_name to
120567         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
120568         to match argp-namefrob.h.
120569         (__argp_failure): Don't assume strerror_r returns char *.
120570         * lib/argp-parse.c (N_): Define unconditionally.
120571         (argp_default_options): Fill out initializers with 0 to avoid
120572         gcc warnings.
120574 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120576         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
120577         getopt1.c.
120579 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120581         Merge from coreutils.
120583         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
120585         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
120586         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
120588 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120590         Merge from coreutils.
120592         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
120593         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
120594         for Reliant Unix 5.43.
120596         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
120597         (union fooround): Use uintmax_t, not long int.
120598         The rest is a merge from libc:
120599         [defined _LIBC]: Include <shlib-compat.h>.
120600         (_obstack) [defined _LIBC]: Remove after 2.3.4.
120602         * lib/settime.c (settime): Recode to avoid warning with
120603         Sun Forte C 6U2.
120605         * lib/strverscmp.c: Convert to UTF-8.
120607 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120609         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
120610         m4/uintmax_t.m4.
120612 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120614         * modules/xalloc-die: New file.
120615         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
120617         * modules/md5 (Files): Add m4/uint32_t.m4.
120618         * modules/sha1: Renamed from modules/sha.
120619         (Files):
120620         Rename lib/sha.h to lib/sha1.h.
120621         Rename lib/sha.c to lib/sha1.c.
120622         Rename m4/sha.m4 to m4/sha1.m4.
120623         (lib_SOURCES): Likewise.
120624         (configure.ac): Rename gl_SHA to gl_SHA1.
120625         (Include): sha.h -> sha1.h.
120627 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120629         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
120630         * m4/sha1.m4: Renamed from sha.m4.
120631         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
120633 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120635         * lib/obstack.h (obstack_empty_p):
120636         Don't assume that chunk->contents is suitably aligned.
120637         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
120638         Likewise. Problem reported by Benno in
120639         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
120641         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
120642         readable.  This could be improved further but it'd take some work.
120644 2004-08-08  Simon Josefsson  <jas@extundo.com>
120646         * modules/xgethostname (Depends-on): Remove exit and error (not
120647         used).
120649         * modules/getpass-gnu: Add getpass.h.
120650         (Depends-on): Add stdbool.
120651         * modules/getpass: Add getpass.h.
120653 2004-08-08  Simon Josefsson  <jas@extundo.com>
120655         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
120656         Check getpass declaration.
120658 2004-08-08  Simon Josefsson  <jas@extundo.com>
120660         * lib/xgethostname.c: Don't include error.h (not used).
120662         * lib/getpass.h: Add.
120663         * lib/getpass.c: Include getpass.h first.
120665 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
120667         * lib/xalloc-die.c: New file.
120668         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
120669         All uses removed.
120670         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
120671         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
120672         xalloc-die.c.
120673         (_, N_, xalloc_die): Move to xalloc-die.c.
120674         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
120675         so that we needn't mess with xalloc_msg_memory_exhausted.
120677         * lib/sha1.h: Renamed from sha.h.
120678         (SHA1_H): Renamed from _SHA_H.
120679         (sha1_ctx): Renamed from sha_ctx.
120680         (sha1_init_ctx): Renamed from sha_init_ctx.
120681         (sha1_process_block): Renamed from sha_process_block.
120682         (sha1_process_bytes): Renamed from sha_process_bytes.
120683         (sha1_finish_ctx): Renamed from sha_finish_ctx.
120684         (sha1_read_ctx): Renamed from sha_read_ctx.
120685         (sha1_stream): Renamed from sha_stream.
120686         (sha1_buffer): Renamed from sha_buffer.
120687         * lib/sha1.c: Likewise; renamed from sha.c.
120688         Do not include <sys/types.h>.
120689         Include <stddef.h> rather than <stdlib.h>.
120691 2004-08-08  Bruno Haible  <bruno@clisp.org>
120693         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
120694         FILESYSTEM_PREFIX_LEN.
120695         * lib/progreloc.c: Likewise.
120696         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
120698 2004-08-06  Simon Josefsson  <jas@extundo.com>
120700         * modules/progname (Depends-on): Don't depend on stdbool.
120702 2004-08-06  Simon Josefsson  <jas@extundo.com>
120704         * modules/getsubopt: New file.
120705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120706         getsubopt.
120708 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120710         More merge from coreutils.
120712         * m4/utimens.m4, m4/utimecmp.m4: New files.
120713         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
120714         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
120715         prereq.m4, sha.m4: Import changes from coreutils.
120717 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120719         More merge from coreutils.
120720         * modules/raise, modules/readtokens0, modules/utimens:
120721         * modules/utimecmp, module/xnanosleep: New files.
120722         * modules/strftime: Add lib/strftime.h.
120723         Change include from <time.h> to "strftime.h".
120724         * modules/yesno: Add lib/yesno.h.
120725         * modules/backupfile: Remove lib/addext.c.
120726         * modules/euidaccess: Add stat-macros.h.
120727         * modules/canonicalize, modules/euidaccess,
120728         modules/filemode, modules/lchown, modules/makepath,
120729         modules/rmdir, modules/stat: Likewise.
120731 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120733         Merge from tar.
120734         * lib/argp-help.c (make_hol, hol_append): Don't assume that
120735         SIZE_MAX is a valid preprocessor constant.
120736         (__argp_basename): Change from "#ifndef _LIBC"
120737         to "#ifndef __argp_short_program_name", so that
120738         we don't compile these functions for tar.
120740         More merges from coreutils.
120741         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
120742         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
120743         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
120744         * lib/addext.c: Remove; no longer needed.
120745         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
120746         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
120747         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
120748         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
120749         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
120750         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
120751         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
120752         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
120753         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
120754         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
120755         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
120756         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
120757         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
120758         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
120759         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
120760         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
120761         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
120762         Import changes from coreutils.
120764 2004-08-05  Simon Josefsson  <jas@extundo.com>
120766         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
120768 2004-08-05  Simon Josefsson  <jas@extundo.com>
120770         * m4/getsubopt.m4: New file.
120772 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120774         Merge from coreutils.
120776         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
120777         * m4/getcwd-path-max.m4: New files.
120779         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
120780         FILESYSTEM_PREFIX_LEN ->
120781         FILE_SYSTEM_PREFIX_LEN.
120782         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
120783         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
120784         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
120785         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
120787         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
120788         prerequisite modules now handle the DOS stuff.
120789         Don't check for unistd.h.
120791 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120793         Merge from coreutils.
120795         * lib/.gdb-history: Remove; this doesn't belong here.
120797         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
120798         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
120799         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
120800         * lib/getcwd.c: New files.
120802         * lib/dirname.h: Include <stdbool.h>.
120803         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
120804         for consistency with POSIX terminology.  All uses changed.
120805         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
120806         (strip_trailing_slashes): Use bool for booleans.
120807         * lib/stripslash.c (strip_trailing_slashes): Likewise.
120809         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
120810         sometimes returns a positive errno value even when it succeeds.
120811         (print_errno_message) [!LIBC]: Fall back on strerror if
120812         __strerror_r fails.
120814         * lib/path-concat.c (mempcpy): Don't define if a system header defines
120815         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
120816         (longest_relative_suffix): New function.
120817         (path_concat): Use it.  Assume first argument is not NULL.
120818         Port to DOS.  Omit redundant separators.
120819         Report an error instead of returning NULL.
120820         Use mempcpy instead of memcpy.
120821         (xpath_concat): Remove: not declared or used.
120823         * lib/same.h: Include <stdbool.h>
120824         (same_name): Return bool, not int.
120825         * lib/same.c (same_name): Likewise.
120826         (errno): Don't declare; we assume C89 or better now.
120828         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
120829         if not already defined.
120831         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
120832         * lib/dup-safer.c (errno): Likewise.
120834 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120836         Merge from coreutils.
120837         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
120838         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
120839         * modules/path-concat: Don't depend on strdup.
120841 2004-08-03  Simon Josefsson  <jas@extundo.com>
120843         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
120844         * lib/progname.h: Don't include stdbool.h.
120846 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120848         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
120849         * MODULES.html.sh (func_all_modules): Remove fatal.
120851 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120853         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
120855 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120857         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
120858         working.
120860 2004-08-02  Simon Josefsson  <jas@extundo.com>
120862         * lib/getsubopt.h: New file, with comments from Bruno Haible.
120863         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
120864         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
120866 2004-08-01  Simon Josefsson  <jas@extundo.com>
120868         * lib/xgetdomainname.c: Include stdlib.h, for free().
120870 2004-07-19  Bruno Haible  <bruno@clisp.org>
120872         * MODULES.html.sh (func_all_modules): Add dummy.
120874 2004-07-16  Simon Josefsson  <jas@extundo.com>
120876         * modules/dummy: New file.
120878 2004-07-16  Simon Josefsson  <jas@extundo.com>
120880         * lib/dummy.c: New file.
120882 2004-07-16  Bruno Haible  <bruno@clisp.org>
120884         * lib/backupfile.h: Add extern "C" for C++.
120885         * lib/closeout.h: Likewise.
120886         * lib/copy-file.h: Likewise.
120887         * lib/findprog.h: Likewise.
120888         * lib/full-write.h: Likewise.
120889         * lib/pathname.h: Likewise.
120890         * lib/progname.h: Likewise.
120891         * lib/stpcpy.h: Likewise.
120892         * lib/stpncpy.h: Likewise.
120893         * lib/strcase.h: Likewise.
120894         * lib/strstr.h: Likewise.
120895         * lib/xalloc.h: Likewise.
120897         * lib/mbswidth.h: Add extern "C" for C++.
120898         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
120900 2004-07-13  Robert Millan  <robertmh@gnu.org>
120902         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
120904 2004-07-09  Simon Josefsson  <jas@extundo.com>
120906         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
120907         failed without this.)
120909 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
120911         * modules/chown (Files): Add lib/fchown-stub.c, since
120912         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
120914 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
120916         * lib/fchown-stub.c: New file.
120918 2004-06-24  Jim Meyering  <jim@meyering.net>
120920         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
120922 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120924         * modules/argz: Omit "#include".
120926         * MODULES.html.sh (func_all_modules): Add calloc, to match
120927         2004-06-01 addition of calloc module.
120929 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120931         * m4/argz.m4: New file, which is autoupdated from libtool.
120933 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120935         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
120936         libtool.
120938 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120940         * config/srclist-update: Don't insist on "USA." before the
120941         close-comment, as libtool omits the period and puts the */ on a
120942         separate line.
120943         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
120944         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
120946 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
120948         * modules/argz: New file.
120949         * MODULES.html.sh (func_all_modules): Add argz.
120951 2004-06-12  Jim Meyering  <jim@meyering.net>
120952         and  Paul Eggert  <eggert@cs.ucla.edu>
120954         * modules/hash (Files): Add lib/xalloc.h.
120955         * modules/pipe (Depends-on): Add wait-process.
120956         * modules/stat (Depends-on): Add xalloc.
120957         * modules/userspec (Files): Add lib/userspec.h.
120958         * modules/xstrto
120960         Upgrade from gettext-0.13.
120961         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
120962         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
120963         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
120965 2004-06-10  Jim Meyering  <jim@meyering.net>
120967         * lib/calloc.c: New file.
120969 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
120971         * lib/getdate.y (yylex): Allow space between sign and number.
120972         Problem reported by Dan Jacobson.
120974 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
120976         Merge from coreutils CVS.
120978         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
120979         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
120980         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
120981         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
120982         xstrtol.m4: Fix copyright date and/or serial number.
120984         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
120985         See if we need an fchown replacement.
120986         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
120987         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
120988         and use the replacement function if we detect either defect.
120990         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
120991         gl_UTIMECMP.
120993 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
120994         and  Jim Meyering  <jim@meyering.net>
120996         Merge from coreutils CVS.
120998         * lib/stat-macros.h: New file, with contents from file-type.h
120999         and coreutils' system.h.
121000         * lib/file-type.c: Include "stat-macros.h".
121001         * lib/file-type.h (file_type): Move all macro definitions to new file,
121002         stat-macros.h.
121004         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
121005         Wrap old code with this conditional.
121006         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
121007         function that does not dereference symlinks.
121008         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
121010         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
121011         dependency problems.
121012         (xreadlink): Accept new arg SIZE, for efficiency.
121013         All decls and uses changed.
121014         * lib/xreadlink.h: Include <stddef.h>, for size_t.
121016         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
121017         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
121019         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
121020         sysexits.h.
121022 2004-06-01  Jim Meyering  <jim@meyering.net>
121024         * m4/calloc.m4: New file.
121026 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
121028         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
121029         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
121030         Also, fix a typo in a diagnostic.
121032 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
121034         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
121035         or AC_FUNC_REALLOC.
121037 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
121039         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
121040         macros to be defined.
121041         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
121042         the allocator returns NULL because the requested size is zero.
121044 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121046         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
121047         var.  Add comment explaining why libc still defines it.  This
121048         merges the following patch from glibc:
121049         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
121051 2004-05-20  Andreas Schwab  <schwab@suse.de>
121053         * m4/free.m4: Replace free if it not known to work, not the other
121054         way round.
121056 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
121058         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
121059         present in glibc since revision 1.1 of this file.
121060         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
121061         obstack_alignment_mask, obstack_alloc, obstack_base,
121062         obstack_blank, obstack_blank_fast, obstack_chunk_size,
121063         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
121064         obstack_grow0, obstack_init, obstack_int_grow,
121065         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
121066         obstack_next_free, obstack_object_size, obstack_ptr_grow,
121067         obstack_ptr_grow_fast, obstack_room): Remove declarations of
121068         nonexistent functions.
121070 2004-05-18  Karl Berry  <karl@gnu.org>
121072         * config/srclist.txt: break link for vasnprintf.c.
121074 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
121076         Port obstack to the AS/400, where pointers are 16 bytes wide and
121077         you cannot cast an integer to a valid pointer.  This patch is
121078         currently waiting to be integrated into glibc; see
121079         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
121081         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
121082         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
121083         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
121084         (struct obstack): temp member is now a union of a pointer and
121085         an integer, instead of an integer.  All integer uses changed.
121086         This does not affect the physical layout of struct obstack,
121087         except on hosts (like the AS/400) where the size or alignment of
121088         void * is greater than that of ptrdiff_t.
121089         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
121090         __STDC__)]: Store temporary in pointer member of union, not
121091         integer member.
121092         * lib/obstack.c: Include <stddef.h>, for offsetof.
121093         (struct fooalign): Remove; it doesn't need a name.
121094         (union fooround): Change double to long double, and add void *.
121095         (DEFAULT_ALIGNMENT): Use offsetof to compute.
121096         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
121097         not a macro.  Hence the values are always int; so remove all
121098         casts-to-int in uses.
121100 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
121102         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
121103         we can get this patch merged into glibc.
121105 2004-05-17  Derek R. Price  <derek@ximbiot.com>
121106             Paul Eggert  <eggert@cs.ucla.edu>
121108         * m4/argp: Depend on alloca.
121110 2004-05-17  Derek R. Price  <derek@ximbiot.com>
121111             Paul Eggert  <eggert@cs.ucla.edu>
121113         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
121114         freecoding.
121116 2004-05-17  Bruno Haible  <bruno@clisp.org>
121118         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
121119         precision that consists of a '.' followed by an empty digit string.
121120         Patch by Tor Lillqvist <tml@iki.fi>.
121122 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
121124         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
121125         for backward compatibility with older code.  We need our own
121126         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
121127         it under some other name, and our alloca.h will define it.
121129 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
121130             Derek Price  <derek@ximbiot.com>
121132         * lib/alloca.c: Include <alloca.h>, to get our interface.
121133         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
121134         include <alloca.h> first.  Use C89 prototype for alloca; this
121135         requires including <stddef.h> for size_t.  Use extern "C" if C++.
121136         Use #elif for simplicity, since we can assume C89 now.
121137         Don't try to source the system alloca.h since it will not be found
121138         and to prevent recursively including its replacement.
121139         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
121140         * lib/regex.c: Likewise.
121142 2004-05-16  Derek Price  <derek@ximbiot.com>
121143             Paul Eggert  <eggert@cs.ucla.edu>
121145         getline cleanup.  This changes the getndelim2 API: both order of
121146         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
121147         no delimiter).
121149         * lib/getline.c: Don't include stddef.h or stdio.h, since our
121150         interface does that.
121151         (getline): Always use getdelim, so that we don't have two
121152         copies of this code.
121153         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
121154         if available.
121155         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
121156         (GETNDELIM2_MAXIMUM): New macro.
121157         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
121158         instead of the old practice of delim2==0.  All callers changed.
121159         Return -1 on overflow, instead of returning junk.
121160         Do not set *linesize unless allocation succeeds.
121161         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
121162         that we include sys/types.h.
121163         * lib/getnline.h: Likewise.
121164         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
121165         (getndelim2): Reorder arguments.
121166         * lib/getnline.c (getnline, getndelim):
121167         Don't discard the NMAX argument.
121168         (getnline): Invoke getndelim, to avoid code duplication.
121169         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
121170         of (size_t) -1 by callers of the getnline family.
121172 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121174         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
121175         Check for gettimeofday.
121176         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
121177         Check for settimeofday, stime.
121179 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121181         * lib/nanosleep.c (suspended): Change its type from int to
121182         sig_atomic_t volatile.
121183         (first_call): Make it private to rpl_nanosleep, and have it
121184         be zero initially as that's a bit faster.
121185         (my_usleep): Round up fractional times instead of truncating them,
121186         as this is the usual meaning for 'sleep'.
121188         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
121189         doesn't work.
121190         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
121191         (ENOSYS): Define if not defined.
121192         (settime): Fall back on stime if it exists and settimeofday fails.
121193         But don't bother with fallbacks if a method fails with errno == EPERM.
121195 2004-05-11  Jim Meyering  <jim@meyering.net>
121197         Prior to this change, the save_cwd caller required read access to the
121198         current directory on most systems (ones with the fchdir function).
121200         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
121201         fails, try write-only, and finally, resort to using xgetcwd.
121203 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121205         * lib/obstack.c, obstack.h: Import changes from libc.
121207 2004-04-28  Bruno Haible  <bruno@clisp.org>
121209         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
121210         also implicitly appends .exe to executables.
121211         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
121212         accepts Windows pathnames.
121213         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
121214         Treat Cygwin like Windows, since it now accepts Windows pathnames.
121215         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
121216         Treat Cygwin like Windows, since it now accepts Windows pathnames.
121217         Reported by Derek Robert Price <derek@ximbiot.com>.
121219 2004-04-21  Karl Berry  <karl@gnu.org>
121221         * config/srclist.txt (localcharset.c): break sync.
121223 2004-04-20  Paul Eggert  <eggert@twinsun.com>
121225         * m4/host-os.m4: Add a copyright notice.
121227 2004-04-20  Jim Meyering  <jim@meyering.net>
121229         Change UTILS_ to gl_ in AC_DEFINE'd names.
121230         Change utils_- and jm_-prefixed variables, too.
121231         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
121232         UTILS_FUNC_MKDIR_TRAILING_SLASH.
121233         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
121235         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
121236         Don't emit trailing blanks.
121237         Also rename jm_-prefixed variables to have gl_ prefix.
121239         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
121240         Also rename jm_-prefixed variables to have gl_ prefix.
121242         * m4/jm-macros.m4: Reflect the renamings.
121243         * m4/prereq.m4: Likewise.
121245 2004-04-20  Jim Meyering  <jim@meyering.net>
121247         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
121248         memory.
121250 2004-04-20  Jim Meyering  <jim@meyering.net>
121251             Bruno Haible  <bruno@clisp.org>
121253         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
121254         memory when realloc fails.
121256 2004-04-19  Jim Meyering  <jim@meyering.net>
121258         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
121259         now that readutmp.c may call `free (0)'.
121261 2004-04-19  Bruno Haible  <bruno@clisp.org>
121263         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
121264         * m4/inttypes_h.m4: Likewise.
121265         * m4/stdint_h.m4: Likewise.
121266         * m4/intmax_t.m4: Likewise.
121267         * m4/uintmax_t.m4: Likewise.
121269 2004-04-18  Jim Meyering  <jim@meyering.net>
121271         * m4/prereq.m4: Don't forbid jm_ prefix.
121273         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
121274         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
121275         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
121276         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
121277         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
121278         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
121279         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
121280         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
121281         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
121282         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
121283         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
121284         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
121285         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
121286         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
121287         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
121288         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
121289         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
121290         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
121291         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
121293 2004-04-18  Jim Meyering  <jim@meyering.net>
121295         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
121296         failure, don't leak memory and do call END_UTMP_ENT.
121298 2004-04-16  Jim Meyering  <jim@meyering.net>
121300         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
121301         coreutils' stat program.
121302         (gl_PREREQ): Don't require jm_PREREQ_STAT.
121304 2004-04-11  Paul Eggert  <eggert@twinsun.com>
121306         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
121307         C89.
121308         (CHAR_BIT): Remove, since we assume C89.
121309         Include <stdint.h> if available, as per current Autoconf CVS advice.
121311 2004-03-31  Jim Meyering  <jim@meyering.net>
121313         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
121314         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
121315         * m4/xalloc.m4: Likewise.
121317 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121319         Merge from coreutils.
121321         * m4/inttostr.m4: New file.
121322         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
121323         Require AM_STDBOOL_H and gl_TIMESPEC instead.
121324         Require gl_CLOCK_TIME.
121325         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
121327 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121329         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
121330         not bool, to be more consistent with Unix conventions.
121331         Suggested by Bruno Haible.
121333         Merge from coreutils.
121335         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
121336         * lib/umaxtostr.c: New files.
121338         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
121339         the usual <time.h> dance.
121340         (get_date): Change signature to support fractional time stamps.
121341         All callers changed.
121342         * lib/getdate.y: Include "getdate.h" first, as we can now
121343         assume C89 and don't need to worry about 'const'.
121344         Similarly, include "unlocked-io.h" near start, not in middle.
121345         Include <limits.h>.
121346         (textint.value): Use long int rather than int.
121347         (textint.digits): Use size_t rather than int.
121348         (BILLION, LOG10_BILLION): New constants.
121349         (parser_control): New member rel_ns.  Members day_ordinal,
121350         time_zone, month, day, hour, minutes, rel_year, rel_month,
121351         rel_day, rel_hour, rel_minutes, rel_seconds
121352         are now long int, not int.  Member seconds is now struct timespec,
121353         not int.  New member timespec_seen.  Members dates_seen, days_seen,
121354         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
121355         not int.
121356         (%union.intval): Now long int, not int.
121357         New member timespec.
121358         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
121359         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
121360         (spec): Now is a timespec or an item list.
121361         (timespec, items): New nonterminals.
121362         (time, rel, relunit, number, get_date):
121363         Add support for fractional seconds.
121364         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
121365         (gmtime, localtime, mktime): Remove decls; not needed with C89.
121366         (to_hour): First arg is now long int, not int.
121367         (to_year): Returns long int, not int.
121368         Don't treat year -70 like 70.
121369         (tm_diff): Returns long int, not int.
121370         (lookup_word): Use bool instead of int when appropriate.
121371         (yylex): Use size_t for count, not int.
121372         Detect overflow when parsing large integer constants.
121373         Add support for fractions.
121374         (get_date): Make pointers 'const' if possible.
121375         Use more-portable code to detect integer overflow.
121376         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
121377         Don't use ctime; it's not reliable if the year has >4 digits.
121379         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
121380         This is for compatibility with BSD.
121382         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
121383         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
121384         From coreutils' system.h.
121386         * lib/userspec.c: Don't include "posixver.h".
121387         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
121388         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
121389         compatible extension.  Simplify code by removing a boolean int
121390         that was always nonzero if a string was nonnull.
121392 2004-03-30  Jim Meyering  <jim@meyering.net>
121394         Merge from coreutils.
121396         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
121397         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
121398         on some systems one must include <grp.h> before it.
121399         Reported by Christian Krackowizer.
121401 2004-03-30  Jim Meyering  <jim@meyering.net>
121403         Merge from coreutils.
121405         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
121407         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
121408         an empty input stream.
121410         * lib/readtokens.c: Include <stdbool.h>.
121411         (readtoken): Use `size_t' rather than int/long.
121412         All callers adjusted.
121413         Use `bool' rather than `int' where appropriate.
121414         Use memset rather than an explicit loop.
121415         Use x2nrealloc rather than xrealloc.
121416         Allow the use of `\0' as a delimiter.
121417         (readtokens): Likewise.
121418         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
121420 2004-03-30  Jim Meyering  <jim@meyering.net>
121422         * m4/realloc.m4: Remove file, since now it does no more than
121423         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
121424         the `configure.ac' section of module/realloc.
121425         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
121427 2004-03-30  Bruno Haible  <bruno@clisp.org>
121429         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
121430         nonnull.
121432 2004-03-29  Paul Eggert  <eggert@twinsun.com>
121434         Merge changes to getloadavg.c from coreutils and Emacs.
121436         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
121437         Define to an expression, not to the empty string.
121438         Include cloexec.h and xalloc.h.
121439         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
121440         Use set_cloexec_flag rather than rolling our own.
121441         * lib/cloexec.c, lib/cloexec.h: New files.
121443 2004-03-29  Paul Eggert  <eggert@twinsun.com>
121445         * m4/cloexec.m4: New file.
121447 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121449         * lib/getopt.h: Sync with libc CVS.
121451 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121452             Bruno Haible  <bruno@clisp.org>
121454         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
121455         mbswidth.
121457 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121458             Bruno Haible  <bruno@clisp.org>
121460         * lib/mbswidth.h: Include <wchar.h> only if
121461         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
121462         <wchar.h>.
121463         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
121465 2004-03-09  Paul Eggert  <eggert@twinsun.com>
121467         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
121468         Sync with libc CVS.
121469         * lib/getopt_int.h: New file, also synced from libc.
121471 2004-03-09  Paul Eggert  <eggert@twinsun.com>
121473         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
121474         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
121475         Bring back getopt.c, getopt.h, getopt1.c.
121477 2004-03-07  Paul Eggert  <eggert@twinsun.com>
121479         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
121480         All uses changed.  Check for sa_sigaction member; this fixes
121481         a bug first reported by Jason Andrade in
121482         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
121484 2004-03-07  Paul Eggert  <eggert@twinsun.com>
121486         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
121487         '#if' expressions.  Unlike the code it replaces, it does not
121488         depend on (defined _SC_PAGESIZE).  However, it does depend on
121489         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
121490         first reported by Jason Andrade in
121491         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
121493 2004-02-25  Simon Josefsson  <jas@extundo.com>
121495         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
121497 2004-02-25  Simon Josefsson  <jas@extundo.com>
121499         * lib/strdup.h: New file.
121500         * lib/strdup.c: Include it.
121501         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
121502         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
121504 2004-02-23  Karl Berry  <karl@gnu.org>
121506         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
121507         (from fencepost.gnu.org:/gd/gnuorg).
121509 2004-02-23  Karl Berry  <karl@gnu.org>
121511         * config/srclistvars.sh (GNUORG) [karl]: redefine.
121512         * config/srclist.txt: add maintain/standards documents.
121514 2004-02-18  Bruno Haible  <bruno@clisp.org>
121516         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
121517         Reported by Derek Robert Price <derek@ximbiot.com>.
121519 2004-02-16  Karl Berry  <karl@gnu.org>
121521         * config/mkinstalldirs, install-sh: update from automake.
121523 2004-02-06  Karl Berry  <karl@gnu.org>
121525         * m4/po.m4: update from gettext 0.14.1.
121527 2004-02-06  Karl Berry  <karl@gnu.org>
121529         * lib/config.charset: update from gettext 0.14.1.
121531 2004-02-05  Paul Eggert  <eggert@twinsun.com>
121533         Add comments and code, prompted by suggestions from Bruno Haible
121534         for sh-quote.
121535         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
121536         describing the enum quoting_style values.
121537         * lib/quotearg.c (quotearg_alloc): New function.
121538         (quotearg_buffer_restyled): Treat lone { and } as special.
121539         Treat = as special.  Work around bug with older shells
121540         that "see" a '\' that is really the 2nd byte of a multibyte char.
121541         Quote empty string with shell_quoting_style.
121543 2004-02-03  Bruno Haible  <bruno@clisp.org>
121545         * m4/pipe.m4: New file, from GNU gettext.
121547 2004-02-03  Bruno Haible  <bruno@clisp.org>
121549         * lib/pipe.h: New file, from GNU gettext.
121550         * lib/pipe.c: New file, from GNU gettext.
121552 2004-01-27  Bruno Haible  <bruno@clisp.org>
121554         * m4/execute.m4: New file, from GNU gettext.
121556 2004-01-27  Bruno Haible  <bruno@clisp.org>
121558         * lib/execute.h: New file, from GNU gettext.
121559         * lib/execute.c: New file, from GNU gettext.
121560         * lib/w32spawn.h: New file, from GNU gettext.
121562 2004-01-24  Paul Eggert  <eggert@twinsun.com>
121564         Merge from diffutils.
121566         * lib/file-type.c (file_type): Add typed memory objects.
121567         * lib/file-type.h (S_TYPEISTMO): New macro.
121569         * lib/c-stack.h (c_stack_action): Remove argv argument.
121570         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
121571         (die): Don't calculate message unless segv_action returns.
121572         (get_stack_location, min_address_from_argv, max_address_from_argv,
121573         volatile stack_base, volatile_stack_size): Remove.
121574         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
121575         that every segmentation violation is a stack overflow.  (Ouch!)
121576         See Debian bug 136249 (still outstanding) for more info about why
121577         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
121579 2004-01-24  Paul Eggert  <eggert@twinsun.com>
121581         Exit-status fix from coreutils.
121583         Use exit_failure consistently in place of EXIT_FAILURE,
121584         so that program exit statuses are consistent on failure.
121586         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
121587         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
121588         * lib/argmatch.h: Comment fix to match the above.
121589         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
121590         Now a macro referring to exit_failure, instead of a separate
121591         variable.  Include "exitfail.h" to get it.
121592         * lib/xstrtol.h: Include "exitfail.h".
121593         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
121595         * lib/long-options.c (parse_long_options): Use prototype
121596         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
121597         for clarity.
121599 2004-01-21  Jim Meyering  <jim@meyering.net>
121601         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
121602         so as not to conflict with a different-sized __mktime_internal
121603         function in GNU libc.
121604         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
121605         Problem building statically-linked `ls' reported by Michael Brunnbauer.
121607 2004-01-20  Karl Berry  <karl@gnu.org>
121609         * config/config.guess: update from config.
121611         * config/srclistvars.sh: GNUWWWLICENSES for karl.
121613 2004-01-20  Bruno Haible  <bruno@clisp.org>
121615         Safer stack allocation.
121616         * lib/setenv.c: Include allocsa.h.
121617         (alloca): Remove fallback definition.
121618         (freea): Remove macro.
121619         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
121620         instead of freea.
121622 2004-01-20  Bruno Haible  <bruno@clisp.org>
121624         * m4/eealloc.m4: New file, from GNU gettext.
121626 2004-01-20  Bruno Haible  <bruno@clisp.org>
121628         * m4/allocsa.m4: New file, from GNU gettext.
121630 2004-01-20  Bruno Haible  <bruno@clisp.org>
121632         * lib/xallocsa.h: New file, from GNU gettext.
121633         * lib/xallocsa.c: New file, from GNU gettext.
121635 2004-01-20  Bruno Haible  <bruno@clisp.org>
121637         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
121639 2004-01-20  Bruno Haible  <bruno@clisp.org>
121641         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
121642         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
121643         specially.
121645 2004-01-20  Bruno Haible  <bruno@clisp.org>
121647         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
121648         patch.
121650 2004-01-20  Bruno Haible  <bruno@clisp.org>
121652         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
121654 2004-01-20  Bruno Haible  <bruno@clisp.org>
121656         * lib/eealloc.h: New file.
121658 2004-01-20  Bruno Haible  <bruno@clisp.org>
121660         * lib/binary-io.h: Avoid warnings on Cygwin.
121662 2004-01-20  Bruno Haible  <bruno@clisp.org>
121664         * lib/allocsa.h: New file, from GNU gettext.
121665         * lib/allocsa.c: New file, from GNU gettext.
121667 2004-01-18  Karl Berry  <karl@gnu.org>
121669         * doc/gpl.texi, doc/lgpl.texi: new files.
121671 2004-01-18  Karl Berry  <karl@gnu.org>
121673         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
121674         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
121676 2004-01-15  Paul Eggert  <eggert@twinsun.com>
121678         Merge from coreutils.
121680         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
121681         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
121682         (gl_DEFAULT_POSIX2_VERSION): Move
121683         the documentation from 'configure' into 'config.hin',
121684         so that 'configure --help' isn't burdened by it and
121685         we don't have to worry about its formatting there.
121686         Reword the documentation so that it's more succinct
121687         and can be run together into a single paragraph.
121688         * m4/same.m4 (gl_SAME): Check for pathconf.
121690 2004-01-15  Paul Eggert  <eggert@twinsun.com>
121692         Merge from coreutils.
121694         * lib/posixver.c: Include posixver.h.
121696         * lib/same.c: Include <stdbool.h>, <limits.h>.
121697         (_POSIX_NAME_MAX): Define if not defined.
121698         (MIN): New macro.
121699         (same_name): If file names are silently truncated, report
121700         that the file names are the same if they are the same after
121701         the silent truncation.
121703         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
121704         conversion function.
121705         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
121706         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
121707         longer needed.
121709 2004-01-15  Jim Meyering  <jim@meyering.net>
121711         Merge from coreutils.
121713         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
121714         if no library is required.
121715         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
121716         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
121717         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
121718         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
121719         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
121720         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
121721         value, $ac_cv_search_crypt, if it's "none required".
121722         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
121723         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
121724         not gl_FUNC_GETLOADAVG.
121725         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
121726         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
121728 2004-01-15  Jim Meyering  <jim@meyering.net>
121730         Merge from coreutils.
121732         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
121733         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
121734         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
121736         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
121737         optional configure-time default.
121739         * lib/version-etc.c (version_etc_copyright): Update copyright date.
121741         * lib/xreadlink.c (xreadlink): Correct outdated comment.
121743 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
121745         Merge from coreutils.
121747         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
121748         value, $ac_cv_search_nanosleep, if it's "none required".
121750 2004-01-14  Paul Eggert  <eggert@twinsun.com>
121752         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
121753         with like-named macro in fnmatch.c.
121754         (EXT): Use an internal constant instead.
121756         Merge fnmatch patches from glibc.
121757         * lib/fnmatch.c (mbsinit): Remove define.
121758         Add libc_hidden_ver (__fnmatch, fnmatch).
121759         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
121760         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
121762 2004-01-14  Karl Berry  <karl@gnu.org>
121764         * config/install-sh: update from automake.
121766 2004-01-13  Karl Berry  <karl@gnu.org>
121768         * config/install-sh: update from automake.
121770 2004-01-09  Karl Berry  <karl@gnu.org>
121772         * config/install-sh: update from automake.
121774 2004-01-05  Karl Berry  <karl@gnu.org>
121776         * config/config.{sub,guess}: update from config.
121778 2003-12-31  Karl Berry  <karl@gnu.org>
121780         * config/depcomp: update from automake.
121782 2003-12-14  Karl Berry  <karl@gnu.org>
121784         * lib/config.charset: update from gettext-runtime.
121786 2003-12-03  Paul Eggert  <eggert@twinsun.com>
121788         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
121789         Bug reported by Alfred M. Szmidt.
121791 2003-12-03  Bruno Haible  <bruno@clisp.org>
121793         * m4/gettext.m4: Upgrade from gettext-0.13.
121794         * m4/po.m4: Upgrade from gettext-0.13.
121795         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
121796         * m4/intmax.m4: New file, from gettext-0.13.
121797         * m4/printf-posix.m4: New file, from gettext-0.13.
121799 2003-11-29  Karl Berry  <karl@gnu.org>
121801         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
121803 2003-11-25  Paul Eggert  <eggert@twinsun.com>
121804             Bruno Haible  <bruno@clisp.org>
121806         * lib/printf-parse.h: Don't include sys/types.h.
121807         (ARG_NONE): New macro.
121808         (char_directive): Change type of *arg_index fields to size_t.
121809         * lib/printf-parse.c: Don't include sys/types.h.
121810         (SSIZE_MAX): Remove macro.
121811         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
121812         Remove unnecessary overflow check.
121813         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
121814         fields.
121816 2003-11-25  Bruno Haible  <bruno@clisp.org>
121818         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
121820 2003-11-25  Bruno Haible  <bruno@clisp.org>
121822         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
121823         gt_TYPE_SSIZE_T.
121825 2003-11-24  Paul Eggert  <eggert@twinsun.com>
121827         * modules/alloca: Remove dependency on xalloc.
121829 2003-11-24  Paul Eggert  <eggert@twinsun.com>
121831         * lib/alloca.c: Remove dependency on xalloc module.
121832         (xalloc_die): Remove.
121833         (memory_full) [!defined emacs]: New macro.
121834         [!defined emacs]: Don't include xalloc.h.
121835         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
121836         address arithmetic overflows.  Change datatypes a bit to avoid
121837         unnecessary casts.
121839 2003-11-22  Jim Meyering  <jim@meyering.net>
121841         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
121842         s/size/size_t/.
121844 2003-11-21  Karl Berry  <karl@gnu.org>
121846         * config/config.{sub,guess}: update from config.
121848 2003-11-18  Karl Berry  <karl@gnu.org>
121850         * config/config.{sub,guess}: update from config.
121852         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
121854 2003-11-17  Paul Eggert  <eggert@twinsun.com>
121856         * README: Mention that S+T cannot overflow if S is the size of
121857         an existing object and T is sufficiently small.
121859 2003-11-17  Jim Meyering  <jim@meyering.net>
121861         On systems without utime and without a utimes function capable of
121862         dealing with a NULL struct utimbuf* argument, this utime replacement
121863         could -- in unusual circumstances -- leak a file descriptor.
121864         * lib/utime.c: Include <unistd.h> and <errno.h>.
121865         (utime_null): Be sure to close `fd' and to preserve errno.
121866         Reported by Geoff Collyer via Arnold Robbins.
121868 2003-11-17  Bruno Haible  <bruno@clisp.org>
121870         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
121871         (Depends-on): Add xsize.
121873 2003-11-17  Bruno Haible  <bruno@clisp.org>
121875         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
121877 2003-11-17  Bruno Haible  <bruno@clisp.org>
121879         * lib/vasnprintf.c (alloca): Remove fallback definition.
121880         (freea): Remove definition.
121881         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
121882         Reported by Paul Eggert.
121884 2003-11-16  Paul Eggert  <eggert@twinsun.com>
121885             Bruno Haible  <bruno@clisp.org>
121887         Protect against address arithmetic overflow.
121888         * lib/printf-args.h: Include stddef.h.
121889         (arguments): Change type of field 'count' to size_t.
121890         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
121891         'unsigned int' where appropriate.
121892         * lib/printf-parse.h: Include sys/types.h.
121893         (char_directive): Change type of *arg_index fields to ssize_t.
121894         (char_directives): Change type of fields 'count', max_*_length to
121895         size_t.
121896         * lib/printf-parse.c: Include sys/types.h and xsize.h.
121897         (SSIZE_MAX): Define fallback value.
121898         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
121899         instead of 'int' where appropriate. Check a_allocated, d_allocated
121900         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
121901         * lib/vasnprintf.c: Include xsize.h.
121902         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
121903         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
121904         overflow. Avoid wraparound when converting a width or precision from
121905         decimal to binary.
121907 2003-11-16  Bruno Haible  <bruno@clisp.org>
121909         Update from GNU gettext.
121910         * lib/printf-parse.c: Generalize to it can be compiled for wide
121911         strings.
121912         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
121913         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
121914         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
121915         SNPRINTF): New macros.
121916         Don't include <alloca.h> if the file is used inside libintl.
121917         (local_wcslen): New function, for Solaris 2.5.1.
121918         (VASNPRINTF): Use it instead of wcslen.
121920 2003-11-16  Bruno Haible  <bruno@clisp.org>
121922         * lib/xsize.h (xmax): New function.
121923         (xsum, xsum3, xsum4): Declare as "pure" functions.
121925 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121927         * modules/xalloc (Files): Undo latest change, since xalloc.h
121928         no longer needs SIZE_MAX or PTRDIFF_MAX.
121930 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121932         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
121933         gl_PTRDIFF_MAX.
121935 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121937         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
121938         "return", to pacify some unknown compiler.  Problem reported
121939         by Joerg Schilling.
121941 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121943         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
121944         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
121945         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
121946         heuristic is just as accurate as far as we know, and it removes a
121947         dependency on size_max.m4 and ptrdiff_max.m4.
121949 2003-11-11  Bruno Haible  <bruno@clisp.org>
121951         * modules/xsize (Files): Add m4/size_max.m4.
121952         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
121954 2003-11-11  Bruno Haible  <bruno@clisp.org>
121956         * m4/size_max.m4: New file.
121957         * m4/ptrdiff_max.m4: New file.
121958         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
121959         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
121960         (gl_XALLOC): Invoke it.
121962 2003-11-11  Bruno Haible  <bruno@clisp.org>
121964         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
121965         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
121966         defined.
121968 2003-11-10  Paul Eggert  <eggert@twinsun.com>
121970         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
121971         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
121972         rejected some allocations of exactly SIZE_MAX - 2 bytes.
121973         From Bruno Haible.
121974         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
121975         not (size_t) -1, since it's defined here.
121977 2003-11-09  Karl Berry  <karl@gnu.org>
121979         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
121981 2003-11-06  Paul Eggert  <eggert@twinsun.com>
121983         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
121984         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
121985         Reject sizes of exactly SIZE_MAX bytes.
121986         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
121987         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
121989 2003-11-05  Bruno Haible  <bruno@clisp.org>
121991         * lib/xsize.h: Include limits.h, to avoid a possible collision with
121992         SIZE_MAX defined in <limits.h> on Solaris.
121994 2003-11-04  Jim Meyering  <jim@meyering.net>
121996         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
121997         variable names, rather than @VAR@.
121998         * modules/poll: Likewise.
122000 2003-11-04  Bruno Haible  <bruno@clisp.org>
122002         * modules/xsize: New file.
122003         * modules/linebreak: Depend on xsize.
122004         * MODULES.html.sh (func_all_modules): Add xsize.
122006 2003-11-04  Bruno Haible  <bruno@clisp.org>
122008         * m4/xsize.m4: New file.
122010 2003-11-04  Bruno Haible  <bruno@clisp.org>
122012         * lib/xsize.h: New file.
122013         * lib/linebreak.c: Include xsize.h.
122014         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
122015         argument for overflow.
122016         Suggested by Paul Eggert.
122018 2003-11-03  Karl Berry  <karl@gnu.org>
122020         * config/config.{guess,sub}: update from config.
122022 2003-11-03  Jim Meyering  <jim@meyering.net>
122024         * modules/userspec (lib_SOURCES): Add userspec.h.
122025         (Include): Add "userspec.h".
122026         Improve description.
122028 2003-11-03  Jim Meyering  <jim@meyering.net>
122030         * lib/userspec.c: Include "userspec.h".
122031         * lib/userspec.h: New file.
122033 2003-11-03  Bruno Haible  <bruno@clisp.org>
122035         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
122037 2003-11-03  Bruno Haible  <bruno@clisp.org>
122039         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
122040         available, to avoid (extremely rare) race condition.
122041         Suggested by Paul Eggert.
122043 2003-11-02  Karl Berry  <karl@gnu.org>
122045         * config/srclist.txt (vasprintf.c): sync broken, sigh.
122047 2003-10-31  Paul Eggert  <eggert@twinsun.com>
122049         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
122050         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
122051         (read_filesystem_list): Set and use me_type_malloced.
122052         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
122053         whatever the type happens to be), for brevity and consistency.
122054         Check for size calculation overflow on Alphas running OSF/1.
122056 2003-10-31  Jim Meyering  <jim@meyering.net>
122058         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
122060         * lib/linebuffer.c: Include <string.h> for declaration of memset.
122062 2003-10-30  Paul Eggert  <eggert@twinsun.com>
122063             Bruno Haible  <bruno@clisp.org>
122065         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
122066         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
122068 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
122070         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
122071         netbsd*-gnu*.  Suggested by Robert Millan.
122073 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122075         * modules/group-member: Depend on stdbool.
122077 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122079         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
122081 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122083         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
122084         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
122085         after the 'gnu' in these cases.  This fixes some bugs in the
122086         previous change, and is based on suggestions by Robert Millan.
122088 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122090         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
122091         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
122092         no longer needed.
122093         * lib/quotearg.c (quotearg_n_options): Use it.
122094         * lib/group-member.c: Include <stdbool.h>.
122095         (free_group_info): Arg is now const *; don't free arg.
122096         (get_group_info): Now returns bool and accepts struct group_info *,
122097         rather than returning a malloc'ed struct group_info *.
122098         All uses changed.  Check for overflow in internal size calculation.
122100         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
122101         rather than xmalloc/xrealloc.
122102         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
122103         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
122104         conformance bug: the old code used a pointer after freeing the
122105         storage that it addressed.
122106         * lib/hash.c (hash_initialize): Simplify the code by using
122107         xalloc_oversized rather than doing it by hand.
122108         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
122109         the buffer preserved.  Use free and xmalloc instead.
122110         * lib/quotearg.c (quotearg_n_options): Likewise.
122111         Use a simpler test for size overflow.  Don't use xalloc_oversized
122112         because unsigned int might be wider than size_t (!); this suggests
122113         that we should switch from unsigned int to size_t for slot numbers.
122115 2003-10-28  Paul Eggert  <eggert@twinsun.com>
122117         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
122118         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
122119         NetBSD kernels.  Requested by Richard Stallman.
122121 2003-10-27  Paul Eggert  <eggert@twinsun.com>
122123         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
122124         to allocate the returned structure.  Do not allocate a subarray,
122125         as x2nrealloc will do that.
122126         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
122127         instead of xnrealloc.
122128         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
122130 2003-10-27  Bruno Haible  <bruno@clisp.org>
122132         * lib/stdbool_.h: Better support for BeOS.
122134 2003-10-26  Paul Eggert  <eggert@twinsun.com>
122136         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
122137         now uses inline.
122139 2003-10-26  Paul Eggert  <eggert@twinsun.com>
122141         * lib/xalloc.h (xalloc_oversized): New static inline function, for
122142         callers that want to do their own size-overflow checking.  Include
122143         <stdbool.h>, since xalloc_oversized returns bool.
122144         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
122145         to use xalloc_oversized.
122147         Add two functions x2realloc, x2nrealloc, for programs that grow
122148         arrays dynamically by doubling their sizes.
122149         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
122150         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
122151         New functions.
122153         Port to C99 semantics for 'inline' of external functions.
122154         Bug reported by Bruno Haible.
122155         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
122156         with the old contents of xnmalloc.
122157         (xnmalloc, xmalloc): Use it.
122158         (xnrealloc_inline): New static inline function,
122159         with the old contents of xnrealloc.
122160         (xnrealloc, xrealloc): Use it.
122162         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
122163         that.
122165 2003-10-26  Karl Berry  <karl@gnu.org>
122167         * config/srclist.txt (COPYING.DOC): no longer available from
122168         /gd/gnuorg; don't know where the ultimate source is.
122170 2003-10-25  Paul Eggert  <eggert@twinsun.com>
122172         Fix several address-calculation bugs in the hash modules,
122173         plus some minor code cleanup.
122175         * lib/hash.h: Include <stdbool.h>, for bool.
122176         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
122177         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
122178         hash_get_n_entries, hash_get_max_bucket_length,
122179         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
122180         hash_rehash): Use size_t rather than unsigned.
122181         * lib/hash.c (struct hash_table, hash_get_n_buckets,
122182         hash_get_n_buckets_used, hash_get_n_entries,
122183         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
122184         hash_get_entries, hash_do_for_each, hash_string, is_prime,
122185         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
122186         Likewise.
122187         (SIZE_MAX): Define if not defined.
122188         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
122189         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
122190         hash_print):
122191         Use const * when possible.
122192         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
122193         (check_tuning): Fix bug: if tuning parameters were very close to
122194         0 or 1, rounding errors could have caused subscript violations.
122195         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
122196         (hash_initialize): Add 'fail:' label
122197         to free table and return NULL, and use it to simplify code.
122198         Use calloc rather than clearing the storage ourself.
122199         (hash_initialize, hash_rehash): Check for arithmetic overflow in
122200         buffer size calculations.
122201         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
122202         Include <stddef.h>, for size_t.
122203         * lib/hash-pjw.c (hash_pjw): Likewise.
122204         Switch to method described by Bruno Haible.
122205         Include <limits.h>, for CHAR_BIT.
122206         (SIZE_BITS): New macro.
122208 2003-10-23  Paul Eggert  <eggert@twinsun.com>
122210         * m4/getline.m4 (AM_FUNC_GETLINE):
122211         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
122212         hosts.  Problem reported by Derek Robert Price in
122213         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
122214         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
122215         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
122217 2003-10-21  Paul Eggert  <eggert@twinsun.com>
122219         * lib/getndelim2.c (getndelim2): When size calculation overflows,
122220         ceiling the allocation at NMAX bytes rather than silently
122221         discarding input bytes before NMAX is reached.  This makes
122222         a difference only if NMAX exceeds SIZE_MAX / 2.
122224         * lib/obstack.c: Merge from glibc.
122225         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
122226         Add libc_hidden_def (_obstack_newchunk).
122227         (_obstack_free) [! defined _LIBC]: Remove.
122228         [defined _LIBC]: Make a strong alias from obstack_free, rather than
122229         a clone of the function body.
122230         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
122231         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
122233         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
122234         glibc.
122235         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
122236         arg to memcpy.
122238         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
122239         (obstack_ptr_grow_fast, obstack_int_grow_fast):
122240         Don't use lvalue casts, as GCC plans to remove support for them
122241         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
122242         was also present in the non-GCC version, indicating that this
122243         code had always been buggy and had never been widely used.
122244         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
122245         Use the fast variant of each macro, rather than copying the
122246         definiens of the fast variant; that way, we'll be more likely to
122247         catch future bugs in the fast variants.
122249 2003-10-20  Bruno Haible  <bruno@clisp.org>
122251         * modules/wait-process: New file.
122252         * MODULES.html.sh (func_all_modules): Add wait-process.
122254 2003-10-20  Bruno Haible  <bruno@clisp.org>
122256         * m4/wait-process.m4: New file.
122258 2003-10-20  Bruno Haible  <bruno@clisp.org>
122260         * lib/wait-process.h: New file, from GNU gettext.
122261         * lib/wait-process.c: New file, from GNU gettext.
122263 2003-10-19  Jim Meyering  <jim@meyering.net>
122265         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
122266         HPUX 10.20.
122268 2003-10-18  Karl Berry  <karl@gnu.org>
122270         * config/config.guess: update from config.
122272 2003-10-16  Paul Eggert  <eggert@twinsun.com>
122274         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
122275         (getgroups): First arg is int, not size_t.
122276         Don't let 'free' mangle errno.
122278 2003-10-16  Paul Eggert  <eggert@twinsun.com>
122280         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
122282 2003-10-16  Karl Berry  <karl@gnu.org>
122284         * config/config.{guess,sub}: update from config.
122286 2003-10-16  Jim Meyering  <jim@meyering.net>
122288         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
122289         memcpy.
122291 2003-10-15  Paul Eggert  <eggert@twinsun.com>
122293         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
122294         (SIZE_MAX): Remove.
122295         (new_exclude, add_exclude_file): Initial size no longer needs to
122296         be a power of 2.
122297         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
122298         our own address arithmetic overflow checking.
122300         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
122301         (fnmatch): Do not alloca more than 2000 wide characters;
122302         instead, use malloc for large buffers.
122303         Check for address arithmetic overflow, and return -1
122304         with errno set to ENOMEM in that case.
122305         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
122306         (NEW_PATTERN): Do not alloca more than 8000 bytes;
122307         instead, return -1.  Check for address arithmetic overflow.
122309 2003-10-14  Paul Eggert  <eggert@twinsun.com>
122311         Handle invalid suffixes and overflow independently, so that
122312         callers can treat them independently as needed.  Fix some bugs in
122313         suffix handling, e.g., "100k@" was not diagnosed as an invalid
122314         suffix for a human-readable blocksize.  The major caller-visible
122315         change is the addition of a new
122316         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
122317         that both overflow and suffix chars were found.
122319         * lib/human.c (humblock): Don't check separately for invalid suffix
122320         char; that is xstrtoumax's job (now that its bug is fixed).
122321         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
122322         INTMAX_MAX]: New macros.
122323         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
122324         TYPE_MAXIMUM): New macros.
122325         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
122326         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
122327         if overflow occurs, as it's what __strtol does and it's more useful
122328         in practice.
122329         (__xstrtol): If __strtol reports some error other than ERANGE,
122330         reflect it to the caller as LONGINT_INVALID.  If it reports
122331         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
122332         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
122333         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
122334         value.
122335         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
122336         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
122337         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
122338         [defined UINTMAX_MAX]: New macros.
122340 2003-10-14  Bruno Haible  <bruno@clisp.org>
122342         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
122344 2003-10-14  Bruno Haible  <bruno@clisp.org>
122346         * m4/sig_atomic_t: New file, from GNU gettext.
122347         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
122349 2003-10-14  Bruno Haible  <bruno@clisp.org>
122351         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
122352         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
122353         Also use volatile where needed.
122355 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122357         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
122358         Change maintainer from Bruno Haible to 'all'.
122360 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122362         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
122364 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122366         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
122367         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
122368         and define in terms of the other primitives.
122369         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
122370         (SIZE_MAX): Define if not already defined.
122371         (array_size_overflow): New function.
122372         (xalloc_die): Abort instead of exiting if 'error' returns.
122373         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
122374         (xmalloc, xrealloc): Use them.
122375         (xcalloc): Check for address arithmetic overflow.
122376         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
122377         a bit faster than strcpy.
122379 2003-10-10  Simon Josefsson  <jas@extundo.com>
122381         * modules/argp (Depends-on): Add restrict and strcase.
122383 2003-10-10  Simon Josefsson  <jas@extundo.com>
122385         * m4/argp.m4: Add AC_C_INLINE.
122387 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122389         Merge getpass from libc, plus a few fixes.
122391         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
122392         Include <stdbool.h>.
122393         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
122394         __fsetlocking to empty.
122395         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
122396         do include <bits/libc-lock.h>.
122397         Do not include <fcntl.h>; not needed.
122398         [_LIBC]: Include <wchar.h>.
122399         (NOTCANCEL_MODE): New macro.
122400         (flockfile, funlockfile) [_LIBC]: New macros.
122401         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
122402         [!_LIBC]: New macros.
122403         (call_fclose): New function.
122404         (getpass): Use it.  Save tty stream separately; this simplifies the
122405         code and makes it more reliable if stdin happens to equal stdout.
122406         Invoke __fsetlocking on tty.
122407         Handle thread cancellation if needed.
122408         Namespace cleanup (use __tcgetattr, __getline).
122409         Use bool for Booleans.
122410         [USE_IN_LIBIO]: Handle wide streams.
122411         [!_LIBC]: Unconditionally do the fseek, since we don't know what
122412         stream might go where.
122414         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
122415         doesn't have to include <stdio.h> before us.
122416         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
122417         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
122418         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
122419         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
122420         if not declared, so that we can use getpass.c code from libc without
122421         rewriting it.
122422         (flockfile, ftrylockfile, funlockfile): New macros.
122424 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122426         * modules/getpass: Depend on stdbool.
122428 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122430         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
122432 2003-10-07  Karl Berry  <karl@gnu.org>
122434         * config/config.{guess,sub}: update from config.
122436 2003-10-06  Jim Meyering  <jim@meyering.net>
122437             Bruno Haible  <bruno@clisp.org>
122439         This lets translators provide better translations for the
122440         "Written by ..." part of --version output.
122441         * lib/version-etc.h: Include stdarg.h.
122442         (version_etc_copyright): Declare as readonly.
122443         (version_etc): Make this function variadic with a NULL-terminated list
122444         of author name strings.
122445         (version_etc_va): New declaration.
122446         * lib/version-etc.c: Include stdarg.h, stdlib.h.
122447         (version_etc_copyright): Declare as readonly.
122448         (version_etc_va): New function. Provide a different translatable string
122449         for each possible number of authors < 10. Abbreviate when there are 10
122450         authors or more.
122451         (version_etc): Make this function variadic. Call version_etc_va.
122452         Suggestion from Gary V. Vaughan.
122454         * lib/long-options.h (parse_long_options): Change prototype: the
122455         authors string is moved to the end and becomes variadic.
122456         * lib/long-options.c: Include stdarg.h.
122457         (parse_long_options): Make this function variadic, too.
122458         Call version_etc_va, not version_etc.
122460 2003-10-06  Bruno Haible  <bruno@clisp.org>
122462         * modules/version-etc-2: Remove file.
122463         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
122465 2003-10-06  Bruno Haible  <bruno@clisp.org>
122467         * modules/fatal-signal: New file.
122468         * MODULES.html.sh (func_all_modules): Add fatal-signal.
122470 2003-10-06  Bruno Haible  <bruno@clisp.org>
122472         * m4/fatal-signal.m4: New file.
122473         * m4/signalblocking.m4: New file, from GNU gettext.
122475 2003-10-06  Bruno Haible  <bruno@clisp.org>
122477         * lib/version-etc-2.h: Remove file.
122478         * lib/version-etc-2.c: Remove file.
122480 2003-10-06  Bruno Haible  <bruno@clisp.org>
122482         * lib/fatal-signal.h: New file, from GNU gettext.
122483         * lib/fatal-signal.c: New file, from GNU gettext.
122485 2003-10-05  Paul Eggert  <eggert@twinsun.com>
122487         * README: Rework advice for preventing empty .o files.
122488         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
122489         not <sys/types.h>.
122491 2003-10-04  Karl Berry  <karl@gnu.org>
122493         * lib/argp*: update from libc.
122495 2003-10-04  Karl Berry  <karl@gnu.org>
122497         * config/config.{guess,sub}: update from config.
122499 2003-10-02  Bruno Haible  <bruno@clisp.org>
122501         * modules/lchown (Include): Add lchown.h.
122502         * modules/time_r (Include): Use "..." syntax.
122503         * modules/xgetdomainname (Include): Add xgetdomainname.h.
122505 2003-10-01  Simon Josefsson  <jas@extundo.com>
122507         * MODULES.html.sh (func_all_modules): Move gethostname from section
122508         'based on' to section 'lacking' POSIX:2001.
122510 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
122512         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
122513         to output mode on the same stream.
122515 2003-09-29  Paul Eggert  <eggert@twinsun.com>
122517         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
122518         Fix arg typo in previous patch.
122520 2003-09-28  Jim Meyering  <jim@meyering.net>
122522         * lib/error.c: Correct cpp indentation.
122524 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122526         * modules/free: New file.
122528 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122530         * m4/free.m4: New file.
122532 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122534         * lib/minmax.h (MIN, MAX)
122535         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
122536         Omit the special code that used __typeof__, since we worry that
122537         it could be more trouble than it's worth.  See:
122538         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
122539         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
122541         * lib/free.c: New file.
122543 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
122545         Trivial fixes to Makefile.am parts of module listings.
122546         * modules/strstr: Append strstr.h to lib_SOURCES.
122547         * modules/strcase: Likewise, for strcase.h.
122549 2003-09-27  Karl Berry  <karl@gnu.org>
122551         * config/mkinstalldirs: update from automake.
122553 2003-09-26  Paul Eggert  <eggert@twinsun.com>
122555         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
122556         (error_tail): Do not loop, reallocating temporary buffer, since
122557         the output cannot contain more wide characters than the input
122558         contains bytes, the size must be big enough already.  This avoids
122559         one potential size overflow calculation.  Check for size overflow
122560         when calculating temporary buffer size.  Free temporary buffer
122561         when done, if it was allocated with malloc; this plugs a memory
122562         leak.  Remove casts from void * to pointers, that are no longer
122563         needed now that we're assuming C89 or better.
122565         Merge error changes from glibc.
122567         * lib/error.c, error.h: Update copyright notice header to match glibc.
122568         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
122569         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
122570         Disable cancellation while printing error.
122571         * lib/error.h: Prepend __ to parameter names.
122573 2003-09-26  Jim Meyering  <jim@meyering.net>
122575         * lib/error.c (error_tail): Move some declarations
122576         into inner scope where the local variables are used.
122578 2003-09-26  Bruno Haible  <bruno@clisp.org>
122580         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
122581         stpncpy().
122582         Don't define stpncpy through config.h; it's now done through stpncpy.h.
122584 2003-09-26  Bruno Haible  <bruno@clisp.org>
122586         * lib/stpncpy.h (gnu_stpncpy): New declaration.
122587         (stpncpy): Define as alias for gnu_stpncpy.
122588         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
122590 2003-09-25  Simon Josefsson  <jas@extundo.com>
122592         * lib/xgetdomainname.h: New file.
122593         * lib/xgetdomainname.c: New file.
122595 2003-09-25  Simon Josefsson  <jas@extundo.com>
122596             Bruno Haible  <bruno@clisp.org>
122598         * modules/getdomainname: New file.
122599         * modules/xgetdomainname: New file.
122600         * MODULES.html.sh (func_all_modules): Add getdomainname,
122601         xgetdomainname.
122603 2003-09-25  Simon Josefsson  <jas@extundo.com>
122604             Bruno Haible  <bruno@clisp.org>
122606         * m4/getdomainname.m4: New file.
122608 2003-09-25  Simon Josefsson  <jas@extundo.com>
122609             Bruno Haible  <bruno@clisp.org>
122611         * lib/getdomainname.h: New file.
122612         * lib/getdomainname.c: New file.
122614 2003-09-25  Karl Berry  <karl@gnu.org>
122616         * lib/argp-fmtstream.c, argp-help.c: update from libc.
122618 2003-09-25  Karl Berry  <karl@gnu.org>
122620         * config/install-sh: update from automake.
122622 2003-09-25  Bruno Haible  <bruno@clisp.org>
122624         * modules/version-etc-2: New file, from modules/version-etc with
122625         modifications.
122626         * MODULES.html.sh (func_all_modules): Add version-etc-2.
122628 2003-09-25  Bruno Haible  <bruno@clisp.org>
122630         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
122631         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
122633 2003-09-24  Simon Josefsson  <jas@extundo.com>
122635         * modules/xgethostname: Add xgethostname.h.
122637 2003-09-24  Paul Eggert  <eggert@twinsun.com>
122639         * lib/linebuffer.c (freebuffer): Don't free the argument, just
122640         the buffer associated with the argument.  Bug reported by
122641         Simon Josefsson.
122643 2003-09-24  Paul Eggert  <eggert@twinsun.com>
122645         * README: Document assumptions that 'int' is at least 32 bits
122646         wide, that integer arithmetic is 2's complement without overflow,
122647         that there are no holes in integer values, that adding sizes of
122648         two nonoverlapping objects can't overflow, and that all-bits-zero
122649         yields scalar zero.  Fix spelling and capitalization typos.
122651 2003-09-19  Karl Berry  <karl@gnu.org>
122653         * lib/argp.h: update from libc.
122655 2003-09-17  Paul Eggert  <eggert@twinsun.com>
122657         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
122658         to avoid spurious warnings like "AC_RUN_IFELSE was called before
122659         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
122661 2003-09-17  Paul Eggert  <eggert@twinsun.com>
122663         * gnulib-tool: Use "test -h", not "test -L", for portability
122664         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
122665         (tags_regexp): Remove, since \| doesn't conform to POSIX.
122666         (sed_extract_prog): Issue s commands one-by-one, rather than
122667         using \| in one s command.
122669 2003-09-16  Paul Eggert  <eggert@twinsun.com>
122671         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
122672         input error, instead of returning NULL the next time we are called
122673         (and therefore losing track of errno).
122675 2003-09-16  Bruno Haible  <bruno@clisp.org>
122677         * gnulib-tool (func_create_testdir): Warn about duplicated
122678         dependencies.
122680 2003-09-15  Paul Eggert  <eggert@twinsun.com>
122682         * modules/argmatch, modules/fatal, modules/obstack,
122683         modules/xalloc, modules/xgethostname: Sort dependencies by
122684         importance, not alphabetically.
122686 2003-09-15  Paul Eggert  <eggert@twinsun.com>
122688         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
122689         fails, so that the caller gets the proper errno.
122691         * lib/readutmp.c (read_utmp): Likewise.
122692         Check for fstat error.  Close stream and free storage
122693         when failing.
122695 2003-09-14  Karl Berry  <karl@gnu.org>
122697         * config/srclist.txt (strdup.c): disable for c89 changes.
122699 2003-09-14  Jim Meyering  <jim@meyering.net>
122701         * lib/getloadavg.c: Correct cpp indentation.
122702         * lib/strdup.c: Likewise.
122703         * lib/vasnprintf.c: Likewise.
122705 2003-09-14  Bruno Haible  <bruno@clisp.org>
122707         * modules/fwriteerror: New file.
122708         * MODULES.html.sh (func_all_modules): Add fwriteerror.
122710 2003-09-14  Bruno Haible  <bruno@clisp.org>
122712         * lib/fwriteerror.h: New file.
122713         * lib/fwriteerror.c: New file.
122715 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122717         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
122718         modules/xgethostname, modules/xalloc: Depend on exit.
122720 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122722         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
122724         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
122725         and AC_MINIX, too, so that their extensions are available.
122727         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
122728         This macro has been superseded by gl_BACKUPFILE.
122730         More patches to assume C89 or better.
122732         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
122734         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
122735         unconditionally.
122736         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
122737         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
122738         Include <string.h>, <stdlib.h> unconditionally.
122739         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
122740         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
122741         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
122742         headers or for string.h.
122743         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
122744         or strtoul.
122746         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
122747         headers.
122748         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
122749         * m4/userspec.m4 (gl_USERSPEC): Likewise.
122750         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
122751         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
122752         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
122753         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
122754         memcpy, memset.
122755         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
122756         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
122757         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
122758         strtol.
122759         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
122760         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
122761         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
122762         strtoul.
122764 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122766         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
122767         * lib/obstack.c [!defined _LIBC]: Likewise.
122768         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
122769         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
122770         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
122772         More changes to assume C89 or better.
122774         * lib/error.c (error_tail): Assume vprintf.
122776         * lib/argmatch.c (getenv): Remove decl.
122777         * lib/progreloc.c (get_full_program_name): Define via prototype.
122778         * lib/setenv.c (clearenv): Likewise.
122779         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
122780         needed.
122781         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
122782         (malloc, memcpy): Remove decls.
122783         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
122784         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
122785         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
122786         (memcpy): Remove macro.
122787         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
122788         (__P): Remove.  All uses removed.
122789         (PTR): Remove.  All uses changed to void *.
122790         (CHAR_BIT, NULL): Remove.
122791         (spaces, zeros, memset_space, memset_zero)
122792         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
122793         Remove.
122794         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
122795         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
122796         Define with prototype.
122797         Remove now-unnecessary prototype decl.
122798         (extra_args_spec): Assume ANSI C.  All uses changed.
122799         (extra_args_spec_iso): Remove.
122800         (my_strftime, emacs_strftimeu): Define via prototype.
122801         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
122802         unconditionally.
122803         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
122804         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
122805         (strtoul, strtol): Remove decls.
122806         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
122807         LONG_MAX): Remove.
122808         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
122809         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
122810         (LOCALE_PARAM_PROTO): New macro.
122811         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
122812         (INTERNAL (strtol), strtol): Define with a prototype.
122813         (PARAMS): Remove.  All uses removed.
122814         * lib/tempname.c: Include <string.h> unconditionally.
122815         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
122816         * lib/xgethostname.c (main): Define with a prototype.
122817         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
122818         Include <stdlib.h> unconditionally.
122819         (calloc, malloc, realloc, free): Remove decls.
122820         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
122821         Include <stdlib.h> unconditionally.  Sort include file names.
122822         (strtod): Remove.
122823         (xstrtod): Define with a prototype.
122824         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
122825         (strtol, strtoul): Remove decls.
122827 2003-09-11  Paul Eggert  <eggert@twinsun.com>
122829         More patches to assume C89 or better.
122830         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
122831         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
122832         string.h, memchr, STDC_HEADERS.
122834 2003-09-11  Paul Eggert  <eggert@twinsun.com>
122836         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
122837         Include <stdlib.h>, <string.h> unconditionally.
122838         Remove now-unnecessary cast to char *.
122839         * lib/strnlen.c: Include <string.h> unconditionally.
122840         * lib/yesno.c (yesno): Define with a prototype.
122842 2003-09-11  Bruno Haible  <bruno@clisp.org>
122844         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
122846 2003-09-10  Jim Meyering  <jim@meyering.net>
122848         * lib/error.c: Correct indentation of cpp directives.
122850 2003-09-10  Bruno Haible  <bruno@clisp.org>
122852         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
122853         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
122854         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
122855         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
122856         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
122857         <stdlib.h> and <string.h> checks.
122858         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
122859         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
122861 2003-09-10  Bruno Haible  <bruno@clisp.org>
122863         * lib/strcspn.c: Include <string.h> unconditionally.
122864         * lib/strpbrk.c: Include <string.h> unconditionally.
122865         * lib/strstr.c: Include <string.h> unconditionally.
122866         * lib/unicodeio.c: Include <string.h> unconditionally.
122867         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
122868         * lib/unsetenv.c: Likewise.
122869         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
122870         * lib/yesno.c: Include <stdlib.h> unconditionally.
122871         (rpmatch): Add prototype.
122873 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122875         More patches to assume C89 or better.
122876         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
122877         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
122878         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
122879         or for string.h.
122880         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
122881         stdlib.h.
122882         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
122883         C headers.
122884         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
122885         string.h.
122886         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
122887         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
122888         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
122889         or for string.h.
122890         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
122891         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
122892         C headers.
122893         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
122894         memcpy.
122895         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
122896         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
122897         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
122898         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
122899         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
122900         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
122901         string.h, free.
122902         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
122903         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
122904         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
122905         C headers, or for string.h.
122906         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
122907         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
122908         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
122909         headers, memory.h, stdlib.h, string.h, strings.h.
122910         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
122911         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
122912         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
122913         strchr.
122914         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
122915         headers, memory.h, string.h.
122916         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
122917         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
122918         free.
122919         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
122920         headers.
122921         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
122922         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
122923         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
122924         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
122925         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
122927 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122929         More K&R removal.
122931         * lib/acosl.c (main): Use a prototype.
122932         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
122933         tanl.c: Likewise.
122935         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
122937         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
122938         (getopt, etopt_long, getopt_long_only, _getopt_internal)
122939         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
122940         with a prototype.
122941         * lib/getopt.c (const): Remove macro.
122942         Include <string.h> unconditionally.
122943         (my_index): Remove; all uses changed to strchr.
122944         (strlen): Remove decl.
122945         (exchange): Remove forward decl; no longer needed.
122946         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
122947         Define with prototype.
122948         * lib/getopt1.c (const): Remove macro.
122949         (getopt_long, getopt_long_only, main): Define with prototype.
122951         * lib/getugroups.c: Include <string.h> unconditionally.
122953         * lib/getusershell.c: Include <stdlib.h> unconditionally.
122954         (getusershell, setusershell, endusershell, readname, main):
122955         Define with prototypes.
122957         * lib/group-member.c: Include group-member.h first.
122958         Include <stdlib.h> unconditionally.
122960         * lib/hard-locale.c: Include hard-locale.h first.
122961         Include <stdlib.h>, <string.h> unconditionally.
122963         * lib/hash.c (free, malloc): Remove decls.
122964         Include <stdlib.h> unconditionally.
122966         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
122967         (getenv): Do not declare.
122969         * lib/idcache.c: Include <string.h> unconditionally.
122971         * lib/long-options.c: Include long-options.h first, to test interface.
122972         Include <stdlib.h> unconditionally.
122974         * lib/makepath.c: Include makepath.h first, to test interface.
122975         Include <stdlib.h> and <string.h> unconditionally.
122977         * lib/linebuffer.c: Include <stdlib.h>.
122978         (free): Remove decl.
122980         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
122981         stddef.h. rpl_malloc returns void *, not char *.
122982         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
122983         prototype.
122985         * lib/md5.h: Include <limits.h> unconditionally.
122986         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
122987         (__P): Remove; all uses removed.
122988         * lib/md5.c: Include "md5.h" first.
122989         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
122990         md5_buffer, md5_process_bytes, md5_process_block):
122991         Define with prototypes.
122992         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
122993         * lib/sha.c: Include "sha.h" first.
122994         Include <stdlib.h>, <string.h> unconditionally.
122996         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
122997         * lib/memcmp.c (__ptr_t): Likewise.
122998         * lib/memrchr.c (__ptr_t): Likewise.
122999         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
123000         Include <string.h> unconditionally.
123001         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
123002         * lib/memchr.c: Include <stdlib.h> unconditionally.
123003         * lib/memchr.c (LONG_MAX): Remove.
123004         * lib/memrchr.c (LONG_MAX): Likewise.
123005         * lib/memchr.c (__memchr): Define via a prototype.
123006         * lib/memrchr.c (__memrchr): Likewise.
123007         * lib/memcmp.c (__P): Remove, and remove all uses.
123008         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
123009         Remove forward decls; no longer needed.
123010         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
123011         Use types required by C89 in prototype.
123013         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
123014         * lib/savedir.c: Likewise.
123015         * lib/mkdir.c (free): Remove decl.
123016         * lib/rmdir.c (rmdir): Define with a prototype.
123017         * lib/savedir.c: Include savedir.h first, to test interface.
123019         * lib/mktime.c (STDC_HEADERS): Remove.
123020         Include <stdlib.h>, <string.h> unconditionally.
123022         * lib/modechange.c: Include <stdlib.h> unconditionally.
123023         (malloc): Remove decl.
123025         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
123026         (free): Remove decl.
123028         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
123029         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
123030         (This type really should be intptr_t, but that's a C99ism.)
123031         (_obstack_memcpy): Remove: all uses changed to memcpy.
123032         Include <string.h> unconditionally.
123033         (struct obstack): Assume __STDC__ for types of members
123034         chunkfun, freefun, extra_arg.
123035         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
123036         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
123037         obstack_begin, obstack_specify_allocation,
123038         obstack_specify_allocation_with_arg, obstack_chunkfun,
123039         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
123040         Remove unprototyped decls and the macros that use them.
123041         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
123042         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
123043         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
123044         (defined __STDC__ && __STDC__)]:
123045         Remove nonprototyped code.
123046         Include <stdlib.h> unconditionally.
123047         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
123048         _obstack_allocated_p, _obstack_free, obstack_free,
123049         _obstack_memory_used, print_and_abort):
123050         Define using prototypes.
123051         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
123052         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
123053         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
123054         obstack_next_free, obstack_object_size, obstack_room) [0]:
123055         Remove unused, unprototyped code.
123057         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
123059         * lib/physmem.c (physmem_total, physmem_available, main): Define
123060         with prototypes.
123062         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
123063         (main): Define with a prototype.
123065         * lib/posixver.c (getenv): Remove decl.
123067         * lib/putenv.c (malloc): Returns void *, not char *.
123068         Include <string.h> unconditionally.
123069         (strchr, memcpy, NULL): Do not define.
123071         * lib/readtokens.c: Include readtokens.h first, to test interface.
123072         Include <stdlib.h>, <string.h> unconditionally.
123073         (init_tokenbuffer): Define with a prototype.
123075         * lib/regex.c (PARAMS): Remove.  All uses removed.
123076         All uses of _RE_ARGS removed, too.
123077         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
123078         unconditionally.
123079         (bzero): Assume memset exists.
123080         (memcmp, memcpy, NULL): Remove.
123081         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
123082         char, or assignments to local vars of type signed char.
123083         (init_syntax_once, PREFIX(extract_number_and_incr),
123084         PREFIX(print_partial_compiled_pattern),
123085         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
123086         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
123087         PREFIX(regex_grow_registers), PREFIX(regex_compile),
123088         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
123089         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
123090         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
123091         wcs_compile_range, byte_compile_range, truncate_wchar,
123092         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
123093         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
123094         count_mbs_length, wcs_re_match_2_internal,
123095         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
123096         PREFIX(alt_match_null_string_p),
123097         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
123098         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
123099         regfree, PREFIX(extract_number)): Define with prototype.  Remove
123100         now-unnecessary declaration, if any.
123101         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
123102         regcomp, regexec):
123103         Remove now-unnecessary casts among pointer types.
123104         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
123106         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
123107         (free): Remove decl.
123109         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
123111         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
123112         (free): Remove decl.
123114         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
123115         * lib/xgetcwd.c: Likewise.
123117         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
123118         (free): Remove decl.
123120         * lib/strchrnul.c (strchrnul): Define with a prototype.
123121         Fix bug: c_in was not converted to char before searching.
123123         The following changes are not K&R related:
123125         * lib/group-member.h: Include <sys/types.h>, so that this file is
123126         self-contained.
123127         * lib/makepath.h: Likewise.
123129         * lib/getusershell.c (readname, default_index, line_size, readname):
123130         Use size_t, not int, for sizes.
123131         (readname): If the size overflows, report an error instead of
123132         looping forever.
123134 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123136         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
123137         libc.
123139 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123141         * README: New section: portability guidelines.
123143 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
123145         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
123146         C89 spec.
123148 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
123150         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
123152 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123154         Assume C89 or better; remove K&R cruft.
123155         A few of these changes were first proposed by Derek Robert Price
123156         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
123158         * lib/addext.c: Include <string.h> unconditionally.
123159         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
123160         Don't declare getenv or malloc.
123162         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
123163         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
123164         (NULL): Remove.
123165         (find_stack_direction, alloca): Use prototypes.
123167         * lib/atexit.c (atexit): Define using a prototype.
123169         * lib/basename.c, dirname.c, stripslash.c:
123170         Include <string.h> unconditionally.
123172         * lib/bcopy.c: Include <stddef.h>.
123173         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
123175         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
123177         * lib/error.h (error, error_at_line, error_print_progname)
123178         [! (defined (__STDC__) && __STDC__)]: Remove decls.
123179         * lib/error.c: Include error.h first, to check interface.
123180         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
123181         (VA_START): Remove; all uses changeed to va_start.
123182         (exit, strerror): Remove decls.
123183         (error_print_progname): Prototype uncondionally.
123184         Don't include <errno.h>; no longer needed.
123185         (private_strerror): Remove.
123186         (error_tail): Always define.
123187         (error, error_at_line): Assume C89 or better; always use prototypes.
123188         * lib/fatal.c: Include "fatal.h" first, to test interface.
123189         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
123190         (VA_START): Remove; all uses changed to va_start.
123191         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
123192         this case.
123193         (exit): Remove decl.
123194         (fatal): Prototype unconditionally.  Assume va_start works.
123195         Abort at end, to pacify gcc.
123197         * lib/euidaccess.c (main): Define with a prototype.
123199         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
123201         * lib/exitfail.c: Include <stdlib.h> unconditionally.
123203         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
123204         prototypes.
123205         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
123206         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
123207         (getenv): Remove decl.
123208         (fnmatch): Define using a prototype.
123209         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
123210         (FCT): Define using a prototype.
123212         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
123214         * lib/gethostname.c: Include <stddef.h>.
123215         (gethostname): Define with prototype.  Length is size_t, not int.
123217 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123219         Assume C89 or better; remove K&R cruft.
123220         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
123221         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
123222         string.h, getenv, malloc.
123223         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
123224         headers.
123225         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
123226         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
123227         do not check for strerror.
123228         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
123229         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
123230         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
123231         do not check for doprnt or vprintf.
123232         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
123233         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
123235 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123237         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
123238         getversion.c should have been removed then, but was accidentally
123239         preserved.
123241         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
123242         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
123244 2003-09-08  Karl Berry  <karl@gnu.org>
123246         * config/config.sub, config.guess, srclistvars.sh: update from savannah
123247                 config, forget about prep.
123249         * config/depcomp, missing: update from automake.
123251 2003-09-07  Paul Eggert  <eggert@twinsun.com>
123253         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
123254         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
123256 2003-09-07  Paul Eggert  <eggert@twinsun.com>
123258         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
123259         copy_tm_result.  Bug reported by Simon Josefsson in
123260         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
123262 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123264         * m4/time_r.m4: New file.
123265         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
123266         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
123267         is. Check for timegm declaration.
123268         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
123269         Do not check for gmtime_r.
123270         Replace mktime if __mktime_internal does not exist and if mktime
123271         hasn't been replaced already.
123273 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123275         * lib/time_r.c, lib/time_r.h: New files.
123277         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
123278         __localtime_r.
123279         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
123280         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
123282         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
123283         __gmtime_r.
123284         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
123285         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
123286         Include <time_r.h>.
123288         * lib/timegm.c: Switch to glibc implementation, with the following
123289         changes:
123290         [defined HAVE_CONFIG_H]: Include <config.h>.
123291         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
123292         (__mktime_internal) [!defined _LIBC]: New decl.
123293         (__gmtime_r) [!defined _LIBC]: New macro and function.
123294         (timegm): Use a prototype, since gnulib assumes C89.
123295         Do not bother declaring tmp to be const, as it's not really usefu.
123296         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
123297         (timegm): Declare only if HAVE_DECL_TIMEGM.
123299 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123301         * MODULES.html.sh (func_all_modules): Add time_r.
123302         * modules/time_r: New file.
123303         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
123304         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
123306 2003-09-03  Paul Eggert  <eggert@twinsun.com>
123308         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
123309         Bug reported by Lute Kamstra in
123310         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
123312         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
123313         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
123314         course with correspondingly smaller numbers for tomorrow and
123315         yesterday.  From Tadayoshi Funaba.  Originally installed into
123316         sh-utils on 1999-08-07, but the patch got lost (I guess during the
123317         coreutils merge?).
123319 2003-08-31  Simon Josefsson  <jas@extundo.com>
123321         * modules/timegm: New file.
123322         * MODULES.html.sh (func_all_modules): Add timegm.
123324 2003-08-31  Simon Josefsson  <jas@extundo.com>
123326         * m4/timegm.m4: New file.
123328 2003-08-31  Simon Josefsson  <jas@extundo.com>
123330         * lib/timegm.h: New file.
123331         * lib/timegm.c: New file.  Based on
123332         wget-1.8.2/src/http.c:mktime_from_utc.
123334 2003-08-31  Karl Berry  <karl@gnu.org>
123336         * lib/argp.h: update from libc.
123338 2003-08-28  Bruno Haible  <bruno@clisp.org>
123340         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
123341         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
123342         followed by '#define fnmatch fnmatch_posix' gives an error.
123344 2003-08-28  Bruno Haible  <bruno@clisp.org>
123346         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
123347         warning on QNX, which defines O_BINARY to 000000.
123349 2003-08-27  Jim Meyering  <jim@meyering.net>
123351         * m4/mkstemp.m4: Require that the system mkstemp be able to create
123352         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
123353         would fail after 32.  Reported by Danny Levinson.  Details here:
123354         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
123356 2003-08-24  Bruno Haible  <bruno@clisp.org>
123358         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
123359         MSVC7 <stdio.h> is included later.
123361 2003-08-22  Simon Josefsson  <jas@extundo.com>
123363         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
123365 2003-08-20  Karl Berry  <karl@gnu.org>
123367         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
123369 2003-08-20  Bruno Haible  <bruno@clisp.org>
123371         * modules/progname: New file.
123372         * MODULES.html.sh (func_all_modules): Add progname.
123374 2003-08-20  Bruno Haible  <bruno@clisp.org>
123376         * lib/progname.h: New file, from GNU gettext.
123377         * lib/progname.c: New file, from GNU gettext.
123378         * lib/progreloc.c: New file, from GNU gettext.
123380 2003-08-19  Jim Meyering  <jim@meyering.net>
123382         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
123383         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
123385 2003-08-19  Bruno Haible  <bruno@clisp.org>
123387         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
123388         more.
123390 2003-08-19  Bruno Haible  <bruno@clisp.org>
123392         * lib/xstrdup.c: Assume <string.h> exists.
123394 2003-08-18  Paul Eggert  <eggert@twinsun.com>
123396         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
123397         in makefile rules.
123399 2003-08-18  Jim Meyering  <jim@meyering.net>
123401         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
123402         * m4/lib-ld.m4: Likewise.
123404 2003-08-18  Jim Meyering  <jim@meyering.net>
123406         * lib/setenv.h: Indent nested cpp directive.
123407         * lib/vasnprintf.c: Remove trailing blanks.
123409 2003-08-17  Simon Josefsson  <jas@extundo.com>
123411         * modules/xstrndup: New file.
123412         * MODULES.html.sh (func_all_modules): Add xstrndup.
123414 2003-08-17  Simon Josefsson  <jas@extundo.com>
123416         * modules/argp: Fix autoconf macro name. Add more dependencies.
123418 2003-08-17  Simon Josefsson  <jas@extundo.com>
123420         * m4/xstrndup.m4: New file.
123422 2003-08-17  Simon Josefsson  <jas@extundo.com>
123424         * m4/argp.m4: New file.
123426 2003-08-17  Simon Josefsson  <jas@extundo.com>
123427             Bruno Haible  <bruno@clisp.org>
123429         * lib/xstrndup.h: New file.
123430         * lib/xstrndup.c: New file.
123432 2003-08-17  Bruno Haible  <bruno@clisp.org>
123434         * modules/strndup (Files, Include): Add lib/strndup.h.
123436 2003-08-17  Bruno Haible  <bruno@clisp.org>
123438         * modules/euidaccess (Files): Add lib/euidaccess.h.
123440 2003-08-17  Bruno Haible  <bruno@clisp.org>
123442         * lib/strndup.h: New file.
123444 2003-08-17  Bruno Haible  <bruno@clisp.org>
123446         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
123447         like AC_GNU_SOURCE.
123448         * modules/extensions (configure.ac): Comment out the invocation of
123449         gl_USE_SYSTEM_EXTENSIONS.
123451 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123453         Merges from coreutils, etc.
123454         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
123455         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
123456         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
123457         fixing a typo.
123458         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
123459         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
123461 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123463         Document merge from coreutils.
123464         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
123465         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
123466         * modules/utime: Add m4/utimes-null.m4.
123468 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123470         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
123471         space, undoing this 2003-08-12 change:
123472         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
123474 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123476         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
123477         strtoul.c from libc, undoing this 2003-08-12 change:
123478         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
123480 2003-08-16  Jim Meyering  <jim@meyering.net>
123482         Merges from coreutils.
123483         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
123484         prefix.  Adjust cache variables similarly.  Create 500 rather than
123485         just 300 files, to exercise bug on Darwin6.5, too.
123486         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
123487         $missing_dir.
123488         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
123489         AM_SYS_POSIX_TERMIOS.
123490         Reported by mkc@mathdogs.com.
123491         Also change use of $am_cv_sys_posix_termios
123492         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
123493         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
123494         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
123495         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
123496         in /proc/mounts until it finds one with matching device number.  This
123497         is unnecessary when the FILE argument *is* a mount point.  No stat call
123498         is necessary in that case.  So, disable the statvfs-testing code on
123499         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
123500         as RedHat bug# 84846.
123501         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
123502         to 1MB, so as not to render systems with no stack size limit (e.g.,
123503         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
123504         Include <unistd.h>.  On some systems,
123505         it is required for the definition of _SC_PAGESIZE.
123507 2003-08-16  Jim Meyering  <jim@meyering.net>
123509         Merge from coreutils.
123510         * lib/xstrtoimax.c: #else #if -> #elif.
123511         * lib/xstrtoumax.c: Likewise.
123513 2003-08-16  Jim Meyering  <jim@meyering.net>
123515         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
123516         * m4/utimes.m4: Removed.
123517         * m4/utimes-null.m4: Renamed from utimes.m4.
123519         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
123520         to 1MB, so as not to render systems with no stack size limit (e.g.,
123521         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
123522         Include <unistd.h>.  On some systems,
123523         it is required for the definition of _SC_PAGESIZE.
123525 2003-08-16  Jim Meyering  <jim@meyering.net>
123526         and Paul Eggert  <eggert@cs.ucla.edu>
123528         Merges from coreutils, etc.
123530         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
123531         using the latest version from cvs.  This avoids problems with #line
123532         directives using a vendor (Sun) compiler.
123533         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
123534         Don't set GETGROUPS_LIB here; now it's
123535         done via getgroups.m4's wrapper function.
123536         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
123537         rather than just in sh-util/configure.in, so that the
123538         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
123539         same.
123540         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
123541         AC_FUNC_GETLOADAVG where to find getloadavg.c.
123542         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
123543         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
123544         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
123545         Remove code that is now done by the newly-required macros.
123546         Append $(EXEEXT) to DF_PROG.
123547         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
123548         Do not invoke or require the following here,
123549         since prereq.m4 or some gnulib .m4 now does this for us:
123550         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
123551         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
123552         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
123553         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
123554         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
123555         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
123556         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
123557         AC_FUNC_OBSTACK.
123558         Do not replace the following functions, as this is now the job
123559         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
123560         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
123561         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
123562         atexit getpass, strdup, getpagesize.
123563         Replace 'raise'.
123564         Do not check for the following functions, as this is now the job
123565         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
123566         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
123567         setregid.
123568         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
123569         Check for sys/sysctl.h.
123570         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
123571         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
123572         of checking for ssize_t ourselves.
123574         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
123575         Require every macro that gnulib/modules/* suggests for us.
123576         (jm_PREREQ_ADDEXT): New macro.
123577         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
123578         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
123580         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
123581         (gl_PHYSMEM): Use it.
123582         Also check for `table' function.
123583         Check for new headers and functions.
123584         Add check for sys/sysmp.h.
123585         With suggestions from Kaveh Ghazi.
123586         Ignore headers that are present but cannot be compiled.  This
123587         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
123588         C 5.4.
123590 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123592         Document merge from coreutils.
123593         * modules/userspec: Depend on posixver.
123594         * modules/strftime: Depend on tzset.
123596 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123598         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
123599         rather than tab, after '#' in shell-script copyright notices.
123600         Suggested by Bruno Haible.
123602 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123604         * config/srclist-update: Use three spaces, rather than tab, after '#'
123605         in shell-script copyright notices.  Suggested by Bruno Haible.
123606         Remove unnecessary parenthesization in regular expression.
123608 2003-08-15  Jim Meyering  <jim@meyering.net>
123610         Merge from coreutils.
123611         * lib/xgethostname.c: Include <stdlib.h>.
123612         (xghostname): Don't exit for anything other than memory-related
123613         failure; just return NULL.
123614         * lib/userspec.c: Include "posixver.h".
123615         (parse_user_spec): Accept `.' as a separator only
123616         in pre-POSIX-200112 mode.
123617         * lib/strtoimax.c: Use #elif rather than #else #if.
123618         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
123619         Remove function, now that we can rely on a working tzset function.
123620         [!_LIBC]: Ensure that the required autoconf test has been run.
123621         [!defined _NL_CURRENT && HAVE_STRFTIME]:
123622         Use underlying_strftime for %r.
123623         * lib/sha.c: Merge in some clean-up and optimization changes from
123624         glibc.
123625         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
123626         Ensure that it is a multiple of 64.
123627         Rearrange loop exit tests so as to avoid performing an
123628         additional fread after encountering an error or EOF.
123629         * lib/realloc.c: Update copyright date.
123631 2003-08-15  Jim Meyering  <jim@meyering.net>
123632         and Paul Eggert  <eggert@twinsun.com>
123634         Merge from coreutils.
123635         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
123636         member but strut utmpx does not.  Needed for AIX 4.3.3.
123637         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
123639 2003-08-15  Jim Meyering  <jim@meyering.net>
123640         and Paul Eggert  <eggert@cs.ucla.edu>
123642         Merges from coreutils, etc.
123643         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
123644         Require gl_FUNC_TZSET_CLOBBER.
123645         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
123646         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
123647         members.
123649 2003-08-14  Paul Eggert  <eggert@twinsun.com>
123651         Help the merge from coreutils.
123652         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
123653         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
123654         * m4/tzset.m4: Use it too.
123656 2003-08-14  Paul Eggert  <eggert@twinsun.com>
123658         * modules/tzset: New file.
123660 2003-08-14  Jim Meyering  <jim@meyering.net>
123662         Merges from coreutils.
123663         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
123664         variable names, rather than @FNMATCH_H@.
123665         * modules/alloca: Likewise for $(ALLOCA_H).
123667         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
123668         the three copies of the literal target, `fnmatch.h'.
123669         * modules/alloca (alloca.h): Likewise.
123671 2003-08-14  Jim Meyering  <jim@meyering.net>
123673         Merge from coreutils.
123674         * m4/tzset.m4: New file.
123675         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
123676         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
123677         otherwise, AIX 5.1 systems would end up using the latter.
123678         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
123679         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
123680         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
123681         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
123683 2003-08-14  Jim Meyering  <jim@meyering.net>
123685         Merge from coreutils.
123686         * lib/obstack.h: Whitespace changes.
123687         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
123688         and xcalloc return values.
123689         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
123690         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
123691         hang on OSF/1 5.1 for DIR on both local and remote file systems.
123692         Reported by (and fix confirmed by) Nelson H. F. Beebe.
123693         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
123694         error from mntctl.
123695         Use mntctl's return value to drive the entry-processing loop, since
123696         we can't rely on the value of the vmt_length member in the last
123697         entry.  On some systems doing so could result in exhausting
123698         virtual memory.  Based in part on a patch from Mike Jetzer.
123700 2003-08-14  Jim Meyering  <jim@meyering.net>
123701         and Paul Eggert  <eggert@twinsun.com>
123703         Merges from coreutils, plus other fixes.
123704         * lib/physmem.c: Merge in portability changes from gcc/libiberty
123705         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
123706         for credits and details.  Thanks to Kaveh Ghazi for helping
123707         to keep these files in sync.
123708         (ARRAY_SIZE): Define it.
123709         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
123710         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
123711         (memcasecmp): Don't assume size_t fits in unsigned int.
123712         Remove casts and duplicate code.
123713         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
123714         (memcpy): Remove definition.
123715         Merge in some clean-up and optimization changes from glibc.
123716         [BLOCKSIZE]: Move definition to top of file.
123717         Ensure that it is a multiple of 64.
123718         Rearrange loop exit tests so as to avoid performing an
123719         additional fread after encountering an error or EOF.
123720         * lib/md5.h (md5_uintptr): Define.
123721         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
123722         return to the initial working directory.  Preserve errno
123723         for caller.
123724         * lib/idcache.c: Include "xalloc.h".
123725         (xmalloc, xrealloc): Remove decls.
123726         (getuser): Remove casts no longer required in C89.
123727         * lib/human.c: Include stdio.h, for sprintf.
123728         * lib/group-member.c: Include "xalloc.h".
123729         (xmalloc, xrealloc): Remove decls.
123730         (get_group_info): Remove casts no longer required in C89.
123731         * lib/getusershell.c (readname): Remove casts no longer required in
123732         C89.
123733         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
123734         * lib/getline.c: Whitespace fix, from coreutils.
123736 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123738         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
123739         Check for isascii.
123741         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
123742         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
123743         Undo previous (whitespace-only) change.
123745 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123747         * lib/exclude.c: Include <ctype.h>
123748         (IN_CTYPE_DOMAIN): New macro.
123749         (is_space): New fn.
123750         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
123751         and empty lines.
123753         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
123754         Undo previous (whitespace-only) change.
123756 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123758         * config/srclist-update: Change update back to the old behavior,
123759         leaving whitespace alone.  Use one 'sed' command rather than a
123760         pipeline.
123761         (fixlicense): Now a variable, not a function.
123762         (remove_trailing_blanks): Remove.
123763         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
123764         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
123765         Undo previous (whitespace-only) change.
123767 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123769         Merge from coreutils.
123770         * modules/euidaccess: Add lib_SOURCES, include for new
123771         file euidaccess.h
123773 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123775         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
123776         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
123777         Normalize leading white space and remove trailing white space.
123779         Merge from coreutils
123780         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
123782         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
123783         0.12.1.  These files are now being upgraded automatically by
123784         ../config/srclist-update.
123786 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123788         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
123789         Normalize leading white space and remove trailing white space.
123790         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
123791         notice, as per ../config/srclist-update.
123793         Merge from coreutils.
123794         * lib/euidaccess.h: New file.
123795         * lib/euidaccess.c: Include it.
123796         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
123797         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
123798         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
123800 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123802         * config/srclist-update: Add copyright notice.
123803         (remove_id_lines, remove_trailing_blanks): New constants.
123804         (fixfile): Use them to normalize spacing a bit in copied files.
123805         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
123806         Normalize leading white space and remove trailing white space.
123808         * config/texinfo.tex: Sync with texinfo.
123810         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
123811         strtoul.c from libc, to merge coreutils whitespace changes.
123813         * config/srclist.txt: Get the following m4 files from gettext:
123814         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
123815         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
123816         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
123817         wint_t.m4.
123819 2003-08-12  Karl Berry  <karl@gnu.org>
123821         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
123822         been made.
123824 2003-08-11  Paul Eggert  <eggert@twinsun.com>
123826         * modules/gnu-source, m4/gnu-source.m4:
123827         Remove; we're assuming Autoconf 2.54 or later now.
123828         Suggested by Bruno Haible.
123829         * MODULES.html.sh (func_all_modules): Remove gnu-source.
123831 2003-08-11  Bruno Haible  <bruno@clisp.org>
123833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
123835 2003-08-11  Bruno Haible  <bruno@clisp.org>
123837         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
123838         (vasnprintf): Use it instead of wcslen.
123840 2003-08-11  Bruno Haible  <bruno@clisp.org>
123842         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
123843         value to ensure that _Bool promotes to int. Use #define for _Bool when
123844         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
123846 2003-08-10  Karl Berry  <karl@gnu.org>
123848         * lib/regex.h: update from libc (whitespace fix).
123850 2003-08-09  Paul Eggert  <eggert@twinsun.com>
123852         Merge some files from coreutils.  These changes were
123853         originally made by Jim Meyering.
123854         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
123855         many older Unixes require this.
123856         * lib/alloca.c (alloca): Remove cast to argument of free;
123857         no longer needed in C89.
123858         * lib/alloca_.h, regex.h: Fix white space to match
123859         what GNU indent does.
123861 2003-08-09  Paul Eggert  <eggert@twinsun.com>
123863         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
123864         apparently Emacs's Unicode mode got confused before my 2003-08-05
123865         checkin.
123867 2003-08-08  Paul Eggert  <eggert@twinsun.com>
123869         * m4/extensions.m4: New file.
123870         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
123871         Require gl_USE_SYSTEM_EXTENSIONS.
123872         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
123873         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
123875 2003-08-08  Paul Eggert  <eggert@twinsun.com>
123877         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
123878         * modules/extensions, modules/gnu-source: New files.
123879         * modules/timespec, modules/unlocked-io: Depend on extensions.
123881 2003-08-07  Paul Eggert  <eggert@twinsun.com>
123883         * modules/restrict: New file.
123884         * MODULES.html.sh (func_all_modules): Add restrict.
123885         * modules/regex: Depend on restrict.
123887 2003-08-07  Paul Eggert  <eggert@twinsun.com>
123889         * m4/restrict.m4: New file.
123890         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
123892 2003-08-07  Bruno Haible  <bruno@clisp.org>
123894         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
123895         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
123897 2003-08-07  Bruno Haible  <bruno@clisp.org>
123899         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
123900         makes the module 'getndelim2' compatible with the module 'getline'.
123902 2003-08-05  Paul Eggert  <eggert@twinsun.com>
123904         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
123905         byte with "\201" to avoid glitches when editing that source file
123906         with multi-gnome-terminal.
123908 2003-08-05  Paul Eggert  <eggert@twinsun.com>
123910         * lib/bumpalloc.h: Remove.
123912 2003-08-05  Paul Eggert  <eggert@twinsun.com>
123914         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
123915         * modules/bumpalloc: Remove.
123917 2003-08-04  Paul Eggert  <eggert@twinsun.com>
123919         * lib/getloadavg.c: Change copyright notice and spacing to conform to
123920         GNU coding style.
123922         Merge from coreutils.
123923         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
123924         1. From glibc.
123925         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
123926         from Karl Berry, implemented by Jim Meyering.
123927         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
123928         from Dmitry V. Levin.
123929         Remove anachronistic cast of xrealloc.
123930         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
123931         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
123932         type. Otherwise, it wouldn't compile with at least /bin/cc on
123933         ymp-cray-unicos9.0.2.X.
123934         Combine two mostly-identical uses of alloca into one.
123935         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
123937 2003-08-04  Dave Love  <d.love@dl.ac.uk>
123939         [From Emacs.]
123941         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
123942         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
123943         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
123944         obsolete NLIST_NAME_UNION.
123945         [__GNU__]: Undef BSD and FSCALE.
123946         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
123948 2003-08-03  Paul Eggert  <eggert@twinsun.com>
123950         * lib/stdbool_.h (_Bool): Make it signed char, instead of
123951         an enum type, so that it's guaranteed to promote to int.  See:
123952         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
123954 2003-08-03  Karl Berry  <karl@gnu.org>
123956         * config/depcomp: update from automake.
123958 2003-07-31  Paul Eggert  <eggert@twinsun.com>
123960         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
123961         (strerror): Don't assume that a printable int fits in 14 bytes.
123963 2003-07-31  Bruno Haible  <bruno@clisp.org>
123965         * modules/getpass-gnu: New file.
123966         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
123968 2003-07-31  Bruno Haible  <bruno@clisp.org>
123970         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
123972 2003-07-24  Karl Berry  <karl@gnu.org>
123974         * config/missing: update from automake.
123976 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
123977             Bruno Haible  <bruno@clisp.org>
123979         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
123980         * lib/getline.c (getline, getdelim): Likewise.
123981         Remove _GNU_SOURCE define; now it's defined in config.h through
123982         m4/getline.m4.
123984 2003-07-23  Karl Berry  <karl@gnu.org>
123986         * config/config.sub: update from prep.
123988 2003-07-22  Paul Eggert  <eggert@twinsun.com>
123990         * modules/xalloc (Depends-on): Add exitfail.
123991         * modules/xmemcoll: Likewise.
123993 2003-07-22  Paul Eggert  <eggert@twinsun.com>
123995         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
123996         over-parenthesization in macros.
123998         Sync with coreutils.
124000         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
124001         required by C99.
124003         Use `exit_failure' for xalloc and xmemcoll instead of their own
124004         private exit-failure variables.
124005         * lib/xalloc.h (xalloc_exit_failure): Remove.
124006         * lib/xmalloc.c: Likewise.  Include exitfail.h.
124007         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
124008         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
124009         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
124010         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
124012 2003-07-20  Jim Meyering  <jim@meyering.net>
124014         * modules/closeout (Depends-on): Add exitfail.
124015         Suggestion from Bruno Haible.
124017 2003-07-19  Karl Berry  <karl@gnu.org>
124019         * config/config.sub: update from prep.
124021 2003-07-18  Paul Eggert  <eggert@twinsun.com>
124023         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
124024         Remove.
124025         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
124026         to test that it can stand by itself.  Include "exitfail.h".
124027         Clients should set exit_failure instead.
124028         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
124030 2003-07-18  Bruno Haible  <bruno@clisp.org>
124032         * modules/getndelim2: New file.
124033         * modules/getline: Share files with module getndelim2.
124034         * modules/getnline: Depend on getndelim2 instead of sharing files with
124035         it. Add getnline.c to lib_SOURCES.
124036         * MODULES.html.sh (func_all_modules): Add getndelim2.
124038 2003-07-18  Bruno Haible  <bruno@clisp.org>
124040         * m4/getndelim2.m4: New file.
124041         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
124042         invoke gl_PREREQ_GETNDELIM2.
124043         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
124044         gl_PREREQ_GETNDELIM2.
124045         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
124046         gl_GETNDELIM2.
124048 2003-07-18  Bruno Haible  <bruno@clisp.org>
124050         * lib/getndelim2.h: New file.
124051         * lib/getndelim2.c: Make into a module of its own. Include config.h,
124052         getndelim2.h.
124053         (getndelim2): Make non-static. Change return type to ssize_t.
124054         * lib/getline.h: Change argument names.
124055         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
124056         * lib/getnline.c: Include getndelim2.h.
124058 2003-07-18  Andreas Schwab  <schwab@suse.de>
124060         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
124062 2003-07-17  Karl Berry  <karl@gnu.org>
124064         * config/config.sub: update from prep.
124066 2003-07-17  Bruno Haible  <bruno@clisp.org>
124068         * modules/getnline: New file.
124069         * modules/getline: Add lib/getndelim2.c to source file list.
124070         * MODULES.html.sh (func_all_modules): Add getnline.
124072 2003-07-17  Bruno Haible  <bruno@clisp.org>
124074         * m4/getnline.m4: New file.
124076 2003-07-17  Bruno Haible  <bruno@clisp.org>
124078         * m4/Makefile.am.in: Remove file.
124079         * m4/Makefile.am: Remove file.
124080         * m4/Makefile.in: Remove file.
124082 2003-07-17  Bruno Haible  <bruno@clisp.org>
124084         * lib/getnline.h: New file.
124085         * lib/getnline.c: New file.
124086         * lib/getndelim2.c: New file, extracted from getline.c.
124087         (getndelim2): Renamed from getdelim2, with added nmax argument.
124088         * lib/getline.c: Include getndelim2.c.
124089         (getdelim2): Moved out to getndelim2.c.
124090         (getline, getdelim): Update.
124092 2003-07-17  Bruno Haible  <bruno@clisp.org>
124094         * lib/Makefile.am: Remove file.
124095         * lib/Makefile.in: Remove file.
124097 2003-07-17  Bruno Haible  <bruno@clisp.org>
124099         * configure.in: Remove file.
124100         * Makefile.in: Remove file.
124102 2003-07-17  Bruno Haible  <bruno@clisp.org>
124104         * MODULES.html.sh: Put the </BODY> right before </HTML>.
124106 2003-07-16  Karl Berry  <karl@gnu.org>
124108         * config/srclist-update: was running fixlicense twice, which caused
124109                 texinfo.tex to be nullified for some reason.  Simplify,
124110                 $gplsrc is no longer needed as far as I can see?
124112 2003-07-16  Jim Meyering  <jim@meyering.net>
124114         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
124116 2003-07-15  Paul Eggert  <eggert@twinsun.com>
124118         * config/srclist.txt: Get the following files from gettext-runtime/intl
124119         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
124120         ref-del.sin.  From Bruno Haible.
124121         * config/srclist-update (fixfile): Change grep pattern again, since the
124122         previous fix didn't work (there was another trailing $).  Use
124123         '[$]' to escape the $s.
124125 2003-07-15  Karl Berry  <karl@gnu.org>
124127         * lib/vasnprintf.c: update from gettext.
124129 2003-07-15  Karl Berry  <karl@gnu.org>
124131         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
124132         gets expanded when surrounded by '$'.
124134 2003-07-15  Jim Meyering  <jim@meyering.net>
124136         * modules/save-cwd: Don't depend on error.  From Derek Price.
124138 2003-07-15  Jim Meyering  <jim@meyering.net>
124140         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
124142 2003-07-14  Simon Josefsson  <jas@extundo.com>
124144         * modules/mempcpy: New file.
124145         * MODULES.html.sh (func_all_modules): Add mempcpy.
124147 2003-07-14  Simon Josefsson  <jas@extundo.com>
124149         * m4/mempcpy.m4: New file.
124151 2003-07-14  Simon Josefsson  <jas@extundo.com>
124153         * lib/mempcpy.h: New file.
124154         * lib/mempcpy.c: New file.
124156 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124158         * modules/getdate, modules/posixtm: Depend on mktime.
124160 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124162         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
124163         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
124164         unicodeio.c, unicodeio.h, unlocked-io.h:
124165         Switch from LGPL to GPL.
124167 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124169         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
124170         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
124171         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
124172         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
124173         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
124174         updated automatically by ../config/srclist-update.  This changes
124175         their license from LPGL to GPL.
124177 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124179         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
124180         assumed to refer to the root of the most recent stable gettext version.
124181         * config/srclistvars.sh: Add defaults for eggert.
124182         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
124183         Match "This program" as well as "The program".  This is needed
124184         for gettext.
124186 2003-07-14  Jim Meyering  <jim@meyering.net>
124188         Don't emit diagnostics.  Let callers do that.
124189         * lib/save-cwd.c: Don't include "error.h".
124190         (save_cwd): Don't call error.  Ensure that errno is valid
124191         when returning nonzero.
124193         * lib/save-cwd.h (restore_cwd): Update prototype.
124194         * lib/save-cwd.c (restore_cwd): Remove two parameters.
124195         Simplify.  Don't call error upon failure.  Let callers do that.
124196         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
124197         when auditing is enabled.  But don't bother updating the #if.
124199 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
124201         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
124202         it breaks C++ compilation.
124203         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
124205 2003-07-10  Simon Josefsson  <jas@extundo.com>
124207         * modules/strchrnul (Makefile.am): Add strchrnul.h.
124209 2003-07-10  Jim Meyering  <jim@meyering.net>
124211         * m4/clock_time.m4: Remove trailing blank.
124212         * m4/intmax_t.m4: Likewise.
124214 2003-07-10  Jim Meyering  <jim@meyering.net>
124216         * lib/vasnprintf.c: Remove trailing blanks.
124217         Make cpp indentation consistent.
124219 2003-07-09  Paul Eggert  <eggert@twinsun.com>
124221         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
124222         posixver.c, strftime.c, strnlen.c, strverscmp.c:
124223         Switch from LGPL to GPL.
124225 2003-07-09  Paul Eggert  <eggert@twinsun.com>
124227         * config/srclist.txt: Sort sublists.  Add
124228         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
124229         that differ from gnulib for one reason or another; we'd like this list
124230         to be smaller but for now let's document what we have.
124232 2003-07-08  Paul Eggert  <eggert@twinsun.com>
124234         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
124235         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
124236         and sweeter "eval x=$x".
124237         * config/srclist.txt: Get lib/argp* from glibc.
124239 2003-07-07  Paul Eggert  <eggert@twinsun.com>
124241         * lib/mktime.c: Fix some boundary cases and remove need for floating
124242         point.
124244         Issue a compile-time diagnostic if time_t is floating point, or if
124245         two's complement arithmetic is not in effect, or if arithmetic
124246         right shift does not propagate the sign.  These assumptions were
124247         all in the original code but they weren't checked.
124249         (TIME_T_MIDPOINT, verify): New macros.
124250         (__isleap): Remove; it has integer overflow problems.
124251         (leapyear): New function, without those problems.
124252         (ydhms_tm_diff): Remove; splitting into two parts.
124253         (ydhms_diff): New function, containing the arithmetic part of
124254         the old ydhms_tm_diff function.  Issue a compile-time
124255         diagnostic if we are not using C99 integer division.
124256         Avoid casts when possible.
124257         (guess_time_tm): New function, containing the checking part of
124258         the old ydhms_tm_diff function.  Return the new value, rather than
124259         the difference between it and the old.  Accept a new argument T
124260         so that *T specifies the old value.  Check for overflow in the result.
124262         (__mktime_internal): Use a time_t offset, not a long int offset.
124263         This undoes the 2003-06-04 change, which is no longer needed now
124264         that we have better overflow checking.
124265         (localtime_offset): Likewise.
124267         (__mktime_internal): Avoid harmful overflow on hosts where time_t
124268         and long are 64-bit but int is only 32-bit.
124269         (ydhms_diff): Use long int to store year1 and yday1.
124270         Issue a compile-time diagnostic if long int is not wide enough.
124272         (__mktime_internal): Use long int to store adjusted year and yday.
124273         Use plain C rather than preprocessor commands, if that doesn't
124274         affect efficiency.
124275         Check for overflow (and try to repair) after each probe
124276         rather than checking only at the very end.  This avoids some bugs
124277         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
124278         does not equal GMT offset at maximum time).
124279         Use integer to check for overflow rather than floating point; this
124280         is more portable to non-IEEE hosts, and is a tad faster.
124281         When we detect that we are oscillating between two values,
124282         don't check whether tm_isdst has the requested value, since
124283         we already know the answer.  When tm_isdst has the wrong value,
124284         use a different heuristic to find the right one, based on the
124285         extreme values actually observed in practice in tz2003a,
124286         rather than the (overly optimistic) "previous 3 calendar quarters".
124288         (not_equal_tm, print_tm, check_result): Use "const T" rather than
124289         "T const" to accommodate glibc style.
124290         (check_result): Use less-confusing report format.  "long" -> "long int.
124291         (main): Likewise.
124292         Don't loop if the iteration overflows time_t.
124293         Allow a negative step in the iteration.
124295 2003-07-06  Karl Berry  <karl@gnu.org>
124297         * config/depcomp: update from automake.
124298         * config/config.sub: update from prep.
124300 2003-07-03  Karl Berry  <karl@gnu.org>
124302         * config/config.guess: update from prep.
124304 2003-07-01  Paul Eggert  <eggert@twinsun.com>
124306         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
124307         xreadlink.c now includes it unconditionally.
124309 2003-07-01  Paul Eggert  <eggert@twinsun.com>
124311         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
124312         having it depend on HAVE_SYS_TYPES_H.
124314 2003-07-01  Bruno Haible  <bruno@clisp.org>
124316         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
124317         <sys/types.h> should be sufficient.
124318         Reported by Paul Eggert.
124320 2003-06-26  Karl Berry  <karl@gnu.org>
124322         * config/depcomp: update from automake.
124324 2003-06-26  Bruno Haible  <bruno@clisp.org>
124326         * modules/human: Depend on module stdbool.
124328 2003-06-25  Bruno Haible  <bruno@clisp.org>
124330         * modules/readlink: New file.
124331         * modules/xreadlink: Depend on it.
124332         * MODULES.html.sh (func_all_modules): Add readlink.
124334 2003-06-25  Bruno Haible  <bruno@clisp.org>
124336         * m4/readlink.m4: New file.
124338 2003-06-25  Bruno Haible  <bruno@clisp.org>
124340         * lib/readlink.c: New file.
124342 2003-06-22  Karl Berry  <karl@gnu.org>
124344         * config/srclist.txt: update mkinstalldirs from automake.
124345         * config/mkinstalldirs: update.
124347 2003-06-22  Bruno Haible  <bruno@clisp.org>
124349         Portability to mingw32.
124350         * m4/ssize_t.m4: New file, from GNU gettext.
124351         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
124352         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
124354 2003-06-22  Bruno Haible  <bruno@clisp.org>
124356         * modules/safe-read: Add m4/ssize_t.m4.
124357         * modules/xreadlink: Add m4/ssize_t.m4.
124359 2003-06-20  Bruno Haible  <bruno@clisp.org>
124361         Assume C89, so PARAMS isn't needed.
124362         * lib/unicodeio.h (PARAMS): Remove.
124363         * lib/unicodeio.c: Don't use PARAMS.
124365 2003-06-18  Karl Berry  <karl@gnu.org>
124367         * config/config.{guess,sub}: update from prep.
124369 2003-06-18  Jim Meyering  <jim@meyering.net>
124371         Merge changes from coreutils.
124372         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
124373         Remove explicit declarations of xmalloc and realloc.
124374         Include xalloc.h.
124375         (read_utmp): Remove anachronistic cast of xmalloc.
124377 2003-06-17  Paul Eggert  <eggert@twinsun.com>
124379         Assume C89, so PARAMS isn't needed.
124380         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
124381         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
124382         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
124383         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
124384         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
124385         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
124386         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
124387         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
124388         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
124389         lib/xstrtod.h, lib/xstrtol.h: Likewise.
124390         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
124391         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
124392         no longer needed. Anyway, config.h should always be included before any
124393         other file.
124395 2003-06-11  Simon Josefsson  <jas@extundo.com>
124397         * modules/sysexits: New file.
124398         * MODULES.html.sh (func_all_modules): Add sysexits.
124400 2003-06-11  Simon Josefsson  <jas@extundo.com>
124402         * lib/sysexit_.h: New file.
124404 2003-06-11  Derek Price  <derek@ximbiot.com>
124406         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
124407         necessary.
124409 2003-06-11  Bruno Haible  <bruno@clisp.org>
124411         * m4/sysexits.m4: New file.
124413 2003-06-10  Simon Josefsson  <jas@extundo.com>
124415         * lib/argp.h: New file, from glibc.
124416         * lib/argp-ba.c: New file, from glibc.
124417         * lib/argp-eexst.c: New file, from glibc.
124418         * lib/argp-fmtstream.c: New file, from glibc.
124419         * lib/argp-fmtstream.h: New file, from glibc.
124420         * lib/argp-fs-xinl.c: New file, from glibc.
124421         * lib/argp-help.c: New file, from glibc.
124422         * lib/argp-namefrob.h: New file, from glibc.
124423         * lib/argp-parse.c: New file, from glibc.
124424         * lib/argp-pv.c: New file, from glibc.
124425         * lib/argp-pvh.c: New file, from glibc.
124426         * lib/argp-xinl.c: New file, from glibc.
124428 2003-06-10  Simon Josefsson  <jas@extundo.com>
124430         * modules/strchrnul: New file.
124432 2003-06-10  Simon Josefsson  <jas@extundo.com>
124434         * modules/argp: New file.
124436 2003-06-10  Simon Josefsson  <jas@extundo.com>
124438         * m4/strchrnul.m4: New file.
124440 2003-06-10  Simon Josefsson  <jas@extundo.com>
124442         * lib/strchrnul.h: New file.
124443         * lib/strchrnul.c: New file.
124445 2003-06-10  Bruno Haible  <bruno@clisp.org>
124447         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
124449 2003-06-07  Karl Berry  <karl@gnu.org>
124451         * config/config.{guess,sub}: update from prep.
124453 2003-06-07  Jim Meyering  <jim@meyering.net>
124455         * modules/strtod: Use $(...) notation, not @...@ for
124456         AC_REPLACE'd variables.
124457         * modules/localcharset: Likewise.
124459 2003-06-07  Jim Meyering  <jim@meyering.net>
124461         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
124462         in place of my name in the copyright comment.
124463         Remove definition and uses of __P.
124465         From coreutils.
124466         * lib/stat.c: Don't declare xmalloc explicitly.
124467         Instead, include "xalloc.h".
124468         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
124469         xrealloc, and xcalloc return values.
124470         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
124471         Improve comment.
124472         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
124474 2003-06-07  Bruno Haible  <bruno@clisp.org>
124476         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
124477         avoid AC_CONFIG_LINKS.
124478         * modules/fnmatch (Makefile.am): Use explicit creation rule for
124479         fnmatch.h, to avoid AC_CONFIG_LINKS.
124480         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
124482 2003-06-07  Bruno Haible  <bruno@clisp.org>
124484         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
124485         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
124486         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
124487         directory.
124488         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
124489         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
124490         directory.
124492 2003-06-06  Jim Meyering  <jim@meyering.net>
124494         Merge from coreutils.
124495         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
124496         Consolidate declarations and initializations of *_base* locals.
124498         Merge from coreutils.
124499         This avoids a core dump on systems without GNU putenv,
124500         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
124501         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
124502         (unsetenv): New static function, from GNU libc.
124503         (rpl_putenv): Use it.
124505         * lib/modechange.c: Remove trailing blanks.
124507         Merge from coreutils.
124508         * lib/fsusage.c: Remove declaration of statfs.
124509         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
124511         * lib/posixtm.c: Include <stdbool.h> unconditionally.
124513 2003-06-06  Jim Meyering  <jim@meyering.net>
124515         * lib/stdbool_.h: Renamed from stdbool.h.in.
124517 2003-06-06  Jim Meyering  <jim@meyering.net>
124518             Bruno Haible  <bruno@clisp.org>
124520         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
124521         Adjust Makefile.am snippet not to redirect directly to target.
124522         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
124524 2003-06-05  Paul Eggert  <eggert@twinsun.com>
124526         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
124527         mismatch, look in future quarters as well as past.  This fixes a
124528         bug when processing fall-backwards gaps immediately after a long
124529         period of daylight-saving time.
124531         * lib/mktime.c: Assume freestanding C89 or better.
124532         (HAVE_LIMITS_H): Remove.  Assume it's 1.
124533         (__P): Remove; not used.
124534         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
124535         (mktime, not_equal_tm, print_tm, check_result,
124536         main): Use prototypes.  Use const * where appropriate.
124537         (main): Fix typo in testing code that uncovered by above changes.
124538         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
124540 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124542         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
124543         locale.h, localeconv.  This merges changes from coreutils.
124545         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
124546         It can be removed after the next Autoconf is released.
124547         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
124548         needed.
124550 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124552         * lib/mktime.c: Fix Debian bug 177940
124553         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
124554         (localtime_offset): Now long int, not time_t, because we want it
124555         to be guaranteed to be signed.  All uses changed.
124556         (__mktime_internal): If overflow would occur when adding offset,
124557         don't add it.
124559         Merge 'human' changes from coreutils.  Rewrite to support
124560         locale-specific notations like thousands separators.
124561         * lib/human.c: Simplify authorship notice.
124562         Include human.h immediately after config.h.
124563         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
124564         <limits.h>: Do not include, since human.h does.
124565         (SIZE_MAX, UINTMAX_MAX): New macros.
124566         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
124567         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
124568         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
124569         (power_letter): Renamed from suffixes.
124570         (generate_suffix_backwards): Remove.
124571         (adjust_value): Now takes int style (because of human.h changes)
124572         and long double value (for greater precision on some platforms).
124573         (group_number): New function.
124574         (human_readable): Use it.  Use integer options, not enum.
124575         Put the options before the sizes in the arg list.
124576         Support all the new options.
124577         The old human_readable function has been removed;
124578         use inttostr.h instead.
124579         (human_readable, default_block_size, humblock):
124580         Use uintmax_t, not int, for block sizes.
124581         (human_readable_inexact, block_size_types): Remove.
124582         (block_size_opts): New constant.
124583         (human_options): Renamed from human_block_size, with new signature
124584         that allows block sizes up to UINTMAX_MAX.  All callers changed.
124585         * lib/human.h: Add copyright and authorship notice.
124586         Include <limits.h> and <stdbool.h> unconditionally.
124587         (PARAMS): Remove.  All uses removed.
124588         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
124589         (enum human_inexact_style): Remove tag; now a nameless enum.
124590         (human_floor, human_ceiling, human_round_to_even): Now have
124591         values 2, 0, 1 rather than -1, 1, 0.
124592         (human_group_digits, human_suppress_point_zero, human_autoscale,
124593         human_base_1024, human_SI, human_B): New constants.
124594         (human_readable_inexact, human_block_size): Remove.
124595         (human_readable): Size args are now uintmax_t, not int.
124596         (human_options): New decl.
124598         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
124599         unnecessary now that we assume C89 or better.  This change
124600         imported from coreutils.
124602         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
124603         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
124604         in the 2003-05-30 sync from glibc.
124606         .h files should stand alone, but we shouldn't include <sys/types.h>
124607         if we can get away with just <stddef.h>.
124609         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
124610         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
124611         rather than <sys/types.h>, as we merely need size_t.
124612         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
124613         to get size_t.
124614         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
124615         Include <stdio.h>, to get FILE.
124616         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
124617         memcasecmp.h has included <stddef.h> and all we need is size_t.
124618         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
124619         our interface, instead of including <sys/types.h>
124621 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124623         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
124624         now, as glibc mktime is buggy on non-glibc systems.
124626 2003-06-03  Karl Berry  <karl@gnu.org>
124628         * config/config.sub: update from prep.
124630 2003-06-02  Paul Eggert  <eggert@twinsun.com>
124632         [from coreutils]
124633         Fix some minor time-related bugs with POSIX time arguments.
124634         Some valid time stamps were being rejected (notably -1, and
124635         time stamps before 1900 on 64-bit hosts).  And some invalid
124636         time stamps were being accepted, e.g. September 31.
124638         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
124639         that we can return (time_t) -1 successfully.
124640         * lib/posixtm.c: Likewise.
124641         [HAVE_STDBOOL_H]: Include <stdbool.h>.
124642         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
124643         (t): Remove static var.
124644         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
124645         of static var.  All uses changed.
124646         (year): Do not reject years before 1900; they can occur with
124647         64-bit time_t.
124648         (posix_time_parse): Do not check for out-of-range components;
124649         that is now the caller's responsibility, since our checks were
124650         only approximations.
124651         (posixtime): Use mktime to check for out-of-range components,
124652         since it knows them exactly.
124653         If mktime returns (time_t) -1, check whether an error actually occurred
124654         by invoking localtime on -1.
124655         (main) [TEST_POSIXTIME]: Check for input data errors, and report
124656         posixtime failures better.
124657         Improve the test data (in comments only).
124659 2003-06-02  Karl Berry  <karl@gnu.org>
124661         * config/mkinstalldirs (version): new variable.
124662         (--version): new option.
124663         (usage): improve message.
124665 2003-05-30  Karl Berry  <karl@gnu.org>
124667         * lib/mktime.c: update from libc.
124669 2003-05-30  Bruno Haible  <bruno@clisp.org>
124671         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
124672         * config/config.rpath: Upgrade to gettext-0.12.1.
124674 2003-05-30  Bruno Haible  <bruno@clisp.org>
124676         * m4/gettext.m4: Upgrade to gettext-0.12.1.
124677         * m4/nls.m4: New file, from gettext-0.12.1.
124678         * m4/po.m4: New file, from gettext-0.12.1.
124679         * m4/progtest.m4: Upgrade to gettext-0.12.1.
124681 2003-05-30  Bruno Haible  <bruno@clisp.org>
124683         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
124684         * lib/localcharset.h: Likewise.
124685         * lib/localcharset.c: Likewise.
124687 2003-05-29  Karl Berry  <karl@gnu.org>
124689         * config/config.rpath: update from gettext.
124691 2003-05-28  Paul Eggert  <eggert@twinsun.com>
124693         Assume the headers required for C89 freestanding compilers.
124694         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
124695         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
124696         * m4/human.m4 (gl_HUMAN): Likewise.
124697         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
124698         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
124699         * m4/userspec.m4 (gl_USERSPEC): Likewise.
124700         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
124701         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
124702         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
124704 2003-05-28  Paul Eggert  <eggert@twinsun.com>
124706         Assume the headers required for C89 freestanding compilers.
124707         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
124708         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
124709         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
124710         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
124711         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
124712         define, since <limits.h> is guaranteed to do that.
124713         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
124714         * lib/exclude.c: Include <stdbool.h> unconditionally.
124715         * lib/tempname.c: Include <stddef.h> unconditionally.
124716         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
124717         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
124718         <stddef.h> does that.
124719         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
124720         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
124721         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
124722         needed.
124723         * lib/xstrtol.c: Likewise.
124724         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
124725         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
124727         * lib/addext.c (addext): Use assignment rather than cast, to avoid
124728         warnings on some platforms.
124730         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
124731         arbitrarily.
124733 2003-05-26  Jim Meyering  <jim@meyering.net>
124735         Merge in a change from coreutils:
124736         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
124737         that is guaranteed to be `no'.  Use `no_such_member' to indicate
124738         that condition, rather than `-1' which is slightly misleading.
124739         Change the name of the cache variable to have the gl_ prefix.
124740         Prompted by a patch from Richard Dawe for DJGPP.
124742 2003-05-24  Karl Berry  <karl@gnu.org>
124744         * config/config.guess: update from prep.
124746 2003-05-22  Karl Berry  <karl@gnu.org>
124748         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
124750 2003-05-20  Karl Berry  <karl@gnu.org>
124752         * config/config.guess: update from prep.
124754 2003-05-18  Karl Berry  <karl@gnu.org>
124756         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
124757         might actually be set by the user.
124759         * config/depcomp, install-sh, mdate-sh: update from automake.
124761 2003-05-17  Bruno Haible  <bruno@clisp.org>
124763         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
124764         invalid expansion for AC_EGREP_CPP.
124765         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
124766         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
124767         Suggested by Akim Demaille <akim@epita.fr> in
124768         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
124770 2003-05-12  Jim Meyering  <jim@meyering.net>
124772         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
124773         the space-padded-by-default conversion specifiers, %e, %k, %l.
124775 2003-05-12  Bruno Haible  <bruno@clisp.org>
124777         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
124778         the string is longer than 4 KB.
124780 2003-05-11  Karl Berry  <karl@gnu.org>
124782         * config/config.{guess,sub}: update from prep.
124784 2003-05-09  Bruno Haible  <bruno@clisp.org>
124786         * modules/error: Add m4/strerror_r.m4 to file list.
124788 2003-05-03  Bruno Haible  <bruno@clisp.org>
124790         Upgrade to Unicode-4.0.
124791         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
124792         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
124793         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
124794         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
124795         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
124796         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
124797         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
124798         Change width of U+E0100..U+E01EF from 1 to 0.
124800 2003-04-25  Jim Meyering  <jim@meyering.net>
124802         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
124803         of type size_t, not int.
124805 2003-04-25  Bruno Haible  <bruno@clisp.org>
124807         * lib/copy-file.c: Include <stddef.h>, for size_t.
124809 2003-04-21  Paul Eggert  <eggert@twinsun.com>
124811         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
124812         code which expansion is under static control.  Patch imported from
124813         Akim Demaille's patch to Bison; see
124814         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
124816 2003-04-14  Bruno Haible  <bruno@clisp.org>
124818         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
124820 2003-04-11  Jim Meyering  <jim@meyering.net>
124822         Merge changes from Coreutils.
124824         2003-03-22  Jim Meyering  <jim@meyering.net>
124826         * lib/strftime.c (widen): Cast alloca return value to proper type.
124828         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
124830         From GNU libc.
124831         * lib/strftime.c (my_strftime): Handle very large width
124832         specifications for numeric values correctly.  Improve checks for
124833         overflow.
124835         2003-01-19  Jim Meyering  <jim@meyering.net>
124837         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
124838         definitions.
124839         (nl_get_alt_digit) [! defined my_strftime]: Define.
124840         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
124841         _nl_get_alt_digit and _nl_get_walt_digit.
124843         * lib/strftime.c (my_strftime): Merge in locale-related changes from
124844         libc. These changes have no effect outside of _LIBC.
124846 2003-04-10  Bruno Haible  <bruno@clisp.org>
124848         * modules/findprog: New file.
124849         * MODULES.html.sh (func_all_modules): Add it.
124851 2003-04-10  Bruno Haible  <bruno@clisp.org>
124853         * m4/findprog.m4: New file.
124854         * m4/eaccess.m4: New file.
124856 2003-04-10  Bruno Haible  <bruno@clisp.org>
124858         * lib/findprog.h: New file, from GNU gettext.
124859         * lib/findprog.c: New file, from GNU gettext.
124861 2003-04-05  Jim Meyering  <jim@meyering.net>
124863         Merge changes from Coreutils.
124865         * lib/exclude.h (PARAMS): Remove definition and uses.
124866         * lib/exclude.c: Remove uses of `PARAMS'.
124868         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
124869         Add test-cases for DOS filenames. Declare program_name.
124870         (main): Set up program_name.  Patch by Rich Dawe.
124872         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
124873         error from mntctl.
124874         Use mntctl's return value to drive the entry-processing loop, since
124875         we can't rely on the value of the vmt_length member in the last
124876         entry.  On some systems doing so could result in exhausting
124877         virtual memory.  Based in part on a patch from Mike Jetzer.
124879 2003-04-04  Bruno Haible  <bruno@clisp.org>
124881         * modules/linebreak: New file.
124882         * MODULES.html.sh (func_all_modules): Add it.
124884 2003-04-04  Bruno Haible  <bruno@clisp.org>
124886         * m4/linebreak.m4: New file.
124888 2003-04-04  Bruno Haible  <bruno@clisp.org>
124890         * lib/linebreak.h: New file, from GNU gettext.
124891         * lib/linebreak.c: New file, from GNU gettext with slight
124892         modifications.
124893         * lib/lbrkprop.h: New file, from GNU gettext.
124895 2003-04-03  Bruno Haible  <bruno@clisp.org>
124897         * modules/utf8-ucs4: New file.
124898         * modules/utf16-ucs4: New file.
124899         * modules/ucs4-utf8: New file.
124900         * modules/ucs4-utf16: New file.
124901         * MODULES.html.sh (func_all_modules): Add them.
124903 2003-04-03  Bruno Haible  <bruno@clisp.org>
124905         * m4/utf-ucs4.m4: New file.
124906         * m4/ucs4-utf.m4: New file.
124908 2003-04-03  Bruno Haible  <bruno@clisp.org>
124910         * lib/utf8-ucs4.h: New file, from GNU gettext.
124911         * lib/utf16-ucs4.h: New file, from GNU gettext.
124912         * lib/ucs4-utf8.h: New file, from GNU gettext.
124913         * lib/ucs4-utf16.h: New file, from GNU gettext.
124915 2003-04-02  Bruno Haible  <bruno@clisp.org>
124917         * modules/binary-io: New file.
124918         * MODULES.html.sh (func_all_modules): Add it.
124920 2003-04-02  Bruno Haible  <bruno@clisp.org>
124922         * lib/binary-io.h: New file, from GNU gettext.
124924 2003-04-01  Bruno Haible  <bruno@clisp.org>
124926         * modules/pathname: New file.
124927         * MODULES.html.sh (func_all_modules): Add it.
124929 2003-04-01  Bruno Haible  <bruno@clisp.org>
124931         * lib/pathname.h: New file, from GNU gettext.
124932         * lib/concatpath.c: New file, from GNU gettext.
124934 2003-03-30  Bruno Haible  <bruno@clisp.org>
124936         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
124938 2003-03-30  Bruno Haible  <bruno@clisp.org>
124940         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
124941         function chown() doesn't exist.
124943 2003-03-28  Bruno Haible  <bruno@clisp.org>
124945         * modules/copy-file: New file.
124946         * MODULES.html.sh (func_all_modules): Add it.
124948 2003-03-28  Bruno Haible  <bruno@clisp.org>
124950         * m4/copy-file.m4: New file.
124952 2003-03-28  Bruno Haible  <bruno@clisp.org>
124954         * lib/copy-file.h: New file, from GNU gettext.
124955         * lib/copy-file.c: New file, from GNU gettext.
124957 2003-03-18  Jim Meyering  <jim@meyering.net>
124959         * lib/quote.c (quote_n): Fix typo in comment.
124961 2003-03-18  Bruno Haible  <bruno@clisp.org>
124963         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
124964         checking.
124965         * m4/onceonly_2_57.m4: Likewise.
124967 2003-03-17  Bruno Haible  <bruno@clisp.org>
124969         * m4/onceonly.m4: Require autoconf 2.54 or newer.
124970         (m4_quote): Remove macro.
124971         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
124973 2003-03-14  Jim Meyering  <jim@meyering.net>
124975         Merge changes from Coreutils.
124976         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
124977         to be const, in order to avoid warnings.
124978         (obstack_room): Likewise.
124979         (obstack_empty_p): Likewise.
124981 2003-03-14  Bruno Haible  <bruno@clisp.org>
124983         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
124984         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
124986 2003-03-13  Paul Eggert  <eggert@twinsun.com>
124988         Merge changes from Bison.
124989         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
124990         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
124991         when compiling Bison 1.875's `bitset bset = obstack_alloc
124992         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
124993         * lib/hash.c: Include <stdbool.h> unconditionally.
124995 2003-03-13  Paul Eggert  <eggert@twinsun.com>
124997         * m4/onceonly.m4 (m4_quote): New macro.
124998         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
124999         Quote AC_FOREACH variable-expansions properly.
125001 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125003         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
125005 2003-03-09  Paul Eggert  <eggert@twinsun.com>
125007         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
125008         Reported by Bruce Becker; see:
125009         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
125011 2003-03-03  Paul Eggert  <eggert@twinsun.com>
125012             Bruno Haible  <bruno@clisp.org>
125014         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
125015         Reported by John Hughes, see
125016         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
125018 2003-02-20  Bruno Haible  <bruno@clisp.org>
125020         * MODULES.html.sh (func_all_modules): Add poll.
125022 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125024         * modules/poll: New file.
125026 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125028         * lib/poll_.h: New file.
125029         * lib/poll.c: New file.
125031 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125033         * m4/poll.m4: New file.
125035 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125037         * modules/mathl: New file.
125039 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125041         * lib/mathl.h: New file.
125042         * lib/acosl.c: New file.
125043         * lib/asinl.c: New file.
125044         * lib/atanl.c: New file.
125045         * lib/ceill.c: New file.
125046         * lib/cosl.c: New file.
125047         * lib/expl.c: New file.
125048         * lib/floorl.c: New file.
125049         * lib/frexpl.c: New file.
125050         * lib/ldexpl.c: New file.
125051         * lib/logl.c: New file.
125052         * lib/sincosl.c: New file.
125053         * lib/sinl.c: New file.
125054         * lib/sqrtl.c: New file.
125055         * lib/tanl.c: New file.
125056         * lib/trigl.c: New file.
125057         * lib/trigl.h: New file.
125059 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125061         * m4/mathl.m4: New file.
125063 2003-02-18  Bruno Haible  <bruno@clisp.org>
125065         * MODULES.html.sh (func_all_modules): Add mathl.
125067 2003-02-17  Bruno Haible  <bruno@clisp.org>
125069         * modules/mkdtemp: New module.
125070         * MODULES.html.sh (func_all_modules): Add it.
125072 2003-02-17  Bruno Haible  <bruno@clisp.org>
125074         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
125076 2003-02-17  Bruno Haible  <bruno@clisp.org>
125078         * lib/mkdtemp.h: New file, from GNU gettext.
125079         * lib/mkdtemp.c: New file, from GNU gettext.
125081 2003-02-02  Jim Meyering  <jim@meyering.net>
125083         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
125084         e.g. glibc-2.2.93.
125086 2003-01-31  Bruno Haible  <bruno@clisp.org>
125088         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
125089         'rpl_rename'.
125090         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
125091         'rpl_strnlen'.
125092         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
125093         'rpl_strtod'.
125094         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
125095         'rpl_utime'.
125097 2003-01-31  Bruno Haible  <bruno@clisp.org>
125099         * lib/rename.c: #undef rename before defining rpl_rename.
125100         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
125102 2003-01-30  Bruno Haible  <bruno@clisp.org>
125104         * modules/vasnprintf, modules/vasprintf: New modules.
125105         * MODULES.html.sh (func_all_modules): Add them.
125107 2003-01-30  Bruno Haible  <bruno@clisp.org>
125109         * m4/signed.m4: New file, from GNU gettext.
125110         * m4/longdouble.m4: New file, from GNU gettext.
125111         * m4/wchar_t.m4: New file, from GNU gettext.
125112         * m4/wint_t.m4: New file, from GNU gettext.
125113         * m4/vasnprintf.m4: New file.
125114         * m4/vasprintf.m4: New file.
125116 2003-01-30  Bruno Haible  <bruno@clisp.org>
125118         * lib/printf-args.h: New file, from GNU gettext.
125119         * lib/printf-args.c: New file, from GNU gettext.
125120         * lib/printf-parse.h: New file, from GNU gettext.
125121         * lib/printf-parse.c: New file, from GNU gettext.
125122         * lib/vasnprintf.h: New file, from GNU gettext.
125123         * lib/vasnprintf.c: New file, from GNU gettext.
125124         * lib/asnprintf.c: New file, from GNU gettext.
125125         * lib/vasprintf.h: New file, from GNU gettext with modifications.
125126         * lib/vasprintf.c: New file, from GNU gettext.
125127         * lib/asprintf.c: New file, from GNU gettext.
125129 2003-01-29  Bruno Haible  <bruno@clisp.org>
125131         * modules/stpncpy: New module.
125132         * MODULES.html.sh (func_all_modules): Add it.
125134 2003-01-29  Bruno Haible  <bruno@clisp.org>
125136         * m4/stpncpy.m4: New file.
125138 2003-01-29  Bruno Haible  <bruno@clisp.org>
125140         * lib/stpncpy.h: New file, from GNU gettext with modifications.
125141         * lib/stpncpy.c: New file, from GNU gettext with modifications.
125143 2003-01-28  Bruno Haible  <bruno@clisp.org>
125145         * modules/c-ctype: New module.
125146         * MODULES.html.sh (func_all_modules): Add it.
125148 2003-01-28  Bruno Haible  <bruno@clisp.org>
125150         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
125151         Paul Eggert.
125152         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
125153         Paul Eggert.
125155 2003-01-27  Bruno Haible  <bruno@clisp.org>
125157         * modules/xsetenv: New module.
125158         * MODULES.html.sh (func_all_modules): Add it.
125160 2003-01-27  Bruno Haible  <bruno@clisp.org>
125162         * lib/xsetenv.h: New file, from GNU gettext.
125163         * lib/xsetenv.c: New file, from GNU gettext.
125165 2003-01-23  Jim Meyering  <jim@meyering.net>
125167         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
125168         from working on systems without dirfd (at least Irix and OSF1/Tru64).
125170 2003-01-23  Bruno Haible  <bruno@clisp.org>
125172         * modules/minmax: New module.
125173         * MODULES.html.sh (func_all_modules): Add it.
125175 2003-01-23  Bruno Haible  <bruno@clisp.org>
125177         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
125178         Eggert.
125180 2003-01-22  Bruno Haible  <bruno@clisp.org>
125182         * modules/exit: New module.
125183         * MODULES.html.sh (func_all_modules): Add it.
125185 2003-01-22  Bruno Haible  <bruno@clisp.org>
125187         * lib/exit.h: New file, from GNU gettext.
125189 2003-01-19  Bruno Haible  <bruno@clisp.org>
125191         * gnulib-tool: Recognize option --extract-maintainer.
125192         (func_get_maintainer): New function.
125193         * modules/*: Add Maintainer entry.
125195 2003-01-16  Jim Meyering  <jim@meyering.net>
125197         * m4/regex.m4: The `regex' struct is both input and output.
125198         Initialize it before each use.  Patch by Tim Waugh.
125200 2003-01-16  Bruno Haible  <bruno@clisp.org>
125202         * MODULES.html.sh: Add a table of contents. Add the module name as
125203         leftmost column. Add hyperlinks.
125205 2003-01-15  Bruno Haible  <bruno@clisp.org>
125207         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
125209 2003-01-15  Bruno Haible  <bruno@clisp.org>
125211         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
125212         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
125213         suffix.
125215 2003-01-15  Bruno Haible  <bruno@clisp.org>
125217         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
125219 2003-01-15  Bruno Haible  <bruno@clisp.org>
125221         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
125222         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
125224 2003-01-14  Jim Meyering  <jim@meyering.net>
125226         * lib/same.c (same_name): Tweak a comment.
125228 2003-01-14  Bruno Haible  <bruno@clisp.org>
125230         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
125231         when a string comparison is sufficient.
125233 2003-01-14  Bruno Haible  <bruno@clisp.org>
125235         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
125236         'unsigned int'.
125238 2003-01-14  Bruno Haible  <bruno@clisp.org>
125240         * lib/hash-pjw.c: Add comment about low quality of this function.
125242 2003-01-13  Bruno Haible  <bruno@clisp.org>
125244         * modules/stpcpy: Distribute lib/stpcpy.h.
125245         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
125247 2003-01-13  Bruno Haible  <bruno@clisp.org>
125249         * modules/*: Add a description.
125250         * modules/strpbrk: Fix Makefile.am snippet.
125251         * modules/strtoimax: Fix dependencies.
125252         * modules/strtoumax: Likewise.
125254 2003-01-13  Bruno Haible  <bruno@clisp.org>
125256         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
125257         * modules/alloca (Makefile.am): All object files depend on alloca.h.
125258         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
125260 2003-01-13  Bruno Haible  <bruno@clisp.org>
125262         * gnulib-tool (func_create_testdir): Store config/* files in the main
125263         directory.
125264         * config.rpath: Move to ...
125265         * config/config.rpath: ... here.
125266         * modules/gettext: Contains config/config.rpath, not config.rpath.
125267         * modules/iconv: Likewise.
125269 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125271         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125272         to avoid collisions with libcurses and libreadline.
125274         * m4/getstr.m4: Remove.
125275         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
125277 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125279         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125280         to avoid collisions with libcurses and libreadline.
125282         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
125283         * lib/getstr.h, getstr.c: Remove.
125284         * lib/getline.c: Include "getline.h", to check interface.
125285         Move body of old getstr.c here: this defines MIN_CHUNK and
125286         declares getdelim2, which is renamed from getstr.
125287         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
125289         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
125290         All uses changed.
125291         * lib/linebuffer.h: Likewise.
125292         (readline): Remove backward-compatibility macro.
125294 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125296         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125297         to avoid collisions with libcurses and libreadline.
125298         * getstr: Remove.
125299         * MODULES.html.sh: Remove getstr.
125300         * modules/getline: Depend on unlocked-io, not getstr.
125302 2003-01-12  Jim Meyering  <jim@meyering.net>
125304         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
125306 2003-01-10  Bruno Haible  <bruno@clisp.org>
125308         * modules/alloca: Change Makefile.am requirements. Simplify Include
125309         requirements. Add lib/alloca_.h to file list.
125311 2003-01-10  Bruno Haible  <bruno@clisp.org>
125313         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
125315 2003-01-10  Bruno Haible  <bruno@clisp.org>
125317         * lib/alloca_.h: New file.
125318         * lib/getdate.y: Unconditionally include alloca.h.
125319         * lib/makepath.c: Likewise.
125320         * lib/setenv.c: Likewise.
125321         * lib/userspec.c: Likewise.
125323 2003-01-09  Karl Berry  <karl@gnu.org>
125325         * MODULES.html.sh: include `dirname $0` in PATH, to find
125326         gnulib-tool.
125328 2003-01-09  Bruno Haible  <bruno@clisp.org>
125330         * modules/stdbool: Change configure.ac, Makefile.am requirements.
125331         Simplify Include requirements. Add lib/stdbool.h.in to file list.
125333 2003-01-09  Bruno Haible  <bruno@clisp.org>
125335         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
125337 2003-01-09  Bruno Haible  <bruno@clisp.org>
125339         * lib/stdbool.h.in: New file.
125341 2003-01-09  Bruno Haible  <bruno@clisp.org>
125343         * gnulib-tool (func_all_modules): Ignore files ending in ~.
125344         * MODULES.html.sh: Likewise.
125346 2003-01-08  Jim Meyering  <jim@meyering.net>
125348         * lib/full-write.c: Undefine and define-away `const' after inclusion
125349         of errno.h, not before.  Suggestion from Bruno Haible.
125351 2003-01-08  Bruno Haible  <bruno@clisp.org>
125353         * modules/full-read: Depend on full-write.
125355 2003-01-08  Bruno Haible  <bruno@clisp.org>
125357         * lib/safe-read.c: Include specification header first, to ensure its
125358         selfcontainedness.
125359         * lib/full-write.c: Likewise.
125361 2003-01-07  Jim Meyering  <jim@meyering.net>
125363         * lib/full-write.c: Rework so that it may serve to define full_read,
125364         too.
125365         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
125367 2003-01-07  Bruno Haible  <bruno@clisp.org>
125369         * lib/strtoimax.c: Include <stdint.h> as an alternative to
125370         <inttypes.h>.
125371         * lib/xstrtol.h: Likewise.
125372         * lib/xstrtoimax.c: Likewise.
125373         * lib/xstrtoumax.c: Likewise.
125374         * lib/human.h: Likewise.
125376         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
125377         on systems that have <inttypes.h> but not <stdint.h>.
125379 2003-01-07  Bruno Haible  <bruno@clisp.org>
125381         * MODULES.html.sh: Add copyright notice.
125382         (missed_files): Omit CVS directory entries.
125383         (func_module): Make it work with sed-3.02.
125384         * MODULES.txt: Remove file.
125386 2003-01-06  Jim Meyering  <jim@meyering.net>
125388         * lib/version-etc.c: Update year in translatable copyright string.
125390 2003-01-03  Karl Berry  <karl@gnu.org>
125392         * config/config.{guess,sub}: update from prep.
125394 2003-01-02  Karl Berry  <karl@gnu.org>
125396         * doc/COPYING.DOC: belatedly updated to 1.2.
125398 2003-01-01  Karl Berry  <karl@gnu.org>
125400         * gnulib-tool (func_verify_module): report module name $module in
125401         error message, not $1.
125402         * gnulib-tool (create-testdir): don't complain if destdir couldn't
125403         be created, only if it doesn't exist.
125404         * gnulib-tool (last_checkin_date): don't expand the $Date here.
125406 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125408         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
125410 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125412         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
125413         memcmp if strcoll doesn't work.
125415 2002-12-31  Bruno Haible  <bruno@clisp.org>
125417         * lib/utime.c (utime_null): No need to call ftruncate if the file was
125418         nonempty.
125420 2002-12-31  Bruno Haible  <bruno@clisp.org>
125422         * lib/memcoll.c (STRCOLL): New macro.
125423         (memcoll): Use it.
125425 2002-12-31  Bruno Haible  <bruno@clisp.org>
125427         * lib/localcharset.h: New file.
125428         * lib/localcharset.c: Include it.
125429         * lib/unicodeio.c: Likewise.
125431 2002-12-31  Bruno Haible  <bruno@clisp.org>
125433         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
125434         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
125436 2002-12-31  Bruno Haible  <bruno@clisp.org>
125438         * lib/getline.h: Include <stddef.h>, for size_t.
125440         * lib/unicodeio.h: Include <stddef.h>, for size_t.
125441         * lib/unicodeio.c: Don't include <stddef.h>.
125443 2002-12-31  Bruno Haible  <bruno@clisp.org>
125445         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
125446         HAVE_TM_ZONE.
125448 2002-12-24  Karl Berry  <karl@gnu.org>
125450         * config/config.guess: update from prep.
125452 2002-12-24  Bruno Haible  <bruno@clisp.org>
125454         General infrasructure.
125455         * m4/README: Rewritten.
125456         * m4/onceonly.m4: New file.
125457         * m4/onceonly_2_57.m4: New file.
125459         Module atexit.
125460         * m4/atexit.m4: New file.
125462         Module strtod.
125463         * m4/strtod.m4: New file.
125465         Module strtol.
125466         * m4/strtol.m4: New file.
125468         Module strtoul.
125469         * m4/strtoul.m4: New file.
125471         Module memchr.
125472         * m4/memchr.m4: New file.
125474         Module memcmp.
125475         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
125476         (jm_FUNC_MEMCMP): Invoke it.
125478         Module memcpy.
125479         * m4/memcpy.m4: New file.
125481         Module memmove.
125482         * m4/memmove.m4: New file.
125484         Module memset.
125485         * m4/memset.m4: New file.
125487         Module strcspn.
125488         * m4/strcspn.m4: New file.
125490         Module strpbrk.
125491         * m4/strpbrk.m4: New file.
125493         Module strstr.
125494         * m4/strstr.m4: New file.
125496         Module strerror.
125497         * m4/strerror.m4: New file.
125499         Module mktime.
125500         * m4/mktime.m4: Renamed from jm-mktime.m4.
125501         (gl_PREREQ_MKTIME): New macro.
125502         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
125504         Module malloc.
125505         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
125506         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
125507         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
125509         Module realloc.
125510         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
125511         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
125512         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
125514         Module strftime.
125515         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
125516         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
125517         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
125518         gl_TM_GMTOFF.
125519         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
125521         Module xalloc.
125522         * m4/xalloc.m4: New file.
125524         Module alloca.
125525         * m4/alloca.m4: New file.
125527         Module putenv.
125528         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
125529         (jm_FUNC_PUTENV): Invoke it.
125531         Module setenv.
125532         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
125533         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
125534         when invoked twice.
125535         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
125536         gt_FUNC_SETENV.
125538         Module memrchr.
125539         * m4/memrchr.m4: New file.
125541         Module stpcpy.
125542         * m4/stpcpy.m4: New file.
125544         Module strcase.
125545         * m4/strcase.m4: New file.
125547         Module strdup.
125548         * m4/strdup.m4: New file.
125550         Module strnlen.
125551         * m4/strnlen.m4: New file.
125553         Module strndup.
125554         * m4/strndup.m4: New file.
125556         Module xstrtod.
125557         * m4/xstrtod.m4: New file.
125559         Module xstrtol.
125560         * m4/xstrtol.m4: New file.
125562         Module getdate.
125563         * m4/getdate.m4: New file.
125565         Module unlocked-io.
125566         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
125567         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
125568         * m4/jm-glibc-io.m4n: Remove file.
125570         Module long-options.
125571         * m4/long-options.m4: New file.
125573         Module md5.
125574         * m4/md5.m4: New file.
125576         Module sha.
125577         * m4/sha.m4: New file.
125579         Module getstr.
125580         * m4/getstr.m4: New file.
125582         Module getline.
125583         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
125584         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
125585         <sys/types.h>, for size_t. Use the function name gnu_getline, not
125586         simply getline. Infoke gl_PREREQ_GETLINE.
125588         Module obstack.
125589         * m4/obstack.m4: New file.
125591         Module hash.
125592         * m4/hash.m4: New file.
125594         Module readtokens.
125595         * m4/readtokens.m4: New file.
125597         Module strverscmp.
125598         * m4/strverscmp.m4: New file.
125600         Module stdbool.
125601         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
125602         OSF/1.
125604         Module strtoll.
125605         * m4/strtoll.m4: New file.
125607         Module strtoull.
125608         * m4/strtoull.m4: New file.
125610         Module strtoimax.
125611         * m4/strtoimax.m4: New file.
125613         Module strtoumax.
125614         * m4/strtoumax.m4: New file.
125616         Module xstrtoimax.
125617         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
125618         jm_AC_PREREQ_XSTRTOIMAX.
125619         Moved the strtol prerequisites to strtol.m4.
125620         Moved the strtoll prerequisites to strtoll.m4.
125621         Moved the strtoimax prerequisites to strtoimax.m4.
125623         Module xstrtoumax.
125624         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
125625         jm_AC_PREREQ_XSTRTOUMAX.
125626         Moved the strtoul prerequisites to strtoul.m4.
125627         Moved the strtoull prerequisites to strtoull.m4.
125628         Moved the strtoumax prerequisites to strtoumax.m4.
125630         Module chown.
125631         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
125632         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
125634         Module dup2.
125635         * m4/dup2.m4: New file.
125637         Module ftruncate.
125638         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
125639         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
125641         Module getgroups.
125642         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
125643         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
125645         Module gettimeofday.
125646         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
125647         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
125648         gl_PREREQ_GETTIMEOFDAY.
125650         Module mkdir.
125651         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
125652         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
125654         Module mkstemp.
125655         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
125656         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
125657         jm_AC_TYPE_UINTMAX_T.
125658         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
125660         Module stat.
125661         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
125662         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
125664         Module lstat.
125665         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
125666         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
125668         Module timespec.
125669         * m4/timespec.m4 (gl_TIMESPEC): New macro.
125670         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
125671         * m4/st_mtim.m4: Indentation.
125673         Module nanosleep.
125674         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
125675         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
125676         gl_PREREQ_NANOSLEEP.
125678         Module regex.
125679         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
125680         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
125681         (gl_REGEX): New macro.
125683         Module rename.
125684         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
125685         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
125687         Module rmdir.
125688         * m4/rmdir.m4: New file.
125690         Module utime.
125691         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
125692         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
125693         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
125695         Module dirname.
125696         * m4/dirname.m4: New file.
125698         Module getopt.
125699         * m4/getopt.m4: New file.
125701         Module unistd-safer.
125702         * m4/unistd-safer.m4: New file.
125704         Module fnmatch.
125705         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
125706         declaration.
125707         (gl_PREREQ_FNMATCH_EXTRA): New macro.
125708         (gl_FUNC_FNMATCH_POSIX): New macro.
125709         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
125710         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
125711         simply fnmatch.
125713         Module exclude.
125714         * m4/exclude.m4: New file.
125716         Module human.
125717         * m4/human.m4: New file.
125719         Module acl.
125720         * m4/acl.m4: Nop.
125722         Module backupfile.
125723         * m4/backupfile.m4: New file.
125724         * m4/d-ino.m4: Indentation.
125726         Module fsusage.
125727         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
125728         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
125729         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
125731         Module dirfd.
125732         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
125733         requirements.
125735         Module euidaccess.
125736         * m4/euidaccess.m4: New file.
125738         Module file-type.
125739         * m4/file-type.m4: New file.
125741         Module fileblocks.
125742         * m4/fileblocks.m4: New file.
125744         Module filemode.
125745         * m4/filemode.m4: New file.
125747         Module isdir.
125748         * m4/isdir.m4: New file.
125750         Module lchown.
125751         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
125752         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
125754         Module makepath.
125755         * m4/makepath.m4: New file.
125757         Module modechange.
125758         * m4/modechange.m4: New file.
125760         Module mountlist.
125761         * m4/mountlist.m4: New file.
125762         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
125763         Indentation.
125765         Module path-concat.
125766         * m4/path-concat.m4: New file.
125768         Module pathmax.
125769         * m4/pathmax.m4: New file.
125771         Module same.
125772         * m4/same.m4: New file.
125774         Module save-cwd.
125775         * m4/save-cwd.m4: New file.
125777         Module savedir.
125778         * m4/savedir.m4: New file.
125780         Module xgetcwd.
125781         * m4/xgetcwd.m4: New file.
125782         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
125784         Module xreadlink.
125785         * m4/xreadlink.m4: New file.
125787         Module safe-read.
125788         * m4/safe-read.m4: New file.
125790         Module safe-write.
125791         * m4/safe-write.m4: New file.
125793         Module closeout.
125794         * m4/closeout.m4: New file.
125796         Module stdio-safer.
125797         * m4/stdio-safer.m4: New file.
125799         Module getpass.
125800         * m4/getpass.m4: New file.
125802         Module getugroups.
125803         * m4/getugroups.m4: New file.
125805         Module group-member.
125806         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
125807         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
125809         Module idcache.
125810         * m4/idcache.m4: New file.
125812         Module userspec.
125813         * m4/userspec.m4: New file.
125815         Module gettime.
125816         * m4/clock_time.m4: New file.
125817         * m4/gettime.m4: New file.
125819         Module settime.
125820         * m4/settime.m4: New file.
125822         Module posixtm.
125823         * m4/posixtm.m4: New file.
125825         Module gethostname.
125826         * m4/gethostname.m4: New file.
125828         Module canon-host.
125829         * m4/canon-host.m4: New file.
125831         Module gettext.
125832         * m4/codeset.m4: New file, from gettext-0.11.5.
125833         * m4/gettext.m4: New file, from gettext-0.11.5.
125834         * m4/glibc21.m4: New file, from gettext-0.11.5.
125835         * m4/iconv.m4: New file, from gettext-0.11.5.
125836         * m4/intdiv0.m4: New file, from gettext-0.11.5.
125837         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
125838         * m4/inttypes.m4: New file, from gettext-0.11.5.
125839         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
125840         * m4/isc-posix.m4: New file, from gettext-0.11.5.
125841         * m4/lcmessage.m4: New file, from gettext-0.11.5.
125842         * m4/lib-ld.m4: New file, from gettext-0.11.5.
125843         * m4/lib-link.m4: New file, from gettext-0.11.5.
125844         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
125845         * m4/progtest.m4: New file, from gettext-0.11.5.
125846         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
125847         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
125848         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
125850         Module localcharset.
125851         * m4/localcharset.m4: New file.
125853         Module hard-locale.
125854         * m4/hard-locale.m4: New file.
125856         Module mbswidth.
125857         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
125858         onceonly macros.
125859         * m4/mbrtowc.m4: Add comment.
125861         Module memcasecmp.
125862         * m4/memcasecmp.m4: New file.
125864         Module memcoll.
125865         * m4/memcoll.m4: New file.
125867         Module unicodeio.
125868         * m4/unicodeio.m4: New file.
125870         Module rpmatch.
125871         * m4/rpmatch.m4: New file.
125873         Module yesno.
125874         * m4/yesno.m4: New file.
125876         Module exitfail.
125877         * m4/exitfail.m4: New file.
125879         Module c-stack.
125880         * m4/c-stack.m4 (gl_C_STACK): New macro.
125881         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
125883         Module error.
125884         * m4/error.m4 (gl_ERROR): New macro.
125885         (jm_PREREQ_ERROR): Use onceonly macros.
125887         Module fatal.
125888         * m4/fatal.m4: New file.
125890         Module getloadavg.
125891         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
125892         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
125894         Module getpagesize.
125895         * m4/getpagesize.m4: New file.
125897         Module getusershell.
125898         * m4/getusershell.m4: New file.
125900         Module physmem.
125901         * m4/physmem.m4: New file.
125903         Module posixver.
125904         * m4/posixver.m4: New file.
125906         Module quotearg.
125907         * m4/quotearg.m4: New file.
125909         Module quote.
125910         * m4/quote.m4: New file.
125912         Module readutmp.
125913         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
125915         Module sig2str.
125916         * m4/sig2str.m4: New file.
125918         Other.
125919         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
125920         ulonglong.m4.
125921         * m4/intmax_t.m4: New file.
125922         * m4/d-type.m4: Indentation.
125923         * m4/jm-macros.m4: Update.
125924         * m4/prereq.m4 (jm_PREREQ): Update.
125925         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
125926         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
125927         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
125928         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
125929         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
125930         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
125931         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
125932         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
125933         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
125934         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
125935         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
125936         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
125937         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
125938         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
125939         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
125940         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
125941         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
125942         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
125943         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
125945 2002-12-24  Bruno Haible  <bruno@clisp.org>
125947         * MODULES.txt: Update according to m4/ changes.
125949         Module gettext.
125950         * config.rpath: New file, from gettext-0.11.5.
125952         * modules/*: New module descriptions.
125953         * gnulib-tool: New file.
125954         * MODULES.html.sh: New file.
125956 2002-12-21  Karl Berry  <karl@gnu.org>
125958         * doc/fdl.texi: update to version 1.2.
125960 2002-12-19  Karl Berry  <karl@gnu.org>
125962         * config/config.guess: update from prep.
125964 2002-12-18  Bruno Haible  <bruno@clisp.org>
125966         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
125967         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
125969 2002-12-17  Bruno Haible  <bruno@clisp.org>
125971         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
125972         stdlib.h, string.h.
125974 2002-12-17  Bruno Haible  <bruno@clisp.org>
125976         * lib/canon-host.c (strdup): Remove unused declaration.
125978         * lib/fsusage.c: Include full_read.h.
125979         (get_fs_usage): Use full_read instead of safe_read.
125981         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
125983 2002-12-12  Karl Berry  <karl@gnu.org>
125985         * config/config.guess: update from prep.
125987 2002-12-11  Bruno Haible  <bruno@clisp.org>
125989         * m4/setenv.m4: New file, from gettext-0.11.5.
125991 2002-12-11  Bruno Haible  <bruno@clisp.org>
125993         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
125994         not unsetenv().
125995         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
125996         modifications:
125998         2002-12-11  Bruno Haible  <bruno@clisp.org>
126000                 * setenv.c (alloca): Fall back to malloc.
126001                 (freea): New macro.
126002                 (setenv): Use freea() to free memory allocated with alloca().
126004         2002-11-13  Bruno Haible  <bruno@clisp.org>
126006                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
126007                 function declarations.
126008                 * unsetenv.c (unsetenv): Likewise.
126010         2002-03-04  Bruno Haible  <bruno@clisp.org>
126012                 Portability to AIX 4.3.3.
126013                 * unsetenv.c: New file, extracted from setenv.c.
126014                 * setenv.c: Move the unsetenv() function to unsetenv.c.
126016         2001-12-20  Bruno Haible  <bruno@clisp.org>
126018                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
126019                 use malloc instead. For SunOS 4.
126021         2001-12-11  Bruno Haible  <bruno@clisp.org>
126023                 * setenv.c: Declare alloca.
126024                 (compar_fn_t): New typedef.
126025                 (KNOWN_VALUE, STORE_VALUE): Use it.
126027         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
126028         setenv.h.
126030 2002-12-10  Paul Eggert  <eggert@twinsun.com>
126032         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
126033         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
126034         Choose values that are less likely to collide with system fnmatch
126035         options.
126036         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
126037         defined (e.g., a pure POSIX system).
126038         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
126039         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
126041 2002-12-06  Paul Eggert  <eggert@twinsun.com>
126043         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
126044         a pain in practice to deal with generated m4 files.  This change
126045         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
126047         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
126048         and jm-glibc-io.m4, as they are no longer a special case.
126049         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
126050         kludge and the auto-generation stuff.  Check only whether the
126051         functions are declared, not whether they exist, since older hosts
126052         that don't declare the functions can't use the optimization anyway.
126054 2002-12-06  Jim Meyering  <jim@meyering.net>
126056         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
126058         Merge in changes from libc's misc/error.c, in preparation
126059         for the merge of gnulib's changes back into libc.
126061         * lib/error.c (_): Define only if not already defined.
126062         Move definition to follow all #include directives.
126063         Include unlocked-io.h only if !_LIBC.
126064         [_LIBC]: Include <libio/libioP.h>.
126065         [USE_IN_LIBIO]: Include <libio/iolibio.h>
126066         (fflush): Tweak definition to use INTUSE.
126067         (putc): Define.
126069 2002-12-05  Paul Eggert  <eggert@twinsun.com>
126071         * lib/alloca.c [defined emacs]: Include "lisp.h".
126072         (xalloc_die) [defined emacs]: New macro.
126073         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
126074         [! defined emacs]: Include <xalloc.h>.
126075         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
126076         (pointer): Typedef to POINTER_TYPE *.
126077         (malloc): Remove decl; we now always use xmalloc.
126078         (alloca): Use old-style definition, since Emacs needs this.
126079         Check for arithmetic overflow when computing combined size.
126081 2002-12-04  Paul Eggert  <eggert@twinsun.com>
126083         Do not generate unlocked-io.h automatically, since it's easier to
126084         maintain it by hand.
126086         * lib/unlocked-io.h: New file, from GNU diffutils,
126087         but with proper copyright notice and attribution.
126088         * lib/gen-uio: Remove.
126089         * lib/Makefile.am: Add copyright notice.
126090         (libfetish_a_SOURCES): Add unlocked-io.h.
126091         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
126092         (DISTCLEANFILES, io_functions): Remove macros.
126093         (EXTRA_DIST): Remove gen_uio.
126094         (unlocked-io.h): Remove rule.
126096 2002-12-04  Jim Meyering  <jim@meyering.net>
126098         Reflect the fact that stat.c and lstat.c are no longer generated.
126099         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
126100         (DISTCLEANFILES): Likewise.
126101         (EXTRA_DIST): Likewise.
126102         (all_local): Don't depend on stat.c or lstat.c.
126103         (stat.c, lstat.c): Remove rules.
126104         (EXTRA_DIST): Remove xstat.in.
126106         * lib/xstat.in: Remove file.  Contents moved into stat.c.
126107         * lib/stat.c: New file.  Contents mostly from xstat.in.
126108         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
126109         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
126111         * lib/safe-read.c: Rework so that it may serve to define safe_write,
126112         too.
126113         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
126115 2002-12-03  Jim Meyering  <jim@meyering.net>
126117         * lib/safe-read.c, safe-write.c: Change variable names and comments,
126118         but not semantics, to minimize the differences between these two files.
126119         (safe_read): Change comment to mention SAFE_READ_ERROR.
126121         * lib/safe-read.c (IS_EINTR): Define.
126122         (safe_read): Use IS_EINTR in place of in-function cpp directives.
126124 2002-12-02  Jim Meyering  <jim@meyering.net>
126126         * lib/safe-read.c (EINTR): Define.
126127         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
126128         (INT_MAX): Provide fallback.
126129         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
126131         * lib/safe-read.h (SAFE_READ_ERROR): Define.
126133 2002-12-02  Bruno Haible  <bruno@clisp.org>
126135         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
126136         Define, taken from safe-read.c.
126137         (INT_MAX): Provide fallback.
126138         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
126139         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
126141         * lib/safe-read.c (EINTR): Remove definition.
126142         (safe_read): Don't use EINTR if it is absent.
126144 2002-12-01  Jim Meyering  <jim@meyering.net>
126146         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
126147         zero.
126148         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
126150 2002-11-27  Paul Eggert  <eggert@twinsun.com>
126152         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
126153         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
126154         with `if (! (value < limit)) abort ();', for readability.
126156 2002-11-26  Karl Berry  <karl@gnu.org>
126158         * lib/strdup.c: copy from libc again, with jim's ok.
126159         * lib/.cppi-disable: re-add strdup.c
126161 2002-11-25  Karl Berry  <karl@gnu.org>
126163         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
126164         instead of "strtol.c".
126166 2002-11-25  Karl Berry  <karl@gnu.org>
126168         * config/install-sh: update from automake for variable quoting, $0 in
126169         error msgs, etc.
126171         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
126172         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
126173         entry.
126175 2002-11-25  Jim Meyering  <jim@meyering.net>
126177         * lib/mktime.c: Sync from libc, now that it has the latest fix.
126179 2002-11-24  Karl Berry  <karl@gnu.org>
126181         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
126182         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
126184 2002-11-24  Jim Meyering  <jim@meyering.net>
126186         Update from coreutils:
126188         * lib/mktime.c: Merge in changes from libc.
126190         Avoid a link-time failure on some Linux systems.
126191         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
126192         (otherwise).
126193         (__mon_yday): Declare with the STATIC attribute.
126194         (__mktime_internal): Likewise.
126195         Based on a report from Greg Schafer.
126197 2002-11-23  Jim Meyering  <jim@meyering.net>
126199         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
126200         Use `unsigned', not `int', as type of index.
126202         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
126204         * lib/fsusage.c: Remove unneeded parentheses around operands of
126205         `defined'.
126207 2002-11-22  Paul Eggert  <eggert@twinsun.com>
126209         * lib/quotearg.h: Allow multiple inclusion by surrounding with
126210         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
126211         so that we can be included first.
126212         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
126213         * lib/quotearg.c: Include quotearg.h immediately after config.h.
126214         No need to include stddef.h or sys/types.h any more.
126215         Surround local include files with "", not "<>".
126216         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
126217         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
126218         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
126219         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
126220         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
126221         (ISPRINT): Remove; no longer needed now that we assume C89.
126223         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
126224         Preserve errno.
126226         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
126227         quotearg_char): Use SIZE_MAX rather than
126228         (size_t) -1 when we are talking about "infinity".
126230         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
126232 2002-11-22  Paul Eggert  <eggert@twinsun.com>
126234         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
126235         hint that one should use `if (! x) abort ();' rather than `assert
126236         (x);', and anyway it's one less thing to worry about configuring.
126237         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
126238         hash_rehash, hash_insert): Use abort rather than assert.
126240 2002-11-22  Bruno Haible  <bruno@clisp.org>
126242         * lib/safe-read.h: Assume C89. Add comments.
126243         (safe_read): Change return type to size_t.
126244         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
126245         byte counts > SSIZE_MAX correctly.
126246         * lib/safe-write.h: New file.
126247         * lib/safe-write.c: New file.
126248         * lib/full-read.h: New file.
126249         * lib/full-read.c: New file.
126250         * lib/full-write.h: Assume C89. Add comments.
126251         * lib/full-write.c: Include safe-write.h.
126252         (full_write): Rewritten to use safe_write.
126253         Suggested by Jim Meyering and Paul Eggert.
126255 2002-11-21  Jim Meyering  <jim@meyering.net>
126257         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
126259         Merge in changes from the coreutils.
126261         2002-09-25  Paul Eggert  <eggert@twinsun.com>
126262         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
126263         <stdint.h>.
126264         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
126265         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
126266         int.  Work more efficiently if X is the same width as uintmax_t.
126267         Do not compare X to -1, to avoid bogus compiler warning.
126268         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
126269         Don't assume that f_frsize and f_bsize are the same type.
126271         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
126272         warning on FreeBSD.
126274         * lib/makepath.c (make_path): Restore umask *before* creating the final
126275         component.
126276         (make_path): Minor reformatting.
126278         * lib/xmalloc.c: Adjust to work with new autoconf macros,
126279         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
126280         HAVE_MALLOC/HAVE_REALLOC.
126282         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
126283         dummy ones.  At least on GNU/Linux systems, `auto' means something
126284         else.
126285         From Michael Stone.
126287 2002-11-21  Bruno Haible  <bruno@clisp.org>
126289         Remove case insensitive option matching.
126290         * lib/argmatch.h (argcasematch): Remove declaration.
126291         (ARGCASEMATCH): Remove macro.
126292         (__xargmatch_internal): Remove case_sensitive argument.
126293         (XARGMATCH): Update.
126294         (XARGCASEMATCH): Remove macro.
126295         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
126296         case_sensitive argument.
126297         (argcasematch): Remove function.
126298         (__xargmatch_internal): Remove case_sensitive argument.
126299         (main): Use XARGMATCH instead of XARGCASEMATCH.
126301         * lib/xmalloc.c: Change compile-time error message. Add comment about
126302         required autoconf version.
126304 2002-11-20  Paul Eggert  <eggert@twinsun.com>
126306         Merge argmatch cleanups from Bison.  Assume C89.
126308         * lib/argmatch.c: Include config.h here, not in argmatch.h.
126309         Include stdlib.h, for EXIT_FAILURE.
126310         Always include <string.h>, since we assume C89.
126311         (EXIT_FAILURE): Remove pre-C89 bug workaround.
126312         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
126313         Include <stddef.h> instead, since it's all we need for size_t.
126314         (PARAMS): Remove.  All uses removed.
126315         (ARRAY_CARDINALITY): Do not bother to #undef.
126316         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
126317         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126318         Remove unnecessary parentheses.
126319         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126320         Insert necessary parentheses.
126321         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
126322         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
126324 2002-11-19  Bruno Haible  <bruno@clisp.org>
126326         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
126327         * lib/mbswidth.h: Include <stddef.h>, for size_t.
126329         * lib/mbswidth.h (PARAMS): Remove macro.
126330         (mbswidth, mbsnwidth): Use ANSI C function declarations.
126331         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
126333         * lib/gcd.h (PARAMS): Remove macro.
126334         (gcd): Use ANSI C function declarations.
126335         * lib/gcd.c (gcd): Likewise.
126337 2002-11-15  Bruno Haible  <bruno@clisp.org>
126339         * lib/strcspn.c: Include <stddef.h>.
126340         (strcspn): Use ANSI C function declaration. Change return type to
126341         size_t. Use NULL.
126342         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
126343         (strpbrk): Use NULL.
126344         * lib/strpbrk.h (PARAMS): Remove macro.
126345         (strpbrk): Use ANSI C function declaration.
126346         * lib/strstr.c: Don't include <sys/types.h>.
126347         * lib/strstr.h (PARAMS): Remove macro.
126348         (strstr): Use ANSI C function declarations.
126350 2002-11-14  Karl Berry  <karl@gnu.org>
126352         * config/mkinstalldirs: `do' on separate line, instead of
126353         `for var; do'.
126355 2002-11-06  Bruno Haible  <bruno@clisp.org>
126357         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
126358         * lib/gcd.c (gcd): Likewise.
126360 2002-11-05  Bruno Haible  <bruno@clisp.org>
126362         * lib/gcd.h: New file, from gettext-0.11.5.
126363         * lib/gcd.c: New file, from gettext-0.11.5.
126365 2002-11-05  Bruno Haible  <bruno@clisp.org>
126367         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126368         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126369         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126370         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126372         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
126373         <libintl.h>.
126374         * lib/makepath.c: Include gettext.h instead of <locale.h> and
126375         <libintl.h>.
126377         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
126378         * lib/human.c: Include gettext.h instead of <libintl.h>.
126379         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
126380         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
126381         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
126382         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
126383         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
126384         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
126385         (textdomain): Remove definition.
126386         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
126388         * lib/long-options.c: Remove include of <libintl.h> and definition of
126389         _.
126390         * lib/same.c: Remove include of <libintl.h> and definition of _.
126392 2002-11-04  Owen Taylor  <otaylor@redhat.com>
126394         * lib/config.charset: A few additions for Solaris.
126396 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126398         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
126399         * lib/localcharset.c (locale_charset): Declare as extern "C".
126401 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126403         * lib/config.charset: msdos in uk_UA uses CP1125.
126405 2002-11-04  Bruno Haible  <bruno@clisp.org>
126407         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
126408         * lib/strcase.h: New file, from GNU gettext-0.11.5.
126409         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
126410         * lib/strstr.h: New file, from GNU gettext-0.11.5.
126411         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
126413 2002-11-04  Bruno Haible  <bruno@clisp.org>
126415         * lib/localcharset.c (locale_charset): Don't return an empty string.
126417 2002-11-04  Bruno Haible  <bruno@clisp.org>
126419         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
126420         aliases.
126422 2002-11-04  Bruno Haible  <bruno@clisp.org>
126424         * lib/config.charset: Update for newest glibc. Add canonical names
126425         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
126427 2002-11-04  Bruno Haible  <bruno@clisp.org>
126429         * lib/config.charset: Add support for NetBSD.
126431 2002-11-04  Bruno Haible  <bruno@clisp.org>
126433         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
126435 2002-11-01  Bruno Haible  <bruno@clisp.org>
126437         * configure.in: Add AC_CONFIG_AUX_DIR call.
126438         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
126439         test/Makefile.
126440         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
126442 2002-09-28  Karl Berry  <karl@gnu.org>
126444         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
126445         installed automake until the next release, since changes have been
126446         made.
126448 2002-09-25  Karl Berry  <karl@gnu.org>
126450         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
126451         * lib/getopt*: copy from libc/posix.
126452         * lib/gettext.h: copy from gettext.
126453         * lib/.cppi-disable: add strdup.c, gettext.h.
126455 2002-09-25  Karl Berry  <karl@gnu.org>
126457         * config/srclist.txt: enable gettext.h check.
126458         * config/config.{guess,sub}: update from prep.
126459         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
126460                 from automake 1.6.3.
126461         See srclist*.
126463 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
126465         * regex.c (PATFETCH): Remove the translating fetch.
126466         (PATFETCH_RAW): Rename to PATFETCH.
126467         (set_image_of_range): New fun.
126468         (SET_RANGE_TABLE_WORK_AREA): Use it.
126469         (regex_compile): Don't translate the pattern chars so eagerly.
126470         Only do it when inserting an `exactn' bytecode or when handling
126471         a char-range.
126472         (mutually_exclusive_p): Avoid empty statement.
126474 2002-07-06  Jim Meyering  <meyering@lucent.com>
126476         * m4/README: Don't mention Makefile.am.in.
126477         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
126479 2002-07-01  Jim Meyering  <meyering@lucent.com>
126481         * lib/c-stack.c: Include sys/time.h.
126482         From Volker Borchert.
126484 2002-06-26  Paul Eggert  <eggert@twinsun.com>
126486         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
126488 2002-06-26  Paul Eggert  <eggert@twinsun.com>
126490         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
126491         New macro.  Use it uniformly instead of
126492         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
126493         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
126494         reported by Vin Shelton.
126496 2002-06-22  Paul Eggert  <eggert@twinsun.com>
126498         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
126499         Do not assume SA_SIGINFO behavior.
126500         Bug reported by Jim Meyering on NetBSD 1.5.2.
126502 2002-06-22  Jim Meyering  <meyering@lucent.com>
126504         * m4/c-stack.m4: New file, from diffutils-2.8.2.
126505         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
126507         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
126508         now that configure.ac uses AC_GNU_SOURCE.
126509         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
126510         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
126512         Update to latest tools.  Suggestions from Paul Eggert.
126513         * m4/stdbool.m4: New file, from diffutils-2.8.2.
126514         * m4/gnu-source.m4: Update from diffutils-2.8.2.
126515         * m4/fnmatch.m4: Likewise.
126516         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
126517         to AC_HEADER_STDBOOL
126519 2002-06-22  Jim Meyering  <meyering@lucent.com>
126521         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
126522         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
126524 2002-06-22  Jim Meyering  <meyering@lucent.com>
126526         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
126528         * lib/exitfail.c, exitfail.h: Likewise.
126529         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
126531         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
126532         of fnmatch.h.
126533         (EXTRA_DIST): Add fnmatch_loop.c.
126534         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
126536         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
126537         * lib/fnmatch.c: Update from diffutils-2.8.2.
126538         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
126539         * lib/fnmatch.h: Remove file.
126541 2002-06-21  Jim Meyering  <meyering@lucent.com>
126543         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
126544         * m4/mbrtowc.m4: Likewise.
126546         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
126547         * m4/mbswidth.m4: Reflect name change:
126548         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
126549         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
126551         * m4/lib-link.m4: Update from gettext-0.11.2.
126552         * m4/gettext.m4: Likewise.
126554         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
126555         From Alfred M. Szmidt.
126557 2002-06-18  Paul Eggert  <eggert@twinsun.com>
126559         * lib/file-type.h: Report an error if neither S_ISREG nor
126560         S_IFREG is defined, instead of using a test specific to glibc
126561         2.2.  This should be safe, since POSIX requires S_ISREG and
126562         Unix Version 7 had S_IFREG.  We don't need to check for
126563         <sys/types.h> since we don't use any symbols that it defines.
126565 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
126567         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
126568         $@-t, so that each temporary file name is unique and valid in the first
126569         8 characters, for operation under DOS.
126571 2002-06-15  Paul Eggert  <eggert@twinsun.com>
126573         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
126575 2002-06-15  Jim Meyering  <meyering@lucent.com>
126577         Work even with DJGPP 2.03, which lacks support for symlinks.
126578         From Richard Dawe.
126579         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
126580         is defined.
126581         * lib/lchown.c (S_ISLNK): Likewise.
126583 2002-06-15  Jim Meyering  <meyering@lucent.com>
126585         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
126586         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
126587         have been included before this file.
126589 2002-06-14  Jim Meyering  <meyering@lucent.com>
126591         * lib/file-type.h: Use the version from diffutils-2.8.2.
126592         * lib/file-type.c: Likewise.
126594 2002-06-07  Jim Meyering  <meyering@lucent.com>
126596         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
126597         They're needed at least for NetBSD 1.5.2.
126598         ($statxfs_includes): Include those same headers.
126599         ($statxfs_includes): Include sys/vfs.h if available.
126600         ($statxfs_includes): Likewise for sys/statvfs.h.
126601         Check for the following members in both structs statfs and statvfs:
126602         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
126604 2002-06-01  Jim Meyering  <meyering@lucent.com>
126606         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
126607         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
126609 2002-05-28  Jim Meyering  <meyering@lucent.com>
126611         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
126612         Reported by Volker Borchert.
126614 2002-05-27  Jim Meyering  <meyering@lucent.com>
126616         Fix a problem seen only on nonconforming systems whereby ls.c's
126617         use of localtime, and then of gettimeofday would cause trouble:
126618         the localtime call used to initialize rpl_gettimeofday's save
126619         mechanism would clobber ls's current local time information so
126620         that in any long listing the first file would always be listed
126621         with date 1970-01-01.  Analysis by Volker Borchert.
126623         * lib/gettimeofday.c (localtime): Undefine.
126624         (rpl_localtime): New function.
126626 2002-05-27  Jim Meyering  <meyering@lucent.com>
126628         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
126629         localtime.
126631         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
126632         use the replacement function; it wouldn't resolve at link time.
126633         Reported by Volker Borchert.
126635 2002-05-22  Jim Meyering  <meyering@lucent.com>
126637         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
126638         file-type.h.
126639         * lib/file-type.h: New file.
126640         * lib/file-type.c (file_type): New file/function.  Extracted from
126641         diffutils.
126643 2002-04-30  Jim Meyering  <meyering@lucent.com>
126645         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
126647 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126649         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
126651 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126653         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
126654         Do not check for alloca.h (no longer used) or stdbool.h (was never
126655         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
126657 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126659         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
126661 2002-04-29  Jim Meyering  <meyering@lucent.com>
126663         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
126664         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
126665         Use AC_FUNC_STRNLEN here instead.
126667         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
126668         With autoconf-2.53a, it's part of AC_PROG_CC.
126670 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126672         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
126673         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
126675 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126677         * lib/sig2str.h, lib/sig2str.c: New files.
126678         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
126680 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126682         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
126683         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
126684         of 127, since 64 is the largest conceivable number for ancient
126685         nonstandard hosts.
126686         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
126688 2002-04-28  Jim Meyering  <meyering@lucent.com>
126690         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
126692 2002-04-24  Jim Meyering  <meyering@lucent.com>
126694         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
126695         (jm_PREREQ): Use it.
126697         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
126698         mach/mach.h fcntl.h.
126699         Check for this function: setlocale.
126701 2002-04-24  Jim Meyering  <meyering@lucent.com>
126703         * lib/gettext.h: New file, from Gettext.
126704         * lib/Makefile.am (INCLUDES): Remove -I../intl.
126705         (libfetish_a_SOURCES): Add gettext.h.
126707 2002-04-16  Jim Meyering  <meyering@lucent.com>
126709         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
126710         ut_pid, ut_id, ut_exit.
126712 2002-04-16  Jim Meyering  <meyering@lucent.com>
126714         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
126715         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
126716         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
126718 2002-04-12  Jim Meyering  <meyering@lucent.com>
126720         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
126721         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
126722         existence of the getmntinfo function.  Needed for Darwin 5.3.
126724         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
126725         This is necessary at least on Darwin 5.3.
126727         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
126728         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
126729         strnlen.o in the library, and that makes some versions of ranlib
126730         object.
126732 2002-04-12  Jim Meyering  <meyering@lucent.com>
126734         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
126736 2002-04-09  Jim Meyering  <meyering@lucent.com>
126738         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
126739         to be more precise.  Rather than saying we're checking whether the
126740         function `works', say what we're testing.
126741         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
126742         Reported by Bruno Haible.
126744 2002-03-10  Jim Meyering  <meyering@lucent.com>
126746         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
126747         Suggestion from Santiago Vila.
126749 2002-03-08  Jim Meyering  <meyering@lucent.com>
126751         * lib/rename.c: Mention that this wrapper is needed also on
126752         mips-dec-ultrix4.4 systems.
126754 2002-03-02  Jim Meyering  <meyering@lucent.com>
126756         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
126757         not HAVE_CLOCK_SETTIME.
126759 2002-02-27  Paul Eggert  <eggert@twinsun.com>
126761         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
126762         Check for clock_settime.
126764 2002-02-27  Paul Eggert  <eggert@twinsun.com>
126766         * lib/nanosleep.h: Rename to....
126767         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
126769         * lib/gettime.c: New file.
126770         * lib/settime.c: New file.
126771         * lib/stime.c: Remove.
126773         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
126774         timespec.h.  Remove nanosleep.h.
126776 2002-02-25  Paul Eggert  <eggert@twinsun.com>
126778         * m4/acl.m4: New file.
126779         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
126780         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
126782 2002-02-25  Paul Eggert  <eggert@twinsun.com>
126784         * lib/acl.c, lib/acl.h: New files.
126785         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
126787 2002-02-24  Jim Meyering  <meyering@lucent.com>
126789         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
126790         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
126791         cause trouble.  Reported by Nelson Beebe.
126793 2002-02-23  Paul Eggert  <eggert@twinsun.com>
126795         * lib/path-concat.c (xpath_concat): Reorder code to pacify
126796         compilers that don't know that xalloc_die never returns.
126798 2002-02-20  Jim Meyering  <meyering@lucent.com>
126800         * lib/getdate.c: Regenerate using bison-1.33.
126802 2002-02-17  Jim Meyering  <meyering@lucent.com>
126804         * config/config.guess (main): Don't use `head -1'; it's no longer
126805         portable. Use `sed 1q' instead.
126807 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
126809         * m4/codeset.m4: Upgrade to gettext-0.11.
126810         * m4/gettext.m4: Upgrade to gettext-0.11.
126811         * m4/glibc21.m4: Upgrade to gettext-0.11.
126812         * m4/iconv.m4: Upgrade to gettext-0.11.
126813         * m4/isc-posix.m4: Upgrade to gettext-0.11.
126814         * m4/lcmessage.m4: Upgrade to gettext-0.11.
126815         * m4/lib-ld.m4: New file, from gettext-0.11.
126816         * m4/lib-link.m4: New file, from gettext-0.11.
126817         * m4/lib-prefix.m4: New file, from gettext-0.11.
126818         * m4/progtest.m4: Upgrade to gettext-0.11.
126820 2002-02-15  Paul Eggert  <eggert@twinsun.com>
126822         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
126823         (jm_PREREQ): Use it.
126825 2002-02-15  Paul Eggert  <eggert@twinsun.com>
126827         * lib/posixver.c, lib/posixver.h: New files.
126828         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
126830 2002-02-02  Paul Eggert  <eggert@twinsun.com>
126831             Bruno Haible  <bruno@clisp.org>
126833         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
126834         (fwrite_success_callback): New declaration.
126835         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
126836         print_unicode_char. Call failure callback instead of error.
126837         (fwrite_success_callback): New function.
126838         (exit_failure_callback): New function.
126839         (fallback_failure_callback): New function.
126840         (print_unicode_char): Call unicode_to_mb.
126842 2002-01-26  Jim Meyering  <meyering@lucent.com>
126844         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
126845         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
126847 2002-01-26  Jim Meyering  <meyering@lucent.com>
126849         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
126851 2002-01-22  Paul Eggert  <eggert@twinsun.com>
126853         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
126855 2002-01-22  Jim Meyering  <meyering@lucent.com>
126857         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
126858         Otherwise, some versions of automake would omit the rule that makes
126859         Makefile from Makefile.in.
126861 2002-01-21  Paul Eggert  <eggert@twinsun.com>
126863         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
126864         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
126865         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
126866         (memcoll): Set errno to zero if there is no error.
126868         * lib/quotearg.c (quotearg_buffer_restyled):
126869         Fix bug with quoting buffers containing NUL when backslashing escapes.
126870         This bug was exposed by the other changes in this patch.
126871         (quotearg_n_options): New arg ARGSIZE.
126872         All callers changed.
126873         (quoting_options_from_style): New function.
126874         (quotearg_n_style): Use it.
126875         (quotearg_n_style_mem): New function.
126877         * lib/quotearg.h (quotearg_n_style_mem): New function.
126879 2002-01-19  Jim Meyering  <meyering@lucent.com>
126881         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
126882         Remove useless quotes: DF_PROG="df".
126883         * m4/strnlen.m4: New file.
126885 2002-01-16  Paul Eggert  <eggert@twinsun.com>
126887         * lib/backupfile.c (ISDIGIT): Comment fix.
126888         * lib/getdate.y (ISDIGIT): Likewise.
126889         * lib/posixtm.c (ISDIGIT, year): Likewise.
126890         * lib/strverscmp.c (ISDIGIT): Likewise.
126891         * lib/userspec.c (ISDIGIT): Likewise.
126893 2002-01-16  Jim Meyering  <meyering@lucent.com>
126895         * lib/getdate.y: Add three semicolons, each just before a closing
126896         brace. Bison (as of version 1.31) no longer papers over that mistake.
126898 2002-01-05  Jim Meyering  <meyering@lucent.com>
126900         * lib/version-etc.c (version_etc_copyright): Update copyright year.
126902 2001-12-19  Paul Eggert  <eggert@twinsun.com>
126904         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
126905         not silently exit merely because the output buffer happens to
126906         have nothing pending.
126908 2001-12-18  Paul Eggert  <eggert@twinsun.com>
126910         See the big note in ../ChangeLog.
126911         * lib/human.c (suffixes): Prefer K to k for 1024.
126912         (generate_suffix_backwards): New function.
126913         (human_readable_inexact): Use it.
126914         * lib/xstrtol.c (__xstrtol): If there is no number but there
126915         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
126916         Accept 'K' as well as 'k'.
126918 2001-12-15  Jim Meyering  <meyering@lucent.com>
126920         * lib/regex.h (__restrict_arr): Update from libc.
126922         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
126923         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
126924         (STREQ): Define.
126926 2001-12-14  Jim Meyering  <meyering@lucent.com>
126928         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
126929         Suggestion from Bruno Haible.
126931 2001-12-10  Jim Meyering  <meyering@lucent.com>
126933         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
126934         xrealloc, Instead, include "xalloc.h".
126935         (initbuffer): Don't cast xmalloc return value to char*.
126936         (readline): Reword comment.
126937         Don't cast xrealloc return value to char*
126938         Return NULL, not 0.
126940 2001-12-09  Jim Meyering  <meyering@lucent.com>
126942         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
126943         about `signed and unsigned type in conditional expression'.
126944         * lib/posixtm.c (posix_time_parse): Likewise.
126946         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
126948         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
126949         to avoid a pedantic warning.
126951         * lib/getstr.c: Don't include assert.h.
126952         (getstr): Remove warning-evoking assertions.
126953         Return -1 if offset parameter is out of bounds.
126954         Change the type of a local from int to size_t.
126956         * lib/strftime.c (my_strftime_localtime_r): Include this function
126957         definition in the `#if ! HAVE_TM_GMTOFF' block.
126959         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
126960         Include xalloc.h instead.
126962 2001-12-02  Jim Meyering  <meyering@lucent.com>
126964         * lib/tempname.c: Don't declare getenv, thus reverting the change of
126965         2001-11-18.  It's no longer necessary, now that stdlib.h is always
126966         included.
126968         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
126969         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
126971 2001-11-30  Akim Demaille  <akim@epita.fr>
126973         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
126974         before being defined.
126976 2001-11-27  Paul Eggert  <eggert@twinsun.com>
126978         * lib/quotearg.h (quotearg_n, quotearg_n_style):
126979         First arg is int, not unsigned.
126980         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
126981         (SIZE_MAX, UINT_MAX): New macros.
126982         (quotearg_n_options): Abort if N is negative.
126983         Avoid overflow check on hosts where size_t is 64 bits and int
126984         is 32 bits, as overflow is impossible there.
126985         Fix off-by-one typo that caused unnecessary reallocation.
126987 2001-11-27  Jim Meyering  <meyering@lucent.com>
126989         * lib/tempname.c: Merge with version from libc.
126990         * lib/regex.c: Likewise.
126992         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
126993         systems for which STDC_HEADERS is 0, it was not included, resulting in
126994         a warning about an integer-to-pointer conversion problem with getenv.
126995         Reported by Volker Borchert.
126997 2001-11-26  Jim Meyering  <meyering@lucent.com>
126999         * lib/gtod.h: Remove file.
127000         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
127001         * lib/gettimeofday.c: Don't include gtod.h.
127002         (GTOD_init): Remove function.
127003         (rpl_gettimeofday): Do its job here instead, rather than aborting.
127004         Suggestion from Volker Borchert.
127006 2001-11-23  Jim Meyering  <meyering@lucent.com>
127008         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
127009         it.
127010         * lib/hash.c (struct hash_table): Define it here instead.
127012 2001-11-22  Jim Meyering  <meyering@lucent.com>
127014         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
127016 2001-11-20  Jim Meyering  <meyering@lucent.com>
127018         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
127019         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
127021 2001-11-19  Jim Meyering  <meyering@lucent.com>
127023         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
127024         directory.  Use "conftestXXXXXX" as the template.
127025         Suggestion from Paul Eggert.
127027         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
127028         immediately, so the test doesn't mistakenly hit the max-open-files
127029         limit.
127031 2001-11-18  Paul Eggert  <eggert@twinsun.com>
127033         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
127034         (TEMPORARIES): New macro.
127035         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
127036         removes an artificial limitation (e.g. HP-UX 10.20, where
127037         TMP_MAX is 17576).
127039 2001-11-18  Jim Meyering  <meyering@lucent.com>
127041         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
127043 2001-11-18  Jim Meyering  <meyering@lucent.com>
127045         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
127046         on SunOS 4.
127048         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
127049         files will be created before anything else.
127051 2001-11-17  Paul Eggert  <eggert@twinsun.com>
127053         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
127054         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
127056 2001-11-17  Jim Meyering  <meyering@lucent.com>
127058         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
127059         Prompted by a report from Bob Proulx.
127061         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
127062         Instead, require UTILS_FUNC_MKSTEMP.
127064 2001-11-17  Jim Meyering  <meyering@lucent.com>
127066         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
127067         Now, that's done as part of AC_FUNC_STRTOD.
127069 2001-11-17  Jim Meyering  <meyering@lucent.com>
127071         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
127072         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
127073         rather than group writable.  Patch by Juan F. Codagnone.
127075         * lib/readtokens.c: Remove explicit declarations of xmalloc and
127076         xrealloc, Instead, include "xalloc.h".
127078         * lib/mountlist.c: Include unlocked-io.h after all system headers.
127079         Remove explicit declarations of xmalloc, xrealloc,
127080         and xstrdup.  Instead, include "xalloc.h".
127082         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
127083         unlocked-io.h.
127084         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
127085         Likewise.
127086         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
127088         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
127089         Reported by Padraig Brady.
127091         * lib/mkstemp.c: #undef mkstemp.
127092         Include config.h.
127093         (rpl_mkstemp): Rename from mkstemp.
127094         Protoize.
127096 2001-11-16  Jim Meyering  <meyering@lucent.com>
127098         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
127099         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
127100         determine the amount of total physical memory, use pstat_getstatic.
127101         HPUX-11 doesn't define _SC_PHYS_PAGES.
127102         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
127103         If sysconf couldn't be used to determine the amount of available
127104         physical memory, use both pstat_getstatic and pstat_getdynamic.
127105         Based on a patch from Bob Proulx.
127107 2001-11-10  Jim Meyering  <meyering@lucent.com>
127109         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
127110         (jm_PREREQ): Use it.
127112 2001-11-09  Jim Meyering  <meyering@lucent.com>
127114         * m4/jm-macros.m4: Require autoconf-2.52f.
127115         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
127116         Use these AC_-prefixed names, not the AM_-prefixed ones.
127118         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
127120 2001-11-05  Jim Meyering  <meyering@lucent.com>
127122         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
127124 2001-11-04  Jim Meyering  <meyering@lucent.com>
127126         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
127127         $DEFS.
127129 2001-11-03  Jim Meyering  <meyering@lucent.com>
127131         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
127132         of AC_DEFUN.
127134         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
127135         know the name of the variable in the macro definition.
127137 2001-11-03  Jim Meyering  <meyering@lucent.com>
127139         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
127140         in argmatch_to_argument call.
127142         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
127143         argument.
127145         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
127146         e.g., a fault due to an attempt to free a NULL pointer.
127148 2001-11-01  Jim Meyering  <meyering@lucent.com>
127150         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
127151         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
127153 2001-11-01  Jim Meyering  <meyering@lucent.com>
127155         * lib/dirfd.c, lib/dirfd.h: New files.
127156         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
127158         * lib/hash.c (hash_print) [TESTING]: Clean up.
127160 2001-10-22  Paul Eggert  <eggert@twinsun.com>
127162         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
127163         to avoid a warning if -Wall.
127165 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
127167         * README: New file
127168         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
127169         (per RMS's instructions, this is now the canonical source)
127170         * lgpl/, gpl/: New directories.
127172 2001-10-21  Paul Eggert  <eggert@twinsun.com>
127174         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
127176 2001-10-21  Jim Meyering  <meyering@lucent.com>
127178         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
127179         this code would end up calling gettext even in packages built
127180         with --disable-nls.
127181         * lib/getopt.c (_): Likewise.
127182         * lib/regex.c (_): Likewise.
127184 2001-10-20  Paul Eggert  <eggert@twinsun.com>
127186         * m4/error.m4 (jm_PREREQ_ERROR):
127187         Do not invoke AC_CHECK_FUNCS with strerror_r, as
127188         AC_FUNC_STRERROR_R does that.
127189         Check for strerror declaration.
127191         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
127192         are supposed to have them these days.
127193         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
127194         Merge changes from latest Autoconf CVS.
127195         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
127196         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
127197         POSIX decided to standardize on the int flavor of strerror_r.
127199 2001-10-20  Paul Eggert  <eggert@twinsun.com>
127201         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
127202         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
127203         Use strerror_r that is only a macro, even if it is not a function.
127204         (strerror): Check for HAVE_DECL_STRERROR before declaring.
127205         (private_strerror): Use prototypes, not old-style function definition.
127206         (print_errno_message): New function.
127207         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
127208         char*-flavored one.
127209         (error_tail, error, error_at_line): Use it.
127211 2001-10-11  Jim Meyering  <meyering@lucent.com>
127213         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
127214         and quote_n (1, ... to avoid clobbering a buffer.
127216 2001-10-05  Jim Meyering  <meyering@lucent.com>
127218         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
127219         hash-pjw.h.
127220         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
127221         * lib/hash-pjw.h: New file.
127223 2001-09-30  Jim Meyering  <meyering@lucent.com>
127225         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
127226         `struct fsstat' has the `f_fstypename' member.
127227         Use that to define FS_TYPE, which is now used to make
127228         the getfsstat link test tighter.
127230 2001-09-30  Jim Meyering  <meyering@lucent.com>
127232         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
127233         Include <sys/ucred.h>, for Apple Darwin.
127234         Include sys/mount.h and sys/fs_types.h only if available.
127235         (FS_TYPE): Define.
127236         (read_filesystem_list): Use FS_TYPE.
127238 2001-09-29  Paul Eggert  <eggert@twinsun.com>
127240         * lib/exclude.c (excluded_filename): 0 -> false, since it's
127241         a boolean context.
127243 2001-09-29  Jim Meyering  <meyering@lucent.com>
127245         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
127246         [one-argument getmntent function]): Include stdio.h before mntent.h.
127247         SunOS 4.1.x needs it for the declaration of `FILE'.
127248         Patch by Volker Borchert.
127250         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
127251         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
127252         sys/fs_types.h, and make the link-test for getfsstat guard #include
127253         directives with appropriate #if HAVE_*_H tests so that we can
127254         detect getfsstat on Apple Darwin1.3.7 systems.
127255         Reported by Nelson Beebe.
127256         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
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         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
127265         Check for strtoul and strtoumax,
127266         as those declarations are made even in the signed case.
127267         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
127268         Likewise, for strtol and strtoimax.
127270 2001-09-28  Paul Eggert  <eggert@twinsun.com>
127272         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
127273         #defines strtoimax.  Also treat the other strto* functions
127274         like strtoimax.
127276         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
127277         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
127278         (strtoimax, strtoumax): Do not declare if already defined as a macro.
127280 2001-09-26  Jim Meyering  <meyering@lucent.com>
127282         Most macros in unlocked-io.h had the wrong number of arguments.
127283         * lib/gen-uio: New script.
127284         (USE_UNLOCKED_IO): Define to 1 if not already defined.
127285         * lib/unlocked-io.hin: Remove file.
127286         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
127287         rather than trying to embed it here.
127288         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
127289         Reported by Padraig Brady.
127291 2001-09-25  Volker Borchert  <bt@teknon.de>
127293         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
127294         `result'.
127296 2001-09-24  Jim Meyering  <meyering@lucent.com>
127298         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
127300 2001-09-23  Jim Meyering  <meyering@lucent.com>
127302         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
127303         instead of the mere test for existence of mntent.h.  The latter
127304         would get a false-positive on AIX 3.4 systems.
127305         In the outer getmntent if-block, don't die if neither of the getmntent
127306         tests succeeds.  Instead, just fall through and continue with the
127307         remaining tests.
127309 2001-09-23  Jim Meyering  <meyering@lucent.com>
127311         * lib/mountlist.c: Remove useless parentheses in #if directives.
127312         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
127313         the deprecated MOUNTED symbol is no longer defined in mntent.h.
127315 2001-09-22  Jim Meyering  <meyering@lucent.com>
127317         * m4/gettext.m4: New file.  From gettext.
127318         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
127319         * m4/progtest.m4: Likewise
127320         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
127321         * m4/glibc21.m4: Likewise.
127323         * m4/libintl.m4: Remove.  No longer used.
127325 2001-09-22  Jim Meyering  <meyering@lucent.com>
127327         * lib/localcharset.c: Update from latest gettext.
127328         * lib/config.charset: Likewise.
127330 2001-09-20  Jim Meyering  <meyering@lucent.com>
127332         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
127333         strtoimax.
127334         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
127335         strtoumax.
127337 2001-09-20  Jim Meyering  <meyering@lucent.com>
127339         * lib/xstrtol.c (strtoimax): Guard declaration with
127340         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
127341         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
127342         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
127343         (strtoumax): Likewise, for completeness (it wasn't necessary).
127345 2001-09-17  Paul Eggert  <eggert@twinsun.com>
127347         * lib/strtoimax.c (HAVE_LONG_LONG):
127348         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
127349         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
127350         to work around bug in IBM C compiler.
127352 2001-09-17  Jim Meyering  <meyering@lucent.com>
127354         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
127355         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
127356         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
127357         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
127358         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
127359         whenever the right hand side need not be expanded by the shell.
127361 2001-09-16  Paul Eggert  <eggert@twinsun.com>
127363         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
127364         library.  It's not correct, as some older glibcs are buggy.
127365         fnmatch wasn't fixed until glibc 2.2.
127367         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
127368         special shell magic here.
127370 2001-09-16  Jim Meyering  <meyering@lucent.com>
127372         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
127373         * m4/jm-macros.m4: Require it.
127375 2001-09-16  Jim Meyering  <meyering@lucent.com>
127377         * lib/mkdir.c: New file.
127379 2001-09-15  Jim Meyering  <meyering@lucent.com>
127381         * m4/jm-macros.m4: Check for help2man.
127383 2001-09-11  Jim Meyering  <meyering@lucent.com>
127385         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
127386         The body, by Paul Eggert, was moved here from configure.in.
127387         * m4/jm-macros.m4: Require UTILS_HOST_OS.
127389 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127391         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
127392         (jm_PREREQ): Use it.
127394 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127396         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
127397         Use ssize_t, not int, to store result of readlink.
127398         Check for ssize_t overflow as well as size_t overflow,
127399         as POSIX says the result of readlink is implementation-defined
127400         when ssize_t overflows.
127401         Remove unnecessary cast to char*.
127402         Use free+malloc instead of realloc, as the storage doesn't need
127403         to be preserved and it's clearer and can be more efficient that way.
127404         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
127405         * lib/xreadlink.h (xreadlink): Update prototype.
127407 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127409         * lib/xgetcwd.c: Revert some of the previous change; intead,
127410         fix the HAVE_GETCWD_NULL code to behave more like the
127411         !HAVE_GETCWD_NULL code used to.
127413         Include "xalloc.h".
127414         (xgetcwd): Do not return NULL when memory is exhausted; instead,
127415         invoke xalloc_die.
127417 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127419         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
127420         sys/param.h, as pathmax.h includes them.
127422 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127424         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
127425         (jm_PREREQ_XGETCWD): New macro.
127427         * m4/getcwd.m4: New file.
127429 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127431         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
127432         like the HAVE_GETCWD_NULL code.
127433         Include pathmax.h if not HAVE_GETCWD.
127434         Do not include xalloc.h.
127435         (INITIAL_BUFFER_SIZE): New symbol.
127436         Do not use xmalloc / xrealloc, since the caller is responsible for
127437         handling errors.  Preserve errno around `free' during failure.
127438         Do not overrun buffer when using getwd.
127440 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127442         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
127443         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
127444         getcwd (NULL, 0).
127446 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127448         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
127449         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
127450         spotted by Jim Meyering.
127452 2001-09-03  Jim Meyering  <meyering@lucent.com>
127454         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
127455         failure.
127457 2001-09-02  Jim Meyering  <meyering@lucent.com>
127459         * lib/error.c: Update from GNU libc.
127461 2001-09-01  Jim Meyering  <meyering@lucent.com>
127463         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
127464         Used by df.
127466 2001-09-01  Jim Meyering  <meyering@lucent.com>
127468         * lib/xreadlink.c: New file.
127469         * lib/xreadlink.h: New file.
127470         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
127471         xreadlink.h.
127473         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
127474         doesn't conflict with sparc Solaris 7's definition in
127475         /usr/include/sys/int_types.h.
127477         * lib/exclude.c: Use `""', not `<>' to #include non-system header
127478         files.
127479         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
127480         and strncasecmp as r-values.  Unixware didn't have declarations.
127482 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127484         * lib/xstrtol.h: Add copyright notice.
127485         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
127486         LONGINT_INVALID_SUFFIX_CHAR.
127488 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127490         * lib/xstrtol.c (strtoimax): New decl.
127492 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127494         * lib/xgetcwd.c: Don't include pathmax.h.
127495         Include stdlib.h and unistd.h if available.
127496         Include xalloc.h.
127497         (xmalloc, xstrdup, free): Remove decls.
127498         (xgetcwd): Don't assume sizes fit in unsigned.
127499         Check for overflow when computing sizes.
127500         Simplify reallocation code.
127502 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127504         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
127505         a directory's st_size can have an arbitrary value, so the old
127506         usage could waste an arbitrary amount of memory.  All uses
127507         changed.
127508         * lib/savedir.h: Update prototype.
127510 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127512         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
127514         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
127515         old strtoimax.c.
127517         Also, make the following further changes to make this file's
127518         configuration more similar to that of strtol.c:
127519         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
127520         (strtoumax, uintmax_t, strtoull, strtol): Remove.
127521         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
127522         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
127523         changed to signed values.
127525         And make the following changes as well:
127526         Fix copyright notice, as 1999 was missing.
127527         (verify): New macro.
127528         (strtoimax): Check sizes at compile-time, not run-time.
127529         Prefer strtol to strtoll if both work.
127530         (main): Remove; it was not that useful and was a pain to maintain.
127532         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
127534 2001-08-31  Jim Meyering  <meyering@lucent.com>
127536         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
127537         Use an initial, malloc'd, buffer of length 128 rather than
127538         a statically allocated one of length 1024.
127540 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127542         Simplify code, partly by assuming autoconf 2.52 semantics.
127544         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
127546         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
127547         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
127548         All uses removed.
127549         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
127550         Move AC_REQUIRE to next-to-top level, to avoid confusion.
127551         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
127552         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
127553         jm_AC_HEADER_INTTYPES_H.
127554         * m4/jm-macros.m4 (jm_MACROS): Likewise.
127556         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
127558         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
127559         Quote first arg of AC_DEFUN.
127560         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
127561         since they are needed to parse the include file even if we need
127562         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
127563         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
127564         but with opposite signedness.
127566 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127568         Merge 'exclude' changes from tar 1.13.22.
127569         This fixes one or two unlikely storage allocation overflow bugs,
127570         but doesn't change user-visible behavior otherwise.
127572 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127574         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
127575         (jm_PREREQ_EXCLUDE): New macro.
127577 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127579         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
127580         tm to be declared.
127582 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127584         * lib/hash.c: Remove '2001' from copyright notice.
127586 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127588         * lib/full-write.h: New file.
127589         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
127590         * lib/full-write.c: Correct credits, as cccp.c no longer
127591         exists and anyway it was so heavily changed from the old cccp
127592         code as to be unrecognizable.  Include full-write.h.
127593         (full_write): Return size_t, with short writes meaning failure.
127594         All callers changed.  This fixes a bug with large buffers
127595         on 64-bit hosts.
127596         * lib/utime.c: Include full-write.h.
127598 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127600         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
127601         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
127602         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
127603         Include if available.
127604         (<xalloc.h>): Include
127605         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
127606         (verify): New macro.  Use it to verify that EXCLUDE macros do not
127607         collide with FNM macros.
127608         (struct patopts): New struct.
127609         (struct exclude): Use it, as exclude patterns now come with options.
127610         (new_exclude): Support above changes.
127611         (new_exclude, add_exclude_file):
127612         Initial size must now be a power of two to simplify overflow checking.
127613         (free_exclude, fnmatch_no_wildcards): New function.
127614         (excluded_filename): No longer requires options arg, as the options
127615         are determined by add_exclude.  Now returns bool, not int.
127616         (excluded_filename, add_exclude):
127617         Add support for the fancy new exclusion options.
127618         (add_exclude, add_exclude_file): Now takes int options arg.
127619         Check for arithmetic overflow when computing sizes.
127620         (add_exclude_file): xrealloc might modify errno, so don't
127621         realloc until after errno might be used.
127623         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
127624         New macros.
127625         (free_exclude): New decl.
127626         (add_exclude, add_exclude_file): Now takes int options arg.
127627         (excluded_filename): No longer requires options arg, as the options
127628         are determined by add_exclude.  Now returns bool, not int.
127630 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127632         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
127634 2001-08-27  Jim Meyering  <meyering@lucent.com>
127636         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
127638         * lib/version-etc.c (N_): Remove definition.
127639         Revert most of last change.
127640         Instead, simply don't mark the `Copyright...' string for translation.
127641         Based on advice from Paul Eggert.
127643         * lib/strtoxmax.c: Tweak comment.
127645 2001-08-26  Jim Meyering  <meyering@lucent.com>
127647         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
127649         * m4/xstrtoimax.m4: New file.
127650         * m4/xstrtoumax.m4: Add comments explaining why we
127651         AC_REPLACE_FUNCS(strtol).
127653 2001-08-26  Jim Meyering  <meyering@lucent.com>
127655         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
127656         of copyright with `%s' so translators don't get an untranslated
127657         message in 2002.
127658         (COPYRIGHT_YEAR): Define.
127659         (version_etc): Use fprintf rather than fputs.
127660         Suggestion from Ulrich Drepper.
127662         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
127664         * lib/strtoll.c: New file, from GNU libc.
127665         * lib/xstrtoimax.c: New file.
127667         * lib/xstrtol.h: Add xstrtoimax.
127668         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
127669         * lib/strtoimax.c: New file.  Likewise, but first define
127670         STRTOUXMAX_SIGNED.
127672         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
127673         ...
127674         * lib/strtoxmax.c: ... then renamed to this.
127676 2001-08-18  Paul Eggert  <eggert@twinsun.com>
127678         * m4/inttypes.m4: Add AC_PREREQ(2.13).
127679         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
127680         (jm_AC_TYPE_INTMAX_T): New macro.
127681         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
127683         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
127685         * m4/longlong.m4: Renamed from ulonglong.m4.
127686         * m4/inttypes.m4: Renamed from inttypes_h.m4.
127687         * m4/uintmax_t.m4: Removed.
127689 2001-08-13  Paul Eggert  <eggert@twinsun.com>
127691         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
127692         Port to Solaris 8, where 'sed' requires a space after the 'r'
127693         command, and where sh dislikes "$/".  Clean up the spacing a bit.
127694         Redirect output to $tmp just once.
127696 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
127698         * lib/addext.c (<errno.h>): Include.
127699         (errno): Declare if not defined.
127700         (addext): Work correctly when pathconf returns -1 and leaves
127701         errno alone because there is no limit.  Also, work even if
127702         pathconf returns a value greater than SIZE_MAX.
127704 2001-08-12  Jim Meyering  <meyering@lucent.com>
127706         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
127707         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
127708         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
127709         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
127710         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
127711         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
127712         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
127713         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
127714         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
127715         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
127716         utime.m4, utimes.m4, xstrtoumax.m4:
127717         Quote the first argument in each use of AC_DEFUN.
127719 2001-08-12  Jim Meyering  <meyering@lucent.com>
127721         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
127722         Simply `return getcwd (NULL, 0);'.
127723         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
127724         Use 1300 as initial value for length, not PATH_MAX.
127726         * lib/pathmax.h: Clean up cpp syntax.
127728 2001-08-12  Jim Meyering  <meyering@lucent.com>
127730         * lib/gettimeofday.c: New file.
127731         * lib/gtod.h: New file.
127732         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
127734 2001-08-05  Jim Meyering  <meyering@lucent.com>
127736         * m4/jm-macros.m4: Require autoconf-2.52.
127738 2001-08-04  Jim Meyering  <meyering@lucent.com>
127740         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
127741         stmt, to get in sync with glibc.
127743 2001-08-03  Paul Eggert  <eggert@twinsun.com>
127745         The following changes are from gettext 0.10.39 as maintained by
127746         Bruno Haible.
127748         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
127749         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
127750         with inverted sense.  All uses changed.
127752         * lib/mbswidth.c: Don't include <limits.h>.
127753         Include <stdlib.h> and <string.h> unconditionally.
127754         (iswcntrl, mbsinit, ISCNTRL): New macros.
127755         (mbsnwidth): Use K&R style function declarations.
127756         Don't bother checking for MB_LEN_MAX == 1, since the compiler
127757         can optimize it when MB_CUR_MAX == 1.
127758         The width of control characters is zero, not 1.
127760 2001-08-03  Paul Eggert  <eggert@twinsun.com>
127762         The following changes are from gettext 0.10.39 as maintained by
127763         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
127765         * m4/codeset.m4: Upgrade to serial AM1.
127766         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
127767         all uses changed.  Quote first arg of AC_DEFUN.
127768         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
127770         * m4/iconv.m4: Upgrade to serial AM2.
127771         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
127772         Add --with-libconv-prefix.
127773         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
127774         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
127775         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
127776         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
127777         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
127779         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
127780         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
127781         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
127782         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
127783         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
127784         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
127785         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
127786         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
127787         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
127789         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
127790         string.h any more.
127792         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
127793         not the default value.
127795         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
127796         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
127797         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
127798         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
127799         Also check for iswcntrl, used for wcwidth fallback.
127800         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
127801         to Autoconf 2.13.
127803 2001-08-03  Jim Meyering  <meyering@lucent.com>
127805         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
127806         as it was in the original.  Reported by Paul Eggert.
127808 2001-07-16  Jim Meyering  <meyering@lucent.com>
127810         * m4/gettimeofday.m4: New file.
127811         Prompted by a report from Bernhard Baehr.
127813 2001-07-15  Jim Meyering  <meyering@lucent.com>
127815         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
127816         stuff. Now it's in ../Makefile.cfg.
127818 2001-07-15  Jim Meyering  <meyering@lucent.com>
127820         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
127821         (BUILT_SOURCES): Add unlocked-io.h.
127822         (io_functions): Define.
127823         (unlocked-io.h): New rule.
127824         (DISTCLEANFILES): Add unlocked-io.h.
127825         (all-local): Depend on unlocked-io.h, to ensure it is created.
127827         * lib/unlocked-io.hin: New file
127829         * lib/regex.c: Update from glibc.
127831 2001-07-05  Jim Meyering  <meyering@lucent.com>
127833         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
127834         recommendation.
127835         (libfetish_a_SOURCES): Put all .h files here instead.
127836         Remove a thus-exposed (better checks in automake) duplicate and
127837         two unnecessary .h files.
127839 2001-07-04  Jim Meyering  <meyering@lucent.com>
127841         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
127842         that generates jm-glibc-io.m4 so that it doesn't trigger any make
127843         distcheck failure.
127845 2001-07-02  Jim Meyering  <meyering@lucent.com>
127847         The following changes were prompted by suggestions from Bruno Haible.
127849         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
127850         is now generated.
127851         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
127852         definition of EXTRA_DIST.
127853         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
127854         ensure that the generated file is created/updated whenever the list
127855         of $(unlocked_functions) is changed.
127856         (jm-glibc-io.m4): New rule.
127857         (unlocked-io.h): New rule -- currently unused.
127859 2001-06-24  Jim Meyering  <meyering@lucent.com>
127861         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
127862         unmatched right bracket, rather than kludging it with an extra,
127863         falsely-matching quote in a comment.  Patch by Akim Demaille.
127865 2001-06-11  Jim Meyering  <meyering@lucent.com>
127867         * lib/regex.c: Update from GNU libc.
127869 2001-05-27  Jim Meyering  <meyering@lucent.com>
127871         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
127872         Check for ut_type in struct utmp.
127874 2001-05-27  Jim Meyering  <meyering@lucent.com>
127876         * lib/readutmp.h (UT_TYPE): Define.
127878 2001-05-24  Jim Meyering  <meyering@lucent.com>
127880         * lib/argmatch.c: Include "quote.h".
127881         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
127882         quote function.  Reported by Göran Uddeborg.
127884 2001-05-22  Jim Meyering  <meyering@lucent.com>
127886         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
127887         now that we use the package-supplied version unconditionally.
127888         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
127890 2001-05-21  Jim Meyering  <meyering@lucent.com>
127892         * m4/regex.m4: Change a couple backticks to single quotes to avoid
127893         shell syntax errors.
127895 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
127897         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
127899 2001-05-20  Paul Eggert  <eggert@twinsun.com>
127901         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
127902         Don't bother to check library strftime, since
127903         we'll be using our own my_strftime function anyway.
127904         Define my_strftime instead of strftime.
127906 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
127908         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
127909         which is not yet declared.
127911 2001-05-15  Jim Meyering  <meyering@lucent.com>
127913         * m4/regex.m4: Use proper quoting so brackets appear in the test
127914         program.
127915         Reported by, and with help from, Bruno Haible.
127917 2001-05-13  Jim Meyering  <meyering@lucent.com>
127919         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
127920         undefined.
127922 2001-05-11  Paul Eggert  <eggert@twinsun.com>
127924         dirname code cleanup.  base_name now behaves more compatibly
127925         with POSIX basename when given file names that have trailing
127926         slashes, and similarly for dir_name.  Add new primitives
127927         base_len and dir_len.  Put the directory-name-related decls
127928         into dirname.h.
127930         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
127931         * lib/backupfile.c (base_name): Likewise.
127932         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
127933         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
127934         * lib/makepath.c (strip_trailing_slashes): Likewise.
127935         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
127936         ISSLASH): Likewise.
127937         * lib/rename.c (strip_trailing_slashes): Likewise.
127938         * lib/same.c (base_name): Likewise.
127939         * lib/stripslash.c (ISSLASH): Likewise.
127941         * lib/addext.c: Include <dirname.h> after size_t is defined.
127942         * lib/backupfile.c: Likewise.
127944         * lib/addext.c (addext): Use base_len to trim redundant
127945         trailing slashes instead of doing it ourselves.
127946         But do not trim the last slash if it is not redundant.
127948         * lib/backupfile.c (find_backup_file_name,
127949         max_backup_version): Use base_len instead of rolling it ourselves.
127950         Handle the case of "" and (on DOS) "C:" correctly.
127952         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
127953         needed. Include <string.h>, <dirname.h>.
127954         (base_name): Allow file names ending in slashes, other than names
127955         that are all slashes.  In this case, return the basename followed
127956         by the slashes.  This is more general, and can be used in places
127957         where the original base_name purposely had an assertion failure.
127958         (base_len): New function.
127960         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
127961         Do not include <assert.h>; no longer needed.
127962         Include xalloc.h.
127963         (memrchr): Remove decl.
127964         (dir_name_r): Remove.
127965         (dir_len): Renamed from dirlen.  All callers changed.
127966         Rewrite in terms of base_name, for simplicity and consistency.
127967         (dir_name): Never return NULL.  All callers changed.
127968         Do not include <stdlib.h> in test program; no longer needed.
127969         return 0; is fine for test program.
127971         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
127972         New macros.
127973         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
127975         * lib/path-concat.c (path_concat): Use base_len to compute
127976         base length, not strlen; this means we cannot rely on memcpy
127977         to null-terminate.
127979         * lib/same.c (STREQ): Remove.
127980         (same_name): Handle the case where the basename ends in trailing '/'.
127982         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
127983         a slash was stripped.  Do not strip the last slash after a
127984         file system prefix.
127986 2001-05-11  Paul Eggert  <eggert@twinsun.com>
127988         * lib/Makefile.am (libfetish_a_SOURCES):
127989         Add strftime.c, since we now compile it on all hosts.
127991         * lib/strftime.c (my_strftime):
127992         Define to nstrftime if emacs, but only if my_strftime is not defined.
127993         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
127994         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
127995         Add one more extra argument: a nanoseconds value.
127996         All uses changed.
127997         (ns): New macro.
127998         (my_strftime function): Add %N format.
127999         (emacs_strftimeu): Renamed from emacs_strftime,
128000         with extra ut argument.
128002 2001-05-09  Paul Eggert  <eggert@twinsun.com>
128004         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
128006 2001-04-21  Jim Meyering  <meyering@lucent.com>
128008         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
128009         doesn't interfere.
128011 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
128013         * m4/ftruncate.m4: Check for chsize.
128014         Link with ftruncate.o unconditionally if ftruncate is missing.
128015         This was required when cross-compiling to i586-mingw32msvc.
128017 2001-04-08  Jim Meyering  <meyering@lucent.com>
128019         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
128020         recomputed; that's necessary when the offset spans a DST transition.
128021         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
128023 2001-04-02  Jim Meyering  <meyering@lucent.com>
128025         * lib/regex.h, regex.c: Update from GNU libc.
128027 2001-03-24  Jim Meyering  <meyering@lucent.com>
128029         * m4/jm-macros.m4: Require autoconf-2.49d.
128031 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
128033         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
128035 2001-03-19  Paul Eggert  <eggert@twinsun.com>
128037         * lib/version-etc.c (version_etc_copyright): Update to 2001.
128039 2001-03-17  Jim Meyering  <meyering@lucent.com>
128041         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
128042         now that the version in autoconf is equivalent.
128043         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
128045         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
128046         Suggestion from Akim Demaille.
128048         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
128049         (jm_PREREQ_TEMPNAME): New function.
128051 2001-03-16  Paul Eggert  <eggert@twinsun.com>
128053         * lib/tempname.c (uint64_t): Define to uintmax_t if
128054         not defined, and if UINT64_MAX is not defined.
128055         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
128056         Reported by John David Anglin.
128058 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
128060         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
128061         resolve alias if codeset is empty.
128062         * lib/config.charset (BeOS): Use wildcard syntax.
128064 2001-03-13  Jim Meyering  <meyering@lucent.com>
128066         * lib/path-concat.c (path_concat)
128067         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
128068         concatenating e.g., `C:' and `foo'.
128069         From Bruno Haible.
128071 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
128073         * lib/localcharset.c (locale_charset): Don't use
128074         setlocale(LC_CTYPE,NULL). Don't return NULL.
128075         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
128077 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
128079         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
128080         support for DOS/DJGPP.
128082 2001-03-01  Paul Eggert  <eggert@twinsun.com>
128084         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
128085         lacks mkstemp.  Compile our own tempname.c if we compile our own
128086         mkstemp.c, as mkstemp relies on tempname.
128088 2001-03-01  Jim Meyering  <meyering@lucent.com>
128090         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
128091         AH_VERBATIM really does output its argument verbatim.
128093 2001-02-28  Paul Eggert  <eggert@twinsun.com>
128095         * lib/Makefile.am (libfetish_a_SOURCES):
128096         Add dup-safer.c, fopen-safer.c.
128097         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
128099         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
128100         * lib/unistd-safer.h: New files.
128102 2001-02-25  Paul Eggert  <eggert@twinsun.com>
128104         The mkstemp replacement is taken from glibc 2.2.2, with some
128105         portability fixes for use outside glibc, as follows:
128107         * lib/tempname.c (struct_stat64): New macro.
128108         (direxists, __gen_tempname): Use it.
128109         This avoids a portability problem with Solaris 8.
128111         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
128112         (<stddef.h>, <stdint.h>, <string.h>):
128113         Include only if STDC_HEADERS || _LIBC.
128114         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
128115         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
128116         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
128117         (__set_errno): Define this macro if <errno.h> doesn't.
128118         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
128119         Define these macros if <stdio.h> doesn't.
128120         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
128121         Define these macros if <sys/stat.h>
128122         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
128123         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
128124         __xstat64): Define if not _LIBC.
128125         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
128126         (__gen_tempname): Invoke gettimeofday only if
128127         HAVE_GETTIMEOFDAY || _LIBC;
128128         otherwise, fall back on plain "time".
128129         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
128131         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
128133         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
128135 2001-02-18  Paul Eggert  <eggert@twinsun.com>
128137         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
128139 2001-02-17  Paul Eggert  <eggert@twinsun.com>
128141         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
128142         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
128143         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
128144         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
128146 2001-02-17  Paul Eggert  <eggert@twinsun.com>
128148         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
128149         Remove workaround macros for hosts that have mbrtowc but not
128150         mbstate_t, as we now insist on proper declarations for both
128151         before using mbrtowc.
128153 2001-02-17  Jim Meyering  <meyering@lucent.com>
128155         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
128156         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
128157         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
128158         UnixWare 7.1.1.
128160         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
128161         rather than AC_CACHE_VAL.
128163 2001-02-17  Jim Meyering  <meyering@lucent.com>
128165         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
128166         around included file name.
128168         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
128170         * lib/strftime.c: Update from GNU libc (the only changes were to
128171         comments).
128173 2001-02-17  Jim Meyering  <meyering@lucent.com>
128175         * lib/regex.c: Update from libc.
128177 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
128179         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
128180         clash.
128182 2001-02-16  Paul Eggert  <eggert@twinsun.com>
128184         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
128185         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
128186         Reported by Mark Hounschell via Paul Eggert.
128188 2001-02-07  Jim Meyering  <meyering@lucent.com>
128190         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
128192 2001-02-05  Jim Meyering  <meyering@lucent.com>
128194         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
128195         it includes the patch required for `large file' support with at least
128196         HP-UX's 10.20 /bin/cc.
128198 2001-02-03  Jim Meyering  <meyering@lucent.com>
128200         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
128201         AS_IF, now that it works once again (mysteriously).
128202         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
128204 2001-01-30  Jim Meyering  <meyering@lucent.com>
128206         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
128207         * m4/chown.m4: Rename conftestchown to conftest.chown.
128208         * m4/rename.m4: s/conftestdir/conftest.d1/ and
128209         s/conftestdir2/conftest.d2/.
128210         * m4/utimes.m4: s/conftestdata/conftest.data/
128211         Inspired by Pavel Roskin's change in autoconf.
128213 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
128215         * lib/config.charset: Update for FreeBSD 4.2.
128217 2001-01-27  Jim Meyering  <meyering@lucent.com>
128219         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
128220         a use of AS_IF.
128221         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
128223 2001-01-26  Jim Meyering  <meyering@lucent.com>
128225         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
128226         quotearg.c includes it.
128228 2001-01-26  Jim Meyering  <meyering@lucent.com>
128230         * lib/quotearg.c: Include stddef.h.
128231         * lib/quote.c: Include stddef.h.
128232         Reported by Axel Kittenberger.
128234         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
128235         line in double quotes so that it evokes a better diagnostic.
128236         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
128237         Reported by Axel Kittenberger.
128239 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
128241         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
128242         as if it was a `charset'.
128244 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
128246         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
128247         has const.
128249 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
128251         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
128252         to avoid a warning.  Add back 'const' to inptr.
128254 2001-01-20  Jim Meyering  <meyering@lucent.com>
128256         Be sure that headers are checked before used in code compiled
128257         for the type checks.
128258         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
128259         In place of that, invoke jm_CHECK_ALL_TYPES.
128260         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
128261         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
128262         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
128263         The check for ssize_t was mistakenly run before the test for unistd.h.
128265         The configure-time check for stdbool.h was missing.
128266         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
128267         (jm_PREREQ_HASH): New function.
128269 2001-01-17  Jim Meyering  <meyering@lucent.com>
128271         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
128272         for autoconf-2.49c.
128273         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
128275 2001-01-16  Jim Meyering  <meyering@lucent.com>
128277         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
128278         From Bruno Haible.
128280 2001-01-14  Jim Meyering  <meyering@lucent.com>
128282         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
128283         foo and bar.  Create conftestdir/ in the script, not in the C code.
128284         Remove directories in the script, not in the C code.
128285         Remove conftestdir{,2} before trying to create the directory.
128286         Make the entire configure script fail if the mkdir fails.
128288 2001-01-14  Jim Meyering  <meyering@lucent.com>
128290         * lib/rename.c: New file.  From Volker Borchert.
128291         Include stdlib.h, string.h or strings.h, and xalloc.h.
128292         Use strip_trailing_slashes rather than open-coding it.
128294 2001-01-03  Paul Eggert  <eggert@twinsun.com>
128296         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
128298 2001-01-03  Jim Meyering  <meyering@lucent.com>
128300         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
128301         of local `inptr' to avoid warning with some system declarations of
128302         iconv.
128304 2001-01-02  Volker Borchert  <bt@teknon.de>
128306         * m4/rename.m4: New file.
128307         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
128309 2001-01-01  Jim Meyering  <meyering@lucent.com>
128311         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
128312         even on systems with utmpx.h.  It's necessary for the declaration of
128313         utmp's ut_user member.  Reported by Andreas Jaeger.
128315         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
128316         available. They are required for the declarations of getgrgid and
128317         getpwuid resp.
128318         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
128319         Reported by Andreas Jaeger.
128321 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
128323         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
128324         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
128325         so `make install' also works in VPATH builds.
128327 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
128329         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
128330         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
128331         can be used in subdirectories.
128333 2000-12-29  Paul Eggert  <eggert@twinsun.com>
128335         * lib/modechange.c: Do not assume that mode_t uses the
128336         traditional octal encoding.  E.g. "chmod 1 FOO" should set
128337         the other-execute bit of FOO even if S_IXOTH != 1.
128339         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
128340         WOTH, XOTH, ALLM): New macros.
128341         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
128342          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
128343         Use them.
128344         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
128345         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
128346         (mode_compile):
128347         No need to use uintmax_t; unsigned long is long enough.
128348         Don't bother to get suffix since we don't use it.
128350 2000-12-26  Jim Meyering  <meyering@lucent.com>
128352         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
128353         better with autoheader.
128355 2000-12-24  Jim Meyering  <meyering@lucent.com>
128357         * lib/hash.c (is_prime): Return explicit boolean values.
128358         (hash_get_first): Return NULL to appease Irix5.6's 89.
128359         Reported by Nelson Beebe.
128361 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
128363         * lib/localcharset.c (locale_charset): Add support for Win32.
128365 2000-12-18  Paul Eggert  <eggert@twinsun.com>
128367         * lib/physmem.h, lib/physmem.c: New files.
128369         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
128370         (noinst_HEADERS): Add physmem.h.
128372         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
128373         't' for compatibility with Solaris 8 sort.
128375 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
128377         * lib/config.charset: Add support for BeOS.
128379 2000-12-17  Jim Meyering  <meyering@lucent.com>
128381         * m4/dos.m4 (jm_AC_DOS): New file and macro.
128382         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
128384 2000-12-16  Jim Meyering  <meyering@lucent.com>
128386         This bug had a serious impact on chown: `chown N:M FILE' (for integer
128387         N and M) would have treated it like `chown N:N FILE'.
128389         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
128391 2000-12-16  Jim Meyering  <meyering@lucent.com>
128393         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
128394         SHELLS_FILE to a file name that's useful on djgpp systems.
128395         Include stdlib.h.
128396         (ADDITIONAL_DEFAULT_SHELLS): Define.
128397         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
128398         Based mostly on a patch from Prashant TR.
128400 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
128402         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
128403         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
128404         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
128406 2000-12-08  Andreas Schwab  <schwab@suse.de>
128408         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
128409         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
128411 2000-12-07  Jim Meyering  <meyering@lucent.com>
128413         * lib/stripslash.c (ISSLASH): Define.
128414         (strip_trailing_slashes): Use ISSLASH rather than comparing against
128415         `/'.
128416         From Prashant TR.
128418         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
128419         (dir_name_r): Declare this function as static.
128420         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
128421         manifest itself on a name containing a mix of slashes and
128422         backslashes.
128423         Make this function work with names starting with a DOS-style
128424         drive letter and colon prefix.
128425         (dir_name): Append `.' if necessary.
128426         Based mostly on patches from Prashant TR and Eli Zaretskii.
128428         * lib/dirname.h (dir_name_r): Remove prototype.
128430 2000-12-06  Paul Eggert  <eggert@twinsun.com>
128432         * m4/off_t-format.m4: Remove this file.
128433         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
128435 2000-12-06  Jim Meyering  <meyering@lucent.com>
128437         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
128438         replacement strtoull, we may well need the replacement strtoul, too.
128439         Check for declarations of strtoul and strtoull.
128440         Check for strtol.  Mainly as a cue to cause automake to include
128441         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
128442         Check for limits.h -- strtol.c needs it.
128444 2000-12-05  Jim Meyering  <meyering@lucent.com>
128446         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
128448 2000-12-04  Jim Meyering  <meyering@lucent.com>
128450         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
128451         Also include memory.h, stdlib.h, unistd.h if appropriate.
128452         Reported by Andreas Jaeger (conflicting declaration of malloc).
128454 2000-12-02  Jim Meyering  <meyering@lucent.com>
128456         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
128457         * m4/jm-macros.m4 (jm_MACROS): require it.
128459 2000-12-02  Jim Meyering  <meyering@lucent.com>
128461         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
128463 2000-12-01  Paul Eggert  <eggert@twinsun.com>
128465         * lib/memrchr.c: Include <config.h> before any system include file.
128467 2000-11-30  Jim Meyering  <meyering@lucent.com>
128469         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
128471 2000-11-30  Jim Meyering  <meyering@lucent.com>
128473         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
128475 2000-11-29  Paul Eggert  <eggert@twinsun.com>
128477         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
128479 2000-11-26  Jim Meyering  <meyering@lucent.com>
128481         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
128483 2000-11-22  Paul Eggert  <eggert@twinsun.com>
128485         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
128486         size of (size_t) -1; it's not portable.
128488 2000-11-17  Jim Meyering  <meyering@lucent.com>
128490         * lib/strstr.c: Update from GNU libc.
128492 2000-11-17  Akim Demaille  <akim@epita.fr>
128494         * lib/obstack.h: Formatting changes.
128495         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
128496         prevent type checking.
128497         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
128498         cast the value to (void *): assigning a `foo *' to a `void *'
128499         variable is valid.
128500         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
128502 2000-11-16  Jim Meyering  <meyering@lucent.com>
128504         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
128506 2000-11-11  Jim Meyering  <meyering@lucent.com>
128508         * lib/error.c: Add a couple #includes, merging from GNU libc version.
128510 2000-11-10  Jim Meyering  <meyering@lucent.com>
128512         * lib/obstack.h: Update from GNU libc.
128513         * lib/obstack.c: Likewise.
128515 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
128517         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
128519 2000-11-06  Paul Eggert  <eggert@twinsun.com>
128521         * lib/getusershell.c (setusershell): Use rewind rather than
128522         fseek/fseeko, to avoid configuration hassles with fseeko.
128523         Don't bother opening SHELLS_FILE if shellstream is NULL;
128524         it's not necessary.
128526 2000-11-05  Jim Meyering  <meyering@lucent.com>
128528         * lib/makepath.h (make_dir): Declare.
128529         * lib/makepath.c (make_dir): Remove `static' attribute.
128530         Tweak a comment.
128532 2000-11-04  Jim Meyering  <meyering@lucent.com>
128534         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
128536 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
128538         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
128539         last one in a bucket, advance to the next bucket.
128541 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
128543         * lib/fnmatch.c: Do not comment out all the code if we are using
128544         the GNU C library, because in some cases we are replacing buggy
128545         code in the GNU C library itself.
128547 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
128549         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
128550         (regex_compile): Catch bogus \(\1\).
128552 2000-10-30  Paul Eggert  <eggert@twinsun.com>
128554         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
128555         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
128556         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
128558 2000-10-30  Paul Eggert  <eggert@twinsun.com>
128560         * lib/error.h, getline.h, modechange.h:
128561         Remove "2000" from Copyright line, as the file hasn't been
128562         changed this year other than in the copyright notice.
128564         * lib/xalloc.h: Add "2000" to Copyright line, as this file
128565         was changed this year.
128567 2000-10-29  Jim Meyering  <meyering@lucent.com>
128569         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
128570         renaming.
128571         * m4/ls-mntd-fs.m4: Likewise
128573 2000-10-29  Jim Meyering  <meyering@lucent.com>
128575         * lib/xstat.in: Fix grammar in comment.
128577 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
128579         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
128580         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
128581         doesn't define __restrict_arr.
128583 2000-10-28  Jim Meyering  <meyering@lucent.com>
128585         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
128586         (jm_PREREQ_MEMCHR): New function.
128588 2000-10-28  Jim Meyering  <meyering@lucent.com>
128590         * lib/memchr.c: Update from libc.
128591         Adjust for portability:
128592         [HAVE_STDLIB_H]: Include stdlib.h.
128593         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
128594         Undef __memchr, too.
128595         [!weak_alias]: Define __memchr to memchr.
128597         * lib/regex.c: Update from libc.
128598         * lib/regex.h: Likewise.
128599         * lib/getopt1.c: Likewise.
128600         * lib/memcmp.c: Likewise.
128602         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
128603         Avoid using fseek, when possible -- it's broken by design.
128604         Patch by Ulrich Drepper.
128606 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
128608         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
128609         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
128610         Giving in to popular pressure to shut up the compiler with casts.
128612 2000-10-26  Jim Meyering  <meyering@lucent.com>
128614         * lib/strftime.c: Update from libc.
128616 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
128618         * regex.c: More `unsigned char' -> `re_char' changes.
128619         Also change several `int' into `re_wchar_t'.
128620         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
128621         (PUSH_FAILURE_POINTER): Don't cast any more.
128622         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
128623         We want GCC to complain, since this piece of code makes
128624         re_match non-reentrant, which *should* be fixed.
128625         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
128626         (EXTEND_BUFFER): Use RETALLOC.
128627         (SET_LIST_BIT): Don't cast.
128628         (re_wchar_t): New type.
128629         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
128630         that those two functions will always properly return.
128631         (IMMEDIATE_QUIT_CHECK): Cast to void.
128632         (analyse_first): Use recursion rather than an explicit stack.
128633         (re_compile_fastmap): Can't fail anymore.
128634         (re_search_2): Don't check re_compile_fastmap for failure.
128635         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
128636         Now also sets the new value (passed in a new argument).
128637         (re_match_2_internal): Use it.
128638         Also, use a new var `reg' of type size_t when looping through regs
128639         rather than reuse the inappropriate `mcnt'.
128641 2000-10-25  Jim Meyering  <meyering@lucent.com>
128643         * lib/obstack.c: Update from libc.
128645 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
128647         * regex.c (regex_compile): Change the way of handling a range from
128648         a char less than 256 to a char not less than 256.
128650 2000-10-24  Andrew Innes  <andrewi@gnu.org>
128652         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
128653         NT-Emacs only.
128654         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
128655         so that re_search functions only quit when callers expect them to.
128657 2000-10-23  Jim Meyering  <meyering@lucent.com>
128659         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
128660         wrong.  That set_locale call must not have any side effects.
128661         From Paul Eggert.
128663 2000-10-22  Jim Meyering  <meyering@lucent.com>
128665         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
128666         [CYCLIC]: Remove now-unused definition.
128668         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
128669         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
128670         Suggestion from Ulrich Drepper.
128672 2000-10-21  Jim Meyering  <meyering@lucent.com>
128674         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
128675         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
128676         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
128678 2000-10-21  Jim Meyering  <meyering@lucent.com>
128680         * lib/dirname.c (memrchr): Declare if necessary.
128681         (dir_name): Remove the restriction that there be no
128682         trailing slashes.  Now, this code skips past them, effectively
128683         ignoring them.
128684         [TEST_DIRNAME] (main): New unit tests.
128686         * lib/memrchr.c: New file from GNU libc.
128687         Undef __memrchr, too.
128688         [!weak_alias]: Define __memrchr to memrchr.
128689         Guard weak_alias use with `#ifdef weak_alias'.
128691 2000-10-21  Jim Meyering  <meyering@lucent.com>
128693         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
128694         (dir_name): Use dir_name_r.
128695         * lib/dirname.h (dir_name_r): Declare it.
128697 2000-10-17  Jim Meyering  <meyering@lucent.com>
128699         * lib/quote.h (PARAMS): Define and use.
128700         Reported by Akim Demaille.
128702         * lib/getopt.c: Update from libc.
128704 2000-10-16  Jim Meyering  <meyering@lucent.com>
128706         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
128707         setlocale.
128708         From Jan Fedak.
128710 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
128712         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
128714 2000-09-25  Jim Meyering  <meyering@lucent.com>
128716         * lib/md5.h (rol): Define (from GnuPG).
128718         * lib/sha.c: Give credit (GnuPG) where due.
128719         (M): Use rol rather than open-coding it.
128720         Add a FIXME comment.
128722 2000-09-21  Jim Meyering  <meyering@lucent.com>
128724         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
128725         Reported by Michael Stone.
128727 2000-09-20  Jim Meyering  <meyering@lucent.com>
128729         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
128730         (noinst_HEADERS): Add sha.h.
128731         Based on code from Scott G. Miller and from GnuPG.
128733 2000-09-18  Jim Meyering  <meyering@lucent.com>
128735         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
128736         LIBS. Otherwise, everyone ends up linking with -lelf for some
128737         configurations.
128738         Reported by Mike Stone.
128740 2000-09-15  Jim Meyering  <meyering@lucent.com>
128742         * lib/regex.c: Update from libc.
128744 2000-09-10  Jim Meyering  <meyering@lucent.com>
128746         * lib/getopt.c (_getopt_internal): Update from glibc.
128748 2000-09-09  Jim Meyering  <meyering@lucent.com>
128750         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
128751         think it should be used as a general replacement for isascii.
128752         * lib/fnmatch.c: Likewise.
128753         * lib/mbswidth.c: Likewise
128754         * lib/regex.c: Likewise.
128756         Don't use atoi.
128757         * lib/userspec.c: Include sys/param.h and limits.h.
128758         Include xstrtol.h.
128759         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
128760         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
128761         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
128762         UID, GID.  Check range.
128764 2000-09-06  Jim Meyering  <meyering@lucent.com>
128766         * lib/getopt.c (_getopt_internal): Update from glibc.
128768 2000-08-30  Jim Meyering  <meyering@lucent.com>
128770         * lib/strftime.c: Merge in changes from GNU libc.
128772 2000-08-26  Jim Meyering  <meyering@lucent.com>
128774         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
128775         * m4/fpending.m4: New file.
128777 2000-08-26  Jim Meyering  <meyering@lucent.com>
128779         * lib/closeout.c: Include "__fpending.h".
128780         (close_stdout_status): Return right away if there's nothing to flush.
128782         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
128783         * lib/__fpending.c: New file.
128784         * lib/__fpending.h: New file.
128786 2000-08-20  Jim Meyering  <meyering@lucent.com>
128788         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
128789         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
128790         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
128792 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
128794         Improve fileutils installation on systems where running
128795         programs (like install) can't be unlinked.
128796         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
128797         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
128799 2000-08-07  Paul Eggert  <eggert@twinsun.com>
128801         Standardize on "memory exhausted" instead of "Memory exhausted"
128802         or "virtual memory exhausted".
128803         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
128804         "virtual memory exhausted".
128805         * lib/same.c (same_name): Invoke xalloc_die instead of printing
128806         our own message.
128807         * lib/userspec.c (parse_user_spec): Likewise.
128808         * lib/bumpalloc.h: comment fix
128809         * lib/same.c, userspec.c: Include xalloc.h.
128811         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
128812         not char *const and pointing to a constant array.
128813         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
128814         (xrealloc): Comment fix.
128816         * lib/userspec.c (parse_user_spec):
128817         Don't translate a message until just before returning,
128818         to avoid unnecessary translation.
128820 2000-08-07  Jim Meyering  <meyering@lucent.com>
128822         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
128823         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
128824         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
128825         getgroups.c, gethostname.c, getopt.h, group-member.c,
128826         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
128827         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
128828         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
128829         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
128830         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
128831         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
128832         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
128833         yesno.c: Back out Copyright date changes for each file with no change
128834         this year.  This eases coordination with other programs using the same
128835         source code modules.  From Paul Eggert.
128837 2000-08-06  Paul Eggert  <eggert@twinsun.com>
128839         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
128840         not char, for compatibility with glibc 2.1.3 strftime.c.
128842 2000-08-03  Greg McGary  <greg@mcgary.org>
128844         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
128845         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
128846         (EXTEND_BUFFER): Use them.
128848 2000-08-01  Jim Meyering  <meyering@lucent.com>
128850         * lib/dirname.c (ISSLASH): Define.
128851         (BACKSLASH_IS_PATH_SEPARATOR): Define.
128852         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
128853         both `\' and `/' may be use as path separators.
128854         Based on a patch from Prashant TR.
128856 2000-07-31  Paul Eggert  <eggert@twinsun.com>
128858         * lib/quotearg.c (quotearg_n_options): Don't make the initial
128859         slot vector a constant, since it might get modified.
128861 2000-07-31  Jim Meyering  <meyering@lucent.com>
128863         * lib/xmalloc.c: Use `virtual memory exhausted', not
128864         `Memory exhausted'.
128865         * lib/obstack.c (print_and_abort): Likewise.
128867 2000-07-30  Paul Eggert  <eggert@twinsun.com>
128869         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
128870         buffer, so that the caller can always quote one small
128871         component of a "memory exhausted" message in slot 0.
128872         From a suggestion by Jim Meyering.
128874 2000-07-30  Jim Meyering  <meyering@lucent.com>
128876         * lib/makepath.c (make_path): Quote the other instance, too.
128878         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
128879         (STATIC_BUF_SIZE): Define.
128880         (quotearg_n_options): Use only statically allocated storage when
128881         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
128882         than STATIC_BUF_SIZE.
128884 2000-07-29  Jim Meyering  <meyering@lucent.com>
128886         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
128887         * lib/dirname.c (dir_name): Likewise.
128889         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
128890         `/'.
128892         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
128893         (dir_name): Assert that there are no trailing slashes.
128895 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
128897         * lib/mbswidth.h (mbswidth): Add a flags argument.
128898         (mbswidth): New declaration.
128899         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
128900         * lib/mbswidth.c (mbswidth): Add a flags argument.
128901         (mbsnwidth): New function.
128903 2000-07-24  Jim Meyering  <meyering@lucent.com>
128905         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
128907 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128909         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
128911 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128913         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
128914         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
128915         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
128916         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
128917         invoke multibyte primitives.
128919 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128921         * lib/quotearg.c:
128922         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
128923         so that mbstate_t is always defined.
128925         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
128926         be 1 in at least one GCC installation, and this configuration
128927         error is likely to be common.  Ignoring MB_LEN_MAX hurts
128928         performance on hosts that have mbrtowc but have only unibyte
128929         locales, but I assume these hosts are rare.
128931 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128933         * lib/mbswidth.c (_XOPEN_SOURCE):
128934         Don't define; this causes problems on Solaris 7.
128935         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
128937 2000-07-23  Jim Meyering  <meyering@lucent.com>
128939         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
128940         too: getgrgid, getpwuid, getuid.
128942 2000-07-23  Jim Meyering  <meyering@lucent.com>
128944         * lib/basename.c (base_name): Add an assertion.
128946 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
128948         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
128949         shadow its mbsinit function.
128951 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
128953         * lib/mbswidth.h: New file.
128954         * lib/mbswidth.c: New file.
128955         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
128956         (noinst_HEADERS): Add mbswidth.h.
128958 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
128960         * lib/config.charset: Add support for FreeBSD. Improve support for
128961         HP-UX and IRIX 6.
128963 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
128965         * m4/mbswidth.m4: New file.
128966         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
128968 2000-07-15  Jim Meyering  <meyering@lucent.com>
128970         * lib/makepath.c: Include quote.h.
128971         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
128972         corresponding argument in a `quote (...)' call.
128973         Give better diagnostics.
128975         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
128976         (noinst_HEADERS): Add quote.h.
128978         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
128979         from tar's src/misc.c.
128980         * lib/quote.h: New file.  Prototypes for same.
128982 2000-07-14  Paul Eggert  <eggert@twinsun.com>
128984         From a suggestion by Bruno Haible.
128985         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
128986         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
128987         to decide whether to define the BeOS workaround macro;
128988         this adjusts to the change to AC_MBSTATE_T.
128990 2000-07-14  Jim Meyering  <meyering@lucent.com>
128992         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
128993         jm_AC_TYPE_UINTMAX_T.
128995 2000-07-13  Paul Eggert  <eggert@twinsun.com>
128997         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
128999         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
129000         quotearg_buffer_restyled): Add support for
129001         clocale_quoting_style.  Undo previous change to
129002         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
129003         and "{RIGHT QUOTATION MARK}" msgids.
129005 2000-07-10  Paul Eggert  <eggert@twinsun.com>
129007         From a suggestion by Bruno Haible.
129008         * m4/mbstate_t.m4 (AC_MBSTATE_T):
129009         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
129010         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
129011         and mbstate_t, to a single-part test that simply defines mbstate_t.
129012         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
129013         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
129015 2000-07-10  Jim Meyering  <meyering@lucent.com>
129017         * m4/strerror_r.m4: Mirror the correction made in autoconf.
129019         * m4/gnu-source.m4: Output to confdefs.h directly.
129020         Suggestion from Akim Demaille.
129022 2000-07-09  Paul Eggert  <eggert@twinsun.com>
129024         The old behavior of quoting `like this' doesn't look good with
129025         newer, ISO-style fonts.  See:
129026         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
129028         Instead, quote "like this" by default.  Let the translator
129029         tailor the locale-specific quoting behavior by providing
129030         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
129032         * lib/quotearg.c (N_): New macro.
129033         (gettext_default): New function.
129034         (quotearg_buffer_restyled): Use
129035         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
129036         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
129038 2000-07-09  Jim Meyering  <meyering@lucent.com>
129040         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
129041         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
129043         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
129044         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
129046 2000-07-09  Jim Meyering  <meyering@lucent.com>
129048         * lib/Most files: Update copyright dates to include 2000.
129050 2000-07-08  Jim Meyering  <meyering@lucent.com>
129052         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
129053         if not defined.
129054         (xgethostname): Remove now-unnecessary #ifdef.
129055         Move declaration of `err' into loop where it's used.
129057 2000-07-05  Paul Eggert  <eggert@twinsun.com>
129058         and Bruno Haible  <haible@clisp.cons.org>
129060         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
129061         only if the test for an object-type mbstate_t fails.  This
129062         prevents us from mistakenly reporting that mbstate_t is a
129063         system object type after we "#define mbstate_t int" to work
129064         around its lack.
129066 2000-07-05  Paul Eggert  <eggert@twinsun.com>
129067         and Bruno Haible  <haible@clisp.cons.org>
129069         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
129071 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129073         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
129074         to strerror_r.
129075         Include <ctype.h> for use of isalpha.
129077 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129079         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
129080         by allocating a larger buffer. Test the gethostname return value for
129081         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
129082         returns an error and ENAMETOOLONG isn't defined.
129084 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129086         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
129087         dimension.
129089 2000-07-04  Jim Meyering  <meyering@lucent.com>
129091         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
129092         of the deprecated AC_CHECKING.
129094 2000-07-04  Jim Meyering  <meyering@lucent.com>
129096         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
129097         Reported by Bruno Haible.
129099 2000-07-04  Jim Meyering  <meyering@lucent.com>
129101         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
129102         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
129103         lacks mbrtowc.
129105 2000-07-03  Paul Eggert  <eggert@twinsun.com>
129107         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
129108         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
129110 2000-07-03  Paul Eggert  <eggert@twinsun.com>
129111         and Bruno Haible  <haible@clisp.cons.org>
129113         * lib/quotearg.c (mbrtowc):
129114         Assign to *pwc, and return 1 only if result is nonzero.
129115         (iswprint): Use ISPRINT when substituting our own mbrtowc.
129117 2000-07-03  Jim Meyering  <meyering@lucent.com>
129119         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
129121 2000-07-03  Jim Meyering  <meyering@lucent.com>
129123         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
129124         This is necessary to get a definition of e.g., UTMP_FILE on
129125         HP-UX 10.20.
129126         From Bob Proulx.
129128 2000-07-02  Jim Meyering  <meyering@lucent.com>
129130         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
129132         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
129133         AC_LIBOBJ(function_name).
129134         * m4/chown.m4: Likewise.
129135         * m4/fnmatch.m4: Likewise.
129136         * m4/ftruncate.m4: Likewise.
129137         * m4/getgroups.m4: Likewise.
129138         * m4/getline.m4: Likewise.
129139         * m4/group-member.m4: Likewise.
129140         * m4/jm-macros.m4: Likewise.
129141         * m4/lstat.m4: Likewise.
129142         * m4/malloc.m4: Likewise.
129143         * m4/memcmp.m4: Likewise.
129144         * m4/nanosleep.m4: Likewise.
129145         * m4/putenv.m4: Likewise.
129146         * m4/realloc.m4: Likewise.
129147         * m4/regex.m4: Likewise.
129148         * m4/stat.m4: Likewise.
129149         * m4/strftime.m4: Likewise.
129151 2000-07-02  Jim Meyering  <meyering@lucent.com>
129153         * lib/quotearg.c (mbstate_t): Don't define here.
129155 2000-07-02  Jim Meyering  <meyering@lucent.com>
129157         * lib/nanosleep.c (SIGCONT): Define if not already defined.
129159 2000-07-01  Jim Meyering  <meyering@lucent.com>
129161         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
129163 2000-07-01  Jim Meyering  <meyering@lucent.com>
129165         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
129166         problem.
129168 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
129170         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
129171         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
129173 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
129175         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
129176         per change in ../m4/ls-mntd-fs.m4.
129177         (read_filesystem_list): Ignore symbolic links.
129179 2000-06-29  Jim Meyering  <meyering@lucent.com>
129181         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
129182         for declaration of strcmp.
129184         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
129186         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
129187         Avoid warning by casting result to `char *' to remove `const'.
129189 2000-06-28  Jim Meyering  <meyering@lucent.com>
129191         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
129192         included by quotearg.c, for which we perform this test.  From
129193         Bruno Haible.
129195 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
129197         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
129198         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
129199         <utmpx.h> exists, put readutmp.o into LIBOBJS.
129201 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
129203         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
129205 2000-06-26  Paul Eggert  <eggert@twinsun.com>
129207         savedir now sets errno on failure and invokes xmalloc to get memory.
129208         Fix a couple of other minor bugs while we're at it.
129210         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
129211         (NAMLEN): Remove macro.
129212         (malloc, realloc): Remove decls.
129213         (stpcpy): Likewise.
129214         ("xalloc.h"): Include.
129215         (NAME_SIZE_DEFAULT): New macro.
129216         (savedir): Use xmalloc / xrealloc to allocate memory.
129217         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
129218         Skip "" directory entries.
129219         Use strlen to calculate directory entry length, since the old method
129220         is rarely used these days and isn't worth supporting.
129221         Don't use a pointer after freeing it.
129222         Check for integer overflow when calculating allocation size.
129223         Use memcpy to copy entries, instead of stpcpy.
129224         Set errno properly when returning NULL.
129225         Check for readdir error.
129227 2000-06-26  Jim Meyering  <meyering@lucent.com>
129229         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
129231 2000-06-25  Jim Meyering  <meyering@lucent.com>
129233         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
129234         Linux header bug when _XOPEN_SOURCE is defined to 500.
129236 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
129238         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
129239         deficiency.
129241 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
129243         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
129244         Include xalloc.h.
129245         Don't include <stdlib.h>.  Don't declare malloc, realloc.
129247 2000-06-24  Jim Meyering  <meyering@lucent.com>
129249         * m4/strerror_r.m4: Revive this file -- to try out an experimental
129250         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
129251         for which strerror does return char*, but which lacks a conveniently
129252         accessible declaration of the function.  If the compile-test says
129253         strerror_r doesn't work, then resort to a `run'-test that works on
129254         BeOS and segfaults on DEC Unix.
129256 2000-06-24  Jim Meyering  <meyering@lucent.com>
129258         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
129260 2000-06-23  Paul Eggert  <eggert@twinsun.com>
129262         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
129263         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
129265 2000-06-23  Paul Eggert  <eggert@twinsun.com>
129267         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
129268         (mbrtowc, mbstate_t): Define substitutes if
129269         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
129270         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
129271         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
129273 2000-06-23  Jim Meyering  <meyering@lucent.com>
129275         * m4/afs.m4: Add missing AC_MSG_RESULT.
129276         Reported by Bruno Haible.
129278         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
129279         Suggestion from Bruno Haible.
129281 2000-06-23  Jim Meyering  <meyering@lucent.com>
129283         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
129285 2000-06-21  Jim Meyering  <meyering@lucent.com>
129287         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
129289 2000-06-21  Jim Meyering  <meyering@lucent.com>
129291         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
129292         (noinst_HEADERS): Add getstr.h.
129294         * lib/getline.c (getstr): Move into a separate file.
129295         * lib/getstr.c (getstr): New file, extracted from getline.c, with
129296         the following changes: new parameter, delim2; both delim[12]
129297         parameters have type `int', not `char'.  The latter would lose
129298         with 8-bit delimiters.
129299         * lib/getstr.h: New file.
129301 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129303         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
129304         than 1024, return a memory chunk of least possible size, instead
129305         of size PATH_MAX + 2. In the loop, increment the size proportionally.
129306         Use free/xmalloc instead of xrealloc to avoid copying for very long
129307         paths.
129309 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129311         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
129312         the empty string.
129314 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129316         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
129317         address, not strdup.  Include <stdlib.h> and don't declare free().
129319 2000-06-19  Jim Meyering  <meyering@lucent.com>
129321         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
129323 2000-06-18  Jim Meyering  <meyering@lucent.com>
129325         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
129327         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
129328         `checking whether...' message to be consistent with that of the
129329         lstat test.
129331 2000-06-18  Jim Meyering  <meyering@lucent.com>
129333         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
129334         Besides, these days every porting target provides a mkdir function.
129336         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
129337         needed. (this snippet comes from src/system.h).
129339 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
129341         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
129343 2000-06-15  Paul Eggert  <eggert@twinsun.com>
129345         * lib/human.c (adjust_value): New function.
129346         (human_readable_inexact): Apply rounding style even when
129347         printing approximate values.
129349 2000-06-14  Paul Eggert  <eggert@twinsun.com>
129351         * lib/human.c (human_readable_inexact): Allow an input block
129352         size that is not a multiple of the output block size, and vice versa.
129353         Reported by Piergiorgio Sartor.
129355 2000-06-14  Paul Eggert  <eggert@twinsun.com>
129357         * lib/getdate.y (get_date): Apply relative times after time
129358         zone indicator, not before.  Reported by Todd A. Jacobs.
129360 2000-06-13  Jim Meyering  <meyering@lucent.com>
129362         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
129364         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
129366 2000-06-12  Paul Eggert  <eggert@twinsun.com>
129368         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
129370 2000-06-12  Jim Meyering  <meyering@lucent.com>
129372         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
129373         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
129374         optional argument.
129375         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
129376         the optional argument, `lib'.
129378 2000-06-08  Jim Meyering  <meyering@lucent.com>
129380         * m4/largefile.m4: Remove file (now that it's part of autoconf).
129382 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129384         Rewrite largefile configuration so that we don't need to run
129385         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
129386         AC_CANONICAL_HOST in configure.in -- jmm]
129388         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
129389         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
129390         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
129391         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
129392         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
129393         All uses changed.
129394         Instead of inspecting the output of getconf, try to compile the
129395         test program without and with the macro definition.
129396         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
129397         for getconf.  Instead, check for the needed flags by compiling
129398         test programs.
129400 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129402         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
129404 2000-06-04  Jim Meyering  <meyering@lucent.com>
129406         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
129407         SunOS 4.1.4 for which gid_t is an unsigned type.
129409 2000-06-03  Jim Meyering  <meyering@lucent.com>
129411         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
129412         now that autoconf requires that.
129414         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
129415         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
129416         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
129418 2000-06-03  Jim Meyering  <meyering@lucent.com>
129420         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
129422 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129424         * m4/glibc21.m4: New file.
129425         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
129427 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129429         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
129430         newer, don't install charset.alias.
129431         * lib/config.charset: Change the Linux/glibc rules so they become empty
129432         on glibc-2.1 or newer.
129434 2000-06-02  Jim Meyering  <meyering@lucent.com>
129436         * lib/mountlist.c: Back out last change.  Instead, do this...
129437         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
129438         me_dummy member using the same `ignore'-testing code.
129439         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
129440         fs_type strings.
129441         From Mark D. Roth.
129443 2000-05-29  Jim Meyering  <meyering@lucent.com>
129445         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
129446         mounts with the `ignore' attribute.  Based on a patch from
129447         Mark D. Roth.
129449 2000-05-28  Jim Meyering  <meyering@lucent.com>
129451         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
129452         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
129453         * m4/stat.m4: Likewise.
129454         * m4/lstat.m4: Likewise.
129455         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
129457         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
129458         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
129460 2000-05-26  Jim Meyering  <meyering@lucent.com>
129462         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
129464 2000-05-24  Jim Meyering  <meyering@lucent.com>
129466         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
129467         autoconf requires that.
129468         * m4/lib-check.m4: Likewise.
129469         * m4/jm-macros.m4: Likewise.
129470         * m4/strftime.m4: Likewise.
129472         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
129473         AC_CHECK_DECLS, now that autoconf requires that.
129475 2000-05-22  Jim Meyering  <meyering@lucent.com>
129477         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
129478         * m4/lstat.m4: Likewise.
129480 2000-05-22  Jim Meyering  <meyering@lucent.com>
129482         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
129484 2000-05-20  Jim Meyering  <meyering@lucent.com>
129486         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
129487         (jm_PREREQ): Use it.
129489 2000-05-18  Jim Meyering  <meyering@lucent.com>
129491         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
129492         back, too, since it may have been modified by allocate_entry.
129493         (hash_delete): Rewrite to use neither the assignment operator
129494         nor the comma operator in an if-expression.
129496 2000-05-15  Paul Eggert  <eggert@twinsun.com>
129498         * lib/closeout.c:
129499         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
129500         Remove; no longer needed.
129501         "quotearg.h": Add include.
129502         (file_name): Do not bother to explicitly initialize to NULL; it's less
129503         efficient on some hosts.
129504         (close_stdout_status): Remove test as to whether stdout was already
129505         closed; it breaks for the case "echo x | sort >&-".
129506         Quote file name colons.
129507         Do not assume that _("write error") lacks format strings.
129509 2000-05-15  Jim Meyering  <meyering@lucent.com>
129511         * lib/version-etc.c (version_etc_copyright): Update the copyright
129512         string used in all --version output.
129514 2000-05-14  Jim Meyering  <meyering@lucent.com>
129516         * lib/closeout.c (close_stdout_set_file_name): New function.
129517         (close_stdout_status): Use new file-scoped global.
129518         Return right away if fstat says the stdout file descriptor is invalid.
129519         * lib/closeout.h (close_stdout_set_file_name): Declare.
129521 2000-05-10  Jim Meyering  <meyering@lucent.com>
129523         * lib/closeout.c [default_exit_status]: New file-scoped variable.
129524         (close_stdout_set_status): New function.
129525         * lib/closeout.h (close_stdout_set_status): Declare.
129527 2000-05-09  Jim Meyering  <meyering@lucent.com>
129529         * m4/gettext.m4: Rename this...
129530         * m4/libintl.m4: ...to this.
129532 2000-05-08  Jim Meyering  <meyering@lucent.com>
129534         * lib/long-options.c: Don't include closeout.h.
129535         (parse_long_options): Don't call close_stdout for --version.
129537 2000-05-06  Paul Eggert  <eggert@twinsun.com>
129539         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
129540         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
129541         2.1.3 bug.  This avoids a clash when files like regex.c define
129542         _GNU_SOURCE.
129544 2000-05-06  Jim Meyering  <meyering@lucent.com>
129546         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
129547         (AC_REPLACE_FUNCS): Add strnlen.
129549         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
129550         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
129552         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
129553         AC_SEARCH_LIBS call for nanosleep.
129554         (LIB_NANOSLEEP): Set and AC_SUBST.
129556 2000-05-06  Jim Meyering  <meyering@lucent.com>
129558         * lib/strnlen.c: Undefine __strnlen and strnlen.
129559         [!weak_alias]: Define __strnlen to strnlen.
129561         * lib/atexit.c: New file, from libiberty.
129563 2000-05-06  Jim Meyering  <meyering@lucent.com>
129565         * lib/closeout.c (close_stdout_status): Also check for errors on the
129566         stderr stream.
129568 2000-05-05  Jim Meyering  <meyering@lucent.com>
129570         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
129571         AC_SEARCH_LIBS call for clock_gettime.
129572         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
129574         * m4/search-libs.m4: Update from autoconf.
129576         su doesn't work on Solaris 2.6.
129577         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
129578         <shadow.h>.  Reported by Dragos Harabor.
129580 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
129582         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
129583         memcpy instead of xmalloc, xrealloc, path_concat.
129584         (locale_charset): Treat empty environment variables as absent.
129585         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
129587 2000-05-04  Jim Meyering  <meyering@lucent.com>
129589         * lib/getopt.c: Update from glibc.
129590         * lib/obstack.c: Likewise.
129591         * lib/obstack.h: Likewise.
129592         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
129593         file
129595         * lib/regex.h: Likewise.
129596         * lib/strndup.c: Likewise.
129597         * lib/strnlen.c: New file, from glibc.
129599 2000-05-03  Jim Meyering  <meyering@lucent.com>
129601         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
129603 2000-05-02  Paul Eggert  <eggert@twinsun.com>
129605         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
129606         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
129607         compile-time test, rather than inspecting host and OS, to
129608         decide whether to define _LARGEFILE_SOURCE.
129610 2000-05-01  Jim Meyering  <meyering@lucent.com>
129612         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
129614         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
129615         Based on a patch from Bruno Haible.
129617 2000-05-01  Jim Meyering  <meyering@lucent.com>
129619         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
129621 2000-04-29  Jim Meyering  <meyering@lucent.com>
129623         * lib/path-concat.c: Declare strdup only if it's not defined.
129624         * lib/canon-host.c: Likewise.
129626 2000-04-28  Jim Meyering  <meyering@lucent.com>
129628         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
129629         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
129630         is included first, then limits.h is included by locale.h by libintl.h.
129631         From John David Anglin.
129633 2000-04-25  Jim Meyering  <meyering@lucent.com>
129635         * lib/makepath.c (S_IRWXUGO): Define.
129636         (make_path): Always perform explicit chmod if MODE specifies any
129637         of the `special' permission bits.  Prompted by a bug report against
129638         install from Mate Wierdl and Joost van Baal.
129640 2000-04-18  Jim Meyering  <meyering@lucent.com>
129642         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
129643         (jm_PREREQ): Use it.
129645 2000-04-18  Jim Meyering  <meyering@lucent.com>
129647         * lib/README: New file.
129649         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
129650         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
129652 2000-04-17  Jim Meyering  <meyering@lucent.com>
129654         Get it right :-)
129655         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
129656         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
129657         Suggestion from Akim Demaille.
129659 2000-04-17  Jim Meyering  <meyering@lucent.com>
129661         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
129662         the definition of it to rpl_strftime also defined-away the system's
129663         declaration.
129665 2000-04-15  Jim Meyering  <meyering@lucent.com>
129667         Use `C' to denote so-called `contiguous' files, the same way
129668         that tar does.
129669         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
129670         (ftypelet): Use S_ISCTG.
129671         From Michael Deutschmann.
129673 2000-04-14  Jim Meyering  <meyering@lucent.com>
129675         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
129676         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
129677         clobbered.
129679 2000-04-14  Jim Meyering  <meyering@lucent.com>
129681         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
129683 2000-04-13  Jim Meyering  <meyering@lucent.com>
129685         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
129686         AH_VERBATIM to insert required #ifndef into config.h.in.
129687         Suggestion from Akim Demaille.
129689 2000-04-12  Jim Meyering  <meyering@lucent.com>
129691         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
129692         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
129693         Christian Krackowizer.
129695         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
129696         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
129697         (AC_SYS_LARGEFILE): Require.
129698         (AM_C_PROTOTYPES): Require.
129700 2000-04-08  Jim Meyering  <meyering@lucent.com>
129702         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
129703         names don't conflict.  Reported by Eli Zaretskii.
129705 2000-04-07  Jim Meyering  <meyering@lucent.com>
129707         * lib/putenv.c: Move inclusion of errno.h so it follows that of
129708         sys/types.h, to work around system header problems on AIX 3.2.5.
129709         From Bruno Haible.
129711 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
129713         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
129714         bug.  Deal with the different error behavior of Irix iconv.
129716 2000-04-05  Paul Eggert  <eggert@twinsun.com>
129718         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
129719         IRIX if the installer said otherwise.
129721 2000-04-05  Jim Meyering  <meyering@lucent.com>
129723         Portability tweaks required for ultrix4.3.
129724         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
129725         (jm_CHECK_DECLS): Add getutent to the list of functions.
129726         (_jm_DECL_HEADERS): Add utmpx.h.
129727         From John David Anglin.
129729         * m4/strftime.m4: Back out the 2000-04-02 change.
129730         Instead of that change, simply undefine putenv in the test program.
129732 2000-04-05  Jim Meyering  <meyering@lucent.com>
129734         Portability tweaks required for ultrix4.3.
129735         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
129736         getutent.
129737         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
129738         * lib/canon-host.c: Declare strdup.
129739         * lib/path-concat.c: Likewise.
129740         From John David Anglin.
129742 2000-04-04  Jim Meyering  <meyering@lucent.com>
129744         Be more DOS 8.3-friendly.
129745         * lib/ref-add.sin: Renamed from ref-add.sed.in.
129746         * lib/ref-del.sin: Renamed from ref-del.sed.in.
129747         * lib/Makefile.am: Reflect renaming.
129748         Reported by Eli Zaretskii.
129750         Use a temporary file name that won't clash with `charset.alias'
129751         in the DOS 8.3 name space.
129752         * lib/Makefile.am (charset_tmp): Define.
129753         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
129754         (uninstall-local): Likewise.
129755         Reported by Eli Zaretskii.
129757 2000-04-03  Jim Meyering  <meyering@lucent.com>
129759         * m4/gettext.m4: Fix typo in comment.
129761         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
129762         textutils/configure.in).  Suggestion from Paul Eggert.
129763         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
129765 2000-04-02  Paul Eggert  <eggert@twinsun.com>
129767         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
129768         variable in the shell rather than using putenv, which isn't
129769         portable.  This avoids the configure-time inter-test dependency
129770         on the potentially-renamed putenv function.
129772 2000-03-30  Paul Eggert  <eggert@twinsun.com>
129774         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
129775         before checking struct stat.st_blksize, so that
129776         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
129778 2000-03-29  Paul Eggert  <eggert@twinsun.com>
129780         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
129781         since strftime.c uses HAVE_STRFTIME to decide whether to use
129782         the underlying strftime.
129784 2000-03-29  Paul Eggert  <eggert@twinsun.com>
129786         * lib/time/strftime.c (my_strftime): Make sure we call the system
129787         strftime, not ourselves, when invoking the underlying strftime.
129789 2000-03-24  Jim Meyering  <meyering@lucent.com>
129791         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
129792         (charset_alias): Define.
129793         (install-exec-local): Factor out common code.
129794         (uninstall-local): Split lines longer than 80.
129795         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
129796         (SUFFIXES): Define.
129797         (.sed.in.sed): New rule.  Don't redirect directly to $@.
129798         (CLEANFILES): Add ref-add.sed and ref-del.sed.
129800 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
129802         * lib/config.charset: Output a line containing "Packages using this
129803         file".
129804         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
129805         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
129806         ref-del.sed): New rules.
129808 2000-03-17  Jim Meyering  <meyering@lucent.com>
129810         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
129811         Otherwise, include <strings.h>
129813 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
129815         * lib/unicodeio.c (utf8_wctomb): New function.
129816         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
129817         format instead of in UCS-4 with platform dependent endianness.
129819 2000-03-10  Jim Meyering  <meyering@lucent.com>
129821         * m4/lib-check.m4: Look for getspnam in -lgen, too.
129822         From Marco Franzen.
129824 2000-03-07  Paul Eggert  <eggert@twinsun.com>
129826         * lib/savedir.c (savedir): Work even if directory size is
129827         negative; this can happen with some screwy NFS configurations.
129829 2000-03-06  Jim Meyering  <meyering@lucent.com>
129831         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
129832         if it's NULL (because we ran out of memory).  From Bruno Haible.
129834 2000-03-05  Jim Meyering  <meyering@lucent.com>
129836         * lib/localcharset.c ("path-concat.h"): Include.
129837         (get_charset_aliases): Use path_concat instead of ANSI string
129838         concatenation.
129840         * lib/unicodeio.h (PARAMS): Define.
129841         Use it to guard prototype.
129843 2000-03-04  Jim Meyering  <meyering@lucent.com>
129845         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
129846         for lib/localcharset.c.
129848 2000-03-04  Jim Meyering  <meyering@lucent.com>
129850         * lib/Makefile.am (install-exec-local): Create $(libdir) before
129851         installing into it.
129852         (uninstall-local): Uncomment this rule so `make distcheck' works
129853         once again.
129855         * lib/unicodeio.c (<errno.h>): Include it.
129856         (errno): Declare if not defined.
129858         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
129860         * lib/config.charset: New version, incorporating remarks from a linux
129861         i18n mailing list.  From Bruno Haible.
129863 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
129865         * m4/codeset.m4: New file.
129866         * m4/iconv.m4: New file.
129867         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
129869 2000-03-03  Jim Meyering  <meyering@lucent.com>
129871         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
129873 2000-03-02  Jim Meyering  <meyering@lucent.com>
129875         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
129876         the messages come out on separate lines.
129878         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
129879         rather than jm_CHECK_DECLARATIONS.
129880         * m4/decl.m4: Remove now-unused file.
129882         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
129883         geteuid.
129885 2000-03-02  Jim Meyering  <meyering@lucent.com>
129887         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
129889 2000-03-01  Jim Meyering  <meyering@lucent.com>
129891         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
129892         * lib/unicodeio.c: Likewise.
129894 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
129896         * lib/config.charset: New file.
129897         * lib/localcharset.c: New file.
129898         * lib/unicodeio.h, lib/unicodeio.c: New files.
129899         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
129900         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
129901         (noinst_HEADERS): Add unicodeio.h.
129902         (all-local, install-exec-local, charset.alias): New targets.
129904 2000-02-28  Paul Eggert  <eggert@twinsun.com>
129906         * lib/quotearg.c (ALERT_CHAR): New macro.
129907         (quotearg_buffer_restyled): Use it.
129909 2000-02-27  Jim Meyering  <meyering@lucent.com>
129911         * m4/check-decl.m4: Add getenv to the list.
129913 2000-02-27  Jim Meyering  <meyering@lucent.com>
129915         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
129916         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
129918         * lib/backupfile.c: Guard inclusion of stdlib.h with
129919         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
129920         Declare malloc if needed.
129922         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
129923         `#ifndef HAVE_DECL..'
129924         now that autoconf always defines the HAVE_DECL_ symbols.
129925         * lib/human.c: Likewise.
129926         * lib/same.c: Likewise.
129927         * lib/strtoumax.c: Likewise.
129929         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
129930         declaration check was not run.
129931         * lib/hash.c: Likewise.
129932         * lib/human.c: Likewise.
129933         * lib/same.c: Likewise.
129934         * lib/strtoumax.c: Likewise.
129936         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
129937         `.', then first look up the entire `.'-containing string as a login
129938         name.
129940 2000-02-23  Jim Meyering  <meyering@lucent.com>
129942         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
129943         in place of my hack.
129945 2000-02-18  Paul Eggert  <eggert@twinsun.com>
129947         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
129948         (textint): New typedef.
129949         (parser_control): Member year changed from int to textint.
129950         All uses changed.
129951         (YYSTYPE): Removed; replaced by %union with int and textint members.
129952         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
129953         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
129954         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
129955         (tSNUMBER, tUNUMBER): Now of type <textintval>.
129956         (date, number, to_year): Use width of number in digits, not its value,
129957         to determine whether it's a 2-digit year, or a 2-digit time.
129958         (yylex): Store number of digits of numeric tokens.
129959         Reported by John Kendall.
129961         (parser_control): Changed from struct parser_control to typedef (for
129962         consistency).  All uses changed.
129964         (tID): Removed; not used.
129965         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
129967 2000-02-14  Paul Eggert  <eggert@twinsun.com>
129969         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
129970         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
129972 2000-02-12  Jim Meyering  <meyering@lucent.com>
129974         * lib/userspec.c (ISDIGIT): Define it.
129975         (isdigit): Remove definition.
129976         (is_number): Use ISDIGIT, not isdigit.
129977         <libintl.h>: Include.
129978         (_ and N_): Define.
129979         (parse_user_spec): Mark translatable strings.
129981 2000-02-10  Jim Meyering  <meyering@lucent.com>
129983         With these changes, nanosleep.[ch] are finally enough like the other
129984         lib/* replacement files to compile on a few more losing systems.
129986         * lib/nanosleep.h: Don't include config.h.
129987         Remove prototype from declaration of nanosleep.
129988         (PARAMS): Remove now-unneeded definition.
129989         * lib/nanosleep.c: #undef nanosleep.
129990         (rpl_nanosleep): Rename from nanosleep.
129992 2000-02-10  Jim Meyering  <meyering@lucent.com>
129994         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
129995         gnu_nanosleep to rpl_nanosleep.
129997 2000-02-09  Jim Meyering  <meyering@lucent.com>
129999         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
130000         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
130002 2000-02-08  Akim Demaille  <akim@epita.fr>
130004         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
130005         `[' and `]' and remove uses of `changequote'.
130006         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
130007         (AC_SYS_LARGEFILE): Likewise.
130008         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
130009         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
130010         of changequote.
130011         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
130012         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
130013         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
130014         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
130016 2000-02-05  Jim Meyering  <meyering@lucent.com>
130018         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
130019         Remove explicit use of AC_HEADER_TIME.  It is required by
130020         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
130021         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
130022         in autoconf whereby the expansion of the latter ended up preceding
130023         the expansion of its prerequisite, AC_HEADER_TIME.
130024         Reported by Volker Borchert.
130026 2000-02-03  Jim Meyering  <meyering@lucent.com>
130028         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
130030 2000-02-03  Jim Meyering  <meyering@lucent.com>
130032         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
130033         rather than with `#if HAVE_UTMPNAME'.
130035 2000-02-02  Jim Meyering  <meyering@lucent.com>
130037         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
130038         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
130039         Reported by Eli Zaretskii.
130041 2000-02-01  Jim Meyering  <meyering@lucent.com>
130043         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
130045 2000-01-31  Jim Meyering  <meyering@lucent.com>
130047         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
130048         functions.  Add the time.h and sys/time.h headers along with the
130049         AC_REQUIRE'ment of AC_HEADER_TIME.
130051 2000-01-31  Jim Meyering  <meyering@lucent.com>
130053         * lib/nanosleep.h (nanosleep): Guard declaration with
130054         `#if ! HAVE_DECL_NANOSLEEP'.
130055         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
130056         the declaration in that vendor's sys/timers.h.
130057         Reported by Christian Krackowizer.
130059         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
130060         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
130061         (ISPRINT): Likewise.
130062         Reported by Tom Tromey.
130064 2000-01-30  Jim Meyering  <meyering@lucent.com>
130066         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
130068         * m4/prereq.m4 (utmp_includes): Define.
130069         Check for ut_user and ut_name members in both struct utmpx
130070         and struct utmp.
130072 2000-01-30  Jim Meyering  <meyering@lucent.com>
130074         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
130075         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
130076         header files where only utmpx.ut_user is declared.
130078         * lib/readutmp.h (UT_USER): Define.
130080 2000-01-29  Jim Meyering  <meyering@lucent.com>
130082         * m4/lib-check.m4: New file containing library-related checks from
130083         fileutils and sh-utils (textutils had none).
130085 2000-01-28  Jim Meyering  <meyering@lucent.com>
130087         * m4/perl.m4: Change format of warning message to look more like that
130088         from the missing script.  Suggestion from François Pinard.
130090 2000-01-25  Jim Meyering  <meyering@lucent.com>
130092         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
130093         well as time.h in the compile check.
130094         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
130095         Fix typo in cross-compiling case: s/yes/no/.
130097 2000-01-23  Jim Meyering  <meyering@lucent.com>
130099         * m4/jm-macros.m4: Move df-related tests here from
130100         fileutils/configure.in
130102         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
130103         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
130105         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
130106         s/space/ac_fsusage_space/.
130107         (jm_FILE_SYSTEM_USAGE): Take two parameters.
130109         * m4/ftruncate.m4: New file (derived from part of
130110         fileutils/configure.in).
130111         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
130112         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
130114         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
130115         AC_SUBST these here, rather than just in sh-util/configure.in, so
130116         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
130117         all the same.
130118         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
130119         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
130120         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
130121         (AC_SUBST(POW_LIBM)): Likewise.
130122         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
130124 2000-01-23  Jim Meyering  <meyering@lucent.com>
130126         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
130127         obstack.c.
130129 2000-01-22  Jim Meyering  <meyering@lucent.com>
130131         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
130133         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
130135         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
130136         configure.in
130137         (AC_CHECK_HEADERS): Likewise for sh-utils.
130138         (AC_CHECK_HEADERS): Likewise for textutils.
130139         Merge the three lists of headers.
130141         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
130142         from fileutils' configure.in.
130144         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
130145         code. Moved tests into their own function (_jm_DECL_HEADERS) in
130146         check-decl.m4.
130148         * m4/check-decl.m4: Use #if rather than #ifdef.
130149         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
130150         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
130151         (_jm_DECL_HEADERS): Define new function.
130152         (jm_CHECK_DECLARATIONS): Require it.
130154 2000-01-22  Jim Meyering  <meyering@lucent.com>
130156         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
130157         [! HAVE_DECL_STRTOULL]: Declare strtoull.
130158         Required for some AIX systems.  Reported by Christian Krackowizer.
130159         [TESTING] (main): New function.
130161         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
130162         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
130163         letters.
130165         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
130166         iswprint.
130168         * lib/strverscmp.c (ISDIGIT): Define.
130169         (strverscmp): Use ISDIGIT, not isdigit.
130171 2000-01-19  Jim Meyering  <meyering@lucent.com>
130173         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
130174         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
130175         defines `struct timespec' in <sys/time.h>
130177         * m4/c-bs-a.m4: Remove uses of changequote altogether.
130178         Thanks to Akim for explaining.
130180 2000-01-17  Paul Eggert  <eggert@twinsun.com>
130182         * lib/nanosleep.c (nanosleep):
130183         Don't use SA_INTERRUPT to decide whether to call sigaction, as
130184         POSIX.1 doesn't require SA_INTERRUPT and some systems
130185         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
130186         it's been part of POSIX.1 since day 1 (in 1988).
130188 2000-01-17  Jim Meyering  <meyering@lucent.com>
130190         * lib/interlock: Remove unused file.  Reported by François Pinard.
130192 2000-01-16  Paul Eggert  <eggert@twinsun.com>
130194         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
130195         alert, backslash, formfeed, and vertical tab unnecessarily in
130196         shell quoting style.
130198 2000-01-16  Jim Meyering  <meyering@lucent.com>
130200         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
130201         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
130202         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
130203         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
130205 2000-01-16  Jim Meyering  <meyering@lucent.com>
130207         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
130208         because the latter didn't work.
130210 2000-01-15  Jim Meyering  <meyering@lucent.com>
130212         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
130213         (AC_REPLACE_FUNCS): Add memcpy and memset.
130214         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
130215         Add strpbrk.
130216         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
130218 2000-01-12  Jim Meyering  <meyering@lucent.com>
130220         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
130221         (jm_PREREQ): Use it.
130222         (jm_PREREQ_READUTMP): New macro.
130223         (jm_PREREQ): Use it.
130225 2000-01-11  Paul Eggert  <eggert@twinsun.com>
130227         Quote multibyte characters correctly.
130228         * m4/c-bs-a.m4: New file.
130229         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
130230         (jm_PREREQ): Use it.
130232 2000-01-11  Paul Eggert  <eggert@twinsun.com>
130234         * m4/uintmax_t.m4: Port to autoconf 2.13.
130236 2000-01-08  Jim Meyering  <meyering@ascend.com>
130238         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
130239         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
130241 2000-01-04  Jim Meyering  <meyering@ascend.com>
130243         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
130244         jm_STRUCT_DIRENT_D_TYPE.
130245         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
130246         jm_STRUCT_DIRENT_D_INO.
130247         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
130248         jm_STRUCT_UTIMBUF.
130249         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
130250         renamings.
130251         * m4/utime.m4: Likewise.
130253         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
130254         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
130256 2000-01-03  Paul Eggert  <eggert@twinsun.com>
130258         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
130259         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
130261 2000-01-02  Jim Meyering  <meyering@ascend.com>
130263         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
130264         remember if this is necessary.
130266 1999-12-26  Jim Meyering  <meyering@ascend.com>
130268         * m4/jm-macros.m4: Use it here.
130269         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
130271 1999-12-23  Jim Meyering  <meyering@ascend.com>
130273         * m4/jm-macros.m4: Check for clock_gettime (moved from
130274         fileutils/configure.in)
130275         Check for gettimeofday.
130277 1999-12-20  Jim Meyering  <meyering@ascend.com>
130279         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
130280         autoconf-2.14a-1999-12-20.
130282 1999-12-19  Jim Meyering  <meyering@ascend.com>
130284         * m4/lstat-slash.m4: New file.
130285         * m4/jm-macros.m4: Use the new macro:
130286         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130288 1999-12-07  Jim Meyering  <meyering@ascend.com>
130290         * m4/perl.m4: Require that File::Compare be available, too.
130291         Too many systems seem to lack it.
130293         * m4/strftime.m4: Add checks for most of the cpp macros tested in
130294         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
130296 1999-11-18  Paul Eggert  <eggert@twinsun.com>
130298         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
130299         problem with the QNX 4.25 shell, which doesn't propagate exit
130300         status of failed commands inside shell assignments.
130302 1999-11-17  Jim Meyering  <meyering@ascend.com>
130304         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
130306 1999-11-07  Jim Meyering  <meyering@ascend.com>
130308         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
130310 1999-11-06  Jim Meyering  <meyering@ascend.com>
130312         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
130313         * m4/jm-macros.m4 (jm_MACROS): Use it here.
130315 1999-11-05  Jim Meyering  <meyering@ascend.com>
130317         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
130318         configure.in of textutils, fileutils, and sh-utils into this one
130319         (shared between those packages) file.
130320         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
130321         AC_STRUCT_ST_BLKSIZE.
130323 1999-11-03  Jim Meyering  <meyering@ascend.com>
130325         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
130326         of AC_CHECK_TYPE checks includes unistd.h.
130327         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
130328         Suggestion from Akim Demaille.
130330 1999-10-30  Jim Meyering  <meyering@ascend.com>
130332         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
130333         m4-quoted string.
130334         * m4/ls-mntd-fs.m4: Likewise.
130335         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
130336         * m4/jm-winsz1.m4: Likewise.
130338         * m4/const.m4: Remove file, since the fix made it into the experimental
130339         version of autoconf.
130340         * m4/mktime.m4: Likewise.
130342         * m4/check-type.m4: Remove file, now that the latest version of
130343         AC_CHECK_TYPE takes a third arg to specify additional #includes.
130345         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
130346         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
130347         AC_CHECK_TYPE.
130349 1999-10-04  Jim Meyering  <meyering@ascend.com>
130351         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
130353 1999-09-22  Paul Eggert  <eggert@twinsun.com>
130355         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
130356         2.95.1 bug with HP-UX 10.20.
130358 1999-09-17  Jim Meyering  <meyering@ascend.com>
130360         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
130361         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
130362         due to missing strdup (against sh-utils-2.0).
130364 1999-08-29  Jim Meyering  <meyering@ascend.com>
130366         * m4/jm-macros.m4: Require jm_BISON.
130367         * m4/bison.m4: New file.
130369 1999-08-17  Paul Eggert  <eggert@twinsun.com>
130371         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
130372         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
130374 1999-08-05  Jim Meyering  <meyering@ascend.com>
130376         * m4/getline.m4: Rename test file from conftestdata to conftest.data
130377         to avoid conflicts with `conftest' on 8+3 filesystems.
130378         Suggestion from Eli Zaretskii.
130380 1999-08-04  Jim Meyering  <meyering@ascend.com>
130382         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
130383         fileutils and sh-utils (textutils's getline test was inadequate).
130384         (AM_FUNC_GETLINE): Run this test.
130385         (AC_CHECK_FUNCS): Check for getdelim.
130386         Reported by Bob Proulx.
130388 1999-08-02  Jim Meyering  <meyering@ascend.com>
130390         * m4/jm-macros.m4: Add a comment.
130392 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130394         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
130395         <inttypes.h> defines strtoumax as a macro (and not as a
130396         function).
130398 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130400         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
130401         that we can shift, multiply and divide unsigned long long
130402         values; Ultrix cc can't do it.
130404 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130406         * m4/mktime.m4: New file, which is a preview of what should appear
130407         in the next public autoconf release.
130409 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130411         * m4/lfs.m4: Remove this file.
130412         * m4/largefile.m4: New file.  It contains the old contents of
130413         lfs.m4, except that all names with prefix AC_LFS have been
130414         changed to use the prefix AC_SYS_LARGEFILE instead, to be
130415         compatible with future autoconf versions.  Also, some minor m4
130416         quoting problems have been fixed.
130418 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130420         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
130421         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
130422         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
130423         and simplify the shell code.
130425 1999-08-01  Jim Meyering  <meyering@ascend.com>
130427         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
130428         m4.
130430 1999-07-20  Jim Meyering  <meyering@ascend.com>
130432         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
130434 1999-07-15  Jim Meyering  <meyering@ascend.com>
130436         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
130438 1999-05-22  Jim Meyering  <meyering@ascend.com>
130440         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
130442 1999-05-20  Jim Meyering  <meyering@ascend.com>
130444         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
130445         Add a colon after each `then' in case $4 is empty.
130447 1999-05-16  Jim Meyering  <meyering@ascend.com>
130449         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
130451 1999-05-10  Jim Meyering  <meyering@ascend.com>
130453         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
130455         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
130456         AC_FUNC_MKTIME.
130458 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
130460         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
130462 1999-05-04  Paul Eggert  <eggert@twinsun.com>
130464         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
130465         not CPPFLAGS, so that linking works correctly in IRIX.
130467 1999-04-30  Paul Eggert  <eggert@twinsun.com>
130469         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
130471 1999-04-20  Paul Eggert  <eggert@twinsun.com>
130473         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
130474         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
130475         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
130476         jm_AC_TYPE_UNSIGNED_LONG_LONG.
130477         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
130479         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
130481 1999-04-20  Jim Meyering  <meyering@ascend.com>
130483         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
130484         AC_REPLACE xstroull if necessary.  From Paul Eggert.
130485         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
130487 1999-04-18  Jim Meyering  <meyering@ascend.com>
130489         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
130490         * m4/jm-macros.m4: Use it.
130492 1999-04-06  Jim Meyering  <meyering@ascend.com>
130494         * m4/strftime.m4: Remove test for %f.
130496 1999-03-29  Jim Meyering  <meyering@ascend.com>
130498         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
130499         superset of the AC_TYPE_* checks in the textutils, fileutils,
130500         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
130501         AC_TYPE_PID_T.
130503 1999-03-28  Jim Meyering  <meyering@ascend.com>
130505         * m4/jm-macros.m4: Define GNU_PACKAGE here.
130506         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
130507         replaced e.g., in the *.sh files of the sh-utils.
130509 1999-03-20  Jim Meyering  <meyering@ascend.com>
130511         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
130512         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
130513         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
130515 1999-03-19  Jim Meyering  <meyering@ascend.com>
130517         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
130519 1999-03-12  Jim Meyering  <meyering@ascend.com>
130521         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
130523 1999-03-07  Jim Meyering  <meyering@ascend.com>
130525         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
130526         declared.
130528 1999-02-17  Jim Meyering  <meyering@ascend.com>
130530         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
130531         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
130533 1999-02-07  Jim Meyering  <meyering@ascend.com>
130535         * m4/group-member.m4: New file -- extracted from sh-utils'
130536         configure.in.
130538         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
130539         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
130541 1999-02-06  Jim Meyering  <meyering@ascend.com>
130543         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
130544         * m4/fnmatch.m4: Likewise.
130545         * m4/getgroups.m4: Likewise.
130546         * m4/lstat.m4: Likewise.
130547         * m4/malloc.m4: Likewise.
130548         * m4/putenv.m4: Likewise.
130549         * m4/realloc.m4: Likewise.
130550         * m4/regex.m4: Likewise.
130551         * m4/stat.m4: Likewise.
130552         * m4/strftime.m4: Likewise.
130553         Suggestion from Alain Magloire.
130555         * m4/chown.m4: Use `.$ac_objext', not `.o'.
130556         * m4/fnmatch.m4: Likewise.
130557         * m4/getgroups.m4: Likewise.
130558         * m4/getline.m4: Likewise.
130559         * m4/lstat.m4: Likewise.
130560         * m4/malloc.m4: Likewise.
130561         * m4/memcmp.m4: Likewise.
130562         * m4/putenv.m4: Likewise.
130563         * m4/realloc.m4: Likewise.
130564         * m4/regex.m4: Likewise.
130565         * m4/stat.m4: Likewise.
130566         * m4/strftime.m4: Likewise.
130567         Suggestion from Alain Magloire.
130569         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
130570         an argument.
130572         * m4/regex.m4: Add a run-time Test for proper operation of
130573         re_compile_pattern.
130575 1999-01-31  Jim Meyering  <meyering@ascend.com>
130577         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
130579 1999-01-30  Jim Meyering  <meyering@ascend.com>
130581         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
130583         * m4/jm-mktime.m4: Make this a wrapper around the official
130584         AM_FUNC_MKTIME rather than my private copy, now that the official one
130585         is up to date.
130586         * m4/mktime.m4: Remove file.
130588         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
130589         * m4/uptime.m4: Likewise.
130590         * m4/uintmax_t.m4: Likewise.
130592 1999-01-28  Jim Meyering  <meyering@ascend.com>
130594         * m4/jm-macros.m4: Use jm_AFS.
130595         * m4/afs.m4: New file (from fileutils' configure.in).
130597         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
130598         * m4/chown.m4: Likewise.
130599         * m4/d-ino.m4: Likewise.
130600         * m4/d-type.m4: Likewise.
130601         * m4/fnmatch.m4: Likewise.
130602         * m4/getgroups.m4: Likewise.
130603         * m4/gettext.m4: Likewise.
130604         * m4/jm-mktime.m4: Likewise.
130605         * m4/jm-winsz2.m4: Likewise.
130606         * m4/lcmessage.m4: Likewise.
130607         * m4/ls-mntd-fs.m4: Likewise.
130608         * m4/malloc.m4: Likewise.
130609         * m4/memcmp.m4: Likewise.
130610         * m4/putenv.m4: Likewise.
130611         * m4/realloc.m4: Likewise.
130612         * m4/st_mtim.m4: Likewise.
130613         * m4/strftime.m4: Likewise.
130615 1999-01-16  Jim Meyering  <meyering@ascend.com>
130617         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
130618         (ARGMATCH_DIE_DECL): Define.
130620 1999-01-12  Jim Meyering  <meyering@ascend.com>
130622         * m4/Makefile.am.in: Rewrite to avoid using fmt.
130623         Reported by Lars Hecking.
130625 1999-01-10  Jim Meyering  <meyering@ascend.com>
130627         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
130628         gross kludge.
130629         * m4/inttypes_h.m4: Likewise.
130630         * m4/lstat.m4: Likewise.
130631         * m4/malloc.m4: Likewise.
130632         * m4/readdir.m4: Likewise.
130633         * m4/realloc.m4: Likewise.
130634         * m4/st_dm_mode.m4: Likewise.
130635         * m4/stat.m4: Likewise.
130636         * m4/utimbuf.m4: Likewise.
130637         * m4/utimes.m4: Likewise.
130639         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
130640         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
130641         comments in config.h.in are meaningful.
130643         * m4/jm-macros.m4: Require autoconf-2.13 here.
130645         * m4/regex.m4: By default, don't use the included regex.c on systems
130646         with glibc 2.  Suggestion from Uli Drepper.
130648 1999-01-02  Jim Meyering  <meyering@ascend.com>
130650         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
130652 1998-12-18  Jim Meyering  <meyering@ascend.com>
130654         * m4/Makefile.am.in (Makefile.am): Simplify rule.
130655         Based on a suggestion from Lars Hecking.
130657 1998-11-16  Paul Eggert  <eggert@twinsun.com>
130659         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
130661 1998-11-16  Jim Meyering  <meyering@ascend.com>
130663         * m4/lfs.m4: Double-quote the `uname...` expression.
130665 1998-11-14  Jim Meyering  <meyering@ascend.com>
130667         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
130668         * m4/stat.m4: Likewise.
130670 1998-11-03  Jim Meyering  <meyering@ascend.com>
130672         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
130673         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
130675 1998-10-18  Jim Meyering  <meyering@ascend.com>
130677         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
130679 1998-10-17  Jim Meyering  <meyering@ascend.com>
130681         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
130682         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
130683         calls for those previously hard-coded headers.  Instead, take a new
130684         parameter.
130685         (jm_CHECK_DECLARATIONS): Reflect interface change.
130686         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
130687         (jm_CHECK_DECL_LOCALTIME_R): New macro.
130689         * m4/mktime.m4: Test for spring-forward gap before long-running test.
130691 1998-10-14  Jim Meyering  <meyering@ascend.com>
130693         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
130694         instead of "TZ=America/Vancouver".  From Paul Eggert.
130696 1998-10-11  Jim Meyering  <meyering@ascend.com>
130698         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
130699         This adds a test for a recently added compatibility fix for mktime.c.
130700         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
130702 1998-09-27  Jim Meyering  <meyering@ascend.com>
130704         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
130706         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
130707         ../configure.in, including a change from Gordon Matzigkeit to allow
130708         cross-compiling for the Hurd.
130710         * m4/glibc.m4: New file/macro to test for the GNU C Library
130711         versions 1 and 2.  From Gordon Matzigkeit.
130712         Indent.
130714 1998-09-21  Jim Meyering  <meyering@ascend.com>
130716         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
130718 1998-08-18  Paul Eggert  <eggert@twinsun.com>
130720         Port nanosecond-resolution times to UnixWare 2.1.2 and
130721         pedantic Solaris 2.6.
130723         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
130724         AC_STRUCT_ST_MTIM.
130725         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
130726         Generate name of ns member, instead of just 1 or undef.
130727         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
130729 1998-08-15  Jim Meyering  <meyering@ascend.com>
130731         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
130732         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
130733         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
130734         instead of jm_TYPE_SSIZE_T.
130736 1998-08-12  Jim Meyering  <meyering@ascend.com>
130738         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
130740 1998-08-02  Jim Meyering  <meyering@ascend.com>
130742         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
130743         in acconfig.h manually.
130745 1998-07-31  Paul Eggert  <eggert@twinsun.com>
130747         * m4/st_mtim.m4: New file.
130749 1998-07-28  Jim Meyering  <meyering@ascend.com>
130751         * m4/utimes.m4: Undef stat.
130753 1998-07-25  Jim Meyering  <meyering@ascend.com>
130755         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
130756         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
130758 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
130760         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
130761         uid and gid actually remain unchanged.
130763 1998-07-07  Jim Meyering  <meyering@ascend.com>
130765         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
130767 1998-07-04  Jim Meyering  <meyering@ascend.com>
130769         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
130770         to prove that this macro can be used in packages without regex.c.
130772 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
130774         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
130775         is to be used.
130777 1998-07-03  Jim Meyering  <meyering@ascend.com>
130779         * m4/gettext.m4: Add -lintl if it's found to be necessary.
130781         * m4/gettext.m4: New file -- from gettext-0.10.35.
130782         * m4/lcmessage.m4: Likewise.
130783         * m4/progtest.m4: Likewise.
130785         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
130786         * m4/jm-macros.m4: Require the new macro.
130788 1998-06-29  Jim Meyering  <meyering@ascend.com>
130790         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
130791         for the definition of NGROUPS (used in a system header included
130792         by sys/mount.h).
130794 1998-06-28  Jim Meyering  <meyering@ascend.com>
130796         * m4/ls-mntd-fs.m4: New file.
130797         * m4/fstypename.m4: New file.
130799         * m4/jm-macros.m4: Require the new macro.
130800         * m4/jm-glibc-io.m4: New file.
130802 1998-05-19  Jim Meyering  <meyering@ascend.com>
130804         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
130805         * m4/lchown.m4: New file.
130807         * m4/Makefile.am.in: New file.
130808         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
130810 1998-05-14  Jim Meyering  <meyering@ascend.com>
130812         * m4/Makefile.am (EXTRA_DIST): Add them.
130813         * m4/jm-macros.m4: New file.
130814         * m4/utimbuf.m4: New file.
130816 1998-05-12  Jim Meyering  <meyering@ascend.com>
130818         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
130820 1998-05-11  Jim Meyering  <meyering@ascend.com>
130822         * m4/isc-posix.m4: New file.
130824 1998-05-10  Jim Meyering  <meyering@ascend.com>
130826         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
130828 1998-05-09  Jim Meyering  <meyering@ascend.com>
130830         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
130831         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
130832         with automake.
130834         * m4/ssize_t.m4: New file.
130835         * m4/mktime.m4: Remove file -- the new automake has this now.
130837 1998-04-26  Jim Meyering  <meyering@ascend.com>
130839         * m4/assert.m4: New file.
130840         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
130842 1998-04-05  Jim Meyering  <meyering@ascend.com>
130844         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
130845         (jm_PREREQ): Use it here.
130847 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
130849         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
130850         in acconfig.h.
130852 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
130854         * m4/prereq.m4: New file.
130855         * m4/error.m4: New file.
130856         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
130858 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
130860         * m4/getline.m4: Don't set am_cv_func_working_getline before the
130861         cache-check for the same variable -- that defeated the purpose of
130862         the test; the test program was never run.  This was a problem only
130863         on systems with losing getline functions -- HP-UX 10.20 is one.
130864         Reported by Bjorn Helgaas.
130866 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
130868         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
130870 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
130872         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
130874         * m4/const.m4: New file.  Use an initializer in this declaration
130875         typedef int charset[2]; const charset x;
130876         Reported by Bob Glickstein.
130878 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
130880         * m4/chown.m4: Fix reversed types on -1 args to chown.
130881         From Kaveh Ghazi.
130883 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
130885         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
130886         Add lseek and memchr.
130888         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
130889         T.E.Dickey <dickey@clark.net> said that some older preprocessors
130890         have a 20-character limit on names.
130892 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
130894         * m4/inttypes_h.m4: New file.
130895         * m4/uintmax_t.m4: New file.
130896         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
130899         -----
130901         Local Variables:
130902         coding: utf-8
130903         End:
130905         Copyright (C) 1997-2020 Free Software Foundation, Inc.
130907         Copying and distribution of this file, with or without
130908         modification, are permitted provided the copyright notice
130909         and this notice are preserved.